@digipair/skill-mongodb 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 +26 -15
- package/index.esm.js +31 -20
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -27444,7 +27444,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27444
27444
|
return result;
|
|
27445
27445
|
};
|
|
27446
27446
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27447
|
-
var _settings_conditions;
|
|
27447
|
+
var _settings_conditions, _settings_conditions1;
|
|
27448
27448
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27449
27449
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27450
27450
|
const results = [];
|
|
@@ -27469,11 +27469,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27469
27469
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27470
27470
|
continue;
|
|
27471
27471
|
}
|
|
27472
|
-
|
|
27472
|
+
let itemResult = null;
|
|
27473
|
+
try {
|
|
27474
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
|
27475
|
+
} catch (error) {
|
|
27476
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27477
|
+
continue;
|
|
27478
|
+
}
|
|
27479
|
+
throw error;
|
|
27480
|
+
}
|
|
27473
27481
|
results.push(itemResult);
|
|
27474
27482
|
}
|
|
27475
27483
|
return results;
|
|
27476
27484
|
}
|
|
27485
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
27486
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
27487
|
+
}
|
|
27477
27488
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
27478
27489
|
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`));
|
|
27479
27490
|
const pins = library == null ? void 0 : library[settings.element];
|
|
@@ -27487,23 +27498,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27487
27498
|
const steps = [];
|
|
27488
27499
|
// parcourir tous les pins
|
|
27489
27500
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27490
|
-
var _settings_conditions;
|
|
27491
27501
|
const settings = pinsSettingsList[i];
|
|
27492
|
-
|
|
27493
|
-
|
|
27494
|
-
|
|
27502
|
+
try {
|
|
27503
|
+
previous = await executePins(settings, _extends$1({}, context, {
|
|
27504
|
+
previous,
|
|
27505
|
+
steps,
|
|
27506
|
+
parent: {
|
|
27507
|
+
previous: context.previous,
|
|
27508
|
+
steps: context.steps,
|
|
27509
|
+
parent: context.parent
|
|
27510
|
+
}
|
|
27511
|
+
}));
|
|
27512
|
+
} catch (error) {
|
|
27513
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27495
27514
|
continue;
|
|
27496
27515
|
}
|
|
27516
|
+
throw error;
|
|
27497
27517
|
}
|
|
27498
|
-
previous = await executePins(settings, _extends$1({}, context, {
|
|
27499
|
-
previous,
|
|
27500
|
-
steps,
|
|
27501
|
-
parent: {
|
|
27502
|
-
previous: context.previous,
|
|
27503
|
-
steps: context.steps,
|
|
27504
|
-
parent: context.parent
|
|
27505
|
-
}
|
|
27506
|
-
}));
|
|
27507
27518
|
steps[i] = {
|
|
27508
27519
|
name: settings.name,
|
|
27509
27520
|
result: previous
|
package/index.esm.js
CHANGED
|
@@ -23530,14 +23530,14 @@ function indent(str, spaces) {
|
|
|
23530
23530
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23531
23531
|
// match is required
|
|
23532
23532
|
if (!match) {
|
|
23533
|
-
return
|
|
23533
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23534
23534
|
v: nextMatch1
|
|
23535
23535
|
};
|
|
23536
23536
|
}
|
|
23537
23537
|
var token = match.token, offset = match.offset;
|
|
23538
23538
|
i1 += offset;
|
|
23539
23539
|
if (token === " ") {
|
|
23540
|
-
return
|
|
23540
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23541
23541
|
}
|
|
23542
23542
|
tokens1 = _to_consumable_array$a(tokens1).concat([
|
|
23543
23543
|
token
|
|
@@ -23556,7 +23556,7 @@ function indent(str, spaces) {
|
|
|
23556
23556
|
if (contextKeys.some(function(el) {
|
|
23557
23557
|
return el.startsWith(name);
|
|
23558
23558
|
})) {
|
|
23559
|
-
return
|
|
23559
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23560
23560
|
}
|
|
23561
23561
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23562
23562
|
return el === name;
|
|
@@ -23575,9 +23575,9 @@ function indent(str, spaces) {
|
|
|
23575
23575
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23576
23576
|
return el.startsWith(name);
|
|
23577
23577
|
})) {
|
|
23578
|
-
return
|
|
23578
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23579
23579
|
}
|
|
23580
|
-
return
|
|
23580
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23581
23581
|
v: nextMatch1
|
|
23582
23582
|
};
|
|
23583
23583
|
};
|
|
@@ -27394,7 +27394,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27394
27394
|
return result;
|
|
27395
27395
|
};
|
|
27396
27396
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27397
|
-
var _settings_conditions;
|
|
27397
|
+
var _settings_conditions, _settings_conditions1;
|
|
27398
27398
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27399
27399
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
27400
27400
|
const results = [];
|
|
@@ -27419,11 +27419,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27419
27419
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27420
27420
|
continue;
|
|
27421
27421
|
}
|
|
27422
|
-
|
|
27422
|
+
let itemResult = null;
|
|
27423
|
+
try {
|
|
27424
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
|
27425
|
+
} catch (error) {
|
|
27426
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27427
|
+
continue;
|
|
27428
|
+
}
|
|
27429
|
+
throw error;
|
|
27430
|
+
}
|
|
27423
27431
|
results.push(itemResult);
|
|
27424
27432
|
}
|
|
27425
27433
|
return results;
|
|
27426
27434
|
}
|
|
27435
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
27436
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
27437
|
+
}
|
|
27427
27438
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
27428
27439
|
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`));
|
|
27429
27440
|
const pins = library == null ? void 0 : library[settings.element];
|
|
@@ -27437,23 +27448,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27437
27448
|
const steps = [];
|
|
27438
27449
|
// parcourir tous les pins
|
|
27439
27450
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27440
|
-
var _settings_conditions;
|
|
27441
27451
|
const settings = pinsSettingsList[i];
|
|
27442
|
-
|
|
27443
|
-
|
|
27444
|
-
|
|
27452
|
+
try {
|
|
27453
|
+
previous = await executePins(settings, _extends$1({}, context, {
|
|
27454
|
+
previous,
|
|
27455
|
+
steps,
|
|
27456
|
+
parent: {
|
|
27457
|
+
previous: context.previous,
|
|
27458
|
+
steps: context.steps,
|
|
27459
|
+
parent: context.parent
|
|
27460
|
+
}
|
|
27461
|
+
}));
|
|
27462
|
+
} catch (error) {
|
|
27463
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
27445
27464
|
continue;
|
|
27446
27465
|
}
|
|
27466
|
+
throw error;
|
|
27447
27467
|
}
|
|
27448
|
-
previous = await executePins(settings, _extends$1({}, context, {
|
|
27449
|
-
previous,
|
|
27450
|
-
steps,
|
|
27451
|
-
parent: {
|
|
27452
|
-
previous: context.previous,
|
|
27453
|
-
steps: context.steps,
|
|
27454
|
-
parent: context.parent
|
|
27455
|
-
}
|
|
27456
|
-
}));
|
|
27457
27468
|
steps[i] = {
|
|
27458
27469
|
name: settings.name,
|
|
27459
27470
|
result: previous
|