@digipair/skill-html 0.84.6 → 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.cjs.js +11 -12
- package/index.esm.js +11 -12
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23923,14 +23923,14 @@ function indent(str, spaces) {
|
|
|
23923
23923
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23924
23924
|
// match is required
|
|
23925
23925
|
if (!match) {
|
|
23926
|
-
return
|
|
23926
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23927
23927
|
v: nextMatch1
|
|
23928
23928
|
};
|
|
23929
23929
|
}
|
|
23930
23930
|
var token = match.token, offset = match.offset;
|
|
23931
23931
|
i1 += offset;
|
|
23932
23932
|
if (token === " ") {
|
|
23933
|
-
return
|
|
23933
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23934
23934
|
}
|
|
23935
23935
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23936
23936
|
token
|
|
@@ -23949,7 +23949,7 @@ function indent(str, spaces) {
|
|
|
23949
23949
|
if (contextKeys.some(function(el) {
|
|
23950
23950
|
return el.startsWith(name);
|
|
23951
23951
|
})) {
|
|
23952
|
-
return
|
|
23952
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23953
23953
|
}
|
|
23954
23954
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23955
23955
|
return el === name;
|
|
@@ -23968,9 +23968,9 @@ function indent(str, spaces) {
|
|
|
23968
23968
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23969
23969
|
return el.startsWith(name);
|
|
23970
23970
|
})) {
|
|
23971
|
-
return
|
|
23971
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23972
23972
|
}
|
|
23973
|
-
return
|
|
23973
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23974
23974
|
v: nextMatch1
|
|
23975
23975
|
};
|
|
23976
23976
|
};
|
|
@@ -27871,13 +27871,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27871
27871
|
if (typeof value === 'string') {
|
|
27872
27872
|
if (result.startsWith('NOEVAL:')) {
|
|
27873
27873
|
result = value.substring(7);
|
|
27874
|
-
} else {
|
|
27875
|
-
const template = handlebars_min.exports.compile(value, {
|
|
27876
|
-
noEscape: true
|
|
27877
|
-
});
|
|
27878
|
-
result = template(context);
|
|
27879
|
-
}
|
|
27880
|
-
if (result.startsWith('EVALUATE:')) {
|
|
27874
|
+
} else if (result.startsWith('EVALUATE:')) {
|
|
27881
27875
|
const path = result.replace(/^EVALUATE:/, '');
|
|
27882
27876
|
result = evaluate(path, _extends({}, context, {
|
|
27883
27877
|
getTime: (time)=>new Date(time).getTime(),
|
|
@@ -27888,6 +27882,11 @@ const applyTemplate = (value, context)=>{
|
|
|
27888
27882
|
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27889
27883
|
JSONparse: (value)=>JSON.parse(value)
|
|
27890
27884
|
}));
|
|
27885
|
+
} else {
|
|
27886
|
+
const template = handlebars_min.exports.compile(value, {
|
|
27887
|
+
noEscape: true
|
|
27888
|
+
});
|
|
27889
|
+
result = template(context);
|
|
27891
27890
|
}
|
|
27892
27891
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
27893
27892
|
result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
|
package/index.esm.js
CHANGED
|
@@ -23901,14 +23901,14 @@ function indent(str, spaces) {
|
|
|
23901
23901
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23902
23902
|
// match is required
|
|
23903
23903
|
if (!match) {
|
|
23904
|
-
return
|
|
23904
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23905
23905
|
v: nextMatch1
|
|
23906
23906
|
};
|
|
23907
23907
|
}
|
|
23908
23908
|
var token = match.token, offset = match.offset;
|
|
23909
23909
|
i1 += offset;
|
|
23910
23910
|
if (token === " ") {
|
|
23911
|
-
return
|
|
23911
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23912
23912
|
}
|
|
23913
23913
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23914
23914
|
token
|
|
@@ -23927,7 +23927,7 @@ function indent(str, spaces) {
|
|
|
23927
23927
|
if (contextKeys.some(function(el) {
|
|
23928
23928
|
return el.startsWith(name);
|
|
23929
23929
|
})) {
|
|
23930
|
-
return
|
|
23930
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23931
23931
|
}
|
|
23932
23932
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23933
23933
|
return el === name;
|
|
@@ -23946,9 +23946,9 @@ function indent(str, spaces) {
|
|
|
23946
23946
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23947
23947
|
return el.startsWith(name);
|
|
23948
23948
|
})) {
|
|
23949
|
-
return
|
|
23949
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23950
23950
|
}
|
|
23951
|
-
return
|
|
23951
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23952
23952
|
v: nextMatch1
|
|
23953
23953
|
};
|
|
23954
23954
|
};
|
|
@@ -27849,13 +27849,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27849
27849
|
if (typeof value === 'string') {
|
|
27850
27850
|
if (result.startsWith('NOEVAL:')) {
|
|
27851
27851
|
result = value.substring(7);
|
|
27852
|
-
} else {
|
|
27853
|
-
const template = handlebars_min.exports.compile(value, {
|
|
27854
|
-
noEscape: true
|
|
27855
|
-
});
|
|
27856
|
-
result = template(context);
|
|
27857
|
-
}
|
|
27858
|
-
if (result.startsWith('EVALUATE:')) {
|
|
27852
|
+
} else if (result.startsWith('EVALUATE:')) {
|
|
27859
27853
|
const path = result.replace(/^EVALUATE:/, '');
|
|
27860
27854
|
result = evaluate(path, _extends({}, context, {
|
|
27861
27855
|
getTime: (time)=>new Date(time).getTime(),
|
|
@@ -27866,6 +27860,11 @@ const applyTemplate = (value, context)=>{
|
|
|
27866
27860
|
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27867
27861
|
JSONparse: (value)=>JSON.parse(value)
|
|
27868
27862
|
}));
|
|
27863
|
+
} else {
|
|
27864
|
+
const template = handlebars_min.exports.compile(value, {
|
|
27865
|
+
noEscape: true
|
|
27866
|
+
});
|
|
27867
|
+
result = template(context);
|
|
27869
27868
|
}
|
|
27870
27869
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
27871
27870
|
result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
|