update dependencies

This commit is contained in:
Philipp Kunz 2016-06-14 05:16:43 +02:00
parent 1e545a2cfb
commit 139478965b
20 changed files with 38 additions and 33 deletions

1
dist/index.d.ts vendored
View File

@ -1,3 +1,4 @@
import "typings-global";
import SmartpathCheck = require("./smartpath.check");
import SmartpathGet = require("./smartpath.get");
import SmartpathTransform = require("./smartpath.transform");

3
dist/index.js vendored
View File

@ -1,4 +1,5 @@
"use strict";
require("typings-global");
var SmartpathCheck = require("./smartpath.check");
var SmartpathGet = require("./smartpath.get");
var SmartpathTransform = require("./smartpath.transform");
@ -13,4 +14,4 @@ var smartpath = {
};
module.exports = smartpath;
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxJQUFPLGNBQWMsV0FBVyxtQkFBbUIsQ0FBQyxDQUFDO0FBQ3JELElBQU8sWUFBWSxXQUFXLGlCQUFpQixDQUFDLENBQUM7QUFDakQsSUFBTyxrQkFBa0IsV0FBVyx1QkFBdUIsQ0FBQyxDQUFDO0FBRTdEOzs7R0FHRztBQUNILElBQUksU0FBUyxHQUFHO0lBQ1osS0FBSyxFQUFFLGNBQWM7SUFDckIsR0FBRyxFQUFFLFlBQVk7SUFDakIsU0FBUyxFQUFFLGtCQUFrQjtDQUNoQyxDQUFDO0FBR0YsaUJBQVMsU0FBUyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cInR5cGluZ3MvbWFpbi5kLnRzXCIgLz5cbmltcG9ydCBwbHVnaW5zID0gcmVxdWlyZShcIi4vc21hcnRwYXRoLnBsdWdpbnNcIik7XG5pbXBvcnQgU21hcnRwYXRoQ2hlY2sgPSByZXF1aXJlKFwiLi9zbWFydHBhdGguY2hlY2tcIik7XG5pbXBvcnQgU21hcnRwYXRoR2V0ID0gcm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gcmVxdWlyZShcIi4vc21hcnRwYXRoLmNoZWNrXCIpO1xuaW1wb3J0IFNtYXJ0cGF0aEdldCA9IHJlcXVpcmUoXCIuL3NtYXJ0cGF0aC5nZXRcIik7XG5pbXBvcnQgU21hcnRwYXRoVHJhbnNmb3JtID0gcmVxdWlyZShcIi4vc21hcnRwYXRoLnRyYW5zZm9ybVwiKTtcblxuLyoqXG4gKlxuICogQHR5cGUge3tnZXRQYXRoOiAoZnVuY3Rpb24oYW55KTogdW5kZWZpbmVkKX19XG4gKi9cbmxldCBzbWFydHBhdGggPSB7XG4gICAgY2hlY2s6IFNtYXJ0cGF0aENoZWNrLFxuICAgIGdldDogU21hcnRwYXRoR2V0LFxuICAgIHRyYW5zZm9ybTogU21hcnRwYXRoVHJhbnNmb3JtXG59O1xuXG5cbmV4cG9ydCA9IHNtYXJ0cGF0aDtcbiJdfQ==

View File

@ -1,2 +1,3 @@
import "typings-global";
export declare let isDir: (pathArg: string) => boolean;
export declare let isFile: (pathArg: any) => boolean;

View File

