@systemfsoftware/stryker-js 10.2.0 → 12.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.
- package/CHANGELOG.md +27 -0
- package/README.md +27 -19
- package/dist/{Run.schema-Ba34IwAY.mjs → Run.schema-BxsyHwHr.mjs} +4560 -5743
- package/dist/{Run.schema-B-Pi3bCB.d.mts → Run.schema-D43Nx5kI.d.mts} +91 -19
- package/dist/RunEnvironment.service-pCzdC0Sy.d.mts +464 -0
- package/dist/config.d.mts +11 -15
- package/dist/config.mjs +1 -1
- package/dist/{dist-CjdAPjrJ.mjs → dist-DKhCurgc.mjs} +95 -1
- package/dist/events.d.mts +2 -2
- package/dist/events.mjs +2 -2
- package/dist/index-f-U3oZaJ.d.mts +4086 -0
- package/dist/index.d.mts +1086 -3321
- package/dist/index.mjs +116 -3
- package/dist/main.mjs +114818 -87283
- package/dist/merge-config-ByZJPeQZ.mjs +32 -0
- package/dist/promises.d.mts +4 -4
- package/dist/promises.mjs +6 -10
- package/dist/{rolldown-runtime-XITHOX9H.mjs → rolldown-runtime-8H4AJuhK.mjs} +1 -2
- package/dist/run-stages.cell-MyhsNxH2.mjs +8820 -0
- package/dist/stryker-config.schema-GS_4_5gX.d.mts +18 -0
- package/package.json +27 -47
- package/dist/compiler-BTpMWGqK.mjs +0 -48955
- package/dist/compiler-CEwQzMxZ.mjs +0 -48955
- package/dist/dist-Cpq7Esc3.mjs +0 -17404
- package/dist/dist-Dmv1WEP8.mjs +0 -5337
- package/dist/dist-DsmXFb2_.mjs +0 -17404
- package/dist/index-tt2EziOT.d.mts +0 -1216
- package/dist/merge-config-CHZWyvVQ.mjs +0 -19
- package/dist/mutation-test.cell-Dq23b2NP.d.mts +0 -1758
- package/dist/output-mode-CfGHDpi5.d.mts +0 -17
- package/dist/sourcemap-codec-qFD3eFBj.mjs +0 -186
- package/dist/src-CcqEZJIY.mjs +0 -6559
package/dist/config.d.mts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
//#region src/config/stryker-config.d.ts
|
|
4
|
-
interface ConfigEnv {
|
|
5
|
-
readonly command: 'run' | 'merge-reports';
|
|
6
|
-
readonly isDryRun: boolean;
|
|
7
|
-
readonly mode: OutputMode;
|
|
8
|
-
readonly isCi: boolean;
|
|
9
|
-
}
|
|
10
|
-
type StrykerConfig = PartialStrykerOptions;
|
|
11
|
-
type StrykerConfigFn = (env: ConfigEnv) => StrykerConfig | Promise<StrykerConfig>;
|
|
12
|
-
type StrykerConfigExport = StrykerConfig | Promise<StrykerConfig> | StrykerConfigFn;
|
|
13
|
-
//#endregion
|
|
1
|
+
import { n as mod_d_exports$2 } from "./index-f-U3oZaJ.mjs";
|
|
2
|
+
import { a as StrykerConfig, i as Primitive, n as Immutable, o as StrykerConfigExport, r as ImmutablePrimitive, s as StrykerConfigFn, t as ConfigEnv } from "./stryker-config.schema-GS_4_5gX.mjs";
|
|
14
3
|
//#region src/config/define-config.d.ts
|
|
15
4
|
export declare function defineConfig(config: StrykerConfig): StrykerConfig;
|
|
16
5
|
export declare function defineConfig(config: Promise<StrykerConfig>): Promise<StrykerConfig>;
|
|
@@ -18,6 +7,13 @@ export declare function defineConfig(config: StrykerConfigFn): StrykerConfigFn;
|
|
|
18
7
|
export declare function defineConfig(config: StrykerConfigExport): StrykerConfigExport;
|
|
19
8
|
//#endregion
|
|
20
9
|
//#region src/config/merge-config.d.ts
|
|
21
|
-
export declare const mergeConfig:
|
|
10
|
+
export declare const mergeConfig: {
|
|
11
|
+
(overrides: StrykerConfig): (defaults: StrykerConfig) => StrykerConfig;
|
|
12
|
+
(defaults: StrykerConfig, overrides: StrykerConfig): StrykerConfig;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/config/mod.d.ts
|
|
16
|
+
export type PartialStrykerOptions = mod_d_exports$2.PartialStrykerOptions;
|
|
17
|
+
export type StrykerOptions = mod_d_exports$2.StrykerOptions;
|
|
22
18
|
//#endregion
|
|
23
|
-
export type { ConfigEnv,
|
|
19
|
+
export type { ConfigEnv, Immutable, ImmutablePrimitive, Primitive, StrykerConfig, StrykerConfigExport, StrykerConfigFn };
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.6.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
2
|
+
var comma = ",".charCodeAt(0);
|
|
3
|
+
var semicolon = ";".charCodeAt(0);
|
|
4
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
5
|
+
var intToChar$1 = /* @__PURE__ */ new Uint8Array(64);
|
|
6
|
+
var charToInt = /* @__PURE__ */ new Uint8Array(128);
|
|
7
|
+
for (let i = 0; i < chars.length; i++) {
|
|
8
|
+
const c = chars.charCodeAt(i);
|
|
9
|
+
intToChar$1[i] = c;
|
|
10
|
+
charToInt[c] = i;
|
|
11
|
+
}
|
|
12
|
+
function encodeInteger(builder, num) {
|
|
13
|
+
do {
|
|
14
|
+
let clamped = num & 31;
|
|
15
|
+
num >>>= 5;
|
|
16
|
+
if (num > 0) clamped |= 32;
|
|
17
|
+
builder.write(intToChar$1[clamped]);
|
|
18
|
+
} while (num > 0);
|
|
19
|
+
}
|
|
20
|
+
function encodeSign(num) {
|
|
21
|
+
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
22
|
+
}
|
|
23
|
+
var bufLength = 16384;
|
|
24
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
|
25
|
+
return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
|
|
26
|
+
} } : { decode(buf) {
|
|
27
|
+
let out = "";
|
|
28
|
+
for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
|
|
29
|
+
return out;
|
|
30
|
+
} };
|
|
31
|
+
var StringWriter = class {
|
|
32
|
+
constructor() {
|
|
33
|
+
this.pos = 0;
|
|
34
|
+
this.out = "";
|
|
35
|
+
this.buffer = new Uint8Array(bufLength);
|
|
36
|
+
}
|
|
37
|
+
write(v) {
|
|
38
|
+
const { buffer } = this;
|
|
39
|
+
buffer[this.pos++] = v;
|
|
40
|
+
if (this.pos === bufLength) {
|
|
41
|
+
this.out += td.decode(buffer);
|
|
42
|
+
this.pos = 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
flush() {
|
|
46
|
+
const { buffer, out, pos } = this;
|
|
47
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
function encodeRangeMappings(decoded) {
|
|
51
|
+
if (decoded.length === 0) return "";
|
|
52
|
+
const writer = new StringWriter();
|
|
53
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
54
|
+
const indices = decoded[i];
|
|
55
|
+
if (i > 0) writer.write(semicolon);
|
|
56
|
+
let index = 0;
|
|
57
|
+
for (let j = 0; j < indices.length; j++) {
|
|
58
|
+
const offset = indices[j];
|
|
59
|
+
encodeInteger(writer, offset - index);
|
|
60
|
+
index = offset;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return writer.flush();
|
|
64
|
+
}
|
|
65
|
+
function encode(decoded) {
|
|
66
|
+
const writer = new StringWriter();
|
|
67
|
+
let sourcesIndex = 0;
|
|
68
|
+
let sourceLine = 0;
|
|
69
|
+
let sourceColumn = 0;
|
|
70
|
+
let namesIndex = 0;
|
|
71
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
72
|
+
const line = decoded[i];
|
|
73
|
+
if (i > 0) writer.write(semicolon);
|
|
74
|
+
if (line.length === 0) continue;
|
|
75
|
+
let genColumn = 0;
|
|
76
|
+
for (let j = 0; j < line.length; j++) {
|
|
77
|
+
const segment = line[j];
|
|
78
|
+
if (j > 0) writer.write(comma);
|
|
79
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
80
|
+
genColumn = segment[0];
|
|
81
|
+
if (segment.length === 1) continue;
|
|
82
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
83
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
84
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
85
|
+
sourcesIndex = segment[1];
|
|
86
|
+
sourceLine = segment[2];
|
|
87
|
+
sourceColumn = segment[3];
|
|
88
|
+
if (segment.length === 4) continue;
|
|
89
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
90
|
+
namesIndex = segment[4];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return writer.flush();
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
2
96
|
//#region ../../node_modules/.pnpm/magic-string@1.4.1/node_modules/magic-string/dist/index.mjs
|
|
3
97
|
var BitSet = class BitSet {
|
|
4
98
|
constructor(arg) {
|
package/dist/events.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
export { Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, StageError, type VerdictCounts, type VerdictMutant, VerdictReached, type VerdictThresholds };
|
|
1
|
+
import { A as VerdictReached, C as RunReadError, D as SkippedReported, E as SkippedFileRow, O as VerdictCounts, S as RunPhase, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, d as MutationRunPlan, f as OutputMode, g as PluginFailureReason, h as PlanMutationRunCommand, i as FormatRegistryResolved, j as VerdictThresholds, k as VerdictMutant, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, t as PrepareError, u as ModeSignal, v as RunDecodeError, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-D43Nx5kI.mjs";
|
|
2
|
+
export { FormatClaimShadowingRow, FormatRegistryResolved, FormatRegistryRow, FrameworkContributionRow, FrameworkModuleRow, Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PluginFailureReason, PluginsReported, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, SkippedFileRow, SkippedReported, StageError, type VerdictCounts, type VerdictMutant, VerdictReached, type VerdictThresholds };
|
package/dist/events.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, StageError, VerdictReached };
|
|
1
|
+
import { C as RunReadError, D as VerdictReached, E as SkippedReported, S as RunPhase, T as SkippedFileRow, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, d as MutationRunPlan, f as OutputMode, g as PluginFailureReason, h as PlanMutationRunCommand, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, t as PrepareError, u as ModeSignal, v as RunDecodeError, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-BxsyHwHr.mjs";
|
|
2
|
+
export { FormatClaimShadowingRow, FormatRegistryResolved, FormatRegistryRow, FrameworkContributionRow, FrameworkModuleRow, Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PluginFailureReason, PluginsReported, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, SkippedFileRow, SkippedReported, StageError, VerdictReached };
|