@digipair/skill-dsp 0.18.9 → 0.19.0
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 +31 -20
- package/index.esm.js +31 -20
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23524,14 +23524,14 @@ function indent(str, spaces) {
|
|
|
23524
23524
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23525
23525
|
// match is required
|
|
23526
23526
|
if (!match) {
|
|
23527
|
-
return
|
|
23527
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23528
23528
|
v: nextMatch1
|
|
23529
23529
|
};
|
|
23530
23530
|
}
|
|
23531
23531
|
var token = match.token, offset = match.offset;
|
|
23532
23532
|
i1 += offset;
|
|
23533
23533
|
if (token === " ") {
|
|
23534
|
-
return
|
|
23534
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23535
23535
|
}
|
|
23536
23536
|
tokens1 = _to_consumable_array$6(tokens1).concat([
|
|
23537
23537
|
token
|
|
@@ -23550,7 +23550,7 @@ function indent(str, spaces) {
|
|
|
23550
23550
|
if (contextKeys.some(function(el) {
|
|
23551
23551
|
return el.startsWith(name);
|
|
23552
23552
|
})) {
|
|
23553
|
-
return
|
|
23553
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23554
23554
|
}
|
|
23555
23555
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23556
23556
|
return el === name;
|
|
@@ -23569,9 +23569,9 @@ function indent(str, spaces) {
|
|
|
23569
23569
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23570
23570
|
return el.startsWith(name);
|
|
23571
23571
|
})) {
|
|
23572
|
-
return
|
|
23572
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23573
23573
|
}
|
|
23574
|
-
return
|
|
23574
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23575
23575
|
v: nextMatch1
|
|
23576
23576
|
};
|
|
23577
23577
|
};
|
|
@@ -27388,7 +27388,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27388
27388
|
return result;
|
|
27389
27389
|
};
|
|
27390
27390
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27391
|
-
var _settings_conditions;
|
|
27391
|
+
var _settings_conditions, _settings_conditions1;
|
|
27392
27392
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27393
27393
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27394
27394
|
const results = [];
|
|
@@ -27413,11 +27413,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27413
27413
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27414
27414
|
continue;
|
|
27415
27415
|
}
|
|
27416
|
-
|
|
27416
|
+
let itemResult = null;
|
|
27417
|
+
try {
|
|
27418
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
|
27419
|
+
} catch (error) {
|
|
27420
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27421
|
+
continue;
|
|
27422
|
+
}
|
|
27423
|
+
throw error;
|
|
27424
|
+
}
|
|
27417
27425
|
results.push(itemResult);
|
|
27418
27426
|
}
|
|
27419
27427
|
return results;
|
|
27420
27428
|
}
|
|
27429
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
27430
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
27431
|
+
}
|
|
27421
27432
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
27422
27433
|
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)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
|
27423
27434
|
const pins = library == null ? void 0 : library[settings.element];
|
|
@@ -27431,23 +27442,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27431
27442
|
const steps = [];
|
|
27432
27443
|
// parcourir tous les pins
|
|
27433
27444
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27434
|
-
var _settings_conditions;
|
|
27435
27445
|
const settings = pinsSettingsList[i];
|
|
27436
|
-
|
|
27437
|
-
|
|
27438
|
-
|
|
27446
|
+
try {
|
|
27447
|
+
previous = await executePins(settings, _extends({}, context, {
|
|
27448
|
+
previous,
|
|
27449
|
+
steps,
|
|
27450
|
+
parent: {
|
|
27451
|
+
previous: context.previous,
|
|
27452
|
+
steps: context.steps,
|
|
27453
|
+
parent: context.parent
|
|
27454
|
+
}
|
|
27455
|
+
}));
|
|
27456
|
+
} catch (error) {
|
|
27457
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27439
27458
|
continue;
|
|
27440
27459
|
}
|
|
27460
|
+
throw error;
|
|
27441
27461
|
}
|
|
27442
|
-
previous = await executePins(settings, _extends({}, context, {
|
|
27443
|
-
previous,
|
|
27444
|
-
steps,
|
|
27445
|
-
parent: {
|
|
27446
|
-
previous: context.previous,
|
|
27447
|
-
steps: context.steps,
|
|
27448
|
-
parent: context.parent
|
|
27449
|
-
}
|
|
27450
|
-
}));
|
|
27451
27462
|
steps[i] = {
|
|
27452
27463
|
name: settings.name,
|
|
27453
27464
|
result: previous
|
package/index.esm.js
CHANGED
|
@@ -23498,14 +23498,14 @@ function indent(str, spaces) {
|
|
|
23498
23498
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23499
23499
|
// match is required
|
|
23500
23500
|
if (!match) {
|
|
23501
|
-
return tokens = tokens1,
|
|
23501
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23502
23502
|
v: nextMatch1
|
|
23503
23503
|
};
|
|
23504
23504
|
}
|
|
23505
23505
|
var token = match.token, offset = match.offset;
|
|
23506
23506
|
i1 += offset;
|
|
23507
23507
|
if (token === " ") {
|
|
23508
|
-
return tokens = tokens1,
|
|
23508
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23509
23509
|
}
|
|
23510
23510
|
tokens1 = _to_consumable_array$6(tokens1).concat([
|
|
23511
23511
|
token
|
|
@@ -23524,7 +23524,7 @@ function indent(str, spaces) {
|
|
|
23524
23524
|
if (contextKeys.some(function(el) {
|
|
23525
23525
|
return el.startsWith(name);
|
|
23526
23526
|
})) {
|
|
23527
|
-
return tokens = tokens1,
|
|
23527
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23528
23528
|
}
|
|
23529
23529
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23530
23530
|
return el === name;
|
|
@@ -23543,9 +23543,9 @@ function indent(str, spaces) {
|
|
|
23543
23543
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23544
23544
|
return el.startsWith(name);
|
|
23545
23545
|
})) {
|
|
23546
|
-
return tokens = tokens1,
|
|
23546
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23547
23547
|
}
|
|
23548
|
-
return tokens = tokens1,
|
|
23548
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23549
23549
|
v: nextMatch1
|
|
23550
23550
|
};
|
|
23551
23551
|
};
|
|
@@ -27362,7 +27362,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27362
27362
|
return result;
|
|
27363
27363
|
};
|
|
27364
27364
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27365
|
-
var _settings_conditions;
|
|
27365
|
+
var _settings_conditions, _settings_conditions1;
|
|
27366
27366
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27367
27367
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27368
27368
|
const results = [];
|
|
@@ -27387,11 +27387,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27387
27387
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27388
27388
|
continue;
|
|
27389
27389
|
}
|
|
27390
|
-
|
|
27390
|
+
let itemResult = null;
|
|
27391
|
+
try {
|
|
27392
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
|
27393
|
+
} catch (error) {
|
|
27394
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27395
|
+
continue;
|
|
27396
|
+
}
|
|
27397
|
+
throw error;
|
|
27398
|
+
}
|
|
27391
27399
|
results.push(itemResult);
|
|
27392
27400
|
}
|
|
27393
27401
|
return results;
|
|
27394
27402
|
}
|
|
27403
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
27404
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
27405
|
+
}
|
|
27395
27406
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
27396
27407
|
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`));
|
|
27397
27408
|
const pins = library == null ? void 0 : library[settings.element];
|
|
@@ -27405,23 +27416,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27405
27416
|
const steps = [];
|
|
27406
27417
|
// parcourir tous les pins
|
|
27407
27418
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27408
|
-
var _settings_conditions;
|
|
27409
27419
|
const settings = pinsSettingsList[i];
|
|
27410
|
-
|
|
27411
|
-
|
|
27412
|
-
|
|
27420
|
+
try {
|
|
27421
|
+
previous = await executePins(settings, _extends({}, context, {
|
|
27422
|
+
previous,
|
|
27423
|
+
steps,
|
|
27424
|
+
parent: {
|
|
27425
|
+
previous: context.previous,
|
|
27426
|
+
steps: context.steps,
|
|
27427
|
+
parent: context.parent
|
|
27428
|
+
}
|
|
27429
|
+
}));
|
|
27430
|
+
} catch (error) {
|
|
27431
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27413
27432
|
continue;
|
|
27414
27433
|
}
|
|
27434
|
+
throw error;
|
|
27415
27435
|
}
|
|
27416
|
-
previous = await executePins(settings, _extends({}, context, {
|
|
27417
|
-
previous,
|
|
27418
|
-
steps,
|
|
27419
|
-
parent: {
|
|
27420
|
-
previous: context.previous,
|
|
27421
|
-
steps: context.steps,
|
|
27422
|
-
parent: context.parent
|
|
27423
|
-
}
|
|
27424
|
-
}));
|
|
27425
27436
|
steps[i] = {
|
|
27426
27437
|
name: settings.name,
|
|
27427
27438
|
result: previous
|