dokku-compose 0.6.1 → 0.6.2

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -302,14 +302,16 @@ function parseReport(raw, namespace) {
302
302
  }
303
303
  return result;
304
304
  }
305
- function parseBulkReport(raw, namespace) {
305
+ function parseBulkReport(raw, namespace, headerNamespace) {
306
306
  const result = /* @__PURE__ */ new Map();
307
307
  const sections = raw.split(/(?=^=====> )/m).filter((s) => s.trim());
308
+ const nsPattern = (headerNamespace ?? namespace).replace(/-/g, "[\\s-]");
309
+ const headerRe = new RegExp(`^=====> (.+?)\\s+${nsPattern}\\s+information`, "i");
308
310
  for (const section of sections) {
309
311
  const headerEnd = section.indexOf("\n");
310
312
  if (headerEnd === -1) continue;
311
313
  const header = section.slice(0, headerEnd);
312
- const match = header.match(/^=====> (.+?)\s+\S+\s+information/);
314
+ const match = header.match(headerRe);
313
315
  if (!match) continue;
314
316
  const app = match[1];
315
317
  result.set(app, parseReport(section, namespace));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dokku-compose",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
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",