@digipair/skill-html 0.117.5 → 0.117.7
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/dist/index.esm.js +10 -6
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { snakeCase, kebabCase, camelCase } from 'case-anything/dist/index.js';
|
|
1
2
|
import { JSDOM } from 'jsdom';
|
|
2
3
|
|
|
3
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -22840,14 +22841,14 @@ function indent(str, spaces) {
|
|
|
22840
22841
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22841
22842
|
// match is required
|
|
22842
22843
|
if (!match) {
|
|
22843
|
-
return
|
|
22844
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
22844
22845
|
v: nextMatch1
|
|
22845
22846
|
};
|
|
22846
22847
|
}
|
|
22847
22848
|
var token = match.token, offset = match.offset;
|
|
22848
22849
|
i1 += offset;
|
|
22849
22850
|
if (token === ' ') {
|
|
22850
|
-
return
|
|
22851
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
22851
22852
|
}
|
|
22852
22853
|
tokens1 = _to_consumable_array$4(tokens1).concat([
|
|
22853
22854
|
token
|
|
@@ -22866,7 +22867,7 @@ function indent(str, spaces) {
|
|
|
22866
22867
|
if (contextKeys.some(function(el) {
|
|
22867
22868
|
return el.startsWith(name);
|
|
22868
22869
|
})) {
|
|
22869
|
-
return
|
|
22870
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
22870
22871
|
}
|
|
22871
22872
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22872
22873
|
return el === name;
|
|
@@ -22885,9 +22886,9 @@ function indent(str, spaces) {
|
|
|
22885
22886
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22886
22887
|
return el.startsWith(name);
|
|
22887
22888
|
})) {
|
|
22888
|
-
return
|
|
22889
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
22889
22890
|
}
|
|
22890
|
-
return
|
|
22891
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
22891
22892
|
v: nextMatch1
|
|
22892
22893
|
};
|
|
22893
22894
|
};
|
|
@@ -44213,7 +44214,10 @@ const DIGIPAIR_FUNCTIONS = {
|
|
|
44213
44214
|
encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
|
|
44214
44215
|
decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
|
|
44215
44216
|
JSONparse: (value)=>JSON.parse(value),
|
|
44216
|
-
JSONstringify: (value)=>JSON.stringify(value)
|
|
44217
|
+
JSONstringify: (value)=>JSON.stringify(value),
|
|
44218
|
+
camelCase: (value)=>camelCase(value),
|
|
44219
|
+
kebabCase: (value)=>kebabCase(value),
|
|
44220
|
+
snakeCase: (value)=>snakeCase(value)
|
|
44217
44221
|
};
|
|
44218
44222
|
const globalInstance = typeof window === 'undefined' ? global : window;
|
|
44219
44223
|
const _config = globalInstance.__DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__ ?? {
|