@digipair/skill-keycloak 0.18.9 → 0.18.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.cjs.js +31 -20
  2. package/index.esm.js +31 -20
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -23522,14 +23522,14 @@ function indent(str, spaces) {
23522
23522
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23523
23523
  // match is required
23524
23524
  if (!match) {
23525
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23525
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23526
23526
  v: nextMatch1
23527
23527
  };
23528
23528
  }
23529
23529
  var token = match.token, offset = match.offset;
23530
23530
  i1 += offset;
23531
23531
  if (token === " ") {
23532
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23532
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23533
23533
  }
23534
23534
  tokens1 = _to_consumable_array$3(tokens1).concat([
23535
23535
  token
@@ -23548,7 +23548,7 @@ function indent(str, spaces) {
23548
23548
  if (contextKeys.some(function(el) {
23549
23549
  return el.startsWith(name);
23550
23550
  })) {
23551
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23551
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23552
23552
  }
23553
23553
  if (dateTimeIdentifiers.some(function(el) {
23554
23554
  return el === name;
@@ -23567,9 +23567,9 @@ function indent(str, spaces) {
23567
23567
  if (dateTimeIdentifiers.some(function(el) {
23568
23568
  return el.startsWith(name);
23569
23569
  })) {
23570
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23570
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23571
23571
  }
23572
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23572
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23573
23573
  v: nextMatch1
23574
23574
  };
23575
23575
  };
@@ -27386,7 +27386,7 @@ const applyTemplate = (value, context)=>{
27386
27386
  return result;
27387
27387
  };
27388
27388
  const executePins = async (settingsOrigin, context = {})=>{
27389
- var _settings_conditions;
27389
+ var _settings_conditions, _settings_conditions1;
27390
27390
  const settings = await preparePinsSettings(settingsOrigin, context);
27391
27391
  if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
27392
27392
  const results = [];
@@ -27411,11 +27411,22 @@ const executePins = async (settingsOrigin, context = {})=>{
27411
27411
  if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
27412
27412
  continue;
27413
27413
  }
27414
- const itemResult = await executePins(itemSettingsOrigin, itemContext);
27414
+ let itemResult = null;
27415
+ try {
27416
+ itemResult = await executePins(itemSettingsOrigin, itemContext);
27417
+ } catch (error) {
27418
+ if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
27419
+ continue;
27420
+ }
27421
+ throw error;
27422
+ }
27415
27423
  results.push(itemResult);
27416
27424
  }
27417
27425
  return results;
27418
27426
  }
27427
+ if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
27428
+ throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
27429
+ }
27419
27430
  const version = context.config.VERSIONS[settings.library] || 'latest';
27420
27431
  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`));
27421
27432
  const pins = library == null ? void 0 : library[settings.element];
@@ -27429,23 +27440,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
27429
27440
  const steps = [];
27430
27441
  // parcourir tous les pins
27431
27442
  for(let i = 0; i < pinsSettingsList.length; i++){
27432
- var _settings_conditions;
27433
27443
  const settings = pinsSettingsList[i];
27434
- if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
27435
- const preparedSettings = await preparePinsSettings(settings, context);
27436
- if (!preparedSettings.conditions.if) {
27444
+ try {
27445
+ previous = await executePins(settings, _extends({}, context, {
27446
+ previous,
27447
+ steps,
27448
+ parent: {
27449
+ previous: context.previous,
27450
+ steps: context.steps,
27451
+ parent: context.parent
27452
+ }
27453
+ }));
27454
+ } catch (error) {
27455
+ if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
27437
27456
  continue;
27438
27457
  }
27458
+ throw error;
27439
27459
  }
27440
- previous = await executePins(settings, _extends({}, context, {
27441
- previous,
27442
- steps,
27443
- parent: {
27444
- previous: context.previous,
27445
- steps: context.steps,
27446
- parent: context.parent
27447
- }
27448
- }));
27449
27460
  steps[i] = {
27450
27461
  name: settings.name,
27451
27462
  result: previous
package/index.esm.js CHANGED
@@ -23493,14 +23493,14 @@ function indent(str, spaces) {
23493
23493
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23494
23494
  // match is required
23495
23495
  if (!match) {
23496
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23496
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23497
23497
  v: nextMatch1
23498
23498
  };
23499
23499
  }
23500
23500
  var token = match.token, offset = match.offset;
23501
23501
  i1 += offset;
23502
23502
  if (token === " ") {
23503
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23503
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23504
23504
  }
23505
23505
  tokens1 = _to_consumable_array$3(tokens1).concat([
23506
23506
  token
@@ -23519,7 +23519,7 @@ function indent(str, spaces) {
23519
23519
  if (contextKeys.some(function(el) {
23520
23520
  return el.startsWith(name);
23521
23521
  })) {
23522
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23522
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23523
23523
  }
23524
23524
  if (dateTimeIdentifiers.some(function(el) {
23525
23525
  return el === name;
@@ -23538,9 +23538,9 @@ function indent(str, spaces) {
23538
23538
  if (dateTimeIdentifiers.some(function(el) {
23539
23539
  return el.startsWith(name);
23540
23540
  })) {
23541
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23541
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23542
23542
  }
23543
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23543
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23544
23544
  v: nextMatch1
23545
23545
  };
23546
23546
  };
@@ -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
- const itemResult = await executePins(itemSettingsOrigin, itemContext);
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
- if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
27406
- const preparedSettings = await preparePinsSettings(settings, context);
27407
- if (!preparedSettings.conditions.if) {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-keycloak",
3
- "version": "0.18.9",
3
+ "version": "0.18.10",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"