dokku-compose 0.10.0 → 0.10.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -154,6 +154,7 @@ function createRunner(opts = {}) {
154
154
  const controlPath = opts.host ? path.join(os.tmpdir(), `dc-${createHash("sha1").update(opts.host).digest("hex").slice(0, 16)}.sock`) : null;
155
155
  const sshControlFlags = controlPath ? ["-o", "ControlMaster=auto", "-o", `ControlPath=${controlPath}`, "-o", "ControlPersist=60"] : [];
156
156
  function shellQuote(arg) {
157
+ if (/^[A-Za-z0-9_\-:.,/=@]+$/.test(arg)) return arg;
157
158
  return `'${arg.replace(/'/g, "'\\''")}'`;
158
159
  }
159
160
  async function execDokku(args) {
@@ -392,18 +393,21 @@ var Domains = {
392
393
  for (const d of added) await ctx.run("domains:add", target, d);
393
394
  }
394
395
  };
396
+ function parseDeployMounts(raw) {
397
+ return raw.split(/\s+/).filter((s) => s && s !== "-v");
398
+ }
395
399
  var Storage = {
396
400
  key: "storage",
397
401
  read: async (ctx, target) => {
398
- const raw = await ctx.query("storage:report", target, "--storage-mounts");
399
- return splitLines(raw);
402
+ const raw = await ctx.query("storage:report", target, "--storage-deploy-mounts");
403
+ return parseDeployMounts(raw);
400
404
  },
401
405
  readAll: async (ctx) => {
402
406
  const raw = await ctx.query("storage:report");
403
407
  const bulk = parseBulkReport(raw, "storage");
404
408
  const result = /* @__PURE__ */ new Map();
405
409
  for (const [app, report] of bulk) {
406
- result.set(app, report["mounts"] ? splitLines(report["mounts"]) : []);
410
+ result.set(app, report["deploy-mounts"] ? parseDeployMounts(report["deploy-mounts"]) : []);
407
411
  }
408
412
  return result;
409
413
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dokku-compose",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Docker Compose for Dokku — declare your entire server in a single YAML file.",
5
5
  "main": "dist/index.js",
6
6
  "exports": "./dist/index.js",