@digipair/skill-client-websocket 0.41.2 → 0.41.3

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 +10 -9
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -23517,14 +23517,14 @@ function indent(str, spaces) {
23517
23517
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23518
23518
  // match is required
23519
23519
  if (!match) {
23520
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23520
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23521
23521
  v: nextMatch1
23522
23522
  };
23523
23523
  }
23524
23524
  var token = match.token, offset = match.offset;
23525
23525
  i1 += offset;
23526
23526
  if (token === " ") {
23527
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23527
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23528
23528
  }
23529
23529
  tokens1 = _to_consumable_array$1(tokens1).concat([
23530
23530
  token
@@ -23543,7 +23543,7 @@ function indent(str, spaces) {
23543
23543
  if (contextKeys.some(function(el) {
23544
23544
  return el.startsWith(name);
23545
23545
  })) {
23546
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23546
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23547
23547
  }
23548
23548
  if (dateTimeIdentifiers.some(function(el) {
23549
23549
  return el === name;
@@ -23562,9 +23562,9 @@ function indent(str, spaces) {
23562
23562
  if (dateTimeIdentifiers.some(function(el) {
23563
23563
  return el.startsWith(name);
23564
23564
  })) {
23565
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23565
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23566
23566
  }
23567
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23567
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23568
23568
  v: nextMatch1
23569
23569
  };
23570
23570
  };
@@ -27366,11 +27366,12 @@ const applyTemplate = (value, context)=>{
27366
27366
  if (typeof value === 'string') {
27367
27367
  if (result.startsWith('NOEVAL:')) {
27368
27368
  result = value.substring(7);
27369
+ } else {
27370
+ const template = handlebars_min.exports.compile(value, {
27371
+ noEscape: true
27372
+ });
27373
+ result = template(context);
27369
27374
  }
27370
- const template = handlebars_min.exports.compile(value, {
27371
- noEscape: true
27372
- });
27373
- result = template(context);
27374
27375
  if (result.startsWith('EVALUATE:')) {
27375
27376
  const path = result.replace(/^EVALUATE:/, '');
27376
27377
  result = evaluate(path, _extends({}, context, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-client-websocket",
3
- "version": "0.41.2",
3
+ "version": "0.41.3",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"