@digipair/skill-keycloak 0.11.4 → 0.11.5

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 CHANGED
@@ -27360,6 +27360,9 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27360
27360
  LIBRARIES: {},
27361
27361
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27362
27362
  };
27363
+ const isPinsSettings = (value)=>{
27364
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27365
+ };
27363
27366
  const applyTemplate = (value, context)=>{
27364
27367
  let result = value;
27365
27368
  if (typeof value === 'string') {
@@ -27372,7 +27375,7 @@ const applyTemplate = (value, context)=>{
27372
27375
  result = evaluate(path, context);
27373
27376
  }
27374
27377
  } else if (typeof value === 'object' && Array.isArray(value)) {
27375
- result = value;
27378
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
27376
27379
  } else if (typeof value === 'object') {
27377
27380
  result = {};
27378
27381
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
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, tokens = tokens1, nextMatch = nextMatch1, {
23496
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
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, tokens = tokens1, nextMatch = nextMatch1, "continue";
23503
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "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, tokens = tokens1, nextMatch = nextMatch1, "continue";
23522
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "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, tokens = tokens1, nextMatch = nextMatch1, "continue";
23541
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23542
23542
  }
23543
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23543
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23544
23544
  v: nextMatch1
23545
23545
  };
23546
23546
  };
@@ -27331,6 +27331,9 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27331
27331
  LIBRARIES: {},
27332
27332
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27333
27333
  };
27334
+ const isPinsSettings = (value)=>{
27335
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27336
+ };
27334
27337
  const applyTemplate = (value, context)=>{
27335
27338
  let result = value;
27336
27339
  if (typeof value === 'string') {
@@ -27343,7 +27346,7 @@ const applyTemplate = (value, context)=>{
27343
27346
  result = evaluate(path, context);
27344
27347
  }
27345
27348
  } else if (typeof value === 'object' && Array.isArray(value)) {
27346
- result = value;
27349
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
27347
27350
  } else if (typeof value === 'object') {
27348
27351
  result = {};
27349
27352
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-keycloak",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"