@digipair/skill-dsp 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.esm.js +4 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -27870,12 +27870,16 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27870
27870
|
var _settings_conditions, _settings_conditions1;
|
|
27871
27871
|
let settings = await preparePinsSettings(settingsOrigin, context);
|
|
27872
27872
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27873
|
+
const config = context.config || {};
|
|
27874
|
+
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27873
27875
|
if (alias) {
|
|
27874
27876
|
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
27875
27877
|
settings: _extends({}, settings, {
|
|
27878
|
+
version,
|
|
27876
27879
|
library: settings.library.substring(alias.name.length + 1)
|
|
27877
27880
|
})
|
|
27878
27881
|
});
|
|
27882
|
+
version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27879
27883
|
}
|
|
27880
27884
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27881
27885
|
const results = [];
|
|
@@ -27916,8 +27920,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27916
27920
|
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
27917
27921
|
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
27918
27922
|
}
|
|
27919
|
-
const config = context.config || {};
|
|
27920
|
-
const version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27921
27923
|
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`));
|
|
27922
27924
|
const pins = library == null ? void 0 : library[settings.element];
|
|
27923
27925
|
if (!pins) {
|