@digipair/skill-sse 0.61.0 → 0.63.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.esm.js +4 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -29085,12 +29085,16 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
29085
29085
|
var _settings_conditions, _settings_conditions1;
|
|
29086
29086
|
let settings = await preparePinsSettings(settingsOrigin, context);
|
|
29087
29087
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
29088
|
+
const config = context.config || {};
|
|
29089
|
+
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
29088
29090
|
if (alias) {
|
|
29089
29091
|
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
29090
29092
|
settings: _extends({}, settings, {
|
|
29093
|
+
version,
|
|
29091
29094
|
library: settings.library.substring(alias.name.length + 1)
|
|
29092
29095
|
})
|
|
29093
29096
|
});
|
|
29097
|
+
version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
29094
29098
|
}
|
|
29095
29099
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
29096
29100
|
const results = [];
|
|
@@ -29131,8 +29135,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
29131
29135
|
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
29132
29136
|
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
29133
29137
|
}
|
|
29134
|
-
const config = context.config || {};
|
|
29135
|
-
const version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
29136
29138
|
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`));
|
|
29137
29139
|
const pins = library == null ? void 0 : library[settings.element];
|
|
29138
29140
|
if (!pins) {
|