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