oxmutate 2.5.0 → 2.5.1
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.
|
Binary file
|
package/dist/quiescence.js
CHANGED
|
@@ -126,7 +126,7 @@ export function takeFloor() {
|
|
|
126
126
|
export function confirmStep(o) {
|
|
127
127
|
if (!o.quiet)
|
|
128
128
|
return { quietSince: undefined };
|
|
129
|
-
const since = o.quietSince ?? o.now - o.span;
|
|
129
|
+
const since = o.quietSince ?? Math.max(o.now - o.span, o.start ?? -Infinity);
|
|
130
130
|
const open = o.now - since;
|
|
131
131
|
return open >= o.confirmMs ? { quietSince: since, deadlockMs: open } : { quietSince: since };
|
|
132
132
|
}
|
|
@@ -156,7 +156,7 @@ export function watch() {
|
|
|
156
156
|
};
|
|
157
157
|
if (env['OXMUTATE_DEBUG_QUIET'])
|
|
158
158
|
stderr.write(`quiet? ${JSON.stringify(reading)} res=${JSON.stringify([...resources()])} floor=${JSON.stringify([...floor])}\n`);
|
|
159
|
-
const next = confirmStep({ quietSince, quiet: quiet(reading), now, span, confirmMs: armed.confirmMs });
|
|
159
|
+
const next = confirmStep({ quietSince, quiet: quiet(reading), now, span, confirmMs: armed.confirmMs, start: armed.start });
|
|
160
160
|
quietSince = next.quietSince;
|
|
161
161
|
if (next.deadlockMs !== undefined) {
|
|
162
162
|
const { reject } = armed;
|
|
@@ -172,7 +172,7 @@ export function watch() {
|
|
|
172
172
|
return pending;
|
|
173
173
|
const deadlock = new Promise((_, reject) => {
|
|
174
174
|
quietSince = undefined;
|
|
175
|
-
armed = { reject, confirmMs: Math.max(MIN_CONFIRM_MS, confirmMs) };
|
|
175
|
+
armed = { reject, confirmMs: Math.max(MIN_CONFIRM_MS, confirmMs), start: realNow() };
|
|
176
176
|
});
|
|
177
177
|
try {
|
|
178
178
|
return await Promise.race([pending, deadlock]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxmutate",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Mutation testing for JavaScript and TypeScript on the oxc engine, run warm inside the project's own Vitest, with CI lanes, SARIF and an agent surface. No dependency outside the burgee family. A Stryker migration path.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|