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