@digipair/skill-sse 0.84.7 → 0.84.11

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 +11 -12
  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 tokens = tokens1, i = i1, nextMatch = nextMatch1, {
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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
25175
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
25176
25176
  }
25177
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
25177
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
25178
25178
  v: nextMatch1
25179
25179
  };
25180
25180
  };
@@ -29075,13 +29075,7 @@ const applyTemplate = (value, context)=>{
29075
29075
  if (typeof value === 'string') {
29076
29076
  if (result.startsWith('NOEVAL:')) {
29077
29077
  result = value.substring(7);
29078
- } else {
29079
- const template = handlebars_min.exports.compile(value, {
29080
- noEscape: true
29081
- });
29082
- result = template(context);
29083
- }
29084
- if (result.startsWith('EVALUATE:')) {
29078
+ } else if (result.startsWith('EVALUATE:')) {
29085
29079
  const path = result.replace(/^EVALUATE:/, '');
29086
29080
  result = evaluate(path, _extends({}, context, {
29087
29081
  getTime: (time)=>new Date(time).getTime(),
@@ -29092,6 +29086,11 @@ const applyTemplate = (value, context)=>{
29092
29086
  decodeURIComponent: (value)=>decodeURIComponent(value),
29093
29087
  JSONparse: (value)=>JSON.parse(value)
29094
29088
  }));
29089
+ } else {
29090
+ const template = handlebars_min.exports.compile(value, {
29091
+ noEscape: true
29092
+ });
29093
+ result = template(context);
29095
29094
  }
29096
29095
  } else if (typeof value === 'object' && Array.isArray(value)) {
29097
29096
  result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-sse",
3
- "version": "0.84.7",
3
+ "version": "0.84.11",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",