@digipair/skill-vespa 0.66.2 → 0.66.3

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.
Files changed (2) hide show
  1. package/index.esm.js +10 -11
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -72686,14 +72686,14 @@ function indent(str, spaces) {
72686
72686
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
72687
72687
  // match is required
72688
72688
  if (!match) {
72689
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
72689
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
72690
72690
  v: nextMatch1
72691
72691
  };
72692
72692
  }
72693
72693
  var token = match.token, offset = match.offset;
72694
72694
  i1 += offset;
72695
72695
  if (token === " ") {
72696
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
72696
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
72697
72697
  }
72698
72698
  tokens1 = _to_consumable_array$1(tokens1).concat([
72699
72699
  token
@@ -72712,7 +72712,7 @@ function indent(str, spaces) {
72712
72712
  if (contextKeys.some(function(el) {
72713
72713
  return el.startsWith(name);
72714
72714
  })) {
72715
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
72715
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
72716
72716
  }
72717
72717
  if (dateTimeIdentifiers.some(function(el) {
72718
72718
  return el === name;
@@ -72731,9 +72731,9 @@ function indent(str, spaces) {
72731
72731
  if (dateTimeIdentifiers.some(function(el) {
72732
72732
  return el.startsWith(name);
72733
72733
  })) {
72734
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
72734
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
72735
72735
  }
72736
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
72736
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
72737
72737
  v: nextMatch1
72738
72738
  };
72739
72739
  };
@@ -76663,12 +76663,12 @@ const applyTemplate = (value, context)=>{
76663
76663
  };
76664
76664
  const executePins = async (settingsOrigin, context = {})=>{
76665
76665
  var _settings_conditions, _settings_conditions1;
76666
- let settings = await preparePinsSettings(settingsOrigin, context);
76666
+ let settings = preparePinsSettings(settingsOrigin, context);
76667
76667
  const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
76668
76668
  const config = context.config || {};
76669
76669
  let version = (config.VERSIONS || {})[settings.library] || 'latest';
76670
76670
  if (alias) {
76671
- settings = await preparePinsSettings(_extends({}, settings, alias), {
76671
+ settings = preparePinsSettings(_extends({}, settings, alias), {
76672
76672
  settings: _extends({}, settings, {
76673
76673
  version,
76674
76674
  library: settings.library.substring(alias.name.length + 1)
@@ -76695,7 +76695,7 @@ const executePins = async (settingsOrigin, context = {})=>{
76695
76695
  parent: context.parent
76696
76696
  }
76697
76697
  });
76698
- const itemSettings = await preparePinsSettings(itemSettingsOrigin, itemContext);
76698
+ const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
76699
76699
  if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
76700
76700
  continue;
76701
76701
  }
@@ -76724,7 +76724,6 @@ const executePins = async (settingsOrigin, context = {})=>{
76724
76724
  };
76725
76725
  const executePinsList = async (pinsSettingsList, context)=>{
76726
76726
  let previous = {};
76727
- // parcourir tous les pins
76728
76727
  for(let i = 0; i < pinsSettingsList.length; i++){
76729
76728
  const settings = pinsSettingsList[i];
76730
76729
  try {
@@ -76744,14 +76743,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
76744
76743
  }
76745
76744
  return previous;
76746
76745
  };
76747
- const preparePinsSettings = async (settings, context)=>{
76746
+ const preparePinsSettings = (settings, context)=>{
76748
76747
  const localContext = _extends({}, context, {
76749
76748
  variables: context.variables || {},
76750
76749
  conditions: context.conditions || {}
76751
76750
  });
76752
76751
  const conditions = {};
76753
76752
  for (const [key, value] of Object.entries(settings.conditions || {})){
76754
- conditions[key] = await applyTemplate(value, localContext);
76753
+ conditions[key] = applyTemplate(value, localContext);
76755
76754
  }
76756
76755
  const properties = {};
76757
76756
  for (const [key, value] of Object.entries(settings.properties || {})){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-vespa",
3
- "version": "0.66.2",
3
+ "version": "0.66.3",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"