seaworthycode 1.2.10 → 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 CHANGED
@@ -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 result = await timedScanPromise;
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,