@digipair/skill-imap 0.84.7 → 0.85.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 +11 -12
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -23902,14 +23902,14 @@ function indent(str, spaces) {
23902
23902
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23903
23903
  // match is required
23904
23904
  if (!match) {
23905
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23905
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23906
23906
  v: nextMatch1
23907
23907
  };
23908
23908
  }
23909
23909
  var token = match.token, offset = match.offset;
23910
23910
  i1 += offset;
23911
23911
  if (token === " ") {
23912
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23912
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23913
23913
  }
23914
23914
  tokens1 = _to_consumable_array$1(tokens1).concat([
23915
23915
  token
@@ -23928,7 +23928,7 @@ function indent(str, spaces) {
23928
23928
  if (contextKeys.some(function(el) {
23929
23929
  return el.startsWith(name);
23930
23930
  })) {
23931
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23931
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23932
23932
  }
23933
23933
  if (dateTimeIdentifiers.some(function(el) {
23934
23934
  return el === name;
@@ -23947,9 +23947,9 @@ function indent(str, spaces) {
23947
23947
  if (dateTimeIdentifiers.some(function(el) {
23948
23948
  return el.startsWith(name);
23949
23949
  })) {
23950
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23950
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23951
23951
  }
23952
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23952
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23953
23953
  v: nextMatch1
23954
23954
  };
23955
23955
  };
@@ -27850,13 +27850,7 @@ const applyTemplate = (value, context)=>{
27850
27850
  if (typeof value === 'string') {
27851
27851
  if (result.startsWith('NOEVAL:')) {
27852
27852
  result = value.substring(7);
27853
- } else {
27854
- const template = handlebars_min.exports.compile(value, {
27855
- noEscape: true
27856
- });
27857
- result = template(context);
27858
- }
27859
- if (result.startsWith('EVALUATE:')) {
27853
+ } else if (result.startsWith('EVALUATE:')) {
27860
27854
  const path = result.replace(/^EVALUATE:/, '');
27861
27855
  result = evaluate(path, _extends({}, context, {
27862
27856
  getTime: (time)=>new Date(time).getTime(),
@@ -27867,6 +27861,11 @@ const applyTemplate = (value, context)=>{
27867
27861
  decodeURIComponent: (value)=>decodeURIComponent(value),
27868
27862
  JSONparse: (value)=>JSON.parse(value)
27869
27863
  }));
27864
+ } else {
27865
+ const template = handlebars_min.exports.compile(value, {
27866
+ noEscape: true
27867
+ });
27868
+ result = template(context);
27870
27869
  }
27871
27870
  } else if (typeof value === 'object' && Array.isArray(value)) {
27872
27871
  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-imap",
3
- "version": "0.84.7",
3
+ "version": "0.85.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",