@digipair/engine 0.21.14 → 0.22.0
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 +10 -6
- package/index.esm.js +10 -6
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -23511,14 +23511,14 @@ function indent(str, spaces) {
|
|
23511
23511
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23512
23512
|
// match is required
|
23513
23513
|
if (!match) {
|
23514
|
-
return tokens = tokens1,
|
23514
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
23515
23515
|
v: nextMatch1
|
23516
23516
|
};
|
23517
23517
|
}
|
23518
23518
|
var token = match.token, offset = match.offset;
|
23519
23519
|
i1 += offset;
|
23520
23520
|
if (token === " ") {
|
23521
|
-
return tokens = tokens1,
|
23521
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23522
23522
|
}
|
23523
23523
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
23524
23524
|
token
|
@@ -23537,7 +23537,7 @@ function indent(str, spaces) {
|
|
23537
23537
|
if (contextKeys.some(function(el) {
|
23538
23538
|
return el.startsWith(name);
|
23539
23539
|
})) {
|
23540
|
-
return tokens = tokens1,
|
23540
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23541
23541
|
}
|
23542
23542
|
if (dateTimeIdentifiers.some(function(el) {
|
23543
23543
|
return el === name;
|
@@ -23556,9 +23556,9 @@ function indent(str, spaces) {
|
|
23556
23556
|
if (dateTimeIdentifiers.some(function(el) {
|
23557
23557
|
return el.startsWith(name);
|
23558
23558
|
})) {
|
23559
|
-
return tokens = tokens1,
|
23559
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23560
23560
|
}
|
23561
|
-
return tokens = tokens1,
|
23561
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
23562
23562
|
v: nextMatch1
|
23563
23563
|
};
|
23564
23564
|
};
|
@@ -27369,7 +27369,11 @@ const applyTemplate = (value, context)=>{
|
|
27369
27369
|
if (result.startsWith('EVALUATE:')) {
|
27370
27370
|
const path = result.replace(/^EVALUATE:/, '');
|
27371
27371
|
result = evaluate(path, _extends({}, context, {
|
27372
|
-
getTime: (time)=>new Date(time).getTime()
|
27372
|
+
getTime: (time)=>new Date(time).getTime(),
|
27373
|
+
atob: (value)=>atob(value),
|
27374
|
+
btoa: (value)=>btoa(value),
|
27375
|
+
encodeURIComponent: (value)=>encodeURIComponent(value),
|
27376
|
+
decodeURIComponent: (value)=>decodeURIComponent(value)
|
27373
27377
|
}));
|
27374
27378
|
}
|
27375
27379
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
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 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 i = i1,
|
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 i = i1,
|
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 i = i1,
|
23537
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23538
23538
|
}
|
23539
|
-
return i = i1,
|
23539
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23540
23540
|
v: nextMatch1
|
23541
23541
|
};
|
23542
23542
|
};
|
@@ -27347,7 +27347,11 @@ const applyTemplate = (value, context)=>{
|
|
27347
27347
|
if (result.startsWith('EVALUATE:')) {
|
27348
27348
|
const path = result.replace(/^EVALUATE:/, '');
|
27349
27349
|
result = evaluate(path, _extends({}, context, {
|
27350
|
-
getTime: (time)=>new Date(time).getTime()
|
27350
|
+
getTime: (time)=>new Date(time).getTime(),
|
27351
|
+
atob: (value)=>atob(value),
|
27352
|
+
btoa: (value)=>btoa(value),
|
27353
|
+
encodeURIComponent: (value)=>encodeURIComponent(value),
|
27354
|
+
decodeURIComponent: (value)=>decodeURIComponent(value)
|
27351
27355
|
}));
|
27352
27356
|
}
|
27353
27357
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|