pmcf 6.54.6 → 6.54.8

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/package.json +3 -3
  2. package/src/base.mjs +9 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.54.6",
3
+ "version": "6.54.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -51,9 +51,9 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "aggregated-map": "^1.0.11",
54
- "content-entry-transform": "^1.7.6",
54
+ "content-entry-transform": "^1.7.7",
55
55
  "ip-utilties": "^3.13.1",
56
- "npm-pkgbuild": "^22.2.4",
56
+ "npm-pkgbuild": "^22.2.5",
57
57
  "pacc": "^11.13.2",
58
58
  "package-directory": "^8.2.0",
59
59
  "yaml": "^2.9.1"
package/src/base.mjs CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  } from "content-entry-transform";
7
7
  import { FileContentProvider } from "npm-pkgbuild";
8
8
  import {
9
+ asArray,
9
10
  parse,
10
11
  globals,
11
12
  extract,
@@ -19,7 +20,8 @@ import {
19
20
  default_attribute_writable
20
21
  } from "pacc";
21
22
  import { union } from "./utils.mjs";
22
- import { addType, core } from "pmcf";
23
+ import { addType } from "./type.mjs";
24
+ import { core } from "./core.mjs";
23
25
  import { owner_attribute, aliases_attribute } from "./common-attributes.mjs";
24
26
 
25
27
  /**
@@ -262,13 +264,16 @@ export class base extends core {
262
264
  return [
263
265
  createExpressionTransformer(
264
266
  e => e.isBlob,
265
- expression =>
266
- parse(expression, {
267
+ expression => {
268
+ const result = parse(expression, {
267
269
  root: this.root,
268
270
  current: this,
269
271
  valueFor: (name, at) =>
270
272
  typeof at?.value === "function" ? at.value(name) : globals[name]
271
- })
273
+ });
274
+
275
+ return typeof result === "string" ? result : asArray(result).join("");
276
+ }
272
277
  )
273
278
  ];
274
279
  }