@digipair/skill-web-chatbot 0.21.13 → 0.21.15

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
@@ -56517,7 +56517,11 @@ const applyTemplate = (value, context)=>{
56517
56517
  if (result.startsWith('EVALUATE:')) {
56518
56518
  const path = result.replace(/^EVALUATE:/, '');
56519
56519
  result = evaluate(path, _extends({}, context, {
56520
- getTime: (time)=>new Date(time).getTime()
56520
+ getTime: (time)=>new Date(time).getTime(),
56521
+ atob: (value)=>atob(value),
56522
+ btoa: (value)=>btoa(value),
56523
+ encodeURIComponent: (value)=>encodeURIComponent(value),
56524
+ decodeURIComponent: (value)=>decodeURIComponent(value)
56521
56525
  }));
56522
56526
  }
56523
56527
  } else if (typeof value === 'object' && Array.isArray(value)) {
package/index.esm2.js CHANGED
@@ -52639,14 +52639,14 @@ function indent(str, spaces) {
52639
52639
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
52640
52640
  // match is required
52641
52641
  if (!match) {
52642
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52642
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
52643
52643
  v: nextMatch1
52644
52644
  };
52645
52645
  }
52646
52646
  var token = match.token, offset = match.offset;
52647
52647
  i1 += offset;
52648
52648
  if (token === " ") {
52649
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52649
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
52650
52650
  }
52651
52651
  tokens1 = _to_consumable_array$9(tokens1).concat([
52652
52652
  token
@@ -52665,7 +52665,7 @@ function indent(str, spaces) {
52665
52665
  if (contextKeys.some(function(el) {
52666
52666
  return el.startsWith(name);
52667
52667
  })) {
52668
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52668
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
52669
52669
  }
52670
52670
  if (dateTimeIdentifiers.some(function(el) {
52671
52671
  return el === name;
@@ -52684,9 +52684,9 @@ function indent(str, spaces) {
52684
52684
  if (dateTimeIdentifiers.some(function(el) {
52685
52685
  return el.startsWith(name);
52686
52686
  })) {
52687
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52687
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
52688
52688
  }
52689
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52689
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
52690
52690
  v: nextMatch1
52691
52691
  };
52692
52692
  };
@@ -56497,7 +56497,11 @@ const applyTemplate = (value, context)=>{
56497
56497
  if (result.startsWith('EVALUATE:')) {
56498
56498
  const path = result.replace(/^EVALUATE:/, '');
56499
56499
  result = evaluate(path, _extends({}, context, {
56500
- getTime: (time)=>new Date(time).getTime()
56500
+ getTime: (time)=>new Date(time).getTime(),
56501
+ atob: (value)=>atob(value),
56502
+ btoa: (value)=>btoa(value),
56503
+ encodeURIComponent: (value)=>encodeURIComponent(value),
56504
+ decodeURIComponent: (value)=>decodeURIComponent(value)
56501
56505
  }));
56502
56506
  }
56503
56507
  } else if (typeof value === 'object' && Array.isArray(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.21.13",
3
+ "version": "0.21.15",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",