paratix 0.15.0 → 0.15.1

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.
@@ -10604,12 +10604,17 @@ function parseApkVersion(out, packageName) {
10604
10604
  async function getInstalledVersion(ssh2, pm, packageName) {
10605
10605
  const quoted = shellQuote(packageName);
10606
10606
  if (pm === "apk") {
10607
- const raw = await ssh2.output(`apk version -v ${quoted}`);
10608
- return parseApkVersion(raw.trim(), packageName);
10607
+ const apkResult = await ssh2.exec(`apk version -v ${quoted}`, VERSION_EXEC_OPTS);
10608
+ if (apkResult.code !== 0) return null;
10609
+ return parseApkVersion(apkResult.stdout.trim(), packageName);
10609
10610
  }
10610
10611
  if (pm === "apt") {
10611
- const raw = await ssh2.output(`dpkg-query -W -f='\${Version}' ${quoted} 2>/dev/null`);
10612
- const aptVersion = raw.trim();
10612
+ const aptResult = await ssh2.exec(
10613
+ `dpkg-query -W -f='\${Version}' ${quoted} 2>/dev/null`,
10614
+ VERSION_EXEC_OPTS
10615
+ );
10616
+ if (aptResult.code !== 0) return null;
10617
+ const aptVersion = aptResult.stdout.trim();
10613
10618
  return aptVersion.length > 0 ? aptVersion : null;
10614
10619
  }
10615
10620
  const result = await ssh2.exec(
package/dist/cli.js CHANGED
@@ -6262,7 +6262,7 @@ async function runApplyCommand(file, options, run = runPlaybook) {
6262
6262
  if (options.diff && !options.dryRun) {
6263
6263
  throw new CliUsageError("--diff requires --dry-run");
6264
6264
  }
6265
- printCliHeader("0.15.0-645d2fd");
6265
+ printCliHeader("0.15.1-0840e3c");
6266
6266
  const environmentOverrides = applyCliEnvironmentOverrides(options.env, {
6267
6267
  firstRun: options.firstRun
6268
6268
  });
@@ -6300,7 +6300,7 @@ function renderSubcommandOptionsHelp(command) {
6300
6300
  return ["", `Options for "paratix ${command.name()} <file>":`, ...rows].join("\n");
6301
6301
  }
6302
6302
  var program = new Command();
6303
- program.name("paratix").description("Idempotent VPS setup tool in TypeScript").version("0.15.0-645d2fd");
6303
+ program.name("paratix").description("Idempotent VPS setup tool in TypeScript").version("0.15.1-0840e3c");
6304
6304
  var applyCommand = program.command("apply <file>").description("Apply a server definition").option(
6305
6305
  "--diff",
6306
6306
  "When combined with --dry-run, show a unified diff per module that would change.",
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ import {
61
61
  user,
62
62
  validateHostLabel,
63
63
  validateSshConfig
64
- } from "./chunk-GB5QZWUM.js";
64
+ } from "./chunk-C5KXNY6R.js";
65
65
 
66
66
  // src/conditionalModules.ts
67
67
  function createConditionalApplyState(environment) {
@@ -27,7 +27,7 @@ import {
27
27
  timer,
28
28
  ufw,
29
29
  user
30
- } from "../chunk-GB5QZWUM.js";
30
+ } from "../chunk-C5KXNY6R.js";
31
31
  export {
32
32
  apt,
33
33
  archive,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paratix",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Idempotent VPS setup tool in TypeScript",
5
5
  "type": "module",
6
6
  "files": [