@digipair/skill-dsp 0.66.2 → 0.66.4
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 +10 -11
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -23912,14 +23912,14 @@ function indent(str, spaces) {
|
|
|
23912
23912
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23913
23913
|
// match is required
|
|
23914
23914
|
if (!match) {
|
|
23915
|
-
return
|
|
23915
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23916
23916
|
v: nextMatch1
|
|
23917
23917
|
};
|
|
23918
23918
|
}
|
|
23919
23919
|
var token = match.token, offset = match.offset;
|
|
23920
23920
|
i1 += offset;
|
|
23921
23921
|
if (token === " ") {
|
|
23922
|
-
return
|
|
23922
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23923
23923
|
}
|
|
23924
23924
|
tokens1 = _to_consumable_array$2(tokens1).concat([
|
|
23925
23925
|
token
|
|
@@ -23938,7 +23938,7 @@ function indent(str, spaces) {
|
|
|
23938
23938
|
if (contextKeys.some(function(el) {
|
|
23939
23939
|
return el.startsWith(name);
|
|
23940
23940
|
})) {
|
|
23941
|
-
return
|
|
23941
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23942
23942
|
}
|
|
23943
23943
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23944
23944
|
return el === name;
|
|
@@ -23957,9 +23957,9 @@ function indent(str, spaces) {
|
|
|
23957
23957
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23958
23958
|
return el.startsWith(name);
|
|
23959
23959
|
})) {
|
|
23960
|
-
return
|
|
23960
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23961
23961
|
}
|
|
23962
|
-
return
|
|
23962
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23963
23963
|
v: nextMatch1
|
|
23964
23964
|
};
|
|
23965
23965
|
};
|
|
@@ -27889,12 +27889,12 @@ const applyTemplate = (value, context)=>{
|
|
|
27889
27889
|
};
|
|
27890
27890
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27891
27891
|
var _settings_conditions, _settings_conditions1;
|
|
27892
|
-
let settings =
|
|
27892
|
+
let settings = preparePinsSettings(settingsOrigin, context);
|
|
27893
27893
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27894
27894
|
const config = context.config || {};
|
|
27895
27895
|
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27896
27896
|
if (alias) {
|
|
27897
|
-
settings =
|
|
27897
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
27898
27898
|
settings: _extends({}, settings, {
|
|
27899
27899
|
version,
|
|
27900
27900
|
library: settings.library.substring(alias.name.length + 1)
|
|
@@ -27921,7 +27921,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27921
27921
|
parent: context.parent
|
|
27922
27922
|
}
|
|
27923
27923
|
});
|
|
27924
|
-
const itemSettings =
|
|
27924
|
+
const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
27925
27925
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27926
27926
|
continue;
|
|
27927
27927
|
}
|
|
@@ -27950,7 +27950,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27950
27950
|
};
|
|
27951
27951
|
const executePinsList = async (pinsSettingsList, context)=>{
|
|
27952
27952
|
let previous = {};
|
|
27953
|
-
// parcourir tous les pins
|
|
27954
27953
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27955
27954
|
const settings = pinsSettingsList[i];
|
|
27956
27955
|
try {
|
|
@@ -27970,14 +27969,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27970
27969
|
}
|
|
27971
27970
|
return previous;
|
|
27972
27971
|
};
|
|
27973
|
-
const preparePinsSettings =
|
|
27972
|
+
const preparePinsSettings = (settings, context)=>{
|
|
27974
27973
|
const localContext = _extends({}, context, {
|
|
27975
27974
|
variables: context.variables || {},
|
|
27976
27975
|
conditions: context.conditions || {}
|
|
27977
27976
|
});
|
|
27978
27977
|
const conditions = {};
|
|
27979
27978
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27980
|
-
conditions[key] =
|
|
27979
|
+
conditions[key] = applyTemplate(value, localContext);
|
|
27981
27980
|
}
|
|
27982
27981
|
const properties = {};
|
|
27983
27982
|
for (const [key, value] of Object.entries(settings.properties || {})){
|