@digipair/skill-mongodb 0.15.3 → 0.16.0

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
@@ -23580,14 +23580,14 @@ function indent(str, spaces) {
23580
23580
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23581
23581
  // match is required
23582
23582
  if (!match) {
23583
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23583
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23584
23584
  v: nextMatch1
23585
23585
  };
23586
23586
  }
23587
23587
  var token = match.token, offset = match.offset;
23588
23588
  i1 += offset;
23589
23589
  if (token === " ") {
23590
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23590
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23591
23591
  }
23592
23592
  tokens1 = _to_consumable_array$a(tokens1).concat([
23593
23593
  token
@@ -23606,7 +23606,7 @@ function indent(str, spaces) {
23606
23606
  if (contextKeys.some(function(el) {
23607
23607
  return el.startsWith(name);
23608
23608
  })) {
23609
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23609
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23610
23610
  }
23611
23611
  if (dateTimeIdentifiers.some(function(el) {
23612
23612
  return el === name;
@@ -23625,9 +23625,9 @@ function indent(str, spaces) {
23625
23625
  if (dateTimeIdentifiers.some(function(el) {
23626
23626
  return el.startsWith(name);
23627
23627
  })) {
23628
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23628
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23629
23629
  }
23630
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23630
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23631
23631
  v: nextMatch1
23632
23632
  };
23633
23633
  };
@@ -27418,6 +27418,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27418
27418
  LIBRARIES: {},
27419
27419
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27420
27420
  };
27421
+ const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
27421
27422
  const isPinsSettings = (value)=>{
27422
27423
  return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27423
27424
  };
@@ -27474,7 +27475,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27474
27475
  return results;
27475
27476
  }
27476
27477
  const version = context.config.VERSIONS[settings.library] || 'latest';
27477
- const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27478
+ const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27478
27479
  const pins = library == null ? void 0 : library[settings.element];
27479
27480
  if (!pins) {
27480
27481
  throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
package/index.esm.js CHANGED
@@ -23530,14 +23530,14 @@ function indent(str, spaces) {
23530
23530
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23531
23531
  // match is required
23532
23532
  if (!match) {
23533
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23533
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23534
23534
  v: nextMatch1
23535
23535
  };
23536
23536
  }
23537
23537
  var token = match.token, offset = match.offset;
23538
23538
  i1 += offset;
23539
23539
  if (token === " ") {
23540
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23540
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23541
23541
  }
23542
23542
  tokens1 = _to_consumable_array$a(tokens1).concat([
23543
23543
  token
@@ -23556,7 +23556,7 @@ function indent(str, spaces) {
23556
23556
  if (contextKeys.some(function(el) {
23557
23557
  return el.startsWith(name);
23558
23558
  })) {
23559
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23559
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23560
23560
  }
23561
23561
  if (dateTimeIdentifiers.some(function(el) {
23562
23562
  return el === name;
@@ -23575,9 +23575,9 @@ function indent(str, spaces) {
23575
23575
  if (dateTimeIdentifiers.some(function(el) {
23576
23576
  return el.startsWith(name);
23577
23577
  })) {
23578
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23578
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23579
23579
  }
23580
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23580
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23581
23581
  v: nextMatch1
23582
23582
  };
23583
23583
  };
@@ -27368,6 +27368,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27368
27368
  LIBRARIES: {},
27369
27369
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27370
27370
  };
27371
+ const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
27371
27372
  const isPinsSettings = (value)=>{
27372
27373
  return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27373
27374
  };
@@ -27424,7 +27425,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27424
27425
  return results;
27425
27426
  }
27426
27427
  const version = context.config.VERSIONS[settings.library] || 'latest';
27427
- const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27428
+ const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27428
27429
  const pins = library == null ? void 0 : library[settings.element];
27429
27430
  if (!pins) {
27430
27431
  throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-mongodb",
3
- "version": "0.15.3",
3
+ "version": "0.16.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"