@graffy/link 0.15.19 → 0.15.21-alpha.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 (3) hide show
  1. package/index.cjs +2 -2
  2. package/index.mjs +2 -2
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -269,7 +269,7 @@ function prepareDef(def, vars) {
269
269
  return "$$" + key.slice(2).split(".").flatMap(getValue).join(".");
270
270
  }
271
271
  if (Array.isArray(key)) {
272
- return key.flatMap(replacePlaceholders);
272
+ return key.map(replacePlaceholders);
273
273
  }
274
274
  if (typeof key === "object" && key) {
275
275
  const result = {};
@@ -279,7 +279,7 @@ function prepareDef(def, vars) {
279
279
  }
280
280
  return getValue(key);
281
281
  }
282
- const ref = def.flatMap(replacePlaceholders);
282
+ const ref = def.map(replacePlaceholders);
283
283
  return ref;
284
284
  }
285
285
  const log = debug__default["default"]("graffy:link");
package/index.mjs CHANGED
@@ -264,7 +264,7 @@ function prepareDef(def, vars) {
264
264
  return "$$" + key.slice(2).split(".").flatMap(getValue).join(".");
265
265
  }
266
266
  if (Array.isArray(key)) {
267
- return key.flatMap(replacePlaceholders);
267
+ return key.map(replacePlaceholders);
268
268
  }
269
269
  if (typeof key === "object" && key) {
270
270
  const result = {};
@@ -274,7 +274,7 @@ function prepareDef(def, vars) {
274
274
  }
275
275
  return getValue(key);
276
276
  }
277
- const ref = def.flatMap(replacePlaceholders);
277
+ const ref = def.map(replacePlaceholders);
278
278
  return ref;
279
279
  }
280
280
  const log = debug("graffy:link");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graffy/link",
3
3
  "description": "Graffy module for constructing links using an intuitive, declarative notation.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.15.19",
5
+ "version": "0.15.21-alpha.1",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "@graffy/common": "0.15.19",
19
+ "@graffy/common": "0.15.21-alpha.1",
20
20
  "debug": "^4.3.3"
21
21
  }
22
22
  }