@digipair/skill-web-chatbot 0.21.1 → 0.21.5

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
@@ -52658,14 +52658,14 @@ function indent(str, spaces) {
52658
52658
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
52659
52659
  // match is required
52660
52660
  if (!match) {
52661
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
52661
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52662
52662
  v: nextMatch1
52663
52663
  };
52664
52664
  }
52665
52665
  var token = match.token, offset = match.offset;
52666
52666
  i1 += offset;
52667
52667
  if (token === " ") {
52668
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
52668
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52669
52669
  }
52670
52670
  tokens1 = _to_consumable_array$9(tokens1).concat([
52671
52671
  token
@@ -52684,7 +52684,7 @@ function indent(str, spaces) {
52684
52684
  if (contextKeys.some(function(el) {
52685
52685
  return el.startsWith(name);
52686
52686
  })) {
52687
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
52687
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52688
52688
  }
52689
52689
  if (dateTimeIdentifiers.some(function(el) {
52690
52690
  return el === name;
@@ -52703,9 +52703,9 @@ function indent(str, spaces) {
52703
52703
  if (dateTimeIdentifiers.some(function(el) {
52704
52704
  return el.startsWith(name);
52705
52705
  })) {
52706
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
52706
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52707
52707
  }
52708
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
52708
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52709
52709
  v: nextMatch1
52710
52710
  };
52711
52711
  };
@@ -56514,7 +56514,9 @@ const applyTemplate = (value, context)=>{
56514
56514
  result = template(context);
56515
56515
  if (result.startsWith('EVALUATE:')) {
56516
56516
  const path = result.replace(/^EVALUATE:/, '');
56517
- result = evaluate(path, context);
56517
+ result = evaluate(path, _extends({}, context, {
56518
+ getTime: (time)=>new Date(time).getTime()
56519
+ }));
56518
56520
  }
56519
56521
  } else if (typeof value === 'object' && Array.isArray(value)) {
56520
56522
  result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
package/index.esm2.js CHANGED
@@ -56494,7 +56494,9 @@ const applyTemplate = (value, context)=>{
56494
56494
  result = template(context);
56495
56495
  if (result.startsWith('EVALUATE:')) {
56496
56496
  const path = result.replace(/^EVALUATE:/, '');
56497
- result = evaluate(path, context);
56497
+ result = evaluate(path, _extends({}, context, {
56498
+ getTime: (time)=>new Date(time).getTime()
56499
+ }));
56498
56500
  }
56499
56501
  } else if (typeof value === 'object' && Array.isArray(value)) {
56500
56502
  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.21.1",
3
+ "version": "0.21.5",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",