@digipair/skill-service 0.4.19 → 0.4.21
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 +20 -8
- package/index.esm.js +20 -8
- 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 i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23559
23559
|
}
|
|
23560
|
-
return
|
|
23560
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23561
23561
|
v: nextMatch1
|
|
23562
23562
|
};
|
|
23563
23563
|
};
|
|
@@ -27373,17 +27373,29 @@ 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
|
-
|
|
27376
|
+
const results = [];
|
|
27377
|
+
for (const item of settings.conditions.each){
|
|
27378
|
+
var _itemSettings_conditions;
|
|
27379
|
+
const itemSettingsOrigin = _extends({}, settingsOrigin, {
|
|
27377
27380
|
conditions: _extends({}, settingsOrigin.conditions, {
|
|
27378
27381
|
each: undefined
|
|
27379
27382
|
})
|
|
27380
|
-
})
|
|
27383
|
+
});
|
|
27384
|
+
const itemContext = _extends({}, context, {
|
|
27381
27385
|
item,
|
|
27382
27386
|
parent: {
|
|
27383
27387
|
item: context.item,
|
|
27384
27388
|
parent: context.parent
|
|
27385
27389
|
}
|
|
27386
|
-
})
|
|
27390
|
+
});
|
|
27391
|
+
const itemSettings = await preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
27392
|
+
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27393
|
+
continue;
|
|
27394
|
+
}
|
|
27395
|
+
const itemResult = await executePins(itemSettingsOrigin, itemContext, options);
|
|
27396
|
+
results.push(itemResult);
|
|
27397
|
+
}
|
|
27398
|
+
return results;
|
|
27387
27399
|
}
|
|
27388
27400
|
const version = options.libraries[settings.library] || 'latest';
|
|
27389
27401
|
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
package/index.esm.js
CHANGED
|
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
|
|
|
23488
23488
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23489
23489
|
// match is required
|
|
23490
23490
|
if (!match) {
|
|
23491
|
-
return
|
|
23491
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
|
|
23492
23492
|
v: nextMatch1
|
|
23493
23493
|
};
|
|
23494
23494
|
}
|
|
23495
23495
|
var token = match.token, offset = match.offset;
|
|
23496
23496
|
i1 += offset;
|
|
23497
23497
|
if (token === " ") {
|
|
23498
|
-
return
|
|
23498
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
|
|
23499
23499
|
}
|
|
23500
23500
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23501
23501
|
token
|
|
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
|
|
|
23514
23514
|
if (contextKeys.some(function(el) {
|
|
23515
23515
|
return el.startsWith(name);
|
|
23516
23516
|
})) {
|
|
23517
|
-
return
|
|
23517
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
|
|
23518
23518
|
}
|
|
23519
23519
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23520
23520
|
return el === name;
|
|
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
|
|
|
23533
23533
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23534
23534
|
return el.startsWith(name);
|
|
23535
23535
|
})) {
|
|
23536
|
-
return
|
|
23536
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
|
|
23537
23537
|
}
|
|
23538
|
-
return
|
|
23538
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
|
|
23539
23539
|
v: nextMatch1
|
|
23540
23540
|
};
|
|
23541
23541
|
};
|
|
@@ -27351,17 +27351,29 @@ 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
|
-
|
|
27354
|
+
const results = [];
|
|
27355
|
+
for (const item of settings.conditions.each){
|
|
27356
|
+
var _itemSettings_conditions;
|
|
27357
|
+
const itemSettingsOrigin = _extends({}, settingsOrigin, {
|
|
27355
27358
|
conditions: _extends({}, settingsOrigin.conditions, {
|
|
27356
27359
|
each: undefined
|
|
27357
27360
|
})
|
|
27358
|
-
})
|
|
27361
|
+
});
|
|
27362
|
+
const itemContext = _extends({}, context, {
|
|
27359
27363
|
item,
|
|
27360
27364
|
parent: {
|
|
27361
27365
|
item: context.item,
|
|
27362
27366
|
parent: context.parent
|
|
27363
27367
|
}
|
|
27364
|
-
})
|
|
27368
|
+
});
|
|
27369
|
+
const itemSettings = await preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
27370
|
+
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27371
|
+
continue;
|
|
27372
|
+
}
|
|
27373
|
+
const itemResult = await executePins(itemSettingsOrigin, itemContext, options);
|
|
27374
|
+
results.push(itemResult);
|
|
27375
|
+
}
|
|
27376
|
+
return results;
|
|
27365
27377
|
}
|
|
27366
27378
|
const version = options.libraries[settings.library] || 'latest';
|
|
27367
27379
|
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|