@digipair/skill-web-chatbot 0.8.10 → 0.8.11

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
@@ -51882,14 +51882,14 @@ function indent(str, spaces) {
51882
51882
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
51883
51883
  // match is required
51884
51884
  if (!match) {
51885
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
51885
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
51886
51886
  v: nextMatch1
51887
51887
  };
51888
51888
  }
51889
51889
  var token = match.token, offset = match.offset;
51890
51890
  i1 += offset;
51891
51891
  if (token === " ") {
51892
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
51892
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51893
51893
  }
51894
51894
  tokens1 = _to_consumable_array$9(tokens1).concat([
51895
51895
  token
@@ -51908,7 +51908,7 @@ function indent(str, spaces) {
51908
51908
  if (contextKeys.some(function(el) {
51909
51909
  return el.startsWith(name);
51910
51910
  })) {
51911
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
51911
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51912
51912
  }
51913
51913
  if (dateTimeIdentifiers.some(function(el) {
51914
51914
  return el === name;
@@ -51927,9 +51927,9 @@ function indent(str, spaces) {
51927
51927
  if (dateTimeIdentifiers.some(function(el) {
51928
51928
  return el.startsWith(name);
51929
51929
  })) {
51930
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
51930
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51931
51931
  }
51932
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
51932
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
51933
51933
  v: nextMatch1
51934
51934
  };
51935
51935
  };
@@ -55796,8 +55796,11 @@ const executePinsList = async (pinsSettingsList, context, options = {
55796
55796
  for(let i = 0; i < pinsSettingsList.length; i++){
55797
55797
  var _settings_conditions;
55798
55798
  const settings = pinsSettingsList[i];
55799
- if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined' && !settings.conditions.if) {
55800
- continue;
55799
+ if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
55800
+ const preparedSettings = await preparePinsSettings(settings, context);
55801
+ if (!preparedSettings.conditions.if) {
55802
+ continue;
55803
+ }
55801
55804
  }
55802
55805
  previous = await executePins(settings, _extends({}, context, {
55803
55806
  previous,
package/index.esm2.js CHANGED
@@ -55776,8 +55776,11 @@ const executePinsList = async (pinsSettingsList, context, options = {
55776
55776
  for(let i = 0; i < pinsSettingsList.length; i++){
55777
55777
  var _settings_conditions;
55778
55778
  const settings = pinsSettingsList[i];
55779
- if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined' && !settings.conditions.if) {
55780
- continue;
55779
+ if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
55780
+ const preparedSettings = await preparePinsSettings(settings, context);
55781
+ if (!preparedSettings.conditions.if) {
55782
+ continue;
55783
+ }
55781
55784
  }
55782
55785
  previous = await executePins(settings, _extends({}, context, {
55783
55786
  previous,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",