@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/dist/config.d.mts CHANGED
@@ -1,16 +1,5 @@
1
- import { K as StrykerOptions, P as PartialStrykerOptions } from "./index-tt2EziOT.mjs";
2
- import { n as OutputMode } from "./output-mode-CfGHDpi5.mjs";
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: (defaults: StrykerConfig, overrides: StrykerConfig) => StrykerConfig;
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, PartialStrykerOptions, StrykerConfig, StrykerConfigExport, StrykerConfigFn, StrykerOptions };
19
+ export type { ConfigEnv, Immutable, ImmutablePrimitive, Primitive, StrykerConfig, StrykerConfigExport, StrykerConfigFn };
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as mergeConfig } from "./merge-config-CHZWyvVQ.mjs";
1
+ import { t as mergeConfig } from "./merge-config-ByZJPeQZ.mjs";
2
2
  //#region src/config/define-config.ts
3
3
  function defineConfig(config) {
4
4
  return config;
@@ -1,4 +1,98 @@
1
- import { n as encode, r as encodeRangeMappings } from "./sourcemap-codec-qFD3eFBj.mjs";
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 VerdictThresholds, _ as RunStarted, a as ModeSignal, b as VerdictMutant, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, x as VerdictReached, y as VerdictCounts } from "./Run.schema-B-Pi3bCB.mjs";
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 RunStarted, a as ModeSignal, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, v as VerdictReached } from "./Run.schema-Ba34IwAY.mjs";
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 };