@digipair/skill-sse 0.66.0 → 0.66.3
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
CHANGED
|
@@ -25127,14 +25127,14 @@ function indent(str, spaces) {
|
|
|
25127
25127
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
25128
25128
|
// match is required
|
|
25129
25129
|
if (!match) {
|
|
25130
|
-
return i = i1,
|
|
25130
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
25131
25131
|
v: nextMatch1
|
|
25132
25132
|
};
|
|
25133
25133
|
}
|
|
25134
25134
|
var token = match.token, offset = match.offset;
|
|
25135
25135
|
i1 += offset;
|
|
25136
25136
|
if (token === " ") {
|
|
25137
|
-
return i = i1,
|
|
25137
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
25138
25138
|
}
|
|
25139
25139
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
25140
25140
|
token
|
|
@@ -25153,7 +25153,7 @@ function indent(str, spaces) {
|
|
|
25153
25153
|
if (contextKeys.some(function(el) {
|
|
25154
25154
|
return el.startsWith(name);
|
|
25155
25155
|
})) {
|
|
25156
|
-
return i = i1,
|
|
25156
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
25157
25157
|
}
|
|
25158
25158
|
if (dateTimeIdentifiers.some(function(el) {
|
|
25159
25159
|
return el === name;
|
|
@@ -25172,9 +25172,9 @@ function indent(str, spaces) {
|
|
|
25172
25172
|
if (dateTimeIdentifiers.some(function(el) {
|
|
25173
25173
|
return el.startsWith(name);
|
|
25174
25174
|
})) {
|
|
25175
|
-
return i = i1,
|
|
25175
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
25176
25176
|
}
|
|
25177
|
-
return i = i1,
|
|
25177
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
25178
25178
|
v: nextMatch1
|
|
25179
25179
|
};
|
|
25180
25180
|
};
|
|
@@ -29104,12 +29104,12 @@ const applyTemplate = (value, context)=>{
|
|
|
29104
29104
|
};
|
|
29105
29105
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
29106
29106
|
var _settings_conditions, _settings_conditions1;
|
|
29107
|
-
let settings =
|
|
29107
|
+
let settings = preparePinsSettings(settingsOrigin, context);
|
|
29108
29108
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
29109
29109
|
const config = context.config || {};
|
|
29110
29110
|
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
29111
29111
|
if (alias) {
|
|
29112
|
-
settings =
|
|
29112
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
29113
29113
|
settings: _extends({}, settings, {
|
|
29114
29114
|
version,
|
|
29115
29115
|
library: settings.library.substring(alias.name.length + 1)
|
|
@@ -29136,7 +29136,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
29136
29136
|
parent: context.parent
|
|
29137
29137
|
}
|
|
29138
29138
|
});
|
|
29139
|
-
const itemSettings =
|
|
29139
|
+
const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
29140
29140
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
29141
29141
|
continue;
|
|
29142
29142
|
}
|
|
@@ -29165,7 +29165,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
29165
29165
|
};
|
|
29166
29166
|
const executePinsList = async (pinsSettingsList, context)=>{
|
|
29167
29167
|
let previous = {};
|
|
29168
|
-
// parcourir tous les pins
|
|
29169
29168
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
29170
29169
|
const settings = pinsSettingsList[i];
|
|
29171
29170
|
try {
|
|
@@ -29185,14 +29184,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
29185
29184
|
}
|
|
29186
29185
|
return previous;
|
|
29187
29186
|
};
|
|
29188
|
-
const preparePinsSettings =
|
|
29187
|
+
const preparePinsSettings = (settings, context)=>{
|
|
29189
29188
|
const localContext = _extends({}, context, {
|
|
29190
29189
|
variables: context.variables || {},
|
|
29191
29190
|
conditions: context.conditions || {}
|
|
29192
29191
|
});
|
|
29193
29192
|
const conditions = {};
|
|
29194
29193
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
29195
|
-
conditions[key] =
|
|
29194
|
+
conditions[key] = applyTemplate(value, localContext);
|
|
29196
29195
|
}
|
|
29197
29196
|
const properties = {};
|
|
29198
29197
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|