@digipair/skill-service 0.4.13 → 0.4.14
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.cjs.js +11 -9
- package/index.esm.js +6 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23510,14 +23510,14 @@ function indent(str, spaces) {
|
|
|
23510
23510
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23511
23511
|
// match is required
|
|
23512
23512
|
if (!match) {
|
|
23513
|
-
return
|
|
23513
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23514
23514
|
v: nextMatch1
|
|
23515
23515
|
};
|
|
23516
23516
|
}
|
|
23517
23517
|
var token = match.token, offset = match.offset;
|
|
23518
23518
|
i1 += offset;
|
|
23519
23519
|
if (token === " ") {
|
|
23520
|
-
return
|
|
23520
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23521
23521
|
}
|
|
23522
23522
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23523
23523
|
token
|
|
@@ -23536,7 +23536,7 @@ function indent(str, spaces) {
|
|
|
23536
23536
|
if (contextKeys.some(function(el) {
|
|
23537
23537
|
return el.startsWith(name);
|
|
23538
23538
|
})) {
|
|
23539
|
-
return
|
|
23539
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23540
23540
|
}
|
|
23541
23541
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23542
23542
|
return el === name;
|
|
@@ -23555,9 +23555,9 @@ function indent(str, spaces) {
|
|
|
23555
23555
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23556
23556
|
return el.startsWith(name);
|
|
23557
23557
|
})) {
|
|
23558
|
-
return
|
|
23558
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23559
23559
|
}
|
|
23560
|
-
return
|
|
23560
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23561
23561
|
v: nextMatch1
|
|
23562
23562
|
};
|
|
23563
23563
|
};
|
|
@@ -27373,8 +27373,8 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
27373
27373
|
var _settings_conditions;
|
|
27374
27374
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27375
27375
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27376
|
-
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({},
|
|
27377
|
-
conditions: _extends({},
|
|
27376
|
+
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({}, settingsOrigin, {
|
|
27377
|
+
conditions: _extends({}, settingsOrigin.conditions, {
|
|
27378
27378
|
each: undefined
|
|
27379
27379
|
})
|
|
27380
27380
|
}), _extends({}, context, {
|
|
@@ -27429,15 +27429,17 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27429
27429
|
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
27430
27430
|
localContext.variables[key] = applyTemplate(value, localContext);
|
|
27431
27431
|
}
|
|
27432
|
+
const conditions = {};
|
|
27432
27433
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27433
|
-
|
|
27434
|
+
conditions[key] = await applyTemplate(value, localContext);
|
|
27434
27435
|
}
|
|
27435
27436
|
const properties = {};
|
|
27436
27437
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
|
27437
27438
|
properties[key] = applyTemplate(value, localContext);
|
|
27438
27439
|
}
|
|
27439
27440
|
return _extends({}, settings, {
|
|
27440
|
-
properties
|
|
27441
|
+
properties,
|
|
27442
|
+
conditions
|
|
27441
27443
|
});
|
|
27442
27444
|
};
|
|
27443
27445
|
|
package/index.esm.js
CHANGED
|
@@ -27351,8 +27351,8 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
27351
27351
|
var _settings_conditions;
|
|
27352
27352
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27353
27353
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27354
|
-
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({},
|
|
27355
|
-
conditions: _extends({},
|
|
27354
|
+
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({}, settingsOrigin, {
|
|
27355
|
+
conditions: _extends({}, settingsOrigin.conditions, {
|
|
27356
27356
|
each: undefined
|
|
27357
27357
|
})
|
|
27358
27358
|
}), _extends({}, context, {
|
|
@@ -27407,15 +27407,17 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27407
27407
|
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
27408
27408
|
localContext.variables[key] = applyTemplate(value, localContext);
|
|
27409
27409
|
}
|
|
27410
|
+
const conditions = {};
|
|
27410
27411
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27411
|
-
|
|
27412
|
+
conditions[key] = await applyTemplate(value, localContext);
|
|
27412
27413
|
}
|
|
27413
27414
|
const properties = {};
|
|
27414
27415
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
|
27415
27416
|
properties[key] = applyTemplate(value, localContext);
|
|
27416
27417
|
}
|
|
27417
27418
|
return _extends({}, settings, {
|
|
27418
|
-
properties
|
|
27419
|
+
properties,
|
|
27420
|
+
conditions
|
|
27419
27421
|
});
|
|
27420
27422
|
};
|
|
27421
27423
|
|