next-issue 17.0.8 → 17.1.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.
package/dist/cli/switch-run.mjs
CHANGED
|
@@ -113,6 +113,9 @@ export function statusText(version, progress) {
|
|
|
113
113
|
lines.push(idleLine(progress));
|
|
114
114
|
}
|
|
115
115
|
lines.push(...progress.issues.map(issueLine));
|
|
116
|
+
if (progress.hunt === true) {
|
|
117
|
+
lines.push('hunting for bugs');
|
|
118
|
+
}
|
|
116
119
|
return `${lines.join('\n')}\n`;
|
|
117
120
|
}
|
|
118
121
|
function idleLine(progress) {
|
package/dist/shared/hunt.mjs
CHANGED
package/dist/shared/watch.mjs
CHANGED
|
@@ -86,8 +86,14 @@ async function watchPasses(failed, watch) {
|
|
|
86
86
|
await watch.passEnd(pass.reports);
|
|
87
87
|
step = 0;
|
|
88
88
|
}
|
|
89
|
-
if (pass.error !== undefined
|
|
90
|
-
|
|
89
|
+
if (pass.error !== undefined) {
|
|
90
|
+
if (!watching()) {
|
|
91
|
+
return { ...pass, reports };
|
|
92
|
+
}
|
|
93
|
+
watch.unreadable(pass.error);
|
|
94
|
+
}
|
|
95
|
+
if (pass.stoppedAt !== undefined) {
|
|
96
|
+
return { reports, stoppedAt: pass.stoppedAt };
|
|
91
97
|
}
|
|
92
98
|
if (watch.stop() || !watching()) {
|
|
93
99
|
return { reports };
|
package/dist/worker/progress.mjs
CHANGED
|
@@ -24,6 +24,13 @@ export function applyEvent(progress, record) {
|
|
|
24
24
|
const { nextLook: _nextLook, ...rest } = progress;
|
|
25
25
|
return { ...rest, looking: true };
|
|
26
26
|
}
|
|
27
|
+
if (kind === 'hunt.start') {
|
|
28
|
+
return { ...progress, hunt: true };
|
|
29
|
+
}
|
|
30
|
+
if (kind === 'hunt.end') {
|
|
31
|
+
const { hunt: _hunt, ...rest } = progress;
|
|
32
|
+
return rest;
|
|
33
|
+
}
|
|
27
34
|
const issue = record['issue'];
|
|
28
35
|
if (typeof kind !== 'string' || typeof issue !== 'number') {
|
|
29
36
|
return progress;
|
package/dist/worker/run.mjs
CHANGED
|
@@ -83,6 +83,7 @@ export function watchRun(args, loop, context, controls, print) {
|
|
|
83
83
|
return slept;
|
|
84
84
|
},
|
|
85
85
|
passEnd: (issues) => print({ ...recorder.summary(passStart), issues }),
|
|
86
|
+
unreadable: (error) => recorder.event('issues.unreadable', { error: message(error) }),
|
|
86
87
|
hunter: hunt,
|
|
87
88
|
hunting: controls.hunting ?? onOff(args.hunt),
|
|
88
89
|
watching: controls.watching,
|