@systemfsoftware/stryker-js 3.0.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/LICENSE +3 -15
  3. package/README.md +69 -21
  4. package/dist/Plugins-sA_9VKus.d.mts +96 -0
  5. package/dist/builtin-reporters-wAuKFSsd.mjs +672 -0
  6. package/dist/builtin-reporters.d.mts +14 -0
  7. package/dist/builtin-reporters.mjs +2 -0
  8. package/dist/compiler-Bq9Nelu8.mjs +48406 -0
  9. package/dist/config.d.mts +11 -0
  10. package/dist/config.mjs +7 -0
  11. package/dist/dist-B3nT7z4G.mjs +5155 -0
  12. package/dist/execAsync-CfPZgJSD.mjs +10 -0
  13. package/dist/execAsync-DdCu5QLN.mjs +10 -0
  14. package/dist/getMachineId-bsd-C6bLIaiv.mjs +27 -0
  15. package/dist/getMachineId-bsd-CXSiHDga.mjs +27 -0
  16. package/dist/getMachineId-darwin-D3cIKeqx.mjs +24 -0
  17. package/dist/getMachineId-darwin-DPZ0kdKD.mjs +24 -0
  18. package/dist/getMachineId-linux-CQwLSlZk.mjs +20 -0
  19. package/dist/getMachineId-linux-Ci8OVJU0.mjs +20 -0
  20. package/dist/getMachineId-unsupported-PX0hnW6X.mjs +15 -0
  21. package/dist/getMachineId-unsupported-_ExL3Avl.mjs +15 -0
  22. package/dist/getMachineId-win-BCsS9pC_.mjs +26 -0
  23. package/dist/getMachineId-win-D9Tb0p7w.mjs +26 -0
  24. package/dist/index.d.mts +1009 -8
  25. package/dist/index.mjs +3 -9
  26. package/dist/main.mjs +104333 -0
  27. package/dist/merge-config-BrrNQWje.mjs +16 -0
  28. package/dist/mutation-test.cell-RmF-sBUm.d.mts +509 -0
  29. package/dist/output-mode-CfGHDpi5.d.mts +17 -0
  30. package/dist/parser.wasm32-wasi.wasm +0 -0
  31. package/dist/plugin-loader.d.mts +106 -0
  32. package/dist/plugin-loader.mjs +2 -0
  33. package/dist/plugin-worker-entry-DNu0SHO8.mjs +1413 -0
  34. package/dist/promises.d.mts +5 -0
  35. package/dist/promises.mjs +14 -0
  36. package/dist/rolldown-runtime-Dr7-SnC6.mjs +45 -0
  37. package/dist/src-Bzh7ykDp.mjs +4724 -0
  38. package/dist/stryker-config-BlfHxS7n.d.mts +14 -0
  39. package/dist/wasm-Dr7kZatW.mjs +13017 -0
  40. package/package.json +81 -38
  41. package/dist/Checker-A8o5B3Ub.d.mts +0 -40
  42. package/dist/Checker-Bq8NXD8d.mjs +0 -25
  43. package/dist/Checker.d.mts +0 -2
  44. package/dist/Checker.mjs +0 -2
  45. package/dist/Evaluator-CnAN8-pZ.d.mts +0 -19
  46. package/dist/Evaluator.d.mts +0 -3
  47. package/dist/Evaluator.mjs +0 -9
  48. package/dist/ExitClass.d.mts +0 -9
  49. package/dist/ExitClass.mjs +0 -59
  50. package/dist/ExitClass.schema-BmOIK5zT.d.mts +0 -18
  51. package/dist/Ignorer-BUY68FZQ.d.mts +0 -21
  52. package/dist/Ignorer.d.mts +0 -2
  53. package/dist/Ignorer.mjs +0 -7
  54. package/dist/Metrics.d.mts +0 -7
  55. package/dist/Metrics.mjs +0 -79
  56. package/dist/Metrics.schema-BaVd6rXs.d.mts +0 -50
  57. package/dist/Metrics.schema-DZdoc46X.mjs +0 -27
  58. package/dist/Module-DHKEMAFI.d.mts +0 -31
  59. package/dist/Module.d.mts +0 -2
  60. package/dist/Module.mjs +0 -16
  61. package/dist/Mutant-Ci25PsWA.d.mts +0 -351
  62. package/dist/Mutant.d.mts +0 -3
  63. package/dist/Mutant.mjs +0 -90
  64. package/dist/Mutant.schema-H3r0ho_R.mjs +0 -34
  65. package/dist/Plugin-BtItMchw.d.mts +0 -153
  66. package/dist/Plugin-DXFdJP1l.mjs +0 -105
  67. package/dist/Plugin.d.mts +0 -2
  68. package/dist/Plugin.mjs +0 -2
  69. package/dist/Report.d.mts +0 -2
  70. package/dist/Report.mjs +0 -98
  71. package/dist/Report.schema-_buHXdnZ.d.mts +0 -251
  72. package/dist/Reporter-BWTwlSJf.mjs +0 -25
  73. package/dist/Reporter-C7ysGxqX.d.mts +0 -16
  74. package/dist/Reporter.d.mts +0 -4
  75. package/dist/Reporter.mjs +0 -3
  76. package/dist/ReporterEvent.d.mts +0 -2
  77. package/dist/ReporterEvent.mjs +0 -57
  78. package/dist/ReporterEvent.schema-BhtyYCZo.d.mts +0 -189
  79. package/dist/Run-BUpNSmcM.d.mts +0 -172
  80. package/dist/Run.d.mts +0 -2
  81. package/dist/Run.mjs +0 -56
  82. package/dist/Run.schema-DZve3k2m.mjs +0 -138
  83. package/dist/Schema-4oCWQ0P0.d.mts +0 -158
  84. package/dist/Schema-CMKdWMUN.mjs +0 -244
  85. package/dist/Schema.d.mts +0 -2
  86. package/dist/Schema.mjs +0 -2
  87. package/dist/TestRunner.d.mts +0 -2
  88. package/dist/TestRunner.mjs +0 -57
  89. package/dist/TestRunner.schema-Dy0Wdro2.mjs +0 -119
  90. package/dist/output-file.d.mts +0 -8
  91. package/dist/output-file.mjs +0 -8
  92. package/dist/provided-options.d.mts +0 -16
  93. package/dist/provided-options.mjs +0 -1
  94. package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
