@digipair/skill-web 0.32.3 → 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 +2 -4
- package/index.esm.js +2 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -27369,7 +27369,8 @@ const applyTemplate = (value, context)=>{
|
|
|
27369
27369
|
atob: (value)=>atob(value),
|
|
27370
27370
|
btoa: (value)=>btoa(value),
|
|
27371
27371
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
|
27372
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
|
27372
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27373
|
+
JSONparse: (value)=>JSON.parse(value)
|
|
27373
27374
|
}));
|
|
27374
27375
|
}
|
|
27375
27376
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
@@ -27460,9 +27461,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27460
27461
|
variables: context.variables || {},
|
|
27461
27462
|
conditions: context.conditions || {}
|
|
27462
27463
|
});
|
|
27463
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
27464
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
|
27465
|
-
}
|
|
27466
27464
|
const conditions = {};
|
|
27467
27465
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27468
27466
|
conditions[key] = await applyTemplate(value, localContext);
|
package/index.esm.js
CHANGED
|
@@ -27347,7 +27347,8 @@ const applyTemplate = (value, context)=>{
|
|
|
27347
27347
|
atob: (value)=>atob(value),
|
|
27348
27348
|
btoa: (value)=>btoa(value),
|
|
27349
27349
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
|
27350
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
|
27350
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27351
|
+
JSONparse: (value)=>JSON.parse(value)
|
|
27351
27352
|
}));
|
|
27352
27353
|
}
|
|
27353
27354
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
@@ -27438,9 +27439,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27438
27439
|
variables: context.variables || {},
|
|
27439
27440
|
conditions: context.conditions || {}
|
|
27440
27441
|
});
|
|
27441
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
27442
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
|
27443
|
-
}
|
|
27444
27442
|
const conditions = {};
|
|
27445
27443
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27446
27444
|
conditions[key] = await applyTemplate(value, localContext);
|