@digipair/engine 0.41.1 → 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.cjs.js +8 -4
- package/index.esm.js +13 -9
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -8170,10 +8170,14 @@ const config = {
|
|
8170
8170
|
const applyTemplate = (value, context)=>{
|
8171
8171
|
let result = value;
|
8172
8172
|
if (typeof value === 'string') {
|
8173
|
-
|
8174
|
-
|
8175
|
-
}
|
8176
|
-
|
8173
|
+
if (result.startsWith('NOEVAL:')) {
|
8174
|
+
result = value.substring(7);
|
8175
|
+
} else {
|
8176
|
+
const template = handlebars_min.exports.compile(value, {
|
8177
|
+
noEscape: true
|
8178
|
+
});
|
8179
|
+
result = template(context);
|
8180
|
+
}
|
8177
8181
|
if (result.startsWith('EVALUATE:')) {
|
8178
8182
|
const path = result.replace(/^EVALUATE:/, '');
|
8179
8183
|
result = feelin.evaluate(path, _extends({}, context, {
|
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
|
23492
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
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
|
23499
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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
|
23518
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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
|
23537
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23538
23538
|
}
|
23539
|
-
return
|
23539
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
23540
23540
|
v: nextMatch1
|
23541
23541
|
};
|
23542
23542
|
};
|
@@ -27341,10 +27341,14 @@ const config = {
|
|
27341
27341
|
const applyTemplate = (value, context)=>{
|
27342
27342
|
let result = value;
|
27343
27343
|
if (typeof value === 'string') {
|
27344
|
-
|
27345
|
-
|
27346
|
-
}
|
27347
|
-
|
27344
|
+
if (result.startsWith('NOEVAL:')) {
|
27345
|
+
result = value.substring(7);
|
27346
|
+
} else {
|
27347
|
+
const template = handlebars_min.exports.compile(value, {
|
27348
|
+
noEscape: true
|
27349
|
+
});
|
27350
|
+
result = template(context);
|
27351
|
+
}
|
27348
27352
|
if (result.startsWith('EVALUATE:')) {
|
27349
27353
|
const path = result.replace(/^EVALUATE:/, '');
|
27350
27354
|
result = evaluate(path, _extends({}, context, {
|