@digipair/engine 0.100.1 → 0.101.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.cjs.js CHANGED
@@ -8183,6 +8183,8 @@ const applyTemplate = (value, context)=>{
8183
8183
  btoa: (value)=>btoa(value),
8184
8184
  encodeURIComponent: (value)=>encodeURIComponent(value),
8185
8185
  decodeURIComponent: (value)=>decodeURIComponent(value),
8186
+ encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
8187
+ decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
8186
8188
  JSONparse: (value)=>JSON.parse(value),
8187
8189
  JSONstringify: (value)=>JSON.stringify(value)
8188
8190
  }));
package/index.esm.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23902
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23909
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$1(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23928
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23947
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23948
23948
  }
23949
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23949
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27862,6 +27862,8 @@ const applyTemplate = (value, context)=>{
27862
27862
  btoa: (value)=>btoa(value),
27863
27863
  encodeURIComponent: (value)=>encodeURIComponent(value),
27864
27864
  decodeURIComponent: (value)=>decodeURIComponent(value),
27865
+ encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
27866
+ decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
27865
27867
  JSONparse: (value)=>JSON.parse(value),
27866
27868
  JSONstringify: (value)=>JSON.stringify(value)
27867
27869
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.100.1",
3
+ "version": "0.101.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "web",