@digipair/skill-dsp 0.15.4 → 0.16.1

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
@@ -23524,14 +23524,14 @@ function indent(str, spaces) {
23524
23524
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23525
23525
  // match is required
23526
23526
  if (!match) {
23527
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23527
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23528
23528
  v: nextMatch1
23529
23529
  };
23530
23530
  }
23531
23531
  var token = match.token, offset = match.offset;
23532
23532
  i1 += offset;
23533
23533
  if (token === " ") {
23534
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23534
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23535
23535
  }
23536
23536
  tokens1 = _to_consumable_array$6(tokens1).concat([
23537
23537
  token
@@ -23550,7 +23550,7 @@ function indent(str, spaces) {
23550
23550
  if (contextKeys.some(function(el) {
23551
23551
  return el.startsWith(name);
23552
23552
  })) {
23553
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23553
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23554
23554
  }
23555
23555
  if (dateTimeIdentifiers.some(function(el) {
23556
23556
  return el === name;
@@ -23569,9 +23569,9 @@ function indent(str, spaces) {
23569
23569
  if (dateTimeIdentifiers.some(function(el) {
23570
23570
  return el.startsWith(name);
23571
23571
  })) {
23572
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23572
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23573
23573
  }
23574
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23574
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23575
23575
  v: nextMatch1
23576
23576
  };
23577
23577
  };
@@ -27362,6 +27362,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27362
27362
  LIBRARIES: {},
27363
27363
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27364
27364
  };
27365
+ const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
27365
27366
  const isPinsSettings = (value)=>{
27366
27367
  return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27367
27368
  };
@@ -27418,7 +27419,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27418
27419
  return results;
27419
27420
  }
27420
27421
  const version = context.config.VERSIONS[settings.library] || 'latest';
27421
- 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`));
27422
+ 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`));
27422
27423
  const pins = library == null ? void 0 : library[settings.element];
27423
27424
  if (!pins) {
27424
27425
  throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
package/index.esm.js CHANGED
@@ -23498,14 +23498,14 @@ function indent(str, spaces) {
23498
23498
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23499
23499
  // match is required
23500
23500
  if (!match) {
23501
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23501
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23502
23502
  v: nextMatch1
23503
23503
  };
23504
23504
  }
23505
23505
  var token = match.token, offset = match.offset;
23506
23506
  i1 += offset;
23507
23507
  if (token === " ") {
23508
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23508
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23509
23509
  }
23510
23510
  tokens1 = _to_consumable_array$6(tokens1).concat([
23511
23511
  token
@@ -23524,7 +23524,7 @@ function indent(str, spaces) {
23524
23524
  if (contextKeys.some(function(el) {
23525
23525
  return el.startsWith(name);
23526
23526
  })) {
23527
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23527
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23528
23528
  }
23529
23529
  if (dateTimeIdentifiers.some(function(el) {
23530
23530
  return el === name;
@@ -23543,9 +23543,9 @@ function indent(str, spaces) {
23543
23543
  if (dateTimeIdentifiers.some(function(el) {
23544
23544
  return el.startsWith(name);
23545
23545
  })) {
23546
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23546
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23547
23547
  }
23548
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23548
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23549
23549
  v: nextMatch1
23550
23550
  };
23551
23551
  };
@@ -27336,6 +27336,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27336
27336
  LIBRARIES: {},
27337
27337
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27338
27338
  };
27339
+ const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
27339
27340
  const isPinsSettings = (value)=>{
27340
27341
  return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27341
27342
  };
@@ -27392,7 +27393,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27392
27393
  return results;
27393
27394
  }
27394
27395
  const version = context.config.VERSIONS[settings.library] || 'latest';
27395
- const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27396
+ 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`));
27396
27397
  const pins = library == null ? void 0 : library[settings.element];
27397
27398
  if (!pins) {
27398
27399
  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-dsp",
3
- "version": "0.15.4",
3
+ "version": "0.16.1",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"