@digipair/skill-web 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.
Files changed (2) hide show
  1. package/dist/index.esm.js +10 -6
  2. 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
  import { readFile } from 'fs/promises';
3
4
  import require$$1 from 'path';
@@ -22842,14 +22843,14 @@ function indent(str, spaces) {
22842
22843
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22843
22844
  // match is required
22844
22845
  if (!match) {
22845
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22846
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
22846
22847
  v: nextMatch1
22847
22848
  };
22848
22849
  }
22849
22850
  var token = match.token, offset = match.offset;
22850
22851
  i1 += offset;
22851
22852
  if (token === ' ') {
22852
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22853
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22853
22854
  }
22854
22855
  tokens1 = _to_consumable_array$4(tokens1).concat([
22855
22856
  token
@@ -22868,7 +22869,7 @@ function indent(str, spaces) {
22868
22869
  if (contextKeys.some(function(el) {
22869
22870
  return el.startsWith(name);
22870
22871
  })) {
22871
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22872
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22872
22873
  }
22873
22874
  if (dateTimeIdentifiers.some(function(el) {
22874
22875
  return el === name;
@@ -22887,9 +22888,9 @@ function indent(str, spaces) {
22887
22888
  if (dateTimeIdentifiers.some(function(el) {
22888
22889
  return el.startsWith(name);
22889
22890
  })) {
22890
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22891
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22891
22892
  }
22892
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22893
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
22893
22894
  v: nextMatch1
22894
22895
  };
22895
22896
  };
@@ -44215,7 +44216,10 @@ const DIGIPAIR_FUNCTIONS = {
44215
44216
  encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
44216
44217
  decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
44217
44218
  JSONparse: (value)=>JSON.parse(value),
44218
- JSONstringify: (value)=>JSON.stringify(value)
44219
+ JSONstringify: (value)=>JSON.stringify(value),
44220
+ camelCase: (value)=>camelCase(value),
44221
+ kebabCase: (value)=>kebabCase(value),
44222
+ snakeCase: (value)=>snakeCase(value)
44219
44223
  };
44220
44224
  const globalInstance = typeof window === 'undefined' ? global : window;
44221
44225
  const _config = globalInstance.__DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__ ?? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web",
3
- "version": "0.117.5",
3
+ "version": "0.117.7",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",