@wrongstack/tools 0.6.6 → 0.7.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/index.js CHANGED
@@ -1341,10 +1341,11 @@ var bashTool = {
1341
1341
  child.kill("SIGKILL");
1342
1342
  }
1343
1343
  } catch {
1344
+ } finally {
1345
+ killTimer.unref?.();
1344
1346
  }
1345
1347
  }, 2e3);
1346
1348
  timers.push(killTimer);
1347
- killTimer.unref?.();
1348
1349
  } catch {
1349
1350
  }
1350
1351
  }
@@ -3823,16 +3824,15 @@ function runOutdated(manager, args, cwd, signal) {
3823
3824
  const result = parseOutdatedOutput(stdout, code ?? 0);
3824
3825
  resolve5(result);
3825
3826
  });
3826
- child.on(
3827
- "error",
3828
- (e) => resolve5({
3827
+ child.on("error", (e) => {
3828
+ resolve5({
3829
3829
  exit_code: 1,
3830
3830
  packages: [],
3831
3831
  total: 0,
3832
3832
  output: e.message,
3833
3833
  truncated: false
3834
- })
3835
- );
3834
+ });
3835
+ });
3836
3836
  });
3837
3837
  }
3838
3838
  function parseOutdatedOutput(json, exitCode) {
@@ -3971,16 +3971,15 @@ async function dockerLogs(service, lines, filterRe, cwd, signal, since) {
3971
3971
  stream_mode: false
3972
3972
  });
3973
3973
  });
3974
- child.on(
3975
- "error",
3976
- (e) => resolve5({
3974
+ child.on("error", (e) => {
3975
+ resolve5({
3977
3976
  source: `docker:${service}`,
3978
3977
  entries: [],
3979
3978
  total: 0,
3980
3979
  truncated: false,
3981
3980
  stream_mode: false
3982
- })
3983
- );
3981
+ });
3982
+ });
3984
3983
  });
3985
3984
  }
3986
3985
  var MAX_TAIL_LINES = 1e5;