@digipair/skill-web-notification 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 (3) hide show
  1. package/index.cjs.js +11 -12
  2. package/index.esm.js +11 -12
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -23921,14 +23921,14 @@ function indent(str, spaces) {
23921
23921
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23922
23922
  // match is required
23923
23923
  if (!match) {
23924
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23924
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23925
23925
  v: nextMatch1
23926
23926
  };
23927
23927
  }
23928
23928
  var token = match.token, offset = match.offset;
23929
23929
  i1 += offset;
23930
23930
  if (token === " ") {
23931
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23931
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23932
23932
  }
23933
23933
  tokens1 = _to_consumable_array$1(tokens1).concat([
23934
23934
  token
@@ -23947,7 +23947,7 @@ function indent(str, spaces) {
23947
23947
  if (contextKeys.some(function(el) {
23948
23948
  return el.startsWith(name);
23949
23949
  })) {
23950
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23950
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23951
23951
  }
23952
23952
  if (dateTimeIdentifiers.some(function(el) {
23953
23953
  return el === name;
@@ -23966,9 +23966,9 @@ function indent(str, spaces) {
23966
23966
  if (dateTimeIdentifiers.some(function(el) {
23967
23967
  return el.startsWith(name);
23968
23968
  })) {
23969
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23969
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23970
23970
  }
23971
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23971
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23972
23972
  v: nextMatch1
23973
23973
  };
23974
23974
  };
@@ -27869,13 +27869,7 @@ const applyTemplate = (value, context)=>{
27869
27869
  if (typeof value === 'string') {
27870
27870
  if (result.startsWith('NOEVAL:')) {
27871
27871
  result = value.substring(7);
27872
- } else {
27873
- const template = handlebars_min.exports.compile(value, {
27874
- noEscape: true
27875
- });
27876
- result = template(context);
27877
- }
27878
- if (result.startsWith('EVALUATE:')) {
27872
+ } else if (result.startsWith('EVALUATE:')) {
27879
27873
  const path = result.replace(/^EVALUATE:/, '');
27880
27874
  result = evaluate(path, _extends({}, context, {
27881
27875
  getTime: (time)=>new Date(time).getTime(),
@@ -27886,6 +27880,11 @@ const applyTemplate = (value, context)=>{
27886
27880
  decodeURIComponent: (value)=>decodeURIComponent(value),
27887
27881
  JSONparse: (value)=>JSON.parse(value)
27888
27882
  }));
27883
+ } else {
27884
+ const template = handlebars_min.exports.compile(value, {
27885
+ noEscape: true
27886
+ });
27887
+ result = template(context);
27889
27888
  }
27890
27889
  } else if (typeof value === 'object' && Array.isArray(value)) {
27891
27890
  result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
package/index.esm.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23902
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23909
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$1(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23928
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23947
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23948
23948
  }
23949
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23949
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27847,13 +27847,7 @@ const applyTemplate = (value, context)=>{
27847
27847
  if (typeof value === 'string') {
27848
27848
  if (result.startsWith('NOEVAL:')) {
27849
27849
  result = value.substring(7);
27850
- } else {
27851
- const template = handlebars_min.exports.compile(value, {
27852
- noEscape: true
27853
- });
27854
- result = template(context);
27855
- }
27856
- if (result.startsWith('EVALUATE:')) {
27850
+ } else if (result.startsWith('EVALUATE:')) {
27857
27851
  const path = result.replace(/^EVALUATE:/, '');
27858
27852
  result = evaluate(path, _extends({}, context, {
27859
27853
  getTime: (time)=>new Date(time).getTime(),
@@ -27864,6 +27858,11 @@ const applyTemplate = (value, context)=>{
27864
27858
  decodeURIComponent: (value)=>decodeURIComponent(value),
27865
27859
  JSONparse: (value)=>JSON.parse(value)
27866
27860
  }));
27861
+ } else {
27862
+ const template = handlebars_min.exports.compile(value, {
27863
+ noEscape: true
27864
+ });
27865
+ result = template(context);
27867
27866
  }
27868
27867
  } else if (typeof value === 'object' && Array.isArray(value)) {
27869
27868
  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-web-notification",
3
- "version": "0.84.7",
3
+ "version": "0.85.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "web",