@ -1,4 +1,5 @@
"use strict";
require("typings-global");
exports.isDir = function (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
};
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5jaGVjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRVcsYUFBSyxHQUFHLFVBQVMsT0FBYztJQUN0QyxNQUFNLENBQUMsQ0FBQyxjQUFNLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDNUIsQ0FBQyxDQUFBO0FBRVUsY0FBTSxHQUFHLFVBQVMsT0FBTztJQUNoQyxNQUFNLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLDRDQUE0QztBQUNyRixDQUFDLENBQUE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4gICAgcmV0dXJuICFpc0ZpbGUocGF0aEFyZyk7XG59XG5cbmV4cG9ydCBsZXQgaXNGaWxlID0gZnVuY3Rpb24ocGF0aEFyZyl7XG4gICAgcmV0dXJuIC9cXC5bYS16QS1aXSokLy50ZXN0KHBhdGhBcmcpOyAvLyBjaGVja3MgaWYgdGhlcmUgaXMgYSAuYW55dGhpbmcgYXQgdGhlIGVuZFxufSJdfQ==

View File

@ -1,3 +1,4 @@
import "typings-global";
/**
* returns the type of the given path. Can be "url" or "local"
*/

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="typings/main.d.ts" />
require("typings-global");
var plugins = require("./smartpath.plugins");
/**
* 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5nZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBDQUEwQztBQUMxQyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBRWhEOztHQUVHO0FBQ1EsWUFBSSxHQUFHLFVBQVMsYUFBb0I7SUFDM0MsSUFBSSxRQUFRLEdBQUcsb0JBQW9CLENBQUE7SUFDbkMsRUFBRSxDQUFBLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDN0IsTUFBTSxDQUFDLEtBQUssQ0FBQztJQUNqQixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDSixNQUFNLENBQUMsT0FBTyxDQUFDO0lBQ25CLENBQUM7SUFBQSxDQUFDO0FBQ04sQ0FBQyxDQUFDO0FBRVMsWUFBSSxHQUFHLFVBQVMsWUFBb0I7SUFDM0MsRUFBRSxDQUFBLENBQUMsWUFBWSxDQUFDLENBQUEsQ0FBQztRQUNiLE1BQU0sQ0FBQyxPQUFP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HBvcnQgbGV0IHR5cGUgPSBmdW5jdGlvbihwYXRoU3RyaW5nQXJnOnN0cmluZyk6c3RyaW5nIHtcbiAgICBsZXQgdXJsUmVnZXggPSAvaHR0cFtzfFxcc106XFwvXFwvLiovaVxuICAgIGlmKHVybFJlZ2V4LmV4ZWMocGF0aFN0cmluZ0FyZykpe1xuICAgICAgICByZXR1cm4gXCJ1cmxcIjtcbiAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gXCJsb2NhbFwiO1xuICAgIH07XG59O1xuXG5leHBvcnQgbGV0IGhvbWUgPSBmdW5jdGlvbihwYXRoQXJndW1lbnQ/OnN0cmluZyl7XG4gICAgaWYocGF0aEFyZ3VtZW50KXtcbiAgICAgICAgcmV0dXJuIHBsdWdpbnMuaG9tZS5yZXNvbHZlKHBhdGhBcmd1bWVudCk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIHBsdWdpbnMuaG9tZSgpO1xuICAgIH1cbn07Il19

View File

@ -1,3 +1,4 @@
export declare var beautylog: any;
import "typings-global";
export import beautylog = require("beautylog");
export declare var home: any;
export declare var path: any;
export import path = require("path");

View File

@ -1,7 +1,7 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
require("typings-global");
exports.beautylog = require("beautylog");
exports.home = require("home");
exports.path = require("path");
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUUsV0FBVyxDQUFDLENBQUM7QUFDbEMsWUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUN2QixZQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDIiwiZmlsZSI6InNtYXJ0cGF0aC5wbHVnaW5zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuZXhwb3J0IHZhciBiZWF1dHlsb2cgPSByZXF1aXJlIChcImJlYXV0eWxvZ1wiKTtcbmV4cG9ydCB2YXIgaG9tZSA9IHJlcXVpcmUoXCJob21lXCIpO1xuZXhwb3J0IHZhciBwYXRoID0gcmVxdWlyZShcInBhdGhcIik7XG5cbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDVixpQkFBUyxXQUFZLFdBQVcsQ0FBQyxDQUFDO0FBQ3JDLFlBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDcEIsWUFBSSxXQUFXLE1BQU0sQ0FBQyxDQUFDIiwiZmlsZSI6InNtYXJ0cGF0aC5wbHVnaW5zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcbmV4cG9ydCBpbXBvcnQgYmVhdXR5bG9nID0gcmVxdWlyZSAoXCJiZWF1dHlsb2dcIik7XG5leHBvcnQgdmFyIGhvbWUgPSByZXF1aXJlKFwiaG9tZVwiKTtcbmV4cG9ydCBpbXBvcnQgcGF0aCA9IHJlcXVpcmUoXCJwYXRoXCIpO1xuXG4iXX0=

View File

@ -1 +1,2 @@
import "typings-global";
export declare let toAbsolute: (relativeArg: any, baseArg?: string) => any;

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="typings/main.d.ts" />
require("typings-global");
var plugins = require("./smartpath.plugins");
/* ------------------------------------------ *
* ------------ helpers --------------------- *
@ -37,4 +37,4 @@ exports.toAbsolute = function (relativeArg, baseArg) {
}
};
//# sourceMappingUR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XRlKHJlbGF0aXZlQXJyYXlba2V5XSxiYXNlQXJnKSk7XG4gICAgICAgIH07XG4gICAgICAgIHJldHVybiBhYnNvbHV0ZUFycmF5O1xuICAgIH0gZWxzZSB7XG4gICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmVycm9yKFwic21hcnRwYXRoLmFic29sdXRlKCkgY291bGQgbm90IG1ha2Ugc2Vuc2Ugb2YgdGhlIGlucHV0LiBcIiArXG4gICAgICAgICAgICBcIklucHV0IGlzIG5laXRoZXIgU3RyaW5nIG5vciBBcnJheVwiKTtcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbn07Il19

View File

@ -23,11 +23,13 @@
},
"homepage": "https://github.com/pushrocks/smartpath",
"dependencies": {
"beautylog": "^4.1.3",
"home": "^1.0.1"
"beautylog": "^5.0.10",
"home": "^1.0.1",
"typings-global": "^1.0.3"
},
"devDependencies": {
"npmts": "^5.1.5",
"should": "^8.3.1"
"npmts-g": "^5.2.6",
"should": "^9.0.2",
"typings-test": "^1.0.1"
}
}

4
test/test.d.ts vendored
View File

@ -1,2 +1,2 @@
declare let should: any;
declare let smartpath: any;
import "typings-test";
import "should";

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/// <reference path="../ts/typings/main.d.ts" />
let should = require("should");
import "typings-test";
import "should";
let smartpath = require("../dist/index.js");
describe("smartpath",function(){

View File

@ -1,4 +1,4 @@
/// <reference path="typings/main.d.ts" />
import "typings-global";
import plugins = require("./smartpath.plugins");
import SmartpathCheck = require("./smartpath.check");
import SmartpathGet = require("./smartpath.get");

View File

@ -1,3 +1,4 @@
import "typings-global";
import plugins = require("./smartpath.plugins");
export let isDir = function(pathArg:string){

View File

@ -1,4 +1,4 @@
/// <reference path="typings/main.d.ts" />
import "typings-global";
import plugins = require("./smartpath.plugins");
/**

View File

@ -1,5 +1,5 @@
/// <reference path="./typings/main.d.ts" />
export var beautylog = require ("beautylog");
import "typings-global";
export import beautylog = require ("beautylog");
export var home = require("home");
export var path = require("path");
export import path = require("path");

View File

@ -1,4 +1,4 @@
/// <reference path="typings/main.d.ts" />
import "typings-global";
import plugins = require("./smartpath.plugins");
/* ------------------------------------------ *

View File

@ -1,6 +0,0 @@
{
"ambientDependencies": {
"mocha": "github:DefinitelyTyped/DefinitelyTyped/mocha/mocha.d.ts#d6dd320291705694ba8e1a79497a908e9f5e6617",
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#efa0c1196d7280640e624ac1e7fa604502e7bd63"
}
}