@wrongstack/tools 0.6.7 → 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
@@ -3824,16 +3824,15 @@ function runOutdated(manager, args, cwd, signal) {
3824
3824
  const result = parseOutdatedOutput(stdout, code ?? 0);
3825
3825
  resolve5(result);
3826
3826
  });
3827
- child.on(
3828
- "error",
3829
- (e) => resolve5({
3827
+ child.on("error", (e) => {
3828
+ resolve5({
3830
3829
  exit_code: 1,
3831
3830
  packages: [],
3832
3831
  total: 0,
3833
3832
  output: e.message,
3834
3833
  truncated: false
3835
- })
3836
- );
3834
+ });
3835
+ });
3837
3836
  });
3838
3837
  }
3839
3838
  function parseOutdatedOutput(json, exitCode) {
@@ -3972,16 +3971,15 @@ async function dockerLogs(service, lines, filterRe, cwd, signal, since) {
3972
3971
  stream_mode: false
3973
3972
  });
3974
3973
  });
3975
- child.on(
3976
- "error",
3977
- (e) => resolve5({
3974
+ child.on("error", (e) => {
3975
+ resolve5({
3978
3976
  source: `docker:${service}`,
3979
3977
  entries: [],
3980
3978
  total: 0,
3981
3979
  truncated: false,
3982
3980
  stream_mode: false
3983
- })
3984
- );
3981
+ });
3982
+ });
3985
3983
  });
3986
3984
  }
3987
3985
  var MAX_TAIL_LINES = 1e5;