@digipair/engine 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
@@ -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
|
};
|
@@ -27379,7 +27379,7 @@ const applyTemplate = (value, context)=>{
|
|
27379
27379
|
return result;
|
27380
27380
|
};
|
27381
27381
|
const executePins = async (settingsOrigin, context = {})=>{
|
27382
|
-
var _settings_conditions;
|
27382
|
+
var _settings_conditions, _settings_conditions1;
|
27383
27383
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27384
27384
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27385
27385
|
const results = [];
|
@@ -27404,11 +27404,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27404
27404
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
27405
27405
|
continue;
|
27406
27406
|
}
|
27407
|
-
|
27407
|
+
let itemResult = null;
|
27408
|
+
try {
|
27409
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
27410
|
+
} catch (error) {
|
27411
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27412
|
+
continue;
|
27413
|
+
}
|
27414
|
+
throw error;
|
27415
|
+
}
|
27408
27416
|
results.push(itemResult);
|
27409
27417
|
}
|
27410
27418
|
return results;
|
27411
27419
|
}
|
27420
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
27421
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
27422
|
+
}
|
27412
27423
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
27413
27424
|
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`));
|
27414
27425
|
const pins = library == null ? void 0 : library[settings.element];
|
@@ -27422,23 +27433,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
27422
27433
|
const steps = [];
|
27423
27434
|
// parcourir tous les pins
|
27424
27435
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
27425
|
-
var _settings_conditions;
|
27426
27436
|
const settings = pinsSettingsList[i];
|
27427
|
-
|
27428
|
-
|
27429
|
-
|
27437
|
+
try {
|
27438
|
+
previous = await executePins(settings, _extends({}, context, {
|
27439
|
+
previous,
|
27440
|
+
steps,
|
27441
|
+
parent: {
|
27442
|
+
previous: context.previous,
|
27443
|
+
steps: context.steps,
|
27444
|
+
parent: context.parent
|
27445
|
+
}
|
27446
|
+
}));
|
27447
|
+
} catch (error) {
|
27448
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27430
27449
|
continue;
|
27431
27450
|
}
|
27451
|
+
throw error;
|
27432
27452
|
}
|
27433
|
-
previous = await executePins(settings, _extends({}, context, {
|
27434
|
-
previous,
|
27435
|
-
steps,
|
27436
|
-
parent: {
|
27437
|
-
previous: context.previous,
|
27438
|
-
steps: context.steps,
|
27439
|
-
parent: context.parent
|
27440
|
-
}
|
27441
|
-
}));
|
27442
27453
|
steps[i] = {
|
27443
27454
|
name: settings.name,
|
27444
27455
|
result: previous
|
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 i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23537
23537
|
}
|
23538
|
-
return
|
23538
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23539
23539
|
v: nextMatch1
|
23540
23540
|
};
|
23541
23541
|
};
|
@@ -27357,7 +27357,7 @@ const applyTemplate = (value, context)=>{
|
|
27357
27357
|
return result;
|
27358
27358
|
};
|
27359
27359
|
const executePins = async (settingsOrigin, context = {})=>{
|
27360
|
-
var _settings_conditions;
|
27360
|
+
var _settings_conditions, _settings_conditions1;
|
27361
27361
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27362
27362
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27363
27363
|
const results = [];
|
@@ -27382,11 +27382,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27382
27382
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
27383
27383
|
continue;
|
27384
27384
|
}
|
27385
|
-
|
27385
|
+
let itemResult = null;
|
27386
|
+
try {
|
27387
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
27388
|
+
} catch (error) {
|
27389
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27390
|
+
continue;
|
27391
|
+
}
|
27392
|
+
throw error;
|
27393
|
+
}
|
27386
27394
|
results.push(itemResult);
|
27387
27395
|
}
|
27388
27396
|
return results;
|
27389
27397
|
}
|
27398
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
27399
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
27400
|
+
}
|
27390
27401
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
27391
27402
|
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`));
|
27392
27403
|
const pins = library == null ? void 0 : library[settings.element];
|
@@ -27400,23 +27411,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
27400
27411
|
const steps = [];
|
27401
27412
|
// parcourir tous les pins
|
27402
27413
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
27403
|
-
var _settings_conditions;
|
27404
27414
|
const settings = pinsSettingsList[i];
|
27405
|
-
|
27406
|
-
|
27407
|
-
|
27415
|
+
try {
|
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
|
+
} catch (error) {
|
27426
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27408
27427
|
continue;
|
27409
27428
|
}
|
27429
|
+
throw error;
|
27410
27430
|
}
|
27411
|
-
previous = await executePins(settings, _extends({}, context, {
|
27412
|
-
previous,
|
27413
|
-
steps,
|
27414
|
-
parent: {
|
27415
|
-
previous: context.previous,
|
27416
|
-
steps: context.steps,
|
27417
|
-
parent: context.parent
|
27418
|
-
}
|
27419
|
-
}));
|
27420
27431
|
steps[i] = {
|
27421
27432
|
name: settings.name,
|
27422
27433
|
result: previous
|