@digipair/skill-basic 0.41.2 → 0.41.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.esm.js +10 -9
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -23489,14 +23489,14 @@ function indent(str, spaces) {
23489
23489
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23490
23490
  // match is required
23491
23491
  if (!match) {
23492
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23492
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23493
23493
  v: nextMatch1
23494
23494
  };
23495
23495
  }
23496
23496
  var token = match.token, offset = match.offset;
23497
23497
  i1 += offset;
23498
23498
  if (token === " ") {
23499
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23499
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23500
23500
  }
23501
23501
  tokens1 = _to_consumable_array$1(tokens1).concat([
23502
23502
  token
@@ -23515,7 +23515,7 @@ function indent(str, spaces) {
23515
23515
  if (contextKeys.some(function(el) {
23516
23516
  return el.startsWith(name);
23517
23517
  })) {
23518
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23518
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23519
23519
  }
23520
23520
  if (dateTimeIdentifiers.some(function(el) {
23521
23521
  return el === name;
@@ -23534,9 +23534,9 @@ function indent(str, spaces) {
23534
23534
  if (dateTimeIdentifiers.some(function(el) {
23535
23535
  return el.startsWith(name);
23536
23536
  })) {
23537
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23537
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23538
23538
  }
23539
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23539
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23540
23540
  v: nextMatch1
23541
23541
  };
23542
23542
  };
@@ -27338,11 +27338,12 @@ const applyTemplate = (value, context)=>{
27338
27338
  if (typeof value === 'string') {
27339
27339
  if (result.startsWith('NOEVAL:')) {
27340
27340
  result = value.substring(7);
27341
+ } else {
27342
+ const template = handlebars_min.exports.compile(value, {
27343
+ noEscape: true
27344
+ });
27345
+ result = template(context);
27341
27346
  }
27342
- const template = handlebars_min.exports.compile(value, {
27343
- noEscape: true
27344
- });
27345
- result = template(context);
27346
27347
  if (result.startsWith('EVALUATE:')) {
27347
27348
  const path = result.replace(/^EVALUATE:/, '');
27348
27349
  result = evaluate(path, _extends({}, context, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-basic",
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"