@digipair/skill-canvas 0.41.2 → 0.41.4

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
@@ -23491,14 +23491,14 @@ function indent(str, spaces) {
23491
23491
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23492
23492
  // match is required
23493
23493
  if (!match) {
23494
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23494
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23495
23495
  v: nextMatch1
23496
23496
  };
23497
23497
  }
23498
23498
  var token = match.token, offset = match.offset;
23499
23499
  i1 += offset;
23500
23500
  if (token === " ") {
23501
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23501
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23502
23502
  }
23503
23503
  tokens1 = _to_consumable_array$1(tokens1).concat([
23504
23504
  token
@@ -23517,7 +23517,7 @@ function indent(str, spaces) {
23517
23517
  if (contextKeys.some(function(el) {
23518
23518
  return el.startsWith(name);
23519
23519
  })) {
23520
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23520
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23521
23521
  }
23522
23522
  if (dateTimeIdentifiers.some(function(el) {
23523
23523
  return el === name;
@@ -23536,9 +23536,9 @@ function indent(str, spaces) {
23536
23536
  if (dateTimeIdentifiers.some(function(el) {
23537
23537
  return el.startsWith(name);
23538
23538
  })) {
23539
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23539
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23540
23540
  }
23541
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23541
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23542
23542
  v: nextMatch1
23543
23543
  };
23544
23544
  };
@@ -27340,11 +27340,12 @@ const applyTemplate = (value, context)=>{
27340
27340
  if (typeof value === 'string') {
27341
27341
  if (result.startsWith('NOEVAL:')) {
27342
27342
  result = value.substring(7);
27343
+ } else {
27344
+ const template = handlebars_min.exports.compile(value, {
27345
+ noEscape: true
27346
+ });
27347
+ result = template(context);
27343
27348
  }
27344
- const template = handlebars_min.exports.compile(value, {
27345
- noEscape: true
27346
- });
27347
- result = template(context);
27348
27349
  if (result.startsWith('EVALUATE:')) {
27349
27350
  const path = result.replace(/^EVALUATE:/, '');
27350
27351
  result = evaluate(path, _extends({}, context, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-canvas",
3
- "version": "0.41.2",
3
+ "version": "0.41.4",
4
4
  "dependencies": {
5
5
  "canvas": "^2.11.2"
6
6
  },