@digipair/skill-web 0.8.10 → 0.8.12

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.cjs.js CHANGED
@@ -27419,8 +27419,11 @@ const executePinsList = async (pinsSettingsList, context, options = {
27419
27419
  for(let i = 0; i < pinsSettingsList.length; i++){
27420
27420
  var _settings_conditions;
27421
27421
  const settings = pinsSettingsList[i];
27422
- if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined' && !settings.conditions.if) {
27423
- continue;
27422
+ if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
27423
+ const preparedSettings = await preparePinsSettings(settings, context);
27424
+ if (!preparedSettings.conditions.if) {
27425
+ continue;
27426
+ }
27424
27427
  }
27425
27428
  previous = await executePins(settings, _extends({}, context, {
27426
27429
  previous,
@@ -27574,11 +27577,8 @@ let WebService = class WebService {
27574
27577
  variables: ${JSON.stringify(context.variables || {})},
27575
27578
  request: ${JSON.stringify(context.request || {})},
27576
27579
  };
27577
- const options = {
27578
- libraries: {},
27579
- };
27580
27580
 
27581
- await executePinsList(${JSON.stringify(execute)}, context, options);
27581
+ await executePinsList(${JSON.stringify(execute)}, context);
27582
27582
  `;
27583
27583
  return js;
27584
27584
  }
package/index.esm.js CHANGED
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
23488
23488
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23489
23489
  // match is required
23490
23490
  if (!match) {
23491
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23491
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23492
23492
  v: nextMatch1
23493
23493
  };
23494
23494
  }
23495
23495
  var token = match.token, offset = match.offset;
23496
23496
  i1 += offset;
23497
23497
  if (token === " ") {
23498
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23498
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23499
23499
  }
23500
23500
  tokens1 = _to_consumable_array$1(tokens1).concat([
23501
23501
  token
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
23514
23514
  if (contextKeys.some(function(el) {
23515
23515
  return el.startsWith(name);
23516
23516
  })) {
23517
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23517
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23518
23518
  }
23519
23519
  if (dateTimeIdentifiers.some(function(el) {
23520
23520
  return el === name;
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
23533
23533
  if (dateTimeIdentifiers.some(function(el) {
23534
23534
  return el.startsWith(name);
23535
23535
  })) {
23536
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23536
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23537
23537
  }
23538
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23538
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23539
23539
  v: nextMatch1
23540
23540
  };
23541
23541
  };
@@ -27397,8 +27397,11 @@ const executePinsList = async (pinsSettingsList, context, options = {
27397
27397
  for(let i = 0; i < pinsSettingsList.length; i++){
27398
27398
  var _settings_conditions;
27399
27399
  const settings = pinsSettingsList[i];
27400
- if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined' && !settings.conditions.if) {
27401
- continue;
27400
+ if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
27401
+ const preparedSettings = await preparePinsSettings(settings, context);
27402
+ if (!preparedSettings.conditions.if) {
27403
+ continue;
27404
+ }
27402
27405
  }
27403
27406
  previous = await executePins(settings, _extends({}, context, {
27404
27407
  previous,
@@ -27552,11 +27555,8 @@ let WebService = class WebService {
27552
27555
  variables: ${JSON.stringify(context.variables || {})},
27553
27556
  request: ${JSON.stringify(context.request || {})},
27554
27557
  };
27555
- const options = {
27556
- libraries: {},
27557
- };
27558
27558
 
27559
- await executePinsList(${JSON.stringify(execute)}, context, options);
27559
+ await executePinsList(${JSON.stringify(execute)}, context);
27560
27560
  `;
27561
27561
  return js;
27562
27562
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web",
3
- "version": "0.8.10",
3
+ "version": "0.8.12",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"