@digipair/skill-vespa 0.84.7 → 0.85.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.esm.js
CHANGED
@@ -72686,14 +72686,14 @@ function indent(str, spaces) {
|
|
72686
72686
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
72687
72687
|
// match is required
|
72688
72688
|
if (!match) {
|
72689
|
-
return i = i1,
|
72689
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
72690
72690
|
v: nextMatch1
|
72691
72691
|
};
|
72692
72692
|
}
|
72693
72693
|
var token = match.token, offset = match.offset;
|
72694
72694
|
i1 += offset;
|
72695
72695
|
if (token === " ") {
|
72696
|
-
return i = i1,
|
72696
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
72697
72697
|
}
|
72698
72698
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
72699
72699
|
token
|
@@ -72712,7 +72712,7 @@ function indent(str, spaces) {
|
|
72712
72712
|
if (contextKeys.some(function(el) {
|
72713
72713
|
return el.startsWith(name);
|
72714
72714
|
})) {
|
72715
|
-
return i = i1,
|
72715
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
72716
72716
|
}
|
72717
72717
|
if (dateTimeIdentifiers.some(function(el) {
|
72718
72718
|
return el === name;
|
@@ -72731,9 +72731,9 @@ function indent(str, spaces) {
|
|
72731
72731
|
if (dateTimeIdentifiers.some(function(el) {
|
72732
72732
|
return el.startsWith(name);
|
72733
72733
|
})) {
|
72734
|
-
return i = i1,
|
72734
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
72735
72735
|
}
|
72736
|
-
return i = i1,
|
72736
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
72737
72737
|
v: nextMatch1
|
72738
72738
|
};
|
72739
72739
|
};
|
@@ -76634,13 +76634,7 @@ const applyTemplate = (value, context)=>{
|
|
76634
76634
|
if (typeof value === 'string') {
|
76635
76635
|
if (result.startsWith('NOEVAL:')) {
|
76636
76636
|
result = value.substring(7);
|
76637
|
-
} else {
|
76638
|
-
const template = handlebars_min.exports.compile(value, {
|
76639
|
-
noEscape: true
|
76640
|
-
});
|
76641
|
-
result = template(context);
|
76642
|
-
}
|
76643
|
-
if (result.startsWith('EVALUATE:')) {
|
76637
|
+
} else if (result.startsWith('EVALUATE:')) {
|
76644
76638
|
const path = result.replace(/^EVALUATE:/, '');
|
76645
76639
|
result = evaluate(path, _extends({}, context, {
|
76646
76640
|
getTime: (time)=>new Date(time).getTime(),
|
@@ -76651,6 +76645,11 @@ const applyTemplate = (value, context)=>{
|
|
76651
76645
|
decodeURIComponent: (value)=>decodeURIComponent(value),
|
76652
76646
|
JSONparse: (value)=>JSON.parse(value)
|
76653
76647
|
}));
|
76648
|
+
} else {
|
76649
|
+
const template = handlebars_min.exports.compile(value, {
|
76650
|
+
noEscape: true
|
76651
|
+
});
|
76652
|
+
result = template(context);
|
76654
76653
|
}
|
76655
76654
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
76656
76655
|
result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
|
package/package.json
CHANGED
File without changes
|
File without changes
|