@digipair/skill-llm 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.cjs2.js CHANGED
@@ -27346,6 +27346,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27346
27346
  LIBRARIES: {},
27347
27347
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27348
27348
  };
27349
+ const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
27349
27350
  const isPinsSettings = (value)=>{
27350
27351
  return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27351
27352
  };
@@ -27402,7 +27403,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27402
27403
  return results;
27403
27404
  }
27404
27405
  const version = context.config.VERSIONS[settings.library] || 'latest';
27405
- 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`));
27406
+ 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`));
27406
27407
  const pins = library == null ? void 0 : library[settings.element];
27407
27408
  if (!pins) {
27408
27409
  throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
package/index.esm2.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, i = i1, tokens = tokens1, {
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, i = i1, tokens = tokens1, "continue";
23498
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23499
23499
  }
23500
23500
  tokens1 = _to_consumable_array$B(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, i = i1, tokens = tokens1, "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, i = i1, tokens = tokens1, "continue";
23536
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23537
23537
  }
23538
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23538
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23539
23539
  v: nextMatch1
23540
23540
  };
23541
23541
  };
@@ -27326,6 +27326,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27326
27326
  LIBRARIES: {},
27327
27327
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27328
27328
  };
27329
+ const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
27329
27330
  const isPinsSettings = (value)=>{
27330
27331
  return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27331
27332
  };
@@ -27382,7 +27383,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27382
27383
  return results;
27383
27384
  }
27384
27385
  const version = context.config.VERSIONS[settings.library] || 'latest';
27385
- const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27386
+ 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`));
27386
27387
  const pins = library == null ? void 0 : library[settings.element];
27387
27388
  if (!pins) {
27388
27389
  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-llm",
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"