@stryker-mutator/util
Advanced tools
+22
-0
@@ -6,2 +6,24 @@ # Change Log | ||
| # [6.0.0-beta.0](https://github.com/stryker-mutator/stryker-js/compare/v5.6.1...v6.0.0-beta.0) (2022-03-02) | ||
| ### Features | ||
| * **esm config:** support config file as pure esm ([#3432](https://github.com/stryker-mutator/stryker-js/issues/3432)) ([309a7e2](https://github.com/stryker-mutator/stryker-js/commit/309a7e2807e454a82f177de781bc4908f87c739b)) | ||
| * **esm:** migrate StrykerJS to pure ESM ([#3409](https://github.com/stryker-mutator/stryker-js/issues/3409)) ([78c305e](https://github.com/stryker-mutator/stryker-js/commit/78c305e2c2271fedb54bfff3d34aa6b70b421b3a)) | ||
| * **esm:** support native es modules in the jasmine runner. ([#3396](https://github.com/stryker-mutator/stryker-js/issues/3396)) ([94708d0](https://github.com/stryker-mutator/stryker-js/commit/94708d00b43e3f84accd42ccb40d95ff30718efa)), closes [#3340](https://github.com/stryker-mutator/stryker-js/issues/3340) | ||
| ### BREAKING CHANGES | ||
| * **esm config:** Exporting a function (using `module.exports = function(config) {}`) from your `stryker.conf.js` file is no longer supported. This was already deprecated but now will give an error. | ||
| * **esm:** StrykerJS is now a pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). | ||
| * **esm:** Node 12.20 is now the min version. | ||
| * **esm:** Karma v6.3 is now the min supported karma version for `@stryker-mutator/karma-runner`, since [that version added support for async config loading](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md#630-2021-03-23) | ||
| * **esm:** The `@stryker-mutator/jamsine-runner` now requires jasmine@3.10 or higher. | ||
| ## [5.6.1](https://github.com/stryker-mutator/stryker-js/compare/v5.6.0...v5.6.1) (2022-01-23) | ||
@@ -8,0 +30,0 @@ |
@@ -1,10 +0,6 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.childProcessAsPromised = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const childProcess = (0, tslib_1.__importStar)(require("child_process")); | ||
| const util_1 = require("util"); | ||
| exports.childProcessAsPromised = { | ||
| exec: (0, util_1.promisify)(childProcess.exec), | ||
| import * as childProcess from 'child_process'; | ||
| import { promisify } from 'util'; | ||
| export const childProcessAsPromised = { | ||
| exec: promisify(childProcess.exec), | ||
| }; | ||
| //# sourceMappingURL=child-process-as-promised.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"child-process-as-promised.js","sourceRoot":"","sources":["../../src/child-process-as-promised.ts"],"names":[],"mappings":";;;;AAAA,yEAA8C;AAC9C,+BAAiC;AAEpB,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE,IAAA,gBAAS,EAAC,YAAY,CAAC,IAAI,CAAC;CACnC,CAAC"} | ||
| {"version":3,"file":"child-process-as-promised.js","sourceRoot":"","sources":["../../src/child-process-as-promised.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjC,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC;CACnC,CAAC"} |
@@ -1,4 +0,1 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.deepMerge = void 0; | ||
| /** | ||
@@ -9,3 +6,3 @@ * | ||
| */ | ||
| function deepMerge(defaults, overrides) { | ||
| export function deepMerge(defaults, overrides) { | ||
| Object.keys(overrides).forEach((key) => { | ||
@@ -24,3 +21,2 @@ const defaultValue = defaults[key]; | ||
| } | ||
| exports.deepMerge = deepMerge; | ||
| //# sourceMappingURL=deep-merge.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"deep-merge.js","sourceRoot":"","sources":["../../src/deep-merge.ts"],"names":[],"mappings":";;;AAIA;;;;GAIG;AACH,SAAgB,SAAS,CAAI,QAAW,EAAE,SAAyB;IACjE,MAAM,CAAC,IAAI,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"file":"directory-require-cache.d.ts","sourceRoot":"","sources":["../../src/directory-require-cache.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,OAAO,CAA0B;IAEzC;;;OAGG;IACI,MAAM,IAAI,IAAI;IAuBd,KAAK,IAAI,IAAI;CAYrB"} | ||
| {"version":3,"file":"directory-require-cache.d.ts","sourceRoot":"","sources":["../../src/directory-require-cache.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,OAAO,CAA0B;IAEzC;;;OAGG;IACI,MAAM,IAAI,IAAI;IAuBd,KAAK,IAAI,IAAI;CAYrB"} |
@@ -1,8 +0,6 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DirectoryRequireCache = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const path_1 = (0, tslib_1.__importDefault)(require("path")); | ||
| const not_empty_1 = require("./not-empty"); | ||
| const platform_1 = require("./platform"); | ||
| import { createRequire } from 'module'; | ||
| import path from 'path'; | ||
| import { notEmpty } from './not-empty.js'; | ||
| import { platform } from './platform.js'; | ||
| const require = createRequire(import.meta.url); | ||
| /** | ||
@@ -16,3 +14,3 @@ * A helper class that can be used by test runners. | ||
| */ | ||
| class DirectoryRequireCache { | ||
| export class DirectoryRequireCache { | ||
| /** | ||
@@ -28,5 +26,5 @@ * Records the files required in the current working directory (excluding node_modules) | ||
| const startsWithCaseSensitive = (filename, prefix) => filename.startsWith(prefix); | ||
| const startsWith = (0, platform_1.caseSensitiveFs)() ? startsWithCaseSensitive : startsWithCaseInsensitive; | ||
| const startsWith = platform.caseSensitiveFs() ? startsWithCaseSensitive : startsWithCaseInsensitive; | ||
| Object.keys(require.cache) | ||
| .filter((fileName) => startsWith(fileName, `${cwd}${path_1.default.sep}`) && !startsWith(fileName, path_1.default.join(cwd, 'node_modules'))) | ||
| .filter((fileName) => startsWith(fileName, `${cwd}${path.sep}`) && !startsWith(fileName, path.join(cwd, 'node_modules'))) | ||
| .forEach((file) => cache.add(file)); | ||
@@ -37,3 +35,3 @@ this.parents = new Set(Array.from(cache) | ||
| .map((fileName) => { var _a, _b; return (_b = (_a = require.cache[fileName]) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.filename; }) | ||
| .filter(not_empty_1.notEmpty) | ||
| .filter(notEmpty) | ||
| // Filter out any parents that are in the current cache, since they will be removed anyway | ||
@@ -56,3 +54,2 @@ .filter((parentFileName) => !cache.has(parentFileName))); | ||
| } | ||
| exports.DirectoryRequireCache = DirectoryRequireCache; | ||
| //# sourceMappingURL=directory-require-cache.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"directory-require-cache.js","sourceRoot":"","sources":["../../src/directory-require-cache.ts"],"names":[],"mappings":";;;;AAAA,6DAAwB;AAExB,2CAAuC;AACvC,yCAA6C;AAE7C;;;;;;;GAOG;AACH,MAAa,qBAAqB;IAIhC;;;OAGG;IACI,MAAM;QACX,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;YACvC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;YAC1B,MAAM,yBAAyB,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;YAChI,MAAM,uBAAuB,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YAClG,MAAM,UAAU,GAAG,IAAA,0BAAe,GAAE,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CA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CAAC;iBACnG;YACH,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC7D;IACH,CAAC;CACF"} |
@@ -1,10 +0,6 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.errorToString = exports.isErrnoException = void 0; | ||
| function isErrnoException(error) { | ||
| export function isErrnoException(error) { | ||
| return error instanceof Error && typeof error.code === 'string'; | ||
| } | ||
| exports.isErrnoException = isErrnoException; | ||
| // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
| function errorToString(error) { | ||
| export function errorToString(error) { | ||
| if (!error) { | ||
@@ -27,3 +23,2 @@ return ''; | ||
| } | ||
| exports.errorToString = errorToString; | ||
| //# sourceMappingURL=errors.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB,CAAC,KAAc;IAC7C,OAAO,KAAK,YAAY,KAAK,IAAI,OAAQ,KAA+B,CAAC,IAAI,KAAK,QAAQ,CAAC;AAC7F,CAAC;AAFD,4CAEC;AAED,6EAA6E;AAC7E,SAAgB,aAAa,CAAC,KAAU;IACtC,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IACD,IAAI,KAAK,YAAY,KAAK,EAAE;QAC1B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,KAAK,EAAE,CAAC;SACzE;QACD,MAAM,OAAO,GAAG,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;QAClD,IAAI,KAAK,CAAC,KAAK,EAAE;YACf,OAAO,GAAG,OAAO,KAAK,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC;SAChD;aAAM;YACL,OAAO,OAAO,CAAC;SAChB;KACF;IACD,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC1B,CAAC;AAhBD,sCAgBC"} | ||
| {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,KAAK,YAAY,KAAK,IAAI,OAAQ,KAA+B,CAAC,IAAI,KAAK,QAAQ,CAAC;AAC7F,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,aAAa,CAAC,KAAU;IACtC,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IACD,IAAI,KAAK,YAAY,KAAK,EAAE;QAC1B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,KAAK,EAAE,CAAC;SACzE;QACD,MAAM,OAAO,GAAG,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;QAClD,IAAI,KAAK,CAAC,KAAK,EAAE;YACf,OAAO,GAAG,OAAO,KAAK,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC;SAChD;aAAM;YACL,OAAO,OAAO,CAAC;SAChB;KACF;IACD,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC1B,CAAC"} |
@@ -1,6 +0,3 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.findUnserializables = void 0; | ||
| const not_empty_1 = require("./not-empty"); | ||
| function findUnserializables(thing) { | ||
| import { notEmpty } from './not-empty.js'; | ||
| export function findUnserializables(thing) { | ||
| switch (typeof thing) { | ||
@@ -36,3 +33,3 @@ case 'number': | ||
| }) | ||
| .filter(not_empty_1.notEmpty); | ||
| .filter(notEmpty); | ||
| return things.length ? things : undefined; | ||
@@ -50,3 +47,3 @@ } | ||
| }) | ||
| .filter(not_empty_1.notEmpty); | ||
| .filter(notEmpty); | ||
| return things.length ? things : undefined; | ||
@@ -63,3 +60,2 @@ } | ||
| } | ||
| exports.findUnserializables = findUnserializables; | ||
| //# sourceMappingURL=find-unserializables.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"find-unserializables.js","sourceRoot":"","sources":["../../src/find-unserializables.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AAOvC,SAAgB,mBAAmB,CAAC,KAAc;IAChD,QAAQ,OAAO,KAAK,EAAE;QACpB,KAAK,QAAQ;YACX,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,kBAAkB,KAAK,+BAA+B,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACvH,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,WAAW;YACd,OAAO;QACT,KAAK,QAAQ,CAAC;QACd,KAAK,UAAU,CAAC;QAChB,KAAK,QAAQ;YACX,OAAO;gBACL;oBACE,IAAI,EAAE,EAAE;oBACR,MAAM,EAAE,mBAAmB,OAAO,KAAK,8BAA8B;iBACtE;aACF,CAAC;QACJ,KAAK,QAAQ;YACX,4DAA4D;YAC5D,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,OAAO;aACR;YACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxB,MAAM,MAAM,GAAG,KAAK;qBACjB,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;;oBACxB,OAAA,MAAA,mBAAmB,CAAC,KAAK,CAAC,0CAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;wBAC9C,WAAW,CAAC,I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,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;qBACjC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE;;oBACtB,OAAA,MAAA,mBAAmB,CAAC,GAAG,CAAC,0CAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;wBAC5C,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;wBAC9B,OAAO,WAAW,CAAC;oBACrB,CAAC,CAAC,CAAA;iBAAA,CACH;qBACA,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACpB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;aAC3C;YACD,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,IAAI,mBAAmB,CAAC;YACrE,OAAO;gBACL;oBACE,IAAI,EAAE,EAAE;oBACR,MAAM,EAAE,4BAA4B,cAAc,kEAAkE;iBACrH;aACF,CAAC;KACL;AACH,CAAC"} |
@@ -1,7 +0,7 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.flatMap = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const lodash_flatmap_1 = (0, tslib_1.__importDefault)(require("lodash.flatmap")); | ||
| exports.flatMap = lodash_flatmap_1.default; | ||
| import flatMap from 'lodash.flatmap'; | ||
| /** | ||
| * `Array.prototype.flatMap`, but also works on node 10 | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap | ||
| */ | ||
| export { flatMap }; | ||
| //# sourceMappingURL=flat-map.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"flat-map.js","sourceRoot":"","sources":["../../src/flat-map.ts"],"names":[],"mappings":";;;;AAAA,iFAAqC;AAM5B,kBANF,wBAAO,CAME"} | ||
| {"version":3,"file":"flat-map.js","sourceRoot":"","sources":["../../src/flat-map.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC;;;GAGG;AACH,OAAO,EAAE,OAAO,EAAE,CAAC"} |
+1
-2
@@ -1,3 +0,2 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| export {}; | ||
| //# sourceMappingURL=i.js.map |
@@ -1,5 +0,2 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.deepFreeze = void 0; | ||
| function deepFreeze(target) { | ||
| export function deepFreeze(target) { | ||
| switch (typeof target) { | ||
@@ -32,3 +29,2 @@ case 'object': | ||
| } | ||
| exports.deepFreeze = deepFreeze; | ||
| //# sourceMappingURL=immutable.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../src/immutable.ts"],"names":[],"mappings":";;;AAqBA,SAAgB,UAAU,CAAI,MAAS;IACrC,QAAQ,OAAO,MAAM,EAAE;QACrB,KAAK,QAAQ;YACX,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACzB,OAAO,MAAM,CAAC,MAAM,CAAE,MAAgB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAiB,CAAC;aACzE;YACD,IAAI,MAAM,YAAY,GAAG,EAAE;gBACzB,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAA4B,CAAC;aACjI;YACD,IAAI,MAAM,YAAY,MAAM,EAAE;gBAC5B,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAiB,CAAC;aAC9C;YACD,IAAI,MAAM,KAAK,IAAI,EAAE;gBACnB,OAAO,IAA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,CAAC,MAAM,CAAC,MAAM,CAAiB,CAAC;aAC9C;YACD,IAAI,MAAM,KAAK,IAAI,EAAE;gBACnB,OAAO,IAAoB,CAAC;aAC7B;YACD,IAAI,MAAM,YAAY,GAAG,EAAE;gBACzB,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAA4B,CAAC;aAChG;YACD,OAAO,MAAM,CAAC,MAAM,CAAC;gBACnB,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE;oBAC5D,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;oBAC/B,OAAO,MAAM,CAAC;gBAChB,CAAC,EAAE,EAAE,CAAC;aACP,CAAC,CAAC;QACL;YACE,OAAO,MAAsB,CAAC;KACjC;AACH,CAAC"} |
+16
-16
@@ -1,17 +0,17 @@ | ||
| export { childProcessAsPromised } from './child-process-as-promised'; | ||
| export { StrykerError } from './stryker-error'; | ||
| export * from './errors'; | ||
| export * from './immutable'; | ||
| export * from './known-keys'; | ||
| export * from './string-utils'; | ||
| export * from './noop-logger'; | ||
| export * from './not-empty'; | ||
| export * from './flat-map'; | ||
| export * from './i'; | ||
| export * from './task'; | ||
| export * from './directory-require-cache'; | ||
| export * from './require-resolve'; | ||
| export * from './deep-merge'; | ||
| export * from './find-unserializables'; | ||
| export * from './platform'; | ||
| export { childProcessAsPromised } from './child-process-as-promised.js'; | ||
| export { StrykerError } from './stryker-error.js'; | ||
| export * from './errors.js'; | ||
| export * from './immutable.js'; | ||
| export * from './known-keys.js'; | ||
| export * from './string-utils.js'; | ||
| export * from './noop-logger.js'; | ||
| export * from './not-empty.js'; | ||
| export * from './flat-map.js'; | ||
| export * from './i.js'; | ||
| export * from './task.js'; | ||
| export * from './directory-require-cache.js'; | ||
| export * from './require-resolve.js'; | ||
| export * from './deep-merge.js'; | ||
| export * from './find-unserializables.js'; | ||
| export * from './platform.js'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,KAAK,CAAC;AACpB,cAAc,QAAQ,CAAC;AACvB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC"} |
+16
-22
@@ -1,23 +0,17 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.StrykerError = exports.childProcessAsPromised = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| var child_process_as_promised_1 = require("./child-process-as-promised"); | ||
| Object.defineProperty(exports, "childProcessAsPromised", { enumerable: true, get: function () { return child_process_as_promised_1.childProcessAsPromised; } }); | ||
| var stryker_error_1 = require("./stryker-error"); | ||
| Object.defineProperty(exports, "StrykerError", { enumerable: true, get: function () { return stryker_error_1.StrykerError; } }); | ||
| (0, tslib_1.__exportStar)(require("./errors"), exports); | ||
| (0, tslib_1.__exportStar)(require("./immutable"), exports); | ||
| (0, tslib_1.__exportStar)(require("./known-keys"), exports); | ||
| (0, tslib_1.__exportStar)(require("./string-utils"), exports); | ||
| (0, tslib_1.__exportStar)(require("./noop-logger"), exports); | ||
| (0, tslib_1.__exportStar)(require("./not-empty"), exports); | ||
| (0, tslib_1.__exportStar)(require("./flat-map"), exports); | ||
| (0, tslib_1.__exportStar)(require("./i"), exports); | ||
| (0, tslib_1.__exportStar)(require("./task"), exports); | ||
| (0, tslib_1.__exportStar)(require("./directory-require-cache"), exports); | ||
| (0, tslib_1.__exportStar)(require("./require-resolve"), exports); | ||
| (0, tslib_1.__exportStar)(require("./deep-merge"), exports); | ||
| (0, tslib_1.__exportStar)(require("./find-unserializables"), exports); | ||
| (0, tslib_1.__exportStar)(require("./platform"), exports); | ||
| export { childProcessAsPromised } from './child-process-as-promised.js'; | ||
| export { StrykerError } from './stryker-error.js'; | ||
| export * from './errors.js'; | ||
| export * from './immutable.js'; | ||
| export * from './known-keys.js'; | ||
| export * from './string-utils.js'; | ||
| export * from './noop-logger.js'; | ||
| export * from './not-empty.js'; | ||
| export * from './flat-map.js'; | ||
| export * from './i.js'; | ||
| export * from './task.js'; | ||
| export * from './directory-require-cache.js'; | ||
| export * from './require-resolve.js'; | ||
| export * from './deep-merge.js'; | ||
| export * from './find-unserializables.js'; | ||
| export * from './platform.js'; | ||
| //# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,yEAAqE;AAA5D,mIAAA,sBAAsB,OAAA;AAC/B,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,wDAAyB;AACzB,2DAA4B;AAC5B,4DAA6B;AAC7B,8DAA+B;AAC/B,6DAA8B;AAC9B,2DAA4B;AAC5B,0DAA2B;AAC3B,mDAAoB;AACpB,sDAAuB;AACvB,yEAA0C;AAC1C,iEAAkC;AAClC,4DAA6B;AAC7B,sEAAuC;AACvC,0DAA2B"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC"} |
@@ -1,3 +0,2 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| export {}; | ||
| //# sourceMappingURL=known-keys.js.map |
@@ -1,5 +0,2 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.noopLogger = void 0; | ||
| exports.noopLogger = { | ||
| export const noopLogger = { | ||
| isTraceEnabled() { | ||
@@ -6,0 +3,0 @@ return false; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"noop-logger.js","sourceRoot":"","sources":["../../src/noop-logger.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IACD,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IACD,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;IACD,IAAI;QACF,OAAO;IACT,CAAC;IACD,IAAI;QACF,OAAO;IACT,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;CACF,CAAC"} | ||
| {"version":3,"file":"noop-logger.js","sourceRoot":"","sources":["../../src/noop-logger.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IACD,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IACD,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,cAAc;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;IACD,IAAI;QACF,OAAO;IACT,CAAC;IACD,IAAI;QACF,OAAO;IACT,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;IACD,KAAK;QACH,OAAO;IACT,CAAC;CACF,CAAC"} |
@@ -1,8 +0,4 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.notEmpty = void 0; | ||
| function notEmpty(item) { | ||
| export function notEmpty(item) { | ||
| return item !== undefined && item !== null; | ||
| } | ||
| exports.notEmpty = notEmpty; | ||
| //# sourceMappingURL=not-empty.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"not-empty.js","sourceRoot":"","sources":["../../src/not-empty.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAI,IAA0B;IACpD,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC;AAC7C,CAAC;AAFD,4BAEC"} | ||
| {"version":3,"file":"not-empty.js","sourceRoot":"","sources":["../../src/not-empty.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAI,IAA0B;IACpD,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC;AAC7C,CAAC"} |
@@ -1,7 +0,9 @@ | ||
| /** | ||
| * Tells whether the filesystem is case sensitive. | ||
| * | ||
| * @returns false on Win32, true elsewhere | ||
| */ | ||
| export declare function caseSensitiveFs(): boolean; | ||
| export declare const platform: { | ||
| /** | ||
| * Tells whether the filesystem is case sensitive. | ||
| * | ||
| * @returns false on Win32, true elsewhere | ||
| */ | ||
| caseSensitiveFs(): boolean; | ||
| }; | ||
| //# sourceMappingURL=platform.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/platform.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC"} | ||
| {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/platform.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;IACnB;;;;OAIG;uBACgB,OAAO;CAG3B,CAAC"} |
+10
-12
@@ -1,13 +0,11 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.caseSensitiveFs = void 0; | ||
| /** | ||
| * Tells whether the filesystem is case sensitive. | ||
| * | ||
| * @returns false on Win32, true elsewhere | ||
| */ | ||
| function caseSensitiveFs() { | ||
| return process.platform != 'win32'; | ||
| } | ||
| exports.caseSensitiveFs = caseSensitiveFs; | ||
| export const platform = { | ||
| /** | ||
| * Tells whether the filesystem is case sensitive. | ||
| * | ||
| * @returns false on Win32, true elsewhere | ||
| */ | ||
| caseSensitiveFs() { | ||
| return process.platform != 'win32'; | ||
| }, | ||
| }; | ||
| //# sourceMappingURL=platform.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/platform.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,eAAe;IAC7B,OAAO,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;AACrC,CAAC;AAFD,0CAEC"} | ||
| {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/platform.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;;;;OAIG;IACH,eAAe;QACb,OAAO,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;IACrC,CAAC;CACF,CAAC"} |
@@ -1,3 +0,2 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| export {}; | ||
| //# sourceMappingURL=primitive.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"require-resolve.d.ts","sourceRoot":"","sources":["../../src/require-resolve.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,SAAgB,GAAG,OAAO,CAGxE"} | ||
| {"version":3,"file":"require-resolve.d.ts","sourceRoot":"","sources":["../../src/require-resolve.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,SAAgB,GAAG,OAAO,CAGxE"} |
@@ -1,4 +0,2 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.requireResolve = void 0; | ||
| import { createRequire } from 'module'; | ||
| /** | ||
@@ -8,7 +6,6 @@ * Require a module from the current working directory (or a different base dir) | ||
| */ | ||
| function requireResolve(id, from = process.cwd()) { | ||
| // eslint-disable-next-line @typescript-eslint/no-require-imports | ||
| export function requireResolve(id, from = process.cwd()) { | ||
| const require = createRequire(import.meta.url); | ||
| return require(require.resolve(id, { paths: [from] })); | ||
| } | ||
| exports.requireResolve = requireResolve; | ||
| //# sourceMappingURL=require-resolve.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"require-resolve.js","sourceRoot":"","sources":["../../src/require-resolve.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,cAAc,CAAC,EAAU,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE;IAC7D,iEAAiE;IACjE,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC;AAHD,wCAGC"} | ||
| {"version":3,"file":"require-resolve.js","sourceRoot":"","sources":["../../src/require-resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,EAAU,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE;IAC7D,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC"} |
@@ -9,2 +9,7 @@ import { KnownKeys } from './known-keys'; | ||
| export declare function normalizeWhitespaces(str: string): string; | ||
| export interface PropertyPathOverloads<T> { | ||
| (key: KnownKeys<T>): string; | ||
| <TProp1 extends KnownKeys<T>>(key: TProp1, key2: KnownKeys<OnlyObject<T[TProp1]>>): string; | ||
| <TProp1 extends KnownKeys<T>, TProp2 extends KnownKeys<OnlyObject<T[TProp1]>>>(key: TProp1, key2: TProp2, key3: KnownKeys<OnlyObject<OnlyObject<T[TProp1]>[TProp2]>>): string; | ||
| } | ||
| /** | ||
@@ -14,25 +19,4 @@ * Given a base type, allows type safe access to the name of a property. | ||
| */ | ||
| export declare function propertyPath<T>(prop: KnownKeys<T>): string; | ||
| export declare function propertyPath<T>(): PropertyPathOverloads<T>; | ||
| /** | ||
| * A helper class to allow you to get type safe access to the name of a deep property of `T` | ||
| * @example | ||
| * ```ts | ||
| * PropertyPathBuilder<StrykerOptions>('warnings').prop('unknownOptions').build() | ||
| * ``` | ||
| */ | ||
| export declare class PropertyPathBuilder<T> { | ||
| private readonly pathSoFar; | ||
| constructor(pathSoFar: string[]); | ||
| prop<TProp extends KnownKeys<OnlyObject<T>> & keyof OnlyObject<T>>(prop: TProp): PropertyPathBuilder<Pick<OnlyObject<T>, TProp>[TProp]>; | ||
| /** | ||
| * Build the (deep) path to the property name | ||
| */ | ||
| build(): string; | ||
| /** | ||
| * Creates a new `PropertyPathBuilder` for type T | ||
| */ | ||
| static create<K>(): PropertyPathBuilder<K>; | ||
| toString(): string; | ||
| } | ||
| /** | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping | ||
@@ -39,0 +23,0 @@ */ |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/string-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,aAAK,UAAU,CAAC,CAAC,IAAI,OAAO,CAAC,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C,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;IAC5B,CAAC,MAAM,SAAS,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;IAC3F,CAAC,MAAM,SAAS,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,SAAS,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAC3E,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzD,MAAM,CAAC;CACX;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,KAAK,qBAAqB,CAAC,CAAC,CAAC,CAG1D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD"} |
@@ -1,4 +0,1 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.escapeRegExp = exports.escapeRegExpLiteral = exports.PropertyPathBuilder = exports.propertyPath = exports.normalizeWhitespaces = void 0; | ||
| /** | ||
@@ -8,6 +5,5 @@ * Consolidates multiple consecutive white spaces into a single space. | ||
| */ | ||
| function normalizeWhitespaces(str) { | ||
| export function normalizeWhitespaces(str) { | ||
| return str.replace(/\s+/g, ' ').trim(); | ||
| } | ||
| exports.normalizeWhitespaces = normalizeWhitespaces; | ||
| /** | ||
@@ -17,51 +13,18 @@ * Given a base type, allows type safe access to the name of a property. | ||
| */ | ||
| function propertyPath(prop) { | ||
| return String(prop); | ||
| export function propertyPath() { | ||
| const fn = ((...args) => args.join('.')); | ||
| return fn; | ||
| } | ||
| exports.propertyPath = propertyPath; | ||
| /** | ||
| * A helper class to allow you to get type safe access to the name of a deep property of `T` | ||
| * @example | ||
| * ```ts | ||
| * PropertyPathBuilder<StrykerOptions>('warnings').prop('unknownOptions').build() | ||
| * ``` | ||
| */ | ||
| class PropertyPathBuilder { | ||
| constructor(pathSoFar) { | ||
| this.pathSoFar = pathSoFar; | ||
| } | ||
| prop(prop) { | ||
| return new PropertyPathBuilder([...this.pathSoFar, prop.toString()]); | ||
| } | ||
| /** | ||
| * Build the (deep) path to the property name | ||
| */ | ||
| build() { | ||
| return this.pathSoFar.join('.'); | ||
| } | ||
| /** | ||
| * Creates a new `PropertyPathBuilder` for type T | ||
| */ | ||
| static create() { | ||
| return new PropertyPathBuilder([]); | ||
| } | ||
| toString() { | ||
| return this.build(); | ||
| } | ||
| } | ||
| exports.PropertyPathBuilder = PropertyPathBuilder; | ||
| /** | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping | ||
| */ | ||
| function escapeRegExpLiteral(input) { | ||
| export function escapeRegExpLiteral(input) { | ||
| return input.replace(/[.*+\-?^${}()|[\]\\/]/g, '\\$&'); // $& means the whole matched string | ||
| } | ||
| exports.escapeRegExpLiteral = escapeRegExpLiteral; | ||
| /** | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping | ||
| */ | ||
| function escapeRegExp(input) { | ||
| export function escapeRegExp(input) { | ||
| return input.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string | ||
| } | ||
| exports.escapeRegExp = escapeRegExp; | ||
| //# sourceMappingURL=string-utils.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../../src/string-utils.ts"],"names":[],"mappings":";;;AAKA;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,GAAW;IAC9C,O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GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AACzC,CAAC;AAYD;;;GAGG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,EAAE,GAA6B,CAAC,CAAC,GAAG,IAAc,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAwC,CAAC;IACpH,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,CAAC,oCAAoC;AAC9F,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,OAAO,KAAK,CAAC,OAAO,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC,CAAC,oCAAoC;AAC7F,CAAC"} |
@@ -1,12 +0,8 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.StrykerError = void 0; | ||
| const errors_1 = require("./errors"); | ||
| class StrykerError extends Error { | ||
| import { errorToString } from './errors.js'; | ||
| export class StrykerError extends Error { | ||
| constructor(message, innerError) { | ||
| super(`${message}${innerError ? `. Inner error: ${(0, errors_1.errorToString)(innerError)}` : ''}`); | ||
| super(`${message}${innerError ? `. Inner error: ${errorToString(innerError)}` : ''}`); | ||
| this.innerError = innerError; | ||
| } | ||
| } | ||
| exports.StrykerError = StrykerError; | ||
| //# sourceMappingURL=stryker-error.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"stryker-error.js","sourceRoot":"","sources":["../../src/stryker-error.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AAEzC,MAAa,YAAa,SAAQ,KAAK;IACrC,YAAY,OAAe,EAAkB,UAAoB;QAC/D,KAAK,CAAC,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,kBAAkB,IAAA,sBAAa,EAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAD3C,eAAU,GAAV,UAAU,CAAU;IAEjE,CAAC;CACF;AAJD,oCAIC"} | ||
| {"version":3,"file":"stryker-error.js","sourceRoot":"","sources":["../../src/stryker-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,OAAe,EAAkB,UAAoB;QAC/D,KAAK,CAAC,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,kBAAkB,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAD3C,eAAU,GAAV,UAAU,CAAU;IAEjE,CAAC;CACF"} |
+2
-7
@@ -1,8 +0,5 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.ExpirableTask = exports.Task = void 0; | ||
| /** | ||
| * Wraps a promise in a Task api for convenience. | ||
| */ | ||
| class Task { | ||
| export class Task { | ||
| constructor() { | ||
@@ -30,7 +27,6 @@ this._isCompleted = false; | ||
| } | ||
| exports.Task = Task; | ||
| /** | ||
| * A task that can expire after the given time. | ||
| */ | ||
| class ExpirableTask extends Task { | ||
| export class ExpirableTask extends Task { | ||
| constructor(timeoutMS) { | ||
@@ -56,4 +52,3 @@ super(); | ||
| } | ||
| exports.ExpirableTask = ExpirableTask; | ||
| ExpirableTask.TimeoutExpired = Symbol('TimeoutExpired'); | ||
| //# sourceMappingURL=task.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"task.js","sourceRoot":"","sources":["../../src/task.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,IAAI;IAMf;QAFQ,iBAAY,GAAG,KAAK,CAAC;QAiBtB,YAAO,GAAG,CAAC,MAA0B,EAAQ,EAAE;YACpD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;YACzB,IAAI,CAAC,SAAS,CAAC,M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MAAM,KAAK,GAAG,IAAI,OAAO,CAA0C,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC9E,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,CAAC;YACtE,OAAO;iBACJ,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;gBACf,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,GAAG,CAAC,MAAM,CAAC,CAAC;YACd,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACf,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,GAAG,CAAC,KAAK,CAAC,CAAC;YACb,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;;AArBsB,4BAAc,GAAkB,MAAM,CAAC,gBAAgB,CAAC,CAAC"} |
+6
-5
| { | ||
| "name": "@stryker-mutator/util", | ||
| "version": "5.6.1", | ||
| "version": "6.0.0-beta.0", | ||
| "description": "Contains utilities for Stryker, the mutation testing framework for JavaScript and friends", | ||
| "main": "dist/src/index.js", | ||
| "type": "module", | ||
| "scripts": { | ||
| "test": "nyc npm run test:all", | ||
| "test": "c8 npm run test:all", | ||
| "test:all": "npm run test:unit && npm run test:integration", | ||
| "test:unit": "mocha \"dist/test/unit/**/*.js\"", | ||
| "test:integration": "mocha \"dist/test/integration/**/*.js\"", | ||
| "stryker": "node ../core/bin/stryker run" | ||
| "stryker": "node ../core/bin/stryker.js run" | ||
| }, | ||
@@ -32,3 +33,3 @@ "repository": { | ||
| "devDependencies": { | ||
| "@stryker-mutator/test-helpers": "5.6.1", | ||
| "@stryker-mutator/test-helpers": "6.0.0-beta.0", | ||
| "@types/lodash.flatmap": "~4.5.6", | ||
@@ -40,3 +41,3 @@ "@types/node": "^17.0.0" | ||
| }, | ||
| "gitHead": "4eb804dd016fc1d1637a77a9b9a26c5a03ff2a6b" | ||
| "gitHead": "f0d58792aed18aa58f41c67668bfabcc66bdd302" | ||
| } |
+2
-0
@@ -12,1 +12,3 @@ [](https://dashboard.stryker-mutator.io/reports/github.com/stryker-mutator/stryker-js/master?module=util) | ||
| Utility functions for StrykerJS plugins and/or core packages. | ||
| Note: this is not designed to be for use outside of the StrykerJS ecosystem and thus does **NOT follow strict semver**. Use at your own risk. |
@@ -0,6 +1,9 @@ | ||
| import { createRequire } from 'module'; | ||
| import path from 'path'; | ||
| import { notEmpty } from './not-empty'; | ||
| import { caseSensitiveFs } from './platform'; | ||
| import { notEmpty } from './not-empty.js'; | ||
| import { platform } from './platform.js'; | ||
| const require = createRequire(import.meta.url); | ||
| /** | ||
@@ -28,3 +31,3 @@ * A helper class that can be used by test runners. | ||
| const startsWithCaseSensitive = (filename: string, prefix: string) => filename.startsWith(prefix); | ||
| const startsWith = caseSensitiveFs() ? startsWithCaseSensitive : startsWithCaseInsensitive; | ||
| const startsWith = platform.caseSensitiveFs() ? startsWithCaseSensitive : startsWithCaseInsensitive; | ||
| Object.keys(require.cache) | ||
@@ -31,0 +34,0 @@ .filter((fileName) => startsWith(fileName, `${cwd}${path.sep}`) && !startsWith(fileName, path.join(cwd, 'node_modules'))) |
@@ -1,2 +0,2 @@ | ||
| import { notEmpty } from './not-empty'; | ||
| import { notEmpty } from './not-empty.js'; | ||
@@ -3,0 +3,0 @@ export interface UnserializableDescription { |
+16
-16
@@ -1,16 +0,16 @@ | ||
| export { childProcessAsPromised } from './child-process-as-promised'; | ||
| export { StrykerError } from './stryker-error'; | ||
| export * from './errors'; | ||
| export * from './immutable'; | ||
| export * from './known-keys'; | ||
| export * from './string-utils'; | ||
| export * from './noop-logger'; | ||
| export * from './not-empty'; | ||
| export * from './flat-map'; | ||
| export * from './i'; | ||
| export * from './task'; | ||
| export * from './directory-require-cache'; | ||
| export * from './require-resolve'; | ||
| export * from './deep-merge'; | ||
| export * from './find-unserializables'; | ||
| export * from './platform'; | ||
| export { childProcessAsPromised } from './child-process-as-promised.js'; | ||
| export { StrykerError } from './stryker-error.js'; | ||
| export * from './errors.js'; | ||
| export * from './immutable.js'; | ||
| export * from './known-keys.js'; | ||
| export * from './string-utils.js'; | ||
| export * from './noop-logger.js'; | ||
| export * from './not-empty.js'; | ||
| export * from './flat-map.js'; | ||
| export * from './i.js'; | ||
| export * from './task.js'; | ||
| export * from './directory-require-cache.js'; | ||
| export * from './require-resolve.js'; | ||
| export * from './deep-merge.js'; | ||
| export * from './find-unserializables.js'; | ||
| export * from './platform.js'; |
+10
-8
@@ -1,8 +0,10 @@ | ||
| /** | ||
| * Tells whether the filesystem is case sensitive. | ||
| * | ||
| * @returns false on Win32, true elsewhere | ||
| */ | ||
| export function caseSensitiveFs(): boolean { | ||
| return process.platform != 'win32'; | ||
| } | ||
| export const platform = { | ||
| /** | ||
| * Tells whether the filesystem is case sensitive. | ||
| * | ||
| * @returns false on Win32, true elsewhere | ||
| */ | ||
| caseSensitiveFs(): boolean { | ||
| return process.platform != 'win32'; | ||
| }, | ||
| }; |
@@ -0,1 +1,3 @@ | ||
| import { createRequire } from 'module'; | ||
| /** | ||
@@ -6,4 +8,4 @@ * Require a module from the current working directory (or a different base dir) | ||
| export function requireResolve(id: string, from = process.cwd()): unknown { | ||
| // eslint-disable-next-line @typescript-eslint/no-require-imports | ||
| const require = createRequire(import.meta.url); | ||
| return require(require.resolve(id, { paths: [from] })); | ||
| } |
+13
-35
@@ -14,2 +14,12 @@ import { KnownKeys } from './known-keys'; | ||
| export interface PropertyPathOverloads<T> { | ||
| (key: KnownKeys<T>): string; | ||
| <TProp1 extends KnownKeys<T>>(key: TProp1, key2: KnownKeys<OnlyObject<T[TProp1]>>): string; | ||
| <TProp1 extends KnownKeys<T>, TProp2 extends KnownKeys<OnlyObject<T[TProp1]>>>( | ||
| key: TProp1, | ||
| key2: TProp2, | ||
| key3: KnownKeys<OnlyObject<OnlyObject<T[TProp1]>[TProp2]>> | ||
| ): string; | ||
| } | ||
| /** | ||
@@ -19,40 +29,8 @@ * Given a base type, allows type safe access to the name of a property. | ||
| */ | ||
| export function propertyPath<T>(prop: KnownKeys<T>): string { | ||
| return String(prop); | ||
| export function propertyPath<T>(): PropertyPathOverloads<T> { | ||
| const fn: PropertyPathOverloads<T> = ((...args: string[]) => args.join('.')) as unknown as PropertyPathOverloads<T>; | ||
| return fn; | ||
| } | ||
| /** | ||
| * A helper class to allow you to get type safe access to the name of a deep property of `T` | ||
| * @example | ||
| * ```ts | ||
| * PropertyPathBuilder<StrykerOptions>('warnings').prop('unknownOptions').build() | ||
| * ``` | ||
| */ | ||
| export class PropertyPathBuilder<T> { | ||
| constructor(private readonly pathSoFar: string[]) {} | ||
| public prop<TProp extends KnownKeys<OnlyObject<T>> & keyof OnlyObject<T>>(prop: TProp): PropertyPathBuilder<Pick<OnlyObject<T>, TProp>[TProp]> { | ||
| return new PropertyPathBuilder<Pick<OnlyObject<T>, TProp>[TProp]>([...this.pathSoFar, prop.toString()]); | ||
| } | ||
| /** | ||
| * Build the (deep) path to the property name | ||
| */ | ||
| public build(): string { | ||
| return this.pathSoFar.join('.'); | ||
| } | ||
| /** | ||
| * Creates a new `PropertyPathBuilder` for type T | ||
| */ | ||
| public static create<K>(): PropertyPathBuilder<K> { | ||
| return new PropertyPathBuilder<K>([]); | ||
| } | ||
| public toString(): string { | ||
| return this.build(); | ||
| } | ||
| } | ||
| /** | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping | ||
@@ -59,0 +37,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
| import { errorToString } from './errors'; | ||
| import { errorToString } from './errors.js'; | ||
@@ -3,0 +3,0 @@ export class StrykerError extends Error { |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
13
8.33%Yes
NaN83606
-3%921
-11.36%1
Infinity%6
200%