seaworthycode 1.2.9 → 1.2.11
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/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -782,7 +782,7 @@ var copy = {
|
|
|
782
782
|
"report.bySeverity": "By severity",
|
|
783
783
|
"report.tierWatermark": (licensedTo) => `\u2693 Pro \xB7 ${licensedTo}`,
|
|
784
784
|
"report.scanProgress.starting": (targetDir) => `\u2693 Scanning ${targetDir}...`,
|
|
785
|
-
"report.scanProgress.checking": (completed, total) => `\u2693
|
|
785
|
+
"report.scanProgress.checking": (completed, total, checkName) => `\u2693 Running checks... [${completed}/${total}] ${checkName}`,
|
|
786
786
|
"report.scanProgress.category": (label, count) => count > 0 ? ` \u2693 ${label} \u2014 ${count} issue(s)` : ` \u2693 ${label} \u2713`,
|
|
787
787
|
"report.licenseNotice": (licensedTo) => `Licensed to ${licensedTo}`,
|
|
788
788
|
"report.cta.clean": `\u2713 All clear \u2014 your project is shipshape!`,
|
|
@@ -1637,7 +1637,7 @@ var ScanRunner = class {
|
|
|
1637
1637
|
} catch (err) {
|
|
1638
1638
|
console.error(`Check "${check2.id}" failed: ${String(err)}`);
|
|
1639
1639
|
}
|
|
1640
|
-
options.onCheckComplete?.(++completedCount, checks.length);
|
|
1640
|
+
options.onCheckComplete?.(++completedCount, checks.length, check2.name);
|
|
1641
1641
|
if (options.onCategoryComplete) {
|
|
1642
1642
|
const catDone = (categoryCompleted.get(check2.category) ?? 0) + 1;
|
|
1643
1643
|
categoryCompleted.set(check2.category, catDone);
|
|
@@ -16088,10 +16088,10 @@ async function executeScan(args, ctx) {
|
|
|
16088
16088
|
debug: args.debug,
|
|
16089
16089
|
baseline: args.baseline,
|
|
16090
16090
|
minConfidence: args.minConfidence,
|
|
16091
|
-
onCheckComplete: (completed, total) => {
|
|
16091
|
+
onCheckComplete: (completed, total, checkName) => {
|
|
16092
16092
|
heartbeat();
|
|
16093
16093
|
if (showProgress) {
|
|
16094
|
-
process.stderr.write(`\r${getCopy("report.scanProgress.checking", completed, total)}\x1B[K`);
|
|
16094
|
+
process.stderr.write(`\r${getCopy("report.scanProgress.checking", completed, total, checkName)}\x1B[K`);
|
|
16095
16095
|
}
|
|
16096
16096
|
},
|
|
16097
16097
|
onCategoryComplete: showProgress ? (category, count) => {
|
|
@@ -16106,7 +16106,13 @@ async function executeScan(args, ctx) {
|
|
|
16106
16106
|
getCopy("errors.scan.timed_out", Math.round(checkIdleMs / 1e3))
|
|
16107
16107
|
);
|
|
16108
16108
|
heartbeat = hb;
|
|
16109
|
-
const
|
|
16109
|
+
const keepAlive = setInterval(() => heartbeat(), 3e4);
|
|
16110
|
+
let result;
|
|
16111
|
+
try {
|
|
16112
|
+
result = await timedScanPromise;
|
|
16113
|
+
} finally {
|
|
16114
|
+
clearInterval(keepAlive);
|
|
16115
|
+
}
|
|
16110
16116
|
const reportInput = {
|
|
16111
16117
|
findings: result.findings,
|
|
16112
16118
|
targetDir: args.targetDir,
|