@digipair/skill-canvas 0.41.2 → 0.41.3
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.esm.js +10 -9
- package/package.json +1 -1
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
|
23494
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
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
|
23501
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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
|
23520
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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
|
23539
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23540
23540
|
}
|
23541
|
-
return
|
23541
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23542
23542
|
v: nextMatch1
|
23543
23543
|
};
|
23544
23544
|
};
|
@@ -27340,11 +27340,12 @@ const applyTemplate = (value, context)=>{
|
|
27340
27340
|
if (typeof value === 'string') {
|
27341
27341
|
if (result.startsWith('NOEVAL:')) {
|
27342
27342
|
result = value.substring(7);
|
27343
|
+
} else {
|
27344
|
+
const template = handlebars_min.exports.compile(value, {
|
27345
|
+
noEscape: true
|
27346
|
+
});
|
27347
|
+
result = template(context);
|
27343
27348
|
}
|
27344
|
-
const template = handlebars_min.exports.compile(value, {
|
27345
|
-
noEscape: true
|
27346
|
-
});
|
27347
|
-
result = template(context);
|
27348
27349
|
if (result.startsWith('EVALUATE:')) {
|
27349
27350
|
const path = result.replace(/^EVALUATE:/, '');
|
27350
27351
|
result = evaluate(path, _extends({}, context, {
|