@digipair/skill-service 0.61.0 → 0.63.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
|
@@ -27857,12 +27857,16 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27857
27857
|
var _settings_conditions, _settings_conditions1;
|
|
27858
27858
|
let settings = await preparePinsSettings(settingsOrigin, context);
|
|
27859
27859
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27860
|
+
const config = context.config || {};
|
|
27861
|
+
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27860
27862
|
if (alias) {
|
|
27861
27863
|
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
27862
27864
|
settings: _extends({}, settings, {
|
|
27865
|
+
version,
|
|
27863
27866
|
library: settings.library.substring(alias.name.length + 1)
|
|
27864
27867
|
})
|
|
27865
27868
|
});
|
|
27869
|
+
version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27866
27870
|
}
|
|
27867
27871
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27868
27872
|
const results = [];
|
|
@@ -27903,8 +27907,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27903
27907
|
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
27904
27908
|
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
27905
27909
|
}
|
|
27906
|
-
const config = context.config || {};
|
|
27907
|
-
const version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27908
27910
|
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`));
|
|
27909
27911
|
const pins = library == null ? void 0 : library[settings.element];
|
|
27910
27912
|
if (!pins) {
|