@digipair/skill-canvas 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 +7 -9
- package/index.esm.js +7 -9
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -23513,14 +23513,14 @@ function indent(str, spaces) {
|
|
23513
23513
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23514
23514
|
// match is required
|
23515
23515
|
if (!match) {
|
23516
|
-
return i = i1,
|
23516
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23517
23517
|
v: nextMatch1
|
23518
23518
|
};
|
23519
23519
|
}
|
23520
23520
|
var token = match.token, offset = match.offset;
|
23521
23521
|
i1 += offset;
|
23522
23522
|
if (token === " ") {
|
23523
|
-
return i = i1,
|
23523
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23524
23524
|
}
|
23525
23525
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
23526
23526
|
token
|
@@ -23539,7 +23539,7 @@ function indent(str, spaces) {
|
|
23539
23539
|
if (contextKeys.some(function(el) {
|
23540
23540
|
return el.startsWith(name);
|
23541
23541
|
})) {
|
23542
|
-
return i = i1,
|
23542
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23543
23543
|
}
|
23544
23544
|
if (dateTimeIdentifiers.some(function(el) {
|
23545
23545
|
return el === name;
|
@@ -23558,9 +23558,9 @@ function indent(str, spaces) {
|
|
23558
23558
|
if (dateTimeIdentifiers.some(function(el) {
|
23559
23559
|
return el.startsWith(name);
|
23560
23560
|
})) {
|
23561
|
-
return i = i1,
|
23561
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23562
23562
|
}
|
23563
|
-
return i = i1,
|
23563
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23564
23564
|
v: nextMatch1
|
23565
23565
|
};
|
23566
23566
|
};
|
@@ -27371,7 +27371,8 @@ const applyTemplate = (value, context)=>{
|
|
27371
27371
|
atob: (value)=>atob(value),
|
27372
27372
|
btoa: (value)=>btoa(value),
|
27373
27373
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
27374
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
27374
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
27375
|
+
JSONparse: (value)=>JSON.parse(value)
|
27375
27376
|
}));
|
27376
27377
|
}
|
27377
27378
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
@@ -27462,9 +27463,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
27462
27463
|
variables: context.variables || {},
|
27463
27464
|
conditions: context.conditions || {}
|
27464
27465
|
});
|
27465
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
27466
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
27467
|
-
}
|
27468
27466
|
const conditions = {};
|
27469
27467
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
27470
27468
|
conditions[key] = await applyTemplate(value, localContext);
|
package/index.esm.js
CHANGED
@@ -23491,14 +23491,14 @@ function indent(str, spaces) {
|
|
23491
23491
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23492
23492
|
// match is required
|
23493
23493
|
if (!match) {
|
23494
|
-
return i = i1,
|
23494
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23495
23495
|
v: nextMatch1
|
23496
23496
|
};
|
23497
23497
|
}
|
23498
23498
|
var token = match.token, offset = match.offset;
|
23499
23499
|
i1 += offset;
|
23500
23500
|
if (token === " ") {
|
23501
|
-
return i = i1,
|
23501
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23502
23502
|
}
|
23503
23503
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
23504
23504
|
token
|
@@ -23517,7 +23517,7 @@ function indent(str, spaces) {
|
|
23517
23517
|
if (contextKeys.some(function(el) {
|
23518
23518
|
return el.startsWith(name);
|
23519
23519
|
})) {
|
23520
|
-
return i = i1,
|
23520
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23521
23521
|
}
|
23522
23522
|
if (dateTimeIdentifiers.some(function(el) {
|
23523
23523
|
return el === name;
|
@@ -23536,9 +23536,9 @@ function indent(str, spaces) {
|
|
23536
23536
|
if (dateTimeIdentifiers.some(function(el) {
|
23537
23537
|
return el.startsWith(name);
|
23538
23538
|
})) {
|
23539
|
-
return i = i1,
|
23539
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23540
23540
|
}
|
23541
|
-
return i = i1,
|
23541
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23542
23542
|
v: nextMatch1
|
23543
23543
|
};
|
23544
23544
|
};
|
@@ -27349,7 +27349,8 @@ const applyTemplate = (value, context)=>{
|
|
27349
27349
|
atob: (value)=>atob(value),
|
27350
27350
|
btoa: (value)=>btoa(value),
|
27351
27351
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
27352
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
27352
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
27353
|
+
JSONparse: (value)=>JSON.parse(value)
|
27353
27354
|
}));
|
27354
27355
|
}
|
27355
27356
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
@@ -27440,9 +27441,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
27440
27441
|
variables: context.variables || {},
|
27441
27442
|
conditions: context.conditions || {}
|
27442
27443
|
});
|
27443
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
27444
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
27445
|
-
}
|
27446
27444
|
const conditions = {};
|
27447
27445
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
27448
27446
|
conditions[key] = await applyTemplate(value, localContext);
|