@digipair/skill-web 0.84.7 → 0.84.11
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 +11 -12
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -23903,14 +23903,14 @@ function indent(str, spaces) {
|
|
|
23903
23903
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23904
23904
|
// match is required
|
|
23905
23905
|
if (!match) {
|
|
23906
|
-
return
|
|
23906
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23907
23907
|
v: nextMatch1
|
|
23908
23908
|
};
|
|
23909
23909
|
}
|
|
23910
23910
|
var token = match.token, offset = match.offset;
|
|
23911
23911
|
i1 += offset;
|
|
23912
23912
|
if (token === " ") {
|
|
23913
|
-
return
|
|
23913
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23914
23914
|
}
|
|
23915
23915
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23916
23916
|
token
|
|
@@ -23929,7 +23929,7 @@ function indent(str, spaces) {
|
|
|
23929
23929
|
if (contextKeys.some(function(el) {
|
|
23930
23930
|
return el.startsWith(name);
|
|
23931
23931
|
})) {
|
|
23932
|
-
return
|
|
23932
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23933
23933
|
}
|
|
23934
23934
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23935
23935
|
return el === name;
|
|
@@ -23948,9 +23948,9 @@ function indent(str, spaces) {
|
|
|
23948
23948
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23949
23949
|
return el.startsWith(name);
|
|
23950
23950
|
})) {
|
|
23951
|
-
return
|
|
23951
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23952
23952
|
}
|
|
23953
|
-
return
|
|
23953
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23954
23954
|
v: nextMatch1
|
|
23955
23955
|
};
|
|
23956
23956
|
};
|
|
@@ -27851,13 +27851,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27851
27851
|
if (typeof value === 'string') {
|
|
27852
27852
|
if (result.startsWith('NOEVAL:')) {
|
|
27853
27853
|
result = value.substring(7);
|
|
27854
|
-
} else {
|
|
27855
|
-
const template = handlebars_min.exports.compile(value, {
|
|
27856
|
-
noEscape: true
|
|
27857
|
-
});
|
|
27858
|
-
result = template(context);
|
|
27859
|
-
}
|
|
27860
|
-
if (result.startsWith('EVALUATE:')) {
|
|
27854
|
+
} else if (result.startsWith('EVALUATE:')) {
|
|
27861
27855
|
const path = result.replace(/^EVALUATE:/, '');
|
|
27862
27856
|
result = evaluate(path, _extends({}, context, {
|
|
27863
27857
|
getTime: (time)=>new Date(time).getTime(),
|
|
@@ -27868,6 +27862,11 @@ const applyTemplate = (value, context)=>{
|
|
|
27868
27862
|
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27869
27863
|
JSONparse: (value)=>JSON.parse(value)
|
|
27870
27864
|
}));
|
|
27865
|
+
} else {
|
|
27866
|
+
const template = handlebars_min.exports.compile(value, {
|
|
27867
|
+
noEscape: true
|
|
27868
|
+
});
|
|
27869
|
+
result = template(context);
|
|
27871
27870
|
}
|
|
27872
27871
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
27873
27872
|
result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
|