@settlemint/sdk-utils 2.3.2-pr91333fa5 → 2.3.2-pr93617a9a

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.
@@ -190,13 +190,10 @@ async function executeCommand(command, args, options) {
190
190
  }
191
191
  output.push(maskedData);
192
192
  });
193
- child.on("error", (err) => {
194
- process.stdin.unpipe(child.stdin);
195
- reject(new CommandError(err.message, "code" in err && typeof err.code === "number" ? err.code : 1, output));
196
- });
193
+ child.on("error", (err) => reject(new CommandError(err.message, "code" in err && typeof err.code === "number" ? err.code : 1, output)));
197
194
  child.on("close", (code) => {
198
- process.stdin.unpipe(child.stdin);
199
195
  if (code === 0 || code === null || code === 143) {
196
+ process.stdin.unpipe(child.stdin);
200
197
  resolve(output);
201
198
  return;
202
199
  }