update dependencies and add typings-global
This commit is contained in:
parent
1e545a2cfb
commit
bd3ad78624
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -13,4 +13,4 @@ var smartpath = {
|
|||||||
};
|
};
|
||||||
module.exports = smartpath;
|
module.exports = smartpath;
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxJQUFPLGNBQWMsV0FBVyxtQkFBbUIsQ0FBQyxDQUFDO0FBQ3JELElBQU8sWUFBWSxXQUFXLGlCQUFpQixDQUFDLENBQUM7QUFDakQsSUFBTyxrQkFBa0IsV0FBVyx1QkFBdUIsQ0FBQyxDQUFDO0FBRTdEOzs7R0FHRztBQUNILElBQUksU0FBUyxHQUFHO0lBQ1osS0FBSyxFQUFFLGNBQWM7SUFDckIsR0FBRyxFQUFFLFlBQVk7SUFDakIsU0FBUyxFQUFFLGtCQUFrQjtDQUNoQyxDQUFDO0FBR0YsaUJBQVMsU0FBUyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cInR5cGluZ3MvbWFpbi5kLnRzXCIgLz5cbmltcG9ydCBwbHVnaW5zID0gcmVxdWlyZShcIi4vc21hcnRwYXRoLnBsdWdpbnNcIik7XG5pbXBvcnQgU21hcnRwYXRoQ2hlY2sgPSByZXF1aXJlKFwiLi9zbWFydHBhdGguY2hlY2tcIik7XG5pbXBvcnQgU21hcnRwYXRoR2V0ID0gcmVxdWlyZShcIi4vc21hcnRwYXRoLmdldFwiKTtcbmltcG9ydCBTbWFydHBhdGhUcmFuc2Zvcm0gPSByZXF1aXJlKFwiLi9zbWFydHBhdGgudHJhbnNmb3JtXCIpO1xuXG4vKipcbiAqXG4gKiBAdHlwZSB7e2dldFBhdGg6IChmdW5jdGlvbihhbnkpOiB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m1cIik7XHJcblxyXG4vKipcclxuICpcclxuICogQHR5cGUge3tnZXRQYXRoOiAoZnVuY3Rpb24oYW55KTogdW5kZWZpbmVkKX19XHJcbiAqL1xyXG5sZXQgc21hcnRwYXRoID0ge1xyXG4gICAgY2hlY2s6IFNtYXJ0cGF0aENoZWNrLFxyXG4gICAgZ2V0OiBTbWFydHBhdGhHZXQsXHJcbiAgICB0cmFuc2Zvcm06IFNtYXJ0cGF0aFRyYW5zZm9ybVxyXG59O1xyXG5cclxuXHJcbmV4cG9ydCA9IHNtYXJ0cGF0aDtcclxuIl19
|
||||||
|
1
dist/smartpath.check.d.ts
vendored
1
dist/smartpath.check.d.ts
vendored
@ -1,2 +1,3 @@
|
|||||||
|
import "typings-global";
|
||||||
export declare let isDir: (pathArg: string) => boolean;
|
export declare let isDir: (pathArg: string) => boolean;
|
||||||
export declare let isFile: (pathArg: any) => boolean;
|
export declare let isFile: (pathArg: any) => boolean;
|
||||||
|
3
dist/smartpath.check.js
vendored
3
dist/smartpath.check.js
vendored
@ -1,4 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
require("typings-global");
|
||||||
exports.isDir = function (pathArg) {
|
exports.isDir = function (pathArg) {
|
||||||
return !exports.isFile(pathArg);
|
return !exports.isFile(pathArg);
|
||||||
};
|
};
|
||||||
@ -6,4 +7,4 @@ exports.isFile = function (pathArg) {
|
|||||||
return /\.[a-zA-Z]*$/.test(pathArg); // checks if there is a .anything at the end
|
return /\.[a-zA-Z]*$/.test(pathArg); // checks if there is a .anything at the end
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5jaGVjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRVcsYUFBSyxHQUFHLFVBQVMsT0FBYztJQUN0QyxNQUFNLENBQUMsQ0FBQyxjQUFNLENBQUMsT0FBTyxDQUFD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iaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcclxuaW1wb3J0ICogYXMgcGx1Z2lucyBmcm9tIFwiLi9zbWFydHBhdGgucGx1Z2luc1wiO1xyXG5cclxuZXhwb3J0IGxldCBpc0RpciA9IGZ1bmN0aW9uKHBhdGhBcmc6c3RyaW5nKXtcclxuICAgIHJldHVybiAhaXNGaWxlKHBhdGhBcmcpO1xyXG59XHJcblxyXG5leHBvcnQgbGV0IGlzRmlsZSA9IGZ1bmN0aW9uKHBhdGhBcmcpe1xyXG4gICAgcmV0dXJuIC9cXC5bYS16QS1aXSokLy50ZXN0KHBhdGhBcmcpOyAvLyBjaGVja3MgaWYgdGhlcmUgaXMgYSAuYW55dGhpbmcgYXQgdGhlIGVuZFxyXG59Il19
|
||||||
|
1
dist/smartpath.get.d.ts
vendored
1
dist/smartpath.get.d.ts
vendored
@ -1,3 +1,4 @@
|
|||||||
|
import "typings-global";
|
||||||
/**
|
/**
|
||||||
* returns the type of the given path. Can be "url" or "local"
|
* returns the type of the given path. Can be "url" or "local"
|
||||||
*/
|
*/
|
||||||
|
4
dist/smartpath.get.js
vendored
4
dist/smartpath.get.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/// <reference path="typings/main.d.ts" />
|
require("typings-global");
|
||||||
var plugins = require("./smartpath.plugins");
|
var plugins = require("./smartpath.plugins");
|
||||||
/**
|
/**
|
||||||
* returns the type of the given path. Can be "url" or "local"
|
* returns the type of the given path. Can be "url" or "local"
|
||||||
@ -23,4 +23,4 @@ exports.home = function (pathArgument) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5nZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBDQUEwQztBQUMxQyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIs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
||||||
|
1
dist/smartpath.plugins.d.ts
vendored
1
dist/smartpath.plugins.d.ts
vendored
@ -1,3 +1,4 @@
|
|||||||
|
import "typings-global";
|
||||||
export declare var beautylog: any;
|
export declare var beautylog: any;
|
||||||
export declare var home: any;
|
export declare var home: any;
|
||||||
export declare var path: any;
|
export declare var path: any;
|
||||||
|
4
dist/smartpath.plugins.js
vendored
4
dist/smartpath.plugins.js
vendored
@ -1,7 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/// <reference path="./typings/main.d.ts" />
|
require("typings-global");
|
||||||
exports.beautylog = require("beautylog");
|
exports.beautylog = require("beautylog");
|
||||||
exports.home = require("home");
|
exports.home = require("home");
|
||||||
exports.path = require("path");
|
exports.path = require("path");
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUUsV0FBVyxDQUFDLENBQUM7QUFDbEMsWUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUN2QixZQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDIiwiZmlsZSI6InNtYXJ0cGF0aC5wbHVnaW5zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuZXhwb3J0IHZhciBiZWF1dHlsb2cgPSByZXF1aXJlIChcImJlYXV0eWxvZ1wiKTtcbmV4cG9ydCB2YXIgaG9tZSA9IHJlcXVpcmUoXCJob21lXCIpO1xuZXhwb3J0IHZhciBwYXRoID0gcmVxdWlyZShcInBhdGhcIik7XG5cbiJdfQ==
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDYixpQkFBUyxHQUFHLE9BQU8sQ0FBRSxXQUFXLENBQUMsQ0FBQztBQUNsQyxZQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ3ZCLFlBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUMiLCJmaWxlIjoic21hcnRwYXRoLnBsdWdpbnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgXCJ0eXBpbmdzLWdsb2JhbFwiO1xyXG5leHBvcnQgdmFyIGJlYXV0eWxvZyA9IHJlcXVpcmUgKFwiYmVhdXR5bG9nXCIpO1xyXG5leHBvcnQgdmFyIGhvbWUgPSByZXF1aXJlKFwiaG9tZVwiKTtcclxuZXhwb3J0IHZhciBwYXRoID0gcmVxdWlyZShcInBhdGhcIik7XHJcblxyXG4iXX0=
|
||||||
|
1
dist/smartpath.transform.d.ts
vendored
1
dist/smartpath.transform.d.ts
vendored
@ -1 +1,2 @@
|
|||||||
|
import "typings-global";
|
||||||
export declare let toAbsolute: (relativeArg: any, baseArg?: string) => any;
|
export declare let toAbsolute: (relativeArg: any, baseArg?: string) => any;
|
||||||
|
4
dist/smartpath.transform.js
vendored
4
dist/smartpath.transform.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/// <reference path="typings/main.d.ts" />
|
require("typings-global");
|
||||||
var plugins = require("./smartpath.plugins");
|
var plugins = require("./smartpath.plugins");
|
||||||
/* ------------------------------------------ *
|
/* ------------------------------------------ *
|
||||||
* ------------ helpers --------------------- *
|
* ------------ helpers --------------------- *
|
||||||
@ -37,4 +37,4 @@ exports.toAbsolute = function (relativeArg, baseArg) {
|
|||||||
}
|
}
|
||||||
};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ga2V5IGluIHJlbGF0aXZlQXJyYXkpe1xyXG4gICAgICAgICAgICBhYnNvbHV0ZUFycmF5LnB1c2gobWFrZUFic29sdXRlKHJlbGF0aXZlQXJyYXlba2V5XSxiYXNlQXJnKSk7XHJcbiAgICAgICAgfTtcclxuICAgICAgICByZXR1cm4gYWJzb2x1dGVBcnJheTtcclxuICAgIH0gZWxzZSB7XHJcbiAgICAgICAgcGx1Z2lucy5iZWF1dHlsb2cuZXJyb3IoXCJzbWFydHBhdGguYWJzb2x1dGUoKSBjb3VsZCBub3QgbWFrZSBzZW5zZSBvZiB0aGUgaW5wdXQuIFwiICtcclxuICAgICAgICAgICAgXCJJbnB1dCBpcyBuZWl0aGVyIFN0cmluZyBub3IgQXJyYXlcIik7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG59OyJdfQ==
|
||||||
|
10
package.json
10
package.json
@ -23,11 +23,13 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/pushrocks/smartpath",
|
"homepage": "https://github.com/pushrocks/smartpath",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"beautylog": "^4.1.3",
|
"beautylog": "^5.0.8",
|
||||||
"home": "^1.0.1"
|
"home": "^1.0.1",
|
||||||
|
"typings-global": "^1.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts": "^5.1.5",
|
"npmts": "^5.1.19",
|
||||||
"should": "^8.3.1"
|
"should": "^9.0.0",
|
||||||
|
"typings-test": "^1.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
test/test.d.ts
vendored
3
test/test.d.ts
vendored
@ -1,2 +1 @@
|
|||||||
declare let should: any;
|
import "typings-test";
|
||||||
declare let smartpath: any;
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="../ts/typings/main.d.ts" />
|
import "typings-test"
|
||||||
let should = require("should");
|
let should = require("should");
|
||||||
let smartpath = require("../dist/index.js");
|
let smartpath = require("../dist/index.js");
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import plugins = require("./smartpath.plugins");
|
import "typings-global";
|
||||||
|
import * as plugins from "./smartpath.plugins";
|
||||||
|
|
||||||
export let isDir = function(pathArg:string){
|
export let isDir = function(pathArg:string){
|
||||||
return !isFile(pathArg);
|
return !isFile(pathArg);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/// <reference path="typings/main.d.ts" />
|
import "typings-global";
|
||||||
import plugins = require("./smartpath.plugins");
|
import * as plugins from "./smartpath.plugins";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns the type of the given path. Can be "url" or "local"
|
* returns the type of the given path. Can be "url" or "local"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
import "typings-global";
|
||||||
export var beautylog = require ("beautylog");
|
export var beautylog = require ("beautylog");
|
||||||
export var home = require("home");
|
export var home = require("home");
|
||||||
export var path = require("path");
|
export var path = require("path");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/// <reference path="typings/main.d.ts" />
|
import "typings-global";
|
||||||
import plugins = require("./smartpath.plugins");
|
import * as plugins from "./smartpath.plugins";
|
||||||
|
|
||||||
/* ------------------------------------------ *
|
/* ------------------------------------------ *
|
||||||
* ------------ helpers --------------------- *
|
* ------------ helpers --------------------- *
|
||||||
|
Loading…
Reference in New Issue
Block a user