@digipair/engine 0.60.8 → 0.62.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
@@ -8204,12 +8204,16 @@ const executePins = async (settingsOrigin, context = {})=>{
8204
8204
  var _settings_conditions, _settings_conditions1;
8205
8205
  let settings = await preparePinsSettings(settingsOrigin, context);
8206
8206
  const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
8207
+ const config = context.config || {};
8208
+ let version = (config.VERSIONS || {})[settings.library] || 'latest';
8207
8209
  if (alias) {
8208
8210
  settings = await preparePinsSettings(_extends({}, settings, alias), {
8209
8211
  settings: _extends({}, settings, {
8212
+ version,
8210
8213
  library: settings.library.substring(alias.name.length + 1)
8211
8214
  })
8212
8215
  });
8216
+ version = (config.VERSIONS || {})[settings.library] || 'latest';
8213
8217
  }
8214
8218
  if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
8215
8219
  const results = [];
@@ -8250,8 +8254,6 @@ const executePins = async (settingsOrigin, context = {})=>{
8250
8254
  if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
8251
8255
  throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
8252
8256
  }
8253
- const config = context.config || {};
8254
- const version = (config.VERSIONS || {})[settings.library] || 'latest';
8255
8257
  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`));
8256
8258
  const pins = library == null ? void 0 : library[settings.element];
8257
8259
  if (!pins) {
package/index.esm.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23902
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23909
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$1(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23928
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23947
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23948
23948
  }
23949
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23949
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27862,12 +27862,16 @@ const executePins = async (settingsOrigin, context = {})=>{
27862
27862
  var _settings_conditions, _settings_conditions1;
27863
27863
  let settings = await preparePinsSettings(settingsOrigin, context);
27864
27864
  const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
27865
+ const config = context.config || {};
27866
+ let version = (config.VERSIONS || {})[settings.library] || 'latest';
27865
27867
  if (alias) {
27866
27868
  settings = await preparePinsSettings(_extends({}, settings, alias), {
27867
27869
  settings: _extends({}, settings, {
27870
+ version,
27868
27871
  library: settings.library.substring(alias.name.length + 1)
27869
27872
  })
27870
27873
  });
27874
+ version = (config.VERSIONS || {})[settings.library] || 'latest';
27871
27875
  }
27872
27876
  if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
27873
27877
  const results = [];
@@ -27908,8 +27912,6 @@ const executePins = async (settingsOrigin, context = {})=>{
27908
27912
  if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
27909
27913
  throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
27910
27914
  }
27911
- const config = context.config || {};
27912
- const version = (config.VERSIONS || {})[settings.library] || 'latest';
27913
27915
  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`));
27914
27916
  const pins = library == null ? void 0 : library[settings.element];
27915
27917
  if (!pins) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.60.8",
3
+ "version": "0.62.0",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",