@digipair/engine 0.32.4 → 0.32.6

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
@@ -27374,7 +27374,8 @@ const applyTemplate = (value, context)=>{
27374
27374
  atob: (value)=>atob(value),
27375
27375
  btoa: (value)=>btoa(value),
27376
27376
  encodeURIComponent: (value)=>encodeURIComponent(value),
27377
- decodeURIComponent: (value)=>decodeURIComponent(value)
27377
+ decodeURIComponent: (value)=>decodeURIComponent(value),
27378
+ JSONparse: (value)=>JSON.parse(value)
27378
27379
  }));
27379
27380
  }
27380
27381
  } else if (typeof value === 'object' && Array.isArray(value)) {
@@ -27525,9 +27526,6 @@ const preparePinsSettings = async (settings, context)=>{
27525
27526
  variables: context.variables || {},
27526
27527
  conditions: context.conditions || {}
27527
27528
  });
27528
- for (const [key, value] of Object.entries(settings.variables || {})){
27529
- localContext.variables[key] = applyTemplate(value, localContext);
27530
- }
27531
27529
  const conditions = {};
27532
27530
  for (const [key, value] of Object.entries(settings.conditions || {})){
27533
27531
  conditions[key] = await applyTemplate(value, localContext);
package/index.esm.js CHANGED
@@ -23489,14 +23489,14 @@ function indent(str, spaces) {
23489
23489
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23490
23490
  // match is required
23491
23491
  if (!match) {
23492
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23492
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23493
23493
  v: nextMatch1
23494
23494
  };
23495
23495
  }
23496
23496
  var token = match.token, offset = match.offset;
23497
23497
  i1 += offset;
23498
23498
  if (token === " ") {
23499
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23499
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23500
23500
  }
23501
23501
  tokens1 = _to_consumable_array$1(tokens1).concat([
23502
23502
  token
@@ -23515,7 +23515,7 @@ function indent(str, spaces) {
23515
23515
  if (contextKeys.some(function(el) {
23516
23516
  return el.startsWith(name);
23517
23517
  })) {
23518
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23518
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23519
23519
  }
23520
23520
  if (dateTimeIdentifiers.some(function(el) {
23521
23521
  return el === name;
@@ -23534,9 +23534,9 @@ function indent(str, spaces) {
23534
23534
  if (dateTimeIdentifiers.some(function(el) {
23535
23535
  return el.startsWith(name);
23536
23536
  })) {
23537
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23537
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23538
23538
  }
23539
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23539
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23540
23540
  v: nextMatch1
23541
23541
  };
23542
23542
  };
@@ -27352,7 +27352,8 @@ const applyTemplate = (value, context)=>{
27352
27352
  atob: (value)=>atob(value),
27353
27353
  btoa: (value)=>btoa(value),
27354
27354
  encodeURIComponent: (value)=>encodeURIComponent(value),
27355
- decodeURIComponent: (value)=>decodeURIComponent(value)
27355
+ decodeURIComponent: (value)=>decodeURIComponent(value),
27356
+ JSONparse: (value)=>JSON.parse(value)
27356
27357
  }));
27357
27358
  }
27358
27359
  } else if (typeof value === 'object' && Array.isArray(value)) {
@@ -27503,9 +27504,6 @@ const preparePinsSettings = async (settings, context)=>{
27503
27504
  variables: context.variables || {},
27504
27505
  conditions: context.conditions || {}
27505
27506
  });
27506
- for (const [key, value] of Object.entries(settings.variables || {})){
27507
- localContext.variables[key] = applyTemplate(value, localContext);
27508
- }
27509
27507
  const conditions = {};
27510
27508
  for (const [key, value] of Object.entries(settings.conditions || {})){
27511
27509
  conditions[key] = await applyTemplate(value, localContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.32.4",
3
+ "version": "0.32.6",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",