@digipair/engine 0.31.4 → 0.32.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
@@ -23511,14 +23511,14 @@ function indent(str, spaces) {
23511
23511
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23512
23512
  // match is required
23513
23513
  if (!match) {
23514
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23514
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23515
23515
  v: nextMatch1
23516
23516
  };
23517
23517
  }
23518
23518
  var token = match.token, offset = match.offset;
23519
23519
  i1 += offset;
23520
23520
  if (token === " ") {
23521
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23521
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23522
23522
  }
23523
23523
  tokens1 = _to_consumable_array$1(tokens1).concat([
23524
23524
  token
@@ -23537,7 +23537,7 @@ function indent(str, spaces) {
23537
23537
  if (contextKeys.some(function(el) {
23538
23538
  return el.startsWith(name);
23539
23539
  })) {
23540
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23540
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23541
23541
  }
23542
23542
  if (dateTimeIdentifiers.some(function(el) {
23543
23543
  return el === name;
@@ -23556,9 +23556,9 @@ function indent(str, spaces) {
23556
23556
  if (dateTimeIdentifiers.some(function(el) {
23557
23557
  return el.startsWith(name);
23558
23558
  })) {
23559
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23559
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23560
23560
  }
23561
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23561
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23562
23562
  v: nextMatch1
23563
23563
  };
23564
23564
  };
@@ -27429,7 +27429,8 @@ const executePins = async (settingsOrigin, context = {})=>{
27429
27429
  if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
27430
27430
  throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
27431
27431
  }
27432
- const version = context.config.VERSIONS[settings.library] || 'latest';
27432
+ const config = context.config || {};
27433
+ const version = (config.VERSIONS || {})[settings.library] || 'latest';
27433
27434
  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`));
27434
27435
  const pins = library == null ? void 0 : library[settings.element];
27435
27436
  if (!pins) {
@@ -27488,7 +27489,8 @@ const generateElementFromPins = async (pinsSettings, parent, context)=>{
27488
27489
  element.setAttribute('data-digipair-pins', '');
27489
27490
  const library = pinsSettings.library;
27490
27491
  if (library !== 'web' && !_config.LIBRARIES[library]) {
27491
- const version = context.config.VERSIONS[library] || 'latest';
27492
+ const config = context.config || {};
27493
+ const version = (config.VERSIONS || {})[library] || 'latest';
27492
27494
  (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${library}@${version}/index.esm.js`);
27493
27495
  }
27494
27496
  Object.entries(settings.properties || {}).forEach(([key, value])=>{
package/index.esm.js CHANGED
@@ -27407,7 +27407,8 @@ const executePins = async (settingsOrigin, context = {})=>{
27407
27407
  if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
27408
27408
  throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
27409
27409
  }
27410
- const version = context.config.VERSIONS[settings.library] || 'latest';
27410
+ const config = context.config || {};
27411
+ const version = (config.VERSIONS || {})[settings.library] || 'latest';
27411
27412
  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`));
27412
27413
  const pins = library == null ? void 0 : library[settings.element];
27413
27414
  if (!pins) {
@@ -27466,7 +27467,8 @@ const generateElementFromPins = async (pinsSettings, parent, context)=>{
27466
27467
  element.setAttribute('data-digipair-pins', '');
27467
27468
  const library = pinsSettings.library;
27468
27469
  if (library !== 'web' && !_config.LIBRARIES[library]) {
27469
- const version = context.config.VERSIONS[library] || 'latest';
27470
+ const config = context.config || {};
27471
+ const version = (config.VERSIONS || {})[library] || 'latest';
27470
27472
  import(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${library}@${version}/index.esm.js`);
27471
27473
  }
27472
27474
  Object.entries(settings.properties || {}).forEach(([key, value])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.31.4",
3
+ "version": "0.32.0",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",