@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/builtin.js CHANGED
@@ -2892,16 +2892,15 @@ async function dockerLogs(service, lines, filterRe, cwd, signal, since) {
2892
2892
  stream_mode: false
2893
2893
  });
2894
2894
  });
2895
- child.on(
2896
- "error",
2897
- (e) => resolve5({
2895
+ child.on("error", (e) => {
2896
+ resolve5({
2898
2897
  source: `docker:${service}`,
2899
2898
  entries: [],
2900
2899
  total: 0,
2901
2900
  truncated: false,
2902
2901
  stream_mode: false
2903
- })
2904
- );
2902
+ });
2903
+ });
2905
2904
  });
2906
2905
  }
2907
2906
  var MAX_TAIL_LINES = 1e5;
@@ -3042,16 +3041,15 @@ function runOutdated(manager, args, cwd, signal) {
3042
3041
  const result = parseOutdatedOutput(stdout, code ?? 0);
3043
3042
  resolve5(result);
3044
3043
  });
3045
- child.on(
3046
- "error",
3047
- (e) => resolve5({
3044
+ child.on("error", (e) => {
3045
+ resolve5({
3048
3046
  exit_code: 1,
3049
3047
  packages: [],
3050
3048
  total: 0,
3051
3049
  output: e.message,
3052
3050
  truncated: false
3053
- })
3054
- );
3051
+ });
3052
+ });
3055
3053
  });
3056
3054
  }
3057
3055
  function parseOutdatedOutput(json, exitCode) {