@@ -0,0 +1,5 @@
1
+ import { t as MutationTestDone } from "./mutation-test.cell-RmF-sBUm.mjs";
2
+ import { PartialStrykerOptions } from "@systemfsoftware/stryker-js-plugin-interface";
3
+ //#region src/promises/index.d.ts
4
+ export declare const run: (options: PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Promise<MutationTestDone>;
5
+ //#endregion
@@ -0,0 +1,14 @@
1
+ import { t as strykerCell } from "./src-Bzh7ykDp.mjs";
2
+ import * as Layer from "effect/Layer";
3
+ import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
4
+ import * as NodePath from "@effect/platform-node-shared/NodePath";
5
+ import * as NodeStdio from "@effect/platform-node/NodeStdio";
6
+ import * as ManagedRuntime from "effect/ManagedRuntime";
7
+ //#region src/promises/index.ts
8
+ const runLayer = Layer.mergeAll(NodeFileSystem.layer, NodePath.layer, NodeStdio.layer);
9
+ const run = (options, targetMutatePatterns) => {
10
+ const runtime = ManagedRuntime.make(runLayer);
11
+ return runtime.runPromise(strykerCell(options, targetMutatePatterns)).then((done) => runtime.dispose().then(() => done), (cause) => runtime.dispose().then(() => Promise.reject(cause)));
12
+ };
13
+ //#endregion
14
+ export { run };
@@ -0,0 +1,45 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __esmMin = (fn, res, err) => () => {
10
+ if (err) throw err[0];
11
+ try {
12
+ return fn && (res = fn(fn = 0)), res;
13
+ } catch (e) {
14
+ throw err = [e], e;
15
+ }
16
+ };
17
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
18
+ var __exportAll = (all, no_symbols) => {
19
+ let target = {};
20
+ for (var name in all) __defProp(target, name, {
21
+ get: all[name],
22
+ enumerable: true
23
+ });
24
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
25
+ return target;
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
29
+ key = keys[i];
30
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
31
+ get: ((k) => from[k]).bind(null, key),
32
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
33
+ });
34
+ }
35
+ return to;
36
+ };
37
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
38
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
39
+ value: mod,
40
+ enumerable: true
41
+ }) : target, mod));
42
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
43
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
44
+ //#endregion
45
+ export { __require as a, __reExport as i, __esmMin as n, __toCommonJS as o, __exportAll as r, __toESM as s, __commonJSMin as t };