@digipair/skill-mongodb 0.66.0 → 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
@@ -23941,14 +23941,14 @@ function indent(str, spaces) {
23941
23941
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23942
23942
  // match is required
23943
23943
  if (!match) {
23944
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23944
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23945
23945
  v: nextMatch1
23946
23946
  };
23947
23947
  }
23948
23948
  var token = match.token, offset = match.offset;
23949
23949
  i1 += offset;
23950
23950
  if (token === " ") {
23951
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23951
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23952
23952
  }
23953
23953
  tokens1 = _to_consumable_array$a(tokens1).concat([
23954
23954
  token
@@ -23967,7 +23967,7 @@ function indent(str, spaces) {
23967
23967
  if (contextKeys.some(function(el) {
23968
23968
  return el.startsWith(name);
23969
23969
  })) {
23970
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23970
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23971
23971
  }
23972
23972
  if (dateTimeIdentifiers.some(function(el) {
23973
23973
  return el === name;
@@ -23986,9 +23986,9 @@ function indent(str, spaces) {
23986
23986
  if (dateTimeIdentifiers.some(function(el) {
23987
23987
  return el.startsWith(name);
23988
23988
  })) {
23989
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23989
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23990
23990
  }
23991
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23991
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23992
23992
  v: nextMatch1
23993
23993
  };
23994
23994
  };
@@ -27918,12 +27918,12 @@ const applyTemplate = (value, context)=>{
27918
27918
  };
27919
27919
  const executePins = async (settingsOrigin, context = {})=>{
27920
27920
  var _settings_conditions, _settings_conditions1;
27921
- let settings = await preparePinsSettings(settingsOrigin, context);
27921
+ let settings = preparePinsSettings(settingsOrigin, context);
27922
27922
  const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
27923
27923
  const config = context.config || {};
27924
27924
  let version = (config.VERSIONS || {})[settings.library] || 'latest';
27925
27925
  if (alias) {
27926
- settings = await preparePinsSettings(_extends$1({}, settings, alias), {
27926
+ settings = preparePinsSettings(_extends$1({}, settings, alias), {
27927
27927
  settings: _extends$1({}, settings, {
27928
27928
  version,
27929
27929
  library: settings.library.substring(alias.name.length + 1)
@@ -27950,7 +27950,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27950
27950
  parent: context.parent
27951
27951
  }
27952
27952
  });
27953
- const itemSettings = await preparePinsSettings(itemSettingsOrigin, itemContext);
27953
+ const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
27954
27954
  if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
27955
27955
  continue;
27956
27956
  }
@@ -27979,7 +27979,6 @@ const executePins = async (settingsOrigin, context = {})=>{
27979
27979
  };
27980
27980
  const executePinsList = async (pinsSettingsList, context)=>{
27981
27981
  let previous = {};
27982
- // parcourir tous les pins
27983
27982
  for(let i = 0; i < pinsSettingsList.length; i++){
27984
27983
  const settings = pinsSettingsList[i];
27985
27984
  try {
@@ -27999,14 +27998,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
27999
27998
  }
28000
27999
  return previous;
28001
28000
  };
28002
- const preparePinsSettings = async (settings, context)=>{
28001
+ const preparePinsSettings = (settings, context)=>{
28003
28002
  const localContext = _extends$1({}, context, {
28004
28003
  variables: context.variables || {},
28005
28004
  conditions: context.conditions || {}
28006
28005
  });
28007
28006
  const conditions = {};
28008
28007
  for (const [key, value] of Object.entries(settings.conditions || {})){
28009
- conditions[key] = await applyTemplate(value, localContext);
28008
+ conditions[key] = applyTemplate(value, localContext);
28010
28009
  }
28011
28010
  const properties = {};
28012
28011
  for (const [key, value] of Object.entries(settings.properties || {})){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-mongodb",
3
- "version": "0.66.0",
3
+ "version": "0.66.3",
4
4
  "dependencies": {
5
5
  "mongodb": "^6.10.0"
6
6
  },