@digipair/skill-web-chatbot 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.
package/index.cjs2.js CHANGED
@@ -37752,14 +37752,14 @@ function indent(str, spaces) {
37752
37752
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
37753
37753
  // match is required
37754
37754
  if (!match) {
37755
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
37755
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
37756
37756
  v: nextMatch1
37757
37757
  };
37758
37758
  }
37759
37759
  var token = match.token, offset = match.offset;
37760
37760
  i1 += offset;
37761
37761
  if (token === " ") {
37762
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
37762
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
37763
37763
  }
37764
37764
  tokens1 = _to_consumable_array$c(tokens1).concat([
37765
37765
  token
@@ -37778,7 +37778,7 @@ function indent(str, spaces) {
37778
37778
  if (contextKeys.some(function(el) {
37779
37779
  return el.startsWith(name);
37780
37780
  })) {
37781
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
37781
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
37782
37782
  }
37783
37783
  if (dateTimeIdentifiers.some(function(el) {
37784
37784
  return el === name;
@@ -37797,9 +37797,9 @@ function indent(str, spaces) {
37797
37797
  if (dateTimeIdentifiers.some(function(el) {
37798
37798
  return el.startsWith(name);
37799
37799
  })) {
37800
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
37800
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
37801
37801
  }
37802
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
37802
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
37803
37803
  v: nextMatch1
37804
37804
  };
37805
37805
  };
@@ -41706,13 +41706,7 @@ const applyTemplate = (value, context)=>{
41706
41706
  if (typeof value === 'string') {
41707
41707
  if (result.startsWith('NOEVAL:')) {
41708
41708
  result = value.substring(7);
41709
- } else {
41710
- const template = handlebars_min.exports.compile(value, {
41711
- noEscape: true
41712
- });
41713
- result = template(context);
41714
- }
41715
- if (result.startsWith('EVALUATE:')) {
41709
+ } else if (result.startsWith('EVALUATE:')) {
41716
41710
  const path = result.replace(/^EVALUATE:/, '');
41717
41711
  result = evaluate(path, _extends({}, context, {
41718
41712
  getTime: (time)=>new Date(time).getTime(),
@@ -41723,6 +41717,11 @@ const applyTemplate = (value, context)=>{
41723
41717
  decodeURIComponent: (value)=>decodeURIComponent(value),
41724
41718
  JSONparse: (value)=>JSON.parse(value)
41725
41719
  }));
41720
+ } else {
41721
+ const template = handlebars_min.exports.compile(value, {
41722
+ noEscape: true
41723
+ });
41724
+ result = template(context);
41726
41725
  }
41727
41726
  } else if (typeof value === 'object' && Array.isArray(value)) {
41728
41727
  result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
package/index.esm2.js CHANGED
@@ -37732,14 +37732,14 @@ function indent(str, spaces) {
37732
37732
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
37733
37733
  // match is required
37734
37734
  if (!match) {
37735
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
37735
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
37736
37736
  v: nextMatch1
37737
37737
  };
37738
37738
  }
37739
37739
  var token = match.token, offset = match.offset;
37740
37740
  i1 += offset;
37741
37741
  if (token === " ") {
37742
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
37742
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
37743
37743
  }
37744
37744
  tokens1 = _to_consumable_array$c(tokens1).concat([
37745
37745
  token
@@ -37758,7 +37758,7 @@ function indent(str, spaces) {
37758
37758
  if (contextKeys.some(function(el) {
37759
37759
  return el.startsWith(name);
37760
37760
  })) {
37761
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
37761
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
37762
37762
  }
37763
37763
  if (dateTimeIdentifiers.some(function(el) {
37764
37764
  return el === name;
@@ -37777,9 +37777,9 @@ function indent(str, spaces) {
37777
37777
  if (dateTimeIdentifiers.some(function(el) {
37778
37778
  return el.startsWith(name);
37779
37779
  })) {
37780
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
37780
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
37781
37781
  }
37782
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
37782
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
37783
37783
  v: nextMatch1
37784
37784
  };
37785
37785
  };
@@ -41686,13 +41686,7 @@ const applyTemplate = (value, context)=>{
41686
41686
  if (typeof value === 'string') {
41687
41687
  if (result.startsWith('NOEVAL:')) {
41688
41688
  result = value.substring(7);
41689
- } else {
41690
- const template = handlebars_min.exports.compile(value, {
41691
- noEscape: true
41692
- });
41693
- result = template(context);
41694
- }
41695
- if (result.startsWith('EVALUATE:')) {
41689
+ } else if (result.startsWith('EVALUATE:')) {
41696
41690
  const path = result.replace(/^EVALUATE:/, '');
41697
41691
  result = evaluate(path, _extends({}, context, {
41698
41692
  getTime: (time)=>new Date(time).getTime(),
@@ -41703,6 +41697,11 @@ const applyTemplate = (value, context)=>{
41703
41697
  decodeURIComponent: (value)=>decodeURIComponent(value),
41704
41698
  JSONparse: (value)=>JSON.parse(value)
41705
41699
  }));
41700
+ } else {
41701
+ const template = handlebars_min.exports.compile(value, {
41702
+ noEscape: true
41703
+ });
41704
+ result = template(context);
41706
41705
  }
41707
41706
  } else if (typeof value === 'object' && Array.isArray(value)) {
41708
41707
  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-chatbot",
3
- "version": "0.84.7",
3
+ "version": "0.85.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "web",