paratix 0.12.3 → 0.12.5

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/cli.js CHANGED
@@ -2640,6 +2640,10 @@ function buildStreamListeners(parameters) {
2640
2640
  return {
2641
2641
  onClose() {
2642
2642
  if (prematureCloseMessage === void 0) return;
2643
+ if (writeStream.writableFinished) {
2644
+ getSettlement().resolveOnce();
2645
+ return;
2646
+ }
2643
2647
  readStream.destroy();
2644
2648
  if (typeof writeStream.destroy === "function") writeStream.destroy();
2645
2649
  getSettlement().rejectOnce(new Error(prematureCloseMessage));
@@ -2854,9 +2858,8 @@ async function sftpUploadContent(client, content, remotePath, timeout = SFTP_TIM
2854
2858
  return;
2855
2859
  }
2856
2860
  wireStreams({
2857
- completionEvents: ["finish"],
2861
+ completionEvents: ["finish", "close"],
2858
2862
  connectionAbortSignal,
2859
- prematureCloseMessage: `SFTP content upload closed before finish: ${maskedRemotePath}`,
2860
2863
  readStream: streams.readStream,
2861
2864
  reject,
2862
2865
  resolve: resolve2,
@@ -5519,7 +5522,7 @@ async function runApplyCommand(file, options, run = runPlaybook) {
5519
5522
  if (options.diff && !options.dryRun) {
5520
5523
  throw new CliUsageError("--diff requires --dry-run");
5521
5524
  }
5522
- printCliHeader("0.12.3-1965663");
5525
+ printCliHeader("0.12.5-d47e812");
5523
5526
  const environmentOverrides = applyCliEnvironmentOverrides(options.env, {
5524
5527
  firstRun: options.firstRun
5525
5528
  });
@@ -5548,7 +5551,7 @@ function exitAfterApplyError(error, verbose) {
5548
5551
  process.exit(exitCode);
5549
5552
  }
5550
5553
  var program = new Command();
5551
- program.name("paratix").description("Idempotent VPS setup tool in TypeScript").version("0.12.3-1965663");
5554
+ program.name("paratix").description("Idempotent VPS setup tool in TypeScript").version("0.12.5-d47e812");
5552
5555
  program.command("apply <file>").description("Apply a server definition").option(
5553
5556
  "--diff",
5554
5557
  "When combined with --dry-run, show a unified diff per module that would change.",