@digipair/engine 0.0.12 → 0.1.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.
package/index.cjs.js CHANGED
@@ -12460,10 +12460,7 @@ const applyTemplate = (value, context)=>{
12460
12460
  result = jsonpath_min.exports.value(context, path);
12461
12461
  }
12462
12462
  } else if (typeof value === 'object' && Array.isArray(value)) {
12463
- result = [];
12464
- (value || []).forEach((attributeValue, key)=>{
12465
- result[key] = applyTemplate(attributeValue, context);
12466
- });
12463
+ result = value;
12467
12464
  } else if (typeof value === 'object') {
12468
12465
  result = {};
12469
12466
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/index.esm.js CHANGED
@@ -12438,10 +12438,7 @@ const applyTemplate = (value, context)=>{
12438
12438
  result = jsonpath_min.exports.value(context, path);
12439
12439
  }
12440
12440
  } else if (typeof value === 'object' && Array.isArray(value)) {
12441
- result = [];
12442
- (value || []).forEach((attributeValue, key)=>{
12443
- result[key] = applyTemplate(attributeValue, context);
12444
- });
12441
+ result = value;
12445
12442
  } else if (typeof value === 'object') {
12446
12443
  result = {};
12447
12444
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.0.12",
3
+ "version": "0.1.1",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"