diff --git a/bin/builder.js b/bin/builder.js index 7275c74d..966f45f8 100644 --- a/bin/builder.js +++ b/bin/builder.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs"); const path = require("path"); const utilities_1 = require("./utilities"); @@ -47,11 +48,19 @@ function buildImportPath(directory, target) { if (directoryPath !== ".") { directoryPath = `.${path.sep}${directoryPath}`; } - // Strip off the .ts from the file name. - const fileName = path.basename(relativePath, ".ts"); + // Strip off the .ts or .tsx from the file name. + const fileName = getBasename(relativePath); // Build the final path string. Use posix-style seperators. const location = `${directoryPath}${path.sep}${fileName}`; return utilities_1.convertPathSeparator(location); } exports.buildImportPath = buildImportPath; +/** Strips the .ts or .tsx file extension from a path and returns the base filename. */ +function getBasename(relativePath) { + const strippedTsPath = path.basename(relativePath, ".ts"); + const strippedTsxPath = path.basename(relativePath, ".tsx"); + // Return whichever path is shorter. If they're the same length then nothing was stripped. + return strippedTsPath.length < strippedTsxPath.length ? strippedTsPath : strippedTsxPath; +} +exports.getBasename = getBasename; //# sourceMappingURL=builder.js.map \ No newline at end of file diff --git a/bin/builder.js.map b/bin/builder.js.map index 41b6ba34..d217a7e2 100644 --- a/bin/builder.js.map +++ b/bin/builder.js.map @@ -1 +1 @@ -{"version":3,"file":"builder.js","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":";AAAA,yBAAyB;AACzB,6BAA6B;AAG7B,2CAAsE;AAEtE,sDAA4D;AAC5D,0CAAgD;AAChD,uCAA+C;AAE/C,sBAA6B,YAAyB,EAAE,OAAgB;IACpE,IAAI,OAAsB,CAAC;IAC3B,MAAM,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;QACxB,QAAQ;QACR,KAAK,MAAM;YACP,OAAO,GAAG,sBAAe,CAAC;YAC1B,KAAK,CAAC;QACV,KAAK,YAAY;YACb,OAAO,GAAG,kCAAqB,CAAC;YAChC,KAAK,CAAC;IACd,CAAC;IACD,qBAAqB;IAC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D;IAC3D,MAAM,QAAQ,GAAG,GAAG,aAAa,GAAG,IAAI,CAAC,GAAG,GAAG,QAAQ,EAAE,CAAC;IAC1D,MAAM,CAAC,gCAAoB,CAAC,QAAQ,CAAC,CAAC;AAC1C,CAAC;AAbD,0CAaC;AAED,uFAAuF;AACvF,qBAA4B,YAAoB;IAC3C,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IAC1D,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAE5D,0FAA0F;IAC1F,MAAM,CAAC,cAAc,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,GAAG,cAAc,GAAG,eAAe,CAAC;AAC9F,CAAC;AAND,kCAMC"} \ No newline at end of file diff --git a/bin/builder.test.js b/bin/builder.test.js index 276bf9d0..f7bb1a31 100644 --- a/bin/builder.test.js +++ b/bin/builder.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const fs = require("fs"); const MockFs = require("mock-fs"); @@ -107,5 +108,22 @@ describe("builder/builder module has a", () => { chai_1.assert.equal(result, "./directory2/script"); }); }); + describe("getBasename function that", () => { + it("should correctly strip .ts from the filename", () => { + const fileName = "./random/path/file.ts"; + const result = Builder.getBasename(fileName); + chai_1.assert.equal(result, "file"); + }); + it("should correctly strip .tsx from the filename", () => { + const fileName = "./random/path/file.tsx"; + const result = Builder.getBasename(fileName); + chai_1.assert.equal(result, "file"); + }); + it("should not strip extensions from non-typescript filenames", () => { + const fileName = "./random/path/file.cs"; + const result = Builder.getBasename(fileName); + chai_1.assert.equal(result, "file.cs"); + }); + }); }); //# sourceMappingURL=builder.test.js.map \ No newline at end of file diff --git a/bin/builder.test.js.map b/bin/builder.test.js.map index 4749a2f1..2c07a8a2 100644 --- a/bin/builder.test.js.map +++ b/bin/builder.test.js.map @@ -1 +1 @@ -{"version":3,"file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CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,+CAA+C,EAAE;YAChD,MAAM,QAAQ,GAAG,wBAAwB,CAAC;YAC1C,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC7C,aAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,2DAA2D,EAAE;YAC5D,MAAM,QAAQ,GAAG,uBAAuB,CAAC;YACzC,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC7C,aAAM,CAAC,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/builders/fileSystem.js b/bin/builders/fileSystem.js index b27ee364..9193a309 100644 --- a/bin/builders/fileSystem.js +++ b/bin/builders/fileSystem.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const utilities_1 = require("../utilities"); const builder_1 = require("../builder"); diff --git a/bin/builders/fileSystem.js.map b/bin/builders/fileSystem.js.map index 895870cb..fffbdb14 100644 --- a/bin/builders/fileSystem.js.map +++ b/bin/builders/fileSystem.js.map @@ -1 +1 @@ -{"version":3,"file":"fileSystem.js","sourceRoot":"","sources":["../../src/builders/fileSystem.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAE7B,4CAA+E;AAE/E,wCAA2C;AAE3C,mBAAmB,SAA0B,EAAE,mBAA2B;IACtE,MAAM,eAAe,GAAG,mBAAmB,GAAG,uBAAW,CAAC;IAC1D,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,GAAG,CAAC,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC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K,UAAU,QAAQ,CAAC,IAAI;CACjE,CAAC;QACU,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC5D,wBAAwB,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IACP,GAAG,CAAC,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC9C,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QAChC,EAAE,CAAC,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC;YAC/B,OAAO,IAAI,WAAW,QAAQ,OAAO,GAAG;CACnD,CAAC;QACM,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,OAAO,IAAI,gBAAgB,GAAG,MAAM,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC;CACtE,CAAC;QACM,CAAC;IACL,CAAC;IACD,MAAM,CAAC,OAAO,CAAC;AACnB,CAAC;AA3BD,sDA2BC"} \ No newline at end of file diff --git a/bin/builders/fileSystem.test.js b/bin/builders/fileSystem.test.js index 9f5c5aaf..fc706e28 100644 --- a/bin/builders/fileSystem.test.js +++ b/bin/builders/fileSystem.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const TestUtilities = require("../testUtilities"); const FileSystem = require("./fileSystem"); describe("builder/fileSystem module has a", () => { diff --git a/bin/builders/fileSystem.test.js.map b/bin/builders/fileSystem.test.js.map index 15629914..5c71e423 100644 --- a/bin/builders/fileSystem.test.js.map +++ b/bin/builders/fileSystem.test.js.map @@ -1 +1 @@ -{"version":3,"file":"fileSystem.test.js","sourceRoot":"","sources":["../../src/builders/fileSystem.test.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,2CAA2C;AAE3C,QAAQ,CAAC,iCAAiC,EAAE;IACxC,QAAQ,CAAC,qCAAqC,EAAE;QAC5C,IAAI,MAAc,CAAC;QACnB,UAAU,CAAC;YACP,MAAM,aAAa,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YACxD,MAAM,GAAG,UAAU,CAAC,qBAAqB,CACrC,aAAa,EACb,aAAa,CAAC,WAAW,CAAC,aAAa,CAAC,CAC3C,CAAC;QACN,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,mCAAmC,EAAE;YACpC,aAAa,CAAC,eAAe,CACzB,MAAM,EACN;;;;;;;;;;;;;;;;CAgBf,CAAC,CAAC;QACK,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sEAAsE,EAAE;YACvE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"fileSystem.test.js","sourceRoot":"","sources":["../../src/builders/fileSystem.test.ts"],"names":[],"mappings":";;AAAA,kDAAkD;AAClD,2CAA2C;AAE3C,QAAQ,CAAC,iCAAiC,EAAE;IACxC,QAAQ,CAAC,qCAAqC,EAAE;QAC5C,IAAI,MAAc,CAAC;QACnB,UAAU,CAAC;YACP,MAAM,aAAa,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YACxD,MAAM,GAAG,UAAU,CAAC,qBAAqB,CACrC,aAAa,EACb,aAAa,CAAC,WAAW,CAAC,aAAa,CAAC,CAC3C,CAAC;QACN,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,mCAAmC,EAAE;YACpC,aAAa,CAAC,eAAe,CACzB,MAAM,EACN;;;;;;;;;;;;;;;;CAgBf,CAAC,CAAC;QACK,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sEAAsE,EAAE;YACvE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/builders/flat.js b/bin/builders/flat.js index 1a3699f3..b8d0b524 100644 --- a/bin/builders/flat.js +++ b/bin/builders/flat.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const builder_1 = require("../builder"); function buildFlatBarrel(directory, modules, options) { return modules.reduce((previous, current) => { diff --git a/bin/builders/flat.js.map b/bin/builders/flat.js.map index 36c34d25..3769af4e 100644 --- a/bin/builders/flat.js.map +++ b/bin/builders/flat.js.map @@ -1 +1 @@ -{"version":3,"file":"flat.js","sourceRoot":"","sources":["../../src/builders/flat.ts"],"names":[],"mappings":";AAGA,wCAA2C;AAE3C,yBAAgC,SAAoB,EAAE,OAAmB,EAAE,OAAgB;IACvF,MAAM,CAAC,OAAO,CAAC,MAAM,CACjB,CAAC,QAAgB,EAAE,OAAiB;QAChC,MAAM,UAAU,GAAG,yBAAe,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACvD,OAAO,CAAC,MAAM,CAAC,kBAAkB,UAAU,EAAE,CAAC,CAAC;QAC/C,MAAM,CAAC,QAAQ,IAAI,kBAAkB,UAAU;CAC1D,CAAC;IACM,CAAC,EACD,EAAE,CACL,CAAC;AACN,CAAC;AAVD,0CAUC"} \ No newline at end of file +{"version":3,"file":"flat.js","sourceRoot":"","sources":["../../src/builders/flat.ts"],"names":[],"mappings":";;AAGA,wCAA2C;AAE3C,yBAAgC,SAAoB,EAAE,OAAmB,EAAE,OAAgB;IACvF,MAAM,CAAC,OAAO,CAAC,MAAM,CACjB,CAAC,QAAgB,EAAE,OAAiB;QAChC,MAAM,UAAU,GAAG,yBAAe,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACvD,OAAO,CAAC,MAAM,CAAC,kBAAkB,UAAU,EAAE,CAAC,CAAC;QAC/C,MAAM,CAAC,QAAQ,IAAI,kBAAkB,UAAU;CAC1D,CAAC;IACM,CAAC,EACD,EAAE,CACL,CAAC;AACN,CAAC;AAVD,0CAUC"} \ No newline at end of file diff --git a/bin/builders/flat.test.js b/bin/builders/flat.test.js index 85d22686..e8be11bd 100644 --- a/bin/builders/flat.test.js +++ b/bin/builders/flat.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const Sinon = require("sinon"); const TestUtilities = require("../testUtilities"); @@ -23,8 +24,6 @@ describe("builder/flat module has a", () => { spySandbox.restore(); }); it("should produce the correct output", () => { - // tslint:disable-next-line - console.log(output); TestUtilities.assertMultiLine(output, `export * from "./barrel"; export * from "./index"; export * from "./directory2/script"; diff --git a/bin/builders/flat.test.js.map b/bin/builders/flat.test.js.map index f5db4341..cb29b663 100644 --- a/bin/builders/flat.test.js.map +++ b/bin/builders/flat.test.js.map @@ -1 +1 @@ -{"version":3,"file":"flat.test.js","sourceRoot":"","sources":["../../src/builders/flat.test.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAC5B,+BAA+B;AAE/B,kDAAkD;AAClD,+BAA+B;AAE/B,QAAQ,CAAC,2BAA2B,EAAE;IAClC,QAAQ,CAAC,+BAA+B,EAAE;QACtC,IAAI,MAAc,CAAC;QACnB,IAAI,UAA8B,CAAC;QACnC,IAAI,MAAsB,CAAC;QAC3B,UAAU,CAAC;YACP,MAAM,SAAS,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YACpD,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACpC,MAAM,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC;YAC1B,MAAM,OAAO,GAAG;gBACZ,UAAU,EAAE,WAAW;gBACvB,MAAM;gBACN,QAAQ,EAAE,GAAG;aAChB,CAAC;YACF,MAAM,GAAG,IAAI,CAAC,eAAe,CACzB,SAAS,EACT,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC,EACpC,OAAO,CACV,CAAC;QACN,CAAC,CAAC,CAAC;QACH,SAAS,CAAC;YACN,UAAU,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,mCAAmC,EAAE;YACpC,2BAA2B;YAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpB,aAAa,CAAC,eAAe,CACzB,MAAM,EACN;;;;;CAKf,CAAC,CAAC;QACK,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,6CAA6C,EAAE;YAC9C,MAAM,QAAQ,GAAG;gBACb,yBAAyB;gBACzB,wBAAwB;gBACxB,oCAAoC;gBACpC,qDAAqD;gBACrD,qCAAqC;aACxC,CAAC;YACF,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YAChD,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAe,EAAE,KAAa;gBAC5C,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YACzD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sEAAsE,EAAE;YACvE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"flat.test.js","sourceRoot":"","sources":["../../src/builders/flat.test.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAC5B,+BAA+B;AAE/B,kDAAkD;AAClD,+BAA+B;AAE/B,QAAQ,CAAC,2BAA2B,EAAE;IAClC,QAAQ,CAAC,+BAA+B,EAAE;QACtC,IAAI,MAAc,CAAC;QACnB,IAAI,UAA8B,CAAC;QACnC,IAAI,MAAsB,CAAC;QAC3B,UAAU,CAAC;YACP,MAAM,SAAS,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YACpD,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACpC,MAAM,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC;YAC1B,MAAM,OAAO,GAAG;gBACZ,UAAU,EAAE,WAAW;gBACvB,MAAM;gBACN,QAAQ,EAAE,GAAG;aAChB,CAAC;YACF,MAAM,GAAG,IAAI,CAAC,eAAe,CACzB,SAAS,EACT,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC,EACpC,OAAO,CACV,CAAC;QACN,CAAC,CAAC,CAAC;QACH,SAAS,CAAC;YACN,UAAU,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,mCAAmC,EAAE;YACpC,aAAa,CAAC,eAAe,CACzB,MAAM,EACN;;;;;CAKf,CAAC,CAAC;QACK,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,6CAA6C,EAAE;YAC9C,MAAM,QAAQ,GAAG;gBACb,yBAAyB;gBACzB,wBAAwB;gBACxB,oCAAoC;gBACpC,qDAAqD;gBACrD,qCAAqC;aACxC,CAAC;YACF,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YAChD,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAe,EAAE,KAAa;gBAC5C,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YACzD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sEAAsE,EAAE;YACvE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/destinations.js b/bin/destinations.js index c946a849..99c95ecf 100644 --- a/bin/destinations.js +++ b/bin/destinations.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const fileTree_1 = require("./fileTree"); /** Assess which directories in the tree should contain barrels. */ function getDestinations(rootTree, options) { diff --git a/bin/destinations.js.map b/bin/destinations.js.map index ef66400d..fbeae245 100644 --- a/bin/destinations.js.map +++ b/bin/destinations.js.map @@ -1 +1 @@ -{"version":3,"file":"destinations.js","sourceRoot":"","sources":["../src/destinations.ts"],"names":[],"mappings":";AAAA,yCAAoC;AAIpC,mEAAmE;AACnE,yBAAgC,QAAmB,EAAE,OAAgB;IACjE,IAAI,YAAyB,CAAC;IAC9B,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACvB,KAAK,KAAK,CAAC;QACX;YACI,YAAY,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC1B,KAAK,CAAC;QACV,KAAK,OAAO;YACR,YAAY,GAAG,QAAQ,CAAC,WAAW,CAAC;YACpC,KAAK,CAAC;QACV,KAAK,KAAK;YACN,YAAY,GAAG,EAAE,CAAC;YAClB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;gBACpC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;YACH,KAAK,CAAC;QACV,KAAK,SAAS;YACV,YAAY,GAAG,EAAE,CAAC;YAClB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;gBACpC,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAkB,KAAK,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACrF,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACjC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,KAAK,CAAC;QACV,KAAK,QAAQ;YACT,YAAY,GAAG,EAAE,CAAC;YAClB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;gBACpC,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;oBACnC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACjC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,KAAK,CAAC;IACd,CAAC;IAED,oEAAoE;IACpE,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAY,EAAE,CAAY;QACxD,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAChC,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IAExE,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AA3CD,0CA2CC"} \ No newline at end of file +{"version":3,"file":"destinations.js","sourceRoot":"","sources":["../src/destinations.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AAIpC,mEAAmE;AACnE,yBAAgC,QAAmB,EAAE,OAAgB;IACjE,IAAI,YAAyB,CAAC;IAC9B,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACvB,KAAK,KAAK,CAAC;QACX;YACI,YAAY,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC1B,KAAK,CAAC;QACV,KAAK,OAAO;YACR,YAAY,GAAG,QAAQ,CAAC,WAAW,CAAC;YACpC,KAAK,CAAC;QACV,KAAK,KAAK;YACN,YAAY,GAAG,EAAE,CAAC;YAClB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;gBACpC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;YACH,KAAK,CAAC;QACV,KAAK,SAAS;YACV,YAAY,GAAG,EAAE,CAAC;YAClB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;gBACpC,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAkB,KAAK,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACrF,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACjC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,KAAK,CAAC;QACV,KAAK,QAAQ;YACT,YAAY,GAAG,EAAE,CAAC;YAClB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;gBACpC,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;oBACnC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACjC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,KAAK,CAAC;IACd,CAAC;IAED,oEAAoE;IACpE,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAY,EAAE,CAAY;QACxD,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAChC,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IAExE,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AA3CD,0CA2CC"} \ No newline at end of file diff --git a/bin/destinations.test.js b/bin/destinations.test.js index d54ce27d..71453590 100644 --- a/bin/destinations.test.js +++ b/bin/destinations.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const Destinations = require("./destinations"); const TestUtilities = require("./testUtilities"); diff --git a/bin/destinations.test.js.map b/bin/destinations.test.js.map index bf14427f..062193a4 100644 --- a/bin/destinations.test.js.map +++ b/bin/destinations.test.js.map @@ -1 +1 @@ -{"version":3,"file":"destinations.test.js","sourceRoot":"","sources":["../src/destinations.test.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAE5B,+CAA+C;AAE/C,iDAAiD;AAGjD,QAAQ,CAAC,2BAA2B,EAAE;IAClC,QAAQ,CAAC,+BAA+B,EAAE;QACtC,IAAI,SAAoB,CAAC;QACzB,IAAI,YAAyB,CAAC;QAC9B,IAAI,OAAgB,CAAC;QACrB,IAAI,MAAgB,CAAC;QACrB,MAAM,QAAQ,GAAG,CAAC,IAAoB,EAAE,uBAA0C,EAAE,YAAsB;YACtG,QAAQ,CAAC,YAAY,IAAI,QAAQ,EAAE;gBAC/B,UAAU,CAAC;oBACP,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;oBACxB,YAAY,GAAG,YAAY,CAAC,eAAe,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;gBACpE,CAAC,CAAC,CAAC;gBACH,EAAE,CAAC,wCAAwC,EAAE;oBACzC,aAAM,CAAC,SAAS,CAAC,YAAY,EAAE,uBAAuB,EAAE,CAAC,CAAC;gBAC9D,CAAC,CAAC,CAAC;gBACH,EAAE,CAAC,6CAA6C,EAAE;oBAC9C,aAAM,CAAC,SAAS,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;gBAC3C,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC;QACF,UAAU,CAAC;YACP,SAAS,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YAC9C,MAAM,GAAG,EAAE,CAAC;YACZ,OAAO,GAAG,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QACH,QAAQ,CACJ,KAAK,EACL,MAAM,CAAC,SAAS,CAAC,EACjB;YACI,eAAe;YACf,cAAc;SACjB,CAAC,CAAC;QACP,QAAQ,CACJ,OAAO,EACP,MAAM,SAAS,CAAC,WAAW,EAC3B;YACI,eAAe;YACf,uBAAuB;YACvB,uBAAuB;SAC1B,CAAC,CAAC;QACP,QAAQ,CACJ,KAAK,EACL,MAAM;YACF,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YACvC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;YACxB,SAAS;SACZ,EACD;YACI,eAAe;YACf,kCAAkC;YAClC,uBAAuB;YACvB,uBAAuB;YACvB,cAAc;SACjB,CAAC,CAAC;QACP,QAAQ,CACJ,SAAS,EACT,MAAM,CAAC,SAAS,CAAC,EACjB;YACI,eAAe;YACf,cAAc;SACjB,CAAC,CAAC;QACP,QAAQ,CACJ,QAAQ,EACR,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAC3C;YACI,eAAe;YACf,uBAAuB;YACvB,cAAc;SACjB,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"destinations.test.js","sourceRoot":"","sources":["../src/destinations.test.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAE5B,+CAA+C;AAE/C,iDAAiD;AAGjD,QAAQ,CAAC,2BAA2B,EAAE;IAClC,QAAQ,CAAC,+BAA+B,EAAE;QACtC,IAAI,SAAoB,CAAC;QACzB,IAAI,YAAyB,CAAC;QAC9B,IAAI,OAAgB,CAAC;QACrB,IAAI,MAAgB,CAAC;QACrB,MAAM,QAAQ,GAAG,CAAC,IAAoB,EAAE,uBAA0C,EAAE,YAAsB;YACtG,QAAQ,CAAC,YAAY,IAAI,QAAQ,EAAE;gBAC/B,UAAU,CAAC;oBACP,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;oBACxB,YAAY,GAAG,YAAY,CAAC,eAAe,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;gBACpE,CAAC,CAAC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jB,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/fileTree.js b/bin/fileTree.js index 71553be8..a0301ad1 100644 --- a/bin/fileTree.js +++ b/bin/fileTree.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs"); const path = require("path"); const utilities_1 = require("./utilities"); diff --git a/bin/fileTree.js.map b/bin/fileTree.js.map index 76f071c7..5469cd72 100644 --- a/bin/fileTree.js.map +++ b/bin/fileTree.js.map @@ -1 +1 @@ -{"version":3,"file":"fileTree.js","sourceRoot":"","sources":["../src/fileTree.ts"],"names":[],"mappings":";AAAA,yBAAyB;AACzB,6BAA6B;AAG7B,2CAA4D;AAE5D,+CAA+C;AAC/C,mBAA0B,SAAiB,EAAE,OAAgB;IACzD,OAAO,CAAC,MAAM,CAAC,+BAA+B,gCAAoB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACjF,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,MAAM,GAAc;QACtB,WAAW,EAAE,EAAE;QACf,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC9B,IAAI,EAAE,gCAAoB,CAAC,SAAS,CAAC;KACxC,CAAC;IACF,KAAK,CAAC,OAAO,CAAC,CAAC,IAAY;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC5C,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;YACtC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;QAC1D,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,MAAM,aAAa,GAAG,gC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js index ce28cc44..4f4119d1 100644 --- a/bin/fileTree.test.js +++ b/bin/fileTree.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const MockFs = require("mock-fs"); const TestUtilities = require("./testUtilities"); @@ -36,9 +37,9 @@ describe("fileTree module has a", () => { const testFile = (name) => { const files = result.files.filter((file) => file.name === name); chai_1.assert.lengthOf(files, 1); - const file = files[0]; - chai_1.assert.equal(file.path, `directory1/${name}`); - chai_1.assert.equal(file.name, name); + const firstFile = files[0]; + chai_1.assert.equal(firstFile.path, `directory1/${name}`); + chai_1.assert.equal(firstFile.name, name); }; testFile("index.ts"); testFile("barrel.ts"); diff --git a/bin/fileTree.test.js.map b/bin/fileTree.test.js.map index ff8c23c9..9fbe7e1c 100644 --- a/bin/fileTree.test.js.map +++ b/bin/fileTree.test.js.map @@ -1 +1 @@ -{"version":3,"file":"fileTree.test.js","sourceRoot":"","sources":["../src/fileTree.test.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAC5B,kCAAkC;AAElC,iDAAiD;AAEjD,uCAAuC;AAGvC,QAAQ,CAAC,uBAAuB,EAAE;IAC9B,QAAQ,CAAC,yBAAyB,EAAE;QAChC,IAAI,MAAiB,CAAC;QACtB,IAAI,MAAgB,CAAC;QACrB,UAAU,CAAC;YACP,MAAM,CAAC,aAAa,CAAC,mBAAmB,EAAE,CAAC,CAAC;YAC5C,MAAM,GAAG,EAAE,CAAC;YACZ,MAAM,MAAM,GAAG,CAAC,OAAe,KAAK,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzD,MAAM,GAAG,QAAQ,CAAC,SAAS,CACvB,cAAc,EACd;gBACI,UAAU,EAAE,WAAW;gBACvB,MAAM;gBACN,QAAQ,EAAE,WAAW;aACxB,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;QACH,SAAS,CAAC;YACN,MAAM,CAAC,OAAO,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;QACH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oB,KAAK,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAE7E,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAEtC,aAAM,CAAC,SAAS,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/index.js b/bin/index.js index d10bc39e..65ace48c 100755 --- a/bin/index.js +++ b/bin/index.js @@ -1,5 +1,6 @@ #! /usr/bin/env node "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const builder_1 = require("./builder"); const destinations_1 = require("./destinations"); const fileTree_1 = require("./fileTree"); diff --git a/bin/index.js.map b/bin/index.js.map index 3c5ffc67..e8960517 100644 --- a/bin/index.js.map +++ b/bin/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,uCAAuC;AACvC,iDAA+C;AAC/C,yCAAqC;AACrC,uCAAqC;AACrC,mCAA8B;AAG9B,oCAAoC;AACpC,MAAM,OAAO,GAAG,oBAAU,EAAE,CAAC;AAE7B,4BAA4B;AAC5B,MAAM,QAAQ,GAAG,oBAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAEtD,kDAAkD;AAClD,MAAM,YAAY,GAAgB,8BAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAErE,kEAAkE;AAClE,aAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAEzB,sBAAsB;AACtB,sBAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,uCAAuC;AACvC,iDAA+C;AAC/C,yCAAqC;AACrC,uCAAqC;AACrC,mCAA8B;AAG9B,oCAAoC;AACpC,MAAM,OAAO,GAAG,oBAAU,EAAE,CAAC;AAE7B,4BAA4B;AAC5B,MAAM,QAAQ,GAAG,oBAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAEtD,kDAAkD;AAClD,MAAM,YAAY,GAAgB,8BAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAErE,kEAAkE;AAClE,aAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAEzB,sBAAsB;AACtB,sBAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/modules.js b/bin/modules.js index 17a7d173..48cde5d7 100644 --- a/bin/modules.js +++ b/bin/modules.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const utilities_1 = require("./utilities"); // Get any typescript modules contained at any depth in the current directory. function getModules(directory, options) { diff --git a/bin/modules.js.map b/bin/modules.js.map index 1dd0416e..b6e4392e 100644 --- a/bin/modules.js.map +++ b/bin/modules.js.map @@ -1 +1 @@ -{"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":";AACA,2CAAkE;AAOlE,8EAA8E;AAC9E,oBAAoB,SAAoB,EAAE,OAAgB;IACtD,OAAO,CAAC,MAAM,CAAC,qBAAqB,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IACtD,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACnB,8EAA8E;QAC9E,OAAO,CAAC,MAAM,CAAC,2BAA2B,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QACnE,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IACD,MAAM,KAAK,GAAgB,EAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrE,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,cAAyB;QACpD,WAAW;QACX,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diff --git a/bin/modules.test.js b/bin/modules.test.js index 68d82659..bf46b56b 100644 --- a/bin/modules.test.js +++ b/bin/modules.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const Modules = require("./modules"); const TestUtilities = require("./testUtilities"); diff --git a/bin/modules.test.js.map b/bin/modules.test.js.map index 5f07acf2..740bb62e 100644 --- a/bin/modules.test.js.map +++ b/bin/modules.test.js.map @@ -1 +1 @@ -{"version":3,"file":"modules.test.js","sourceRoot":"","sources":["../src/modules.test.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAE5B,qCAAqC;AAErC,iDAAiD;AAGjD,QAAQ,CAAC,8BAA8B,EAAE;IACrC,QAAQ,CAAC,oCAAoC,EAAE;QAC3C,IAAI,SAAoB,CAAC;QACzB,IAAI,MAAgB,CAAC;QACrB,IAAI,OAAgB,CAAC;QACrB,UAAU,CAAC;YACP,SAAS,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YAC9C,MAAM,GAAG,EAAE,CAAC;YACZ,OAAO,GAAG,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sDAAsD,EAAE;YACvD,MAAM,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAC/E,aAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YAC3B,aAAM,CAAC,SAAS,CACZ,MAAM,CAAC,CAAC,CAAC,EACT;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,iCAAiC;aAC1C,CACJ,CAAC;YACF,aAAM,CAAC,SAAS,CACZ,MAAM,CAAC,CAAC,CAAC,EACT;gBACI,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,kDAAkD;aAC3D,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;QAC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AC,CAAC;YAClD,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAEpD,OAAO,CAAC,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YACjD,aAAM,CAAC,SAAS,CACZ,MAAM,EACN;gBACI,gCAAgC;gBAChC,yCAAyC;gBACzC,yDAAyD;gBACzD,yCAAyC;aAC5C,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"modules.test.js","sourceRoot":"","sources":["../src/modules.test.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAE5B,qCAAqC;AAErC,iDAAiD;AAGjD,QAAQ,CAAC,8BAA8B,EAAE;IACrC,QAAQ,CAAC,oCAAoC,EAAE;QAC3C,IAAI,SAAoB,CAAC;QACzB,IAAI,MAAgB,CAAC;QACrB,IAAI,OAAgB,CAAC;QACrB,UAAU,CAAC;YACP,SAAS,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YAC9C,MAAM,GAAG,EAAE,CAAC;YACZ,OAAO,GAAG,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sDAAsD,EAAE;YACvD,MAAM,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAC/E,aAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YAC3B,aAAM,CAAC,SAAS,CACZ,MAAM,CAAC,CAAC,CAAC,EACT;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,iCAAiC;aAC1C,CACJ,CAAC;YACF,aAAM,CAAC,SAAS,CACZ,MAAM,CAAC,CAAC,CAAC,EACT;gBACI,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,k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AAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAClD,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAEpD,OAAO,CAAC,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YACjD,aAAM,CAAC,SAAS,CACZ,MAAM,EACN;gBACI,gCAAgC;gBAChC,yCAAyC;gBACzC,yDAAyD;gBACzD,yCAAyC;aAC5C,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/options.js b/bin/options.js index 038da388..e8d6d412 100644 --- a/bin/options.js +++ b/bin/options.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const Yargs = require("yargs"); const utilities_1 = require("./utilities"); diff --git a/bin/options.js.map b/bin/options.js.map index 794482af..e138068b 100644 --- a/bin/options.js.map +++ b/bin/options.js.map @@ -1 +1 @@ -{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAC7B,+BAA+B;AAE/B,2CAA6C;AA8B7C;IACI,MAAM,CAAC,KAAK;SACP,KAAK,CAAC,4BAA4B,CAAC;SACnC,OAAO,CAAC,WAAW,EAAE,eAAe,CAAC;SAErC,MAAM,CAAC,GAAG,CAAC;SACX,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC;SACpB,QAAQ,CAAC,GAAG,EAAE,kCAAkC,CAAC;SAEjD,MAAM,CAAC,GAAG,CAAC;SACX,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC;SACvB,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;SACb,QAAQ,CAAC,GAAG,EAAE,sCAAsC,CAAC;SACrD,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC;SAElB,OAAO,CAAC,GAAG,CAAC;SACZ,KAAK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SACT,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC;SACrB,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;SAEnB,OAAO,CAAC,GAAG,CAAC;SACZ,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC;SACrB,QAAQ,CAAC,GAAG,EAAE,wCAAwC,CAAC;SACvD,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAC7B,CAAC;AAED;IACI,MAAM,OAAO,GAAG,cAAc,EAAE,CAAC,IAAI,CAAC;IAEtC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAEjF,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEnD,uBAAuB;IACvB,MAAM,YAAY,GAAW,OAAO,CAAC,IAAI,CAAC;IAC1C,OAAO,CAAC,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC,4BAAgB,CAAC,GAAG,YAAY,GAAG,GAAG,YAAY,KAAK,CAAC;IAChG,OAAO,CAAC,MAAM,CAAC,cAAc,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAEnD,MAAM,CAAC,OAAO,CAAC;AACnB,CAAC;AAbD,gCAaC"} \ No newline at end of file diff --git a/bin/options.test.js b/bin/options.test.js index 42f9ed4a..b9df0931 100644 --- a/bin/options.test.js +++ b/bin/options.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const Yargs = require("yargs"); const Options = require("./options"); @@ -29,8 +30,8 @@ describe("options module has a", () => { chai_1.assert.isUndefined(options.config); chai_1.assert.equal(options.delete, true); chai_1.assert.equal(options.directory, "./test"); - chai_1.assert.equal(options.exclude, "zeta.ts$"); - chai_1.assert.equal(options.include, "a.ts$"); + chai_1.assert.sameMembers(options.exclude, ["zeta.ts$"]); + chai_1.assert.sameMembers(options.include, ["a.ts$"]); chai_1.assert.equal(options.location, "top"); chai_1.assert.equal(options.name, "barrel"); chai_1.assert.equal(options.structure, "filesystem"); diff --git a/bin/options.test.js.map b/bin/options.test.js.map index 66692a22..17b4f8fc 100644 --- a/bin/options.test.js.map +++ b/bin/options.test.js.map @@ -1 +1 @@ -{"version":3,"file":"options.test.js","sourceRoot":"","sources":["../src/options.test.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAC5B,+BAA+B;AAC/B,qCAAqC;AAErC,QAAQ,CAAC,sBAAsB,EAAE;IAC7B,QAAQ,CAAC,0BAA0B,EAAE;QACjC,EAAE,CAAC,uCAAuC,EAAE;YACxC,KAAK,CAAC;gBACF,UAAU;gBACV,aAAa;gBACb,QAAQ;gBACR,WAAW;gBACX,UAAU;gBACV,WAAW;gBACX,OAAO;gBACP,YAAY;gBACZ,KAAK;gBACL,QAAQ;gBACR,QAAQ;gBACR,aAAa;gBACb,YAAY;gBACZ,WAAW;aACd,CAAC,CAAC;YACH,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;YACrC,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;YAC1C,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACxC,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;YAC9C,aAAa;YACb,aAAM,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACnC,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YACnC,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YAC1C,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;YAC1C,aAAM,CAAC,KAAK,C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O,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,6DAA6D,EAAE;YAC9D,KAAK,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;YAC/B,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;YACrC,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/purge.js b/bin/purge.js index b911fa4b..4d66b754 100644 --- a/bin/purge.js +++ b/bin/purge.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs"); const fileTree_1 = require("./fileTree"); function purge(rootTree, options) { diff --git a/bin/purge.js.map b/bin/purge.js.map index b3b76aa7..2b790afa 100644 --- a/bin/purge.js.map +++ b/bin/purge.js.map @@ -1 +1 @@ -{"version":3,"file":"purge.js","sourceRoot":"","sources":["../src/purge.ts"],"names":[],"mappings":";AAAA,yBAAyB;AAEzB,yCAAoC;AAIpC,eAAsB,QAAmB,EAAE,OAAgB;IACvD,+BAA+B;IAC/B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACjB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;YACpC,SAAS,CAAC,KAAK;iBACV,MAAM,CAAC,CAAC,IAAc;gBACnB,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,UAAU,CAAC;YAC5C,CAAC,CAAC;iBACD,OAAO,CAAC,CAAC,IAAc;gBACpB,OAAO,CAAC,MAAM,CAAC,8BAA8B,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gBAC1D,8CAA8C;gBAC9C,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACzB,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBACzD,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC;YACjC,CAAC,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACP,CAAC;AACL,CAAC;AAjBD,sBAiBC"} \ No newline at end of file +{"version":3,"file":"purge.js","sourceRoot":"","sources":["../src/purge.ts"],"names":[],"mappings":";;AAAA,yBAAyB;AAEzB,yCAAoC;AAIpC,eAAsB,QAAmB,EAAE,OAAgB;IACvD,+BAA+B;IAC/B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACjB,mBAAQ,CAAC,QAAQ,EAAE,CAAC,SAAoB;YACpC,SAAS,CAAC,KAAK;iBACV,MAAM,CAAC,CAAC,IAAc;gBACnB,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,UAAU,CAAC;YAC5C,CAAC,CAAC;iBACD,OAAO,CAAC,CAAC,IAAc;gBACpB,OAAO,CAAC,MAAM,CAAC,8BAA8B,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gBAC1D,8CAA8C;gBAC9C,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACzB,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBACzD,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC;YACjC,CAAC,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACP,CAAC;AACL,CAAC;AAjBD,sBAiBC"} \ No newline at end of file diff --git a/bin/purge.test.js b/bin/purge.test.js index 996a787c..5e73a2dd 100644 --- a/bin/purge.test.js +++ b/bin/purge.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const fs = require("fs"); const MockFs = require("mock-fs"); diff --git a/bin/purge.test.js.map b/bin/purge.test.js.map index 760531fe..c7fd432e 100644 --- a/bin/purge.test.js.map +++ b/bin/purge.test.js.map @@ -1 +1 @@ -{"version":3,"file":"purge.test.js","sourceRoot":"","sources":["../src/purge.test.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAC5B,yBAAyB;AACzB,kCAAkC;AAElC,iDAAiD;AAGjD,iCAAiC;AAGjC,QAAQ,CAAC,oBAAoB,EAAE;IAC3B,QAAQ,CAAC,qBAAqB,EAAE;QAC5B,IAAI,SAAoB,CAAC;QACzB,IAAI,OAAgB,CAAC;QACrB,IAAI,MAAgB,CAAC;QACrB,UAAU,CAAC;YACP,MAAM,CAAC,aAAa,CAAC,mBAAmB,EAAE,CAAC,CAAC;YAC5C,SAAS,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;YAC9C,MAAM,GAAG,EAAE,CAAC;YACZ,OAAO,GAAG,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QACH,SAAS,CAAC;YACN,MAAM,CAAC,OAAO,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,8DAA8D,EAAE;YAC/D,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;YACtB,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YAEhC,wCAAwC;YACxC,aAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YACpC,aAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;YAEhF,iCAAiC;YACjC,aAAM,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAC1D,CAAC,CA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AAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YAEhC,aAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,iDAAiD,CAAC,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/bin/testUtilities.js b/bin/testUtilities.js index 18a586ba..713b1507 100644 --- a/bin/testUtilities.js +++ b/bin/testUtilities.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const tslint_1 = require("tslint"); function mockFsConfiguration() { diff --git a/bin/testUtilities.js.map b/bin/testUtilities.js.map index 1e15d3aa..523c191d 100644 --- a/bin/testUtilities.js.map +++ b/bin/testUtilities.js.map @@ -1 +1 @@ -{"version":3,"file":"testUtilities.js","sourceRoot":"","sources":["../src/testUtilities.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAC5B,mCAA6C;AAK7C;IACI,MAAM,CAAC;QACH,SAAS,EAAE,qCAAqC;QAChD,YAAY,EAAE;YACV,WAAW,EAAE,qCAAqC;YAClD,YAAY,EAAE;gBACV,YAAY,EAAE;oBACV,iBAAiB,EAAE,iCAAiC;iBACvD;gBACD,WAAW,EAAE,sCAAsC;aACtD;YACD,YAAY,EAAE;gBACV,YAAY,EAAE,sCAAsC;aACvD;YACD,YAAY,EAAE,sCAAsC;YACpD,UAAU,EAAE,oCAAoC;SACnD;KACJ,CAAC;AACN,CAAC;AAlBD,kDAkBC;AAED;IACI,MAAM,CAAC;QACH,WAAW,EAAE;YACT;gBACI,WAAW,EAAE;oBACT;wBACI,WAAW,EAAE,EAAE;wBACf,KAAK,EAAE;4BACH;gCACI,IAAI,EAAE,iBAAiB;gCACvB,IAAI,EAAE,kDAAkD;6BAC3D;yBACJ;wBACD,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,kCAAkC;qBAC3C;iBACJ;gBACD,KAAK,EAAE;oBACH;wBAC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C,CAAC;IAC/E,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,KACrD,GAAG,OAAO,CAAC,WAAW,EAAE,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,mBAAmB,EAAE,CAAC,IAAI,EAAE,CACtF,CAAC;IACF,aAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC;AARD,wBAQC"} \ No newline at end of file diff --git a/bin/utilities.js b/bin/utilities.js index 8c6355cf..dd0b77c7 100644 --- a/bin/utilities.js +++ b/bin/utilities.js @@ -1,10 +1,11 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); /** Convert path separator from windows to unix */ function convertPathSeparator(path) { return path.replace(/\\+/g, "/"); } exports.convertPathSeparator = convertPathSeparator; -exports.isTypeScriptFile = /\.ts$/m; +exports.isTypeScriptFile = /\.tsx?$/m; exports.nonAlphaNumeric = /\W+/g; exports.indentation = " "; //# sourceMappingURL=utilities.js.map \ No newline at end of file diff --git a/bin/utilities.js.map b/bin/utilities.js.map index 62dfa56e..1c467696 100644 --- a/bin/utilities.js.map +++ b/bin/utilities.js.map @@ -1 +1 @@ -{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":";AAkBA,kDAAkD;AAClD,8BAAqC,IAAY;IAC7C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACrC,CAAC;AAFD,oDAEC;AAEY,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAC5B,QAAA,eAAe,GAAG,MAAM,CAAC;AACzB,QAAA,WAAW,GAAG,IAAI,CAAC"} \ No newline at end of file +{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":";;AAkBA,kDAAkD;AAClD,8BAAqC,IAAY;IAC7C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACrC,CAAC;AAFD,oDAEC;AAEY,QAAA,gBAAgB,GAAG,UAAU,CAAC;AAC9B,QAAA,eAAe,GAAG,MAAM,CAAC;AACzB,QAAA,WAAW,GAAG,IAAI,CAAC"} \ No newline at end of file diff --git a/bin/utilities.test.js b/bin/utilities.test.js index ff0786c4..106d1c26 100644 --- a/bin/utilities.test.js +++ b/bin/utilities.test.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const Utilities = require("./utilities"); describe("utilities module has a", () => { @@ -12,8 +13,11 @@ describe("utilities module has a", () => { it("should match a typescript definition file", () => { chai_1.assert.notEqual("definitions.d.ts".search(Utilities.isTypeScriptFile), -1); }); + it("should match a typescript jsx (.tsx) file", () => { + chai_1.assert.notEqual("other.tsx".search(Utilities.isTypeScriptFile), -1); + }); it("should not match a non-typescript file", () => { - chai_1.assert.equal("other.tsx".search(Utilities.isTypeScriptFile), -1); + chai_1.assert.equal("other.cs".search(Utilities.isTypeScriptFile), -1); }); }); describe("nonAlphaNumeric regular expression that", () => { diff --git a/bin/utilities.test.js.map b/bin/utilities.test.js.map index d8811405..7416e535 100644 --- a/bin/utilities.test.js.map +++ b/bin/utilities.test.js.map @@ -1 +1 @@ -{"version":3,"file":"utilities.test.js","sourceRoot":"","sources":["../src/utilities.test.ts"],"names":[],"mappings":";AAAA,+BAA4B;AAE5B,yCAAyC;AAEzC,QAAQ,CAAC,wBAAwB,EAAE;IAC/B,QAAQ,CAAC,0CAA0C,EAAE;QACjD,EAAE,CAAC,gCAAgC,EAAE;YACjC,aAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9E,CAAC,CAAC,CAAC;QACH,E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,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;YAC5D,aAAM,CAAC,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,2BAA2B,EAAE;QAClC,EAAE,CAAC,oBAAoB,EAAE;YACrB,aAAM,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,oCAAoC,EAAE;QAC3C,EAAE,CAAC,8CAA8C,EAAE;YAC/C,MAAM,MAAM,GAAG,SAAS,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC;YAC/D,aAAM,CAAC,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/circle.yml b/circle.yml index ab2530c6..21462040 100644 --- a/circle.yml +++ b/circle.yml @@ -3,7 +3,7 @@ machine: version: 6.1.0 dependencies: post: - - npm link + - npm install . -g test: post: - bash <(curl -s https://codecov.io/bash) diff --git a/package-lock.json b/package-lock.json index d3408afa..51e27197 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,13 +5,15 @@ "requires": true, "dependencies": { "@types/chai": { - "version": "https://registry.npmjs.org/@types/chai/-/chai-3.4.35.tgz", - "integrity": "sha1-6NZfg0ktKUT4FvxiB0GCHCioyQA=", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.0.2.tgz", + "integrity": "sha512-0pHNZTD0SpQhz1kUM4Muhgdn4acxq21kp726pZfWMmKYGbmmv8XkGTt3k/0QDklhTUYBD6hknZ/1YFokyP/G7Q==", "dev": true }, "@types/mocha": { - "version": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.40.tgz", - "integrity": "sha1-mBHdgA7OVEzYS1uFmRe/WEoVDEw=", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.41.tgz", + "integrity": "sha1-4nzwgXFT658nE7LT9saPHhw8pgg=", "dev": true }, "@types/mock-fs": { @@ -29,17 +31,19 @@ "dev": true }, "@types/sinon": { - "version": "https://registry.npmjs.org/@types/sinon/-/sinon-2.1.2.tgz", - "integrity": "sha1-iNu9KZEMT9G1+9PHM6cj8nfqtYM=", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-2.3.3.tgz", + "integrity": "sha512-bnoHhhCsx0p0yhLOywFg6T7Le37JjtnzLcWal6cuSPvIZUBzKRIsqM6E5OsKUIRVErCaBCghHIZmqtyGk5uXyA==", "dev": true }, "@types/sinon-chai": { - "version": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-2.7.27.tgz", - "integrity": "sha1-63cpBY3fJTppeeVZuytJEISWmqE=", + "version": "2.7.28", + "resolved": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-2.7.28.tgz", + "integrity": "sha512-qh9K/XtXzdHWiUqvFFjw3jQ5ZNrw0wzHaCWTcgBfSn7KwbjZHywinAdinSpUXeHBv+4cojk/9WSrPwVPYiITTA==", "dev": true, "requires": { - "@types/chai": "https://registry.npmjs.org/@types/chai/-/chai-3.4.35.tgz", - "@types/sinon": "https://registry.npmjs.org/@types/sinon/-/sinon-2.1.2.tgz" + "@types/chai": "4.0.2", + "@types/sinon": "2.3.3" } }, "abbrev": { @@ -95,7 +99,8 @@ "dev": true }, "assertion-error": { - "version": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", "integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=", "dev": true }, @@ -105,13 +110,14 @@ "dev": true }, "babel-code-frame": { - "version": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.22.0.tgz", + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.22.0.tgz", "integrity": "sha1-AnYgvuVnqIwyVhV05/0IAdMxGOQ=", "dev": true, "requires": { "chalk": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "esutils": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "js-tokens": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.1.tgz" + "js-tokens": "3.0.2" } }, "balanced-match": { @@ -134,7 +140,8 @@ } }, "browser-stdout": { - "version": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", "dev": true }, @@ -143,8 +150,9 @@ "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "camelcase": { - "version": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=" }, "camelcase-keys": { "version": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", @@ -173,13 +181,17 @@ } }, "chai": { - "version": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", - "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.1.1.tgz", + "integrity": "sha1-ZuISeebzxkFf+CMYeCJ5AOIXGzk=", "dev": true, "requires": { - "assertion-error": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", - "deep-eql": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", - "type-detect": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz" + "assertion-error": "1.0.2", + "check-error": "1.0.2", + "deep-eql": "2.0.2", + "get-func-name": "2.0.0", + "pathval": "1.1.0", + "type-detect": "4.0.3" } }, "chalk": { @@ -194,13 +206,32 @@ "supports-color": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz" } }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "dev": true + }, "cliui": { - "version": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", "requires": { - "string-width": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "string-width": "1.0.2", "strip-ansi": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "wrap-ansi": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz" + "wrap-ansi": "2.1.0" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz" + } + } } }, "clone": { @@ -214,20 +245,23 @@ "dev": true }, "code-point-at": { - "version": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "colors": { - "version": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", "dev": true }, "commander": { - "version": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", "dev": true, "requires": { - "graceful-readlink": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz" + "graceful-readlink": "1.0.1" } }, "concat-map": { @@ -240,6 +274,16 @@ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "requires": { + "lru-cache": "4.1.1", + "shebang-command": "1.2.0", + "which": "https://registry.npmjs.org/which/-/which-1.2.14.tgz" + } + }, "currently-unhandled": { "version": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", @@ -257,21 +301,32 @@ "meow": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz" } }, + "debug": { + "version": "2.6.8", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", + "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, "decamelize": { "version": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" }, "deep-eql": { - "version": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", - "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-2.0.2.tgz", + "integrity": "sha1-sbrAblbwp2d3aG1Qyf63XC7XZ5o=", "dev": true, "requires": { - "type-detect": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz" + "type-detect": "3.0.0" }, "dependencies": { "type-detect": { - "version": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", - "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-3.0.0.tgz", + "integrity": "sha1-RtDMhVOrt7E6NSsNbeov1Y8tm1U=", "dev": true } } @@ -282,7 +337,8 @@ "dev": true }, "diff": { - "version": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", "integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=", "dev": true }, @@ -336,6 +392,20 @@ "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", "dev": true }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "strip-eof": "1.0.0" + } + }, "fancy-log": { "version": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.0.tgz", "integrity": "sha1-Rb4X0Cu5kX1gzP/UmVyZnmyMmUg=", @@ -353,61 +423,55 @@ "find-up": { "version": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, "requires": { "path-exists": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", "pinkie-promise": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz" } }, - "findup-sync": { - "version": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", - "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=", - "dev": true, - "requires": { - "glob": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz" - }, - "dependencies": { - "glob": { - "version": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "minimatch": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz", - "once": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "path-is-absolute": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - } - } - } - }, "formatio": { - "version": "https://registry.npmjs.org/formatio/-/formatio-1.2.0.tgz", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.2.0.tgz", "integrity": "sha1-87IWfZBoxGmKjVH092CjmlTYGOs=", "dev": true, "requires": { - "samsam": "https://registry.npmjs.org/samsam/-/samsam-1.2.1.tgz" + "samsam": "1.2.1" } }, "fs.realpath": { - "version": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, "get-caller-file": { - "version": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=" }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "dev": true + }, "get-stdin": { "version": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=" + }, "glob": { - "version": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", "integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", "dev": true, "requires": { - "fs.realpath": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "fs.realpath": "1.0.0", "inflight": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "minimatch": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz", @@ -428,12 +492,14 @@ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" }, "graceful-readlink": { - "version": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", "dev": true }, "growl": { - "version": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=", "dev": true }, @@ -551,7 +617,8 @@ "dev": true }, "invert-kv": { - "version": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" }, "is-arrayish": { @@ -579,15 +646,22 @@ } }, "is-fullwidth-code-point": { - "version": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "requires": { "number-is-nan": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz" } }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, "is-utf8": { "version": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true }, "isarray": { "version": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -596,8 +670,7 @@ }, "isexe": { "version": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" }, "istanbul": { "version": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz", @@ -653,8 +726,9 @@ } }, "js-tokens": { - "version": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.1.tgz", - "integrity": "sha1-COnxMkhKLEWjCQfp3E1VZ7fxFNc=", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", "dev": true }, "js-yaml": { @@ -674,10 +748,17 @@ } }, "json3": { - "version": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", "dev": true }, + "just-extend": { + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-1.1.22.tgz", + "integrity": "sha1-MzCvdWyralQnAMZLLk5KoGLVL/8=", + "dev": true + }, "kind-of": { "version": "https://registry.npmjs.org/kind-of/-/kind-of-3.1.0.tgz", "integrity": "sha1-R11pil5J/15T0U4+cyQp3Iv0z0c=", @@ -693,10 +774,11 @@ "optional": true }, "lcid": { - "version": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "requires": { - "invert-kv": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz" + "invert-kv": "1.0.0" } }, "levn": { @@ -711,6 +793,7 @@ "load-json-file": { "version": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, "requires": { "graceful-fs": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", "parse-json": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", @@ -719,8 +802,25 @@ "strip-bom": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz" } }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + }, + "dependencies": { + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" + } + } + }, "lodash._baseassign": { - "version": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", "dev": true, "requires": { @@ -734,7 +834,8 @@ "dev": true }, "lodash._basecreate": { - "version": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", "integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=", "dev": true }, @@ -779,12 +880,13 @@ "dev": true }, "lodash.create": { - "version": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", "integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", "dev": true, "requires": { - "lodash._baseassign": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", - "lodash._basecreate": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", + "lodash._baseassign": "3.2.0", + "lodash._basecreate": "3.0.3", "lodash._isiterateecall": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz" } }, @@ -847,8 +949,9 @@ } }, "lolex": { - "version": "https://registry.npmjs.org/lolex/-/lolex-1.6.0.tgz", - "integrity": "sha1-OpoCg0UqR9dDnnJzG54H1zhuSfY=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.1.2.tgz", + "integrity": "sha1-JpS5U8nqTQE+W4v7qJHJkQJbJik=", "dev": true }, "longest": { @@ -865,11 +968,28 @@ "signal-exit": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" } }, + "lru-cache": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", + "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, "map-obj": { "version": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true }, + "mem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "requires": { + "mimic-fn": "1.1.0" + } + }, "meow": { "version": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", @@ -895,6 +1015,11 @@ } } }, + "mimic-fn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.1.0.tgz", + "integrity": "sha1-5md4PZLonb00KBi1IwudYqZyrRg=" + }, "minimatch": { "version": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz", "integrity": "sha1-Kk5AkLlrLbBqnX3wEFWmKnfJt3Q=", @@ -924,56 +1049,27 @@ } }, "mocha": { - "version": "https://registry.npmjs.org/mocha/-/mocha-3.2.0.tgz", - "integrity": "sha1-fcT0XlCIB1FxpoiWgU5q6et6heM=", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-3.5.0.tgz", + "integrity": "sha512-pIU2PJjrPYvYRqVpjXzj76qltO9uBYI7woYAMoxbSefsa+vqAfptjoeevd6bUgwD0mPIO+hv9f7ltvsNreL2PA==", "dev": true, "requires": { - "browser-stdout": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", - "commander": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", - "debug": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "diff": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz", + "browser-stdout": "1.3.0", + "commander": "2.9.0", + "debug": "2.6.8", + "diff": "3.2.0", "escape-string-regexp": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "glob": "https://registry.npmjs.org/glob/-/glob-7.0.5.tgz", - "growl": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", - "json3": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", - "lodash.create": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", + "glob": "7.1.1", + "growl": "1.9.2", + "json3": "3.3.2", + "lodash.create": "3.1.1", "mkdirp": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "supports-color": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz" + "supports-color": "3.1.2" }, "dependencies": { - "debug": { - "version": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz" - } - }, - "diff": { - "version": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz", - "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=", - "dev": true - }, - "glob": { - "version": "https://registry.npmjs.org/glob/-/glob-7.0.5.tgz", - "integrity": "sha1-tCAqaQmbu00pKnwblbZoK2fr3JU=", - "dev": true, - "requires": { - "fs.realpath": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "inflight": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "minimatch": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz", - "once": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "path-is-absolute": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - } - }, - "ms": { - "version": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, "supports-color": { - "version": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", "integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", "dev": true, "requires": { @@ -983,8 +1079,15 @@ } }, "mock-fs": { - "version": "https://registry.npmjs.org/mock-fs/-/mock-fs-4.2.0.tgz", - "integrity": "sha1-71OuF7d+ZPZ4Ft0EZ/KSCKOybhk=", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-4.4.1.tgz", + "integrity": "sha512-C8aapOvl77Bs18WCkejdLuX2kX8DaqaJ7ZmqUmX9U6HD2g31Pd0tZfNBAEVulmJWKyzUIyutrtxiIoNdXLAYsw==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, "multipipe": { @@ -1022,10 +1125,31 @@ } }, "native-promise-only": { - "version": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", "integrity": "sha1-IKMYwwy0X3H+et+/eyHJnBRy7xE=", "dev": true }, + "nise": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.0.1.tgz", + "integrity": "sha1-DakrEKhU6XwPSW9sKEWjASgLPu8=", + "dev": true, + "requires": { + "formatio": "1.2.0", + "just-extend": "1.1.22", + "lolex": "1.6.0", + "path-to-regexp": "1.7.0" + }, + "dependencies": { + "lolex": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.6.0.tgz", + "integrity": "sha1-OpoCg0UqR9dDnnJzG54H1zhuSfY=", + "dev": true + } + } + }, "nopt": { "version": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", @@ -1044,6 +1168,14 @@ "validate-npm-package-license": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz" } }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "requires": { + "path-key": "2.0.1" + } + }, "number-is-nan": { "version": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" @@ -1092,10 +1224,31 @@ } }, "os-locale": { - "version": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "requires": { + "execa": "0.7.0", + "lcid": "1.0.0", + "mem": "1.1.0" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" + }, + "p-limit": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.1.0.tgz", + "integrity": "sha1-sH/y2aXYi+yAYDWJWiurZqJ5iLw=" + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "requires": { - "lcid": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz" + "p-limit": "1.1.0" } }, "parse-json": { @@ -1108,6 +1261,7 @@ "path-exists": { "version": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, "requires": { "pinkie-promise": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz" } @@ -1117,21 +1271,29 @@ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" + }, "path-parse": { - "version": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", "dev": true }, "path-to-regexp": { - "version": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", "dev": true, "requires": { - "isarray": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" + "isarray": "0.0.1" }, "dependencies": { "isarray": { - "version": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", "dev": true } @@ -1140,23 +1302,32 @@ "path-type": { "version": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, "requires": { "graceful-fs": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", "pify": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "pinkie-promise": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz" } }, + "pathval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", + "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", + "dev": true + }, "pify": { "version": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" }, "pinkie": { "version": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true }, "pinkie-promise": { "version": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, "requires": { "pinkie": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz" } @@ -1171,9 +1342,15 @@ "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", "dev": true }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" + }, "read-pkg": { "version": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, "requires": { "load-json-file": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "normalize-package-data": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.6.tgz", @@ -1183,6 +1360,7 @@ "read-pkg-up": { "version": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, "requires": { "find-up": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", "read-pkg": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz" @@ -1229,19 +1407,22 @@ "dev": true }, "require-directory": { - "version": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" }, "require-main-filename": { - "version": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" }, "resolve": { - "version": "https://registry.npmjs.org/resolve/-/resolve-1.3.2.tgz", - "integrity": "sha1-HwRCyeDLuBNuh7kwX5MvRsfygjU=", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", + "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==", "dev": true, "requires": { - "path-parse": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz" + "path-parse": "1.0.5" } }, "right-align": { @@ -1254,7 +1435,8 @@ } }, "samsam": { - "version": "https://registry.npmjs.org/samsam/-/samsam-1.2.1.tgz", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.2.1.tgz", "integrity": "sha1-7dOQk6MYQ3DLhZJDsr3yVefY6mc=", "dev": true }, @@ -1263,39 +1445,48 @@ "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=" }, "set-blocking": { - "version": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" + }, "signal-exit": { "version": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" }, "sinon": { - "version": "https://registry.npmjs.org/sinon/-/sinon-2.1.0.tgz", - "integrity": "sha1-4Fep0r8bMvXW3WJijKnuOWGwyvs=", - "dev": true, - "requires": { - "diff": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", - "formatio": "https://registry.npmjs.org/formatio/-/formatio-1.2.0.tgz", - "lolex": "https://registry.npmjs.org/lolex/-/lolex-1.6.0.tgz", - "native-promise-only": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", - "path-to-regexp": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", - "samsam": "https://registry.npmjs.org/samsam/-/samsam-1.2.1.tgz", - "text-encoding": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.6.4.tgz", - "type-detect": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.0.tgz" - }, - "dependencies": { - "type-detect": { - "version": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.0.tgz", - "integrity": "sha1-YgU4g1QqMh8veyV0bcaWR4sY/2s=", - "dev": true - } + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-3.0.0.tgz", + "integrity": "sha512-oGoqOflgmoKm+lHkGsUw5IjxOu3Nat0WfoJpWFj8sklC1KDCGamkg/nDJGJAv9hXLY5KiflDoY/7ewgfsbNLTA==", + "dev": true, + "requires": { + "diff": "3.2.0", + "formatio": "1.2.0", + "lolex": "2.1.2", + "native-promise-only": "0.8.1", + "nise": "1.0.1", + "path-to-regexp": "1.7.0", + "samsam": "1.2.1", + "text-encoding": "0.6.4", + "type-detect": "4.0.3" } }, "sinon-chai": { - "version": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-2.9.0.tgz", - "integrity": "sha1-NNggBCvJZhoUUnEw1AHrRixJu4Q=", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-2.12.0.tgz", + "integrity": "sha512-/J38xAWY5ppvRKuSrdnpVv7rWmxjfma9lL/iYaqn+ge/JynkhM9w8PaFAoGvGv+Tj2nEQWkkS8S4Syt4Lw1K6Q==", "dev": true }, "source-map": { @@ -1334,12 +1525,32 @@ "dev": true }, "string-width": { - "version": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "requires": { - "code-point-at": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "is-fullwidth-code-point": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "strip-ansi": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz" + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "requires": { + "ansi-regex": "3.0.0" + } + } } }, "strip-ansi": { @@ -1352,10 +1563,16 @@ "strip-bom": { "version": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, "requires": { "is-utf8": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz" } }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + }, "strip-indent": { "version": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", @@ -1370,7 +1587,8 @@ "dev": true }, "text-encoding": { - "version": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.6.4.tgz", + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.6.4.tgz", "integrity": "sha1-45mpgiV6J22uQou5KEXLcb3CbRk=", "dev": true }, @@ -1408,26 +1626,65 @@ "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", "dev": true }, + "tslib": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.7.1.tgz", + "integrity": "sha1-vIAEFkaRkjp5/oN4u+s9ogF1OOw=", + "dev": true + }, "tslint": { - "version": "https://registry.npmjs.org/tslint/-/tslint-5.0.0.tgz", - "integrity": "sha1-rTt5UvipshB5JIvuAcLq+SFn4YU=", - "dev": true, - "requires": { - "babel-code-frame": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.22.0.tgz", - "colors": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "diff": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", - "findup-sync": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", - "glob": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", - "optimist": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "resolve": "https://registry.npmjs.org/resolve/-/resolve-1.3.2.tgz", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.5.0.tgz", + "integrity": "sha1-EOjas+MGH6YelELozuOYKs8gpqo=", + "dev": true, + "requires": { + "babel-code-frame": "6.22.0", + "colors": "1.1.2", + "commander": "2.9.0", + "diff": "3.2.0", + "glob": "7.1.1", + "minimatch": "3.0.4", + "resolve": "1.4.0", "semver": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "tsutils": "https://registry.npmjs.org/tsutils/-/tsutils-1.6.0.tgz" + "tslib": "1.7.1", + "tsutils": "2.8.0" + }, + "dependencies": { + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + } } }, "tsutils": { - "version": "https://registry.npmjs.org/tsutils/-/tsutils-1.6.0.tgz", - "integrity": "sha1-H9f6wqYTae2ZzTmX8Pu0NxKIUPI=", - "dev": true + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.8.0.tgz", + "integrity": "sha1-AWAXNymzvxOGKN0UoVN+AIUdgUo=", + "dev": true, + "requires": { + "tslib": "1.7.1" + } }, "type-check": { "version": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", @@ -1438,13 +1695,15 @@ } }, "type-detect": { - "version": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz", - "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.3.tgz", + "integrity": "sha1-Dj8mcLRAmbC0bChNE2p+9Jx0wuo=", "dev": true }, "typescript": { - "version": "https://registry.npmjs.org/typescript/-/typescript-2.1.6.tgz", - "integrity": "sha1-QMfm6eXaeWG3cYtVUF+crJSHpgc=", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.2.tgz", + "integrity": "sha1-+DlfhdRZJ2BnyYiqQYN6j4KHCEQ=", "dev": true }, "uglify-js": { @@ -1527,14 +1786,14 @@ "which": { "version": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", "integrity": "sha1-mofEN48D6CfOyvGs31bHNsAcFOU=", - "dev": true, "requires": { "isexe": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" } }, "which-module": { - "version": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" }, "window-size": { "version": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", @@ -1548,11 +1807,24 @@ "dev": true }, "wrap-ansi": { - "version": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "requires": { - "string-width": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "string-width": "1.0.2", "strip-ansi": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz" + } + } } }, "wrappy": { @@ -1566,33 +1838,94 @@ "dev": true }, "y18n": { - "version": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" + }, "yargs": { - "version": "https://registry.npmjs.org/yargs/-/yargs-7.0.2.tgz", - "integrity": "sha1-EVuX3xMhgj6Lhkjolox4JSEiH2c=", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", + "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", "requires": { - "camelcase": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "cliui": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "camelcase": "4.1.0", + "cliui": "3.2.0", "decamelize": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "get-caller-file": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "os-locale": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "read-pkg-up": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "require-directory": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "require-main-filename": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "set-blocking": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "string-width": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "which-module": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "y18n": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "yargs-parser": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz" + "get-caller-file": "1.0.2", + "os-locale": "2.1.0", + "read-pkg-up": "2.0.0", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "2.1.1", + "which-module": "2.0.0", + "y18n": "3.2.1", + "yargs-parser": "7.0.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "requires": { + "locate-path": "2.0.0" + } + }, + "load-json-file": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", + "requires": { + "graceful-fs": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "parse-json": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "pify": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "strip-bom": "3.0.0" + } + }, + "path-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", + "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", + "requires": { + "pify": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" + } + }, + "read-pkg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", + "requires": { + "load-json-file": "2.0.0", + "normalize-package-data": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.6.tgz", + "path-type": "2.0.0" + } + }, + "read-pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", + "requires": { + "find-up": "2.1.0", + "read-pkg": "2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" + } } }, "yargs-parser": { - "version": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", - "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", + "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", "requires": { - "camelcase": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz" + "camelcase": "4.1.0" } } } diff --git a/package.json b/package.json index 67ac86fd..1944f57f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build_tsc": "tsc", "build_tslint": "tslint --project tsconfig.json -t stylish", "build": "npm run build_tsc && npm run build_tslint", - "tests_integration": "barrelsby -c barrelsby.json", + "tests_integration": "node bin/index.js -c barrelsby.json", "tests_unit": "istanbul cover --report json --root \"./bin\" -x \"**/*.test.js\" node_modules/mocha/bin/_mocha \"bin/**/*.test.js\"", "remap_coverage_html": "remap-istanbul -i coverage/coverage-final.json -t lcovonly -o coverage/lcov.info", "tests": "npm run tests_unit && npm run tests_integration && npm run remap_coverage_html", @@ -34,21 +34,21 @@ }, "homepage": "https://github.com/bencoveney/barrelsby#readme", "devDependencies": { - "@types/chai": "^3.4.35", - "@types/mocha": "^2.2.40", + "@types/chai": "^4.0.2", + "@types/mocha": "^2.2.41", "@types/mock-fs": "^3.6.30", "@types/node": "^8.0.0", - "@types/sinon": "^2.1.2", - "@types/sinon-chai": "^2.7.27", - "chai": "^3.5.0", + "@types/sinon": "^2.3.3", + "@types/sinon-chai": "^2.7.28", + "chai": "^4.1.1", "istanbul": "^0.4.5", - "mocha": "^3.2.0", - "mock-fs": "^4.2.0", + "mocha": "^3.5.0", + "mock-fs": "^4.4.1", "remap-istanbul": "^0.9.5", - "sinon": "^2.1.0", - "sinon-chai": "^2.9.0", - "tslint": "^5.0.0", - "typescript": "^2.1.6" + "sinon": "^3.0.0", + "sinon-chai": "^2.12.0", + "tslint": "^5.5.0", + "typescript": "^2.4.2" }, "bin": { "barrelsby": "bin/index.js" @@ -57,7 +57,7 @@ "node": ">=0.10" }, "dependencies": { - "yargs": "^7.0.2" + "yargs": "^8.0.2" }, "contributors": [ { diff --git a/src/builders/flat.test.ts b/src/builders/flat.test.ts index ac829964..6dae89c9 100644 --- a/src/builders/flat.test.ts +++ b/src/builders/flat.test.ts @@ -28,8 +28,6 @@ describe("builder/flat module has a", () => { spySandbox.restore(); }); it("should produce the correct output", () => { - // tslint:disable-next-line - console.log(output); TestUtilities.assertMultiLine( output, `export * from "./barrel"; diff --git a/src/fileTree.test.ts b/src/fileTree.test.ts index 6c01ceab..d2b7321c 100644 --- a/src/fileTree.test.ts +++ b/src/fileTree.test.ts @@ -44,9 +44,9 @@ describe("fileTree module has a", () => { const testFile = (name: string) => { const files = result.files.filter((file) => file.name === name); assert.lengthOf(files, 1); - const file = files[0]; - assert.equal(file.path, `directory1/${name}`); - assert.equal(file.name, name); + const firstFile = files[0]; + assert.equal(firstFile.path, `directory1/${name}`); + assert.equal(firstFile.name, name); }; testFile("index.ts"); testFile("barrel.ts"); diff --git a/src/options.test.ts b/src/options.test.ts index 3b267833..2b14b4ee 100644 --- a/src/options.test.ts +++ b/src/options.test.ts @@ -29,8 +29,8 @@ describe("options module has a", () => { assert.isUndefined(options.config); assert.equal(options.delete, true); assert.equal(options.directory, "./test"); - assert.equal(options.exclude, "zeta.ts$"); - assert.equal(options.include, "a.ts$"); + assert.sameMembers(options.exclude as string[], ["zeta.ts$"]); + assert.sameMembers(options.include as string[], ["a.ts$"]); assert.equal(options.location, "top"); assert.equal(options.name, "barrel"); assert.equal(options.structure, "filesystem");