@digipair/skill-web 0.100.1 → 0.102.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 +7 -5
- 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 nextMatch = nextMatch1,
|
|
23906
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
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 nextMatch = nextMatch1,
|
|
23913
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "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 nextMatch = nextMatch1,
|
|
23932
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "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 nextMatch = nextMatch1,
|
|
23951
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23952
23952
|
}
|
|
23953
|
-
return nextMatch = nextMatch1,
|
|
23953
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23954
23954
|
v: nextMatch1
|
|
23955
23955
|
};
|
|
23956
23956
|
};
|
|
@@ -27860,6 +27860,8 @@ const applyTemplate = (value, context)=>{
|
|
|
27860
27860
|
btoa: (value)=>btoa(value),
|
|
27861
27861
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
|
27862
27862
|
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27863
|
+
encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
|
|
27864
|
+
decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
|
|
27863
27865
|
JSONparse: (value)=>JSON.parse(value),
|
|
27864
27866
|
JSONstringify: (value)=>JSON.stringify(value)
|
|
27865
27867
|
}));
|