@digipair/skill-sse 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.
Files changed (2) hide show
  1. package/index.esm.js +7 -5
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -25127,14 +25127,14 @@ function indent(str, spaces) {
25127
25127
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
25128
25128
  // match is required
25129
25129
  if (!match) {
25130
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
25130
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
25131
25131
  v: nextMatch1
25132
25132
  };
25133
25133
  }
25134
25134
  var token = match.token, offset = match.offset;
25135
25135
  i1 += offset;
25136
25136
  if (token === " ") {
25137
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
25137
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
25138
25138
  }
25139
25139
  tokens1 = _to_consumable_array$1(tokens1).concat([
25140
25140
  token
@@ -25153,7 +25153,7 @@ function indent(str, spaces) {
25153
25153
  if (contextKeys.some(function(el) {
25154
25154
  return el.startsWith(name);
25155
25155
  })) {
25156
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
25156
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
25157
25157
  }
25158
25158
  if (dateTimeIdentifiers.some(function(el) {
25159
25159
  return el === name;
@@ -25172,9 +25172,9 @@ function indent(str, spaces) {
25172
25172
  if (dateTimeIdentifiers.some(function(el) {
25173
25173
  return el.startsWith(name);
25174
25174
  })) {
25175
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
25175
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
25176
25176
  }
25177
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
25177
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
25178
25178
  v: nextMatch1
25179
25179
  };
25180
25180
  };
@@ -29084,6 +29084,8 @@ const applyTemplate = (value, context)=>{
29084
29084
  btoa: (value)=>btoa(value),
29085
29085
  encodeURIComponent: (value)=>encodeURIComponent(value),
29086
29086
  decodeURIComponent: (value)=>decodeURIComponent(value),
29087
+ encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
29088
+ decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
29087
29089
  JSONparse: (value)=>JSON.parse(value),
29088
29090
  JSONstringify: (value)=>JSON.stringify(value)
29089
29091
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-sse",
3
- "version": "0.100.1",
3
+ "version": "0.102.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",