@digipair/skill-keycloak 0.8.5 → 0.8.6

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
@@ -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 nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23525
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23532
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23551
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23570
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23571
23571
  }
23572
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23572
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23573
23573
  v: nextMatch1
23574
23574
  };
23575
23575
  };
@@ -33856,7 +33856,7 @@ let KeycloakService = class KeycloakService {
33856
33856
  });
33857
33857
  return result;
33858
33858
  }
33859
- findFactoryPinsSettings(path, body) {
33859
+ findFactoryPinsSettings(path, item) {
33860
33860
  const pinsSettings = path.split('.').reduce((acc, key)=>{
33861
33861
  if (key.indexOf('[') !== -1) {
33862
33862
  const index = parseInt(key.match(/\d+/)[0]);
@@ -33864,7 +33864,7 @@ let KeycloakService = class KeycloakService {
33864
33864
  }
33865
33865
  return acc[key];
33866
33866
  }, {
33867
- body
33867
+ [path.split('[')[0]]: item
33868
33868
  });
33869
33869
  return pinsSettings;
33870
33870
  }
@@ -33879,7 +33879,7 @@ let KeycloakService = class KeycloakService {
33879
33879
  });
33880
33880
  return decodedtoken;
33881
33881
  }
33882
- async prepareBrowserPinsSettings(name, pinsSettings) {
33882
+ prepareBrowserPinsSettings(name, pinsSettings) {
33883
33883
  const preparedPinsSettings = pinsSettings.map((item, index)=>this.filteredWebPinsSettings(item, `${name}[${index}]`));
33884
33884
  return preparedPinsSettings;
33885
33885
  }
@@ -33890,7 +33890,8 @@ let KeycloakService = class KeycloakService {
33890
33890
  const preparedData = {};
33891
33891
  if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
33892
33892
  var _pinsSettings_properties, _context_request_headers_authorization, _pinsSettings_properties1, _pinsSettings_properties2;
33893
- const pinsSettings = this.findFactoryPinsSettings(context.request.body.params.path, body);
33893
+ const param = context.request.body.params.path.split('[')[0];
33894
+ const pinsSettings = this.findFactoryPinsSettings(context.request.body.params.path, params[param]);
33894
33895
  const pinsSettingsList = ((_pinsSettings_properties = pinsSettings.properties) == null ? void 0 : _pinsSettings_properties['execute']) || [];
33895
33896
  const token = /^Bearer /g.test(context.request.headers.authorization) && ((_context_request_headers_authorization = context.request.headers.authorization) == null ? void 0 : _context_request_headers_authorization.replace(/^Bearer /g, ''));
33896
33897
  if (token) {
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 tokens = tokens1, i = i1, nextMatch = nextMatch1, {
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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23541
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23542
23542
  }
23543
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23543
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23544
23544
  v: nextMatch1
23545
23545
  };
23546
23546
  };
@@ -33827,7 +33827,7 @@ let KeycloakService = class KeycloakService {
33827
33827
  });
33828
33828
  return result;
33829
33829
  }
33830
- findFactoryPinsSettings(path, body) {
33830
+ findFactoryPinsSettings(path, item) {
33831
33831
  const pinsSettings = path.split('.').reduce((acc, key)=>{
33832
33832
  if (key.indexOf('[') !== -1) {
33833
33833
  const index = parseInt(key.match(/\d+/)[0]);
@@ -33835,7 +33835,7 @@ let KeycloakService = class KeycloakService {
33835
33835
  }
33836
33836
  return acc[key];
33837
33837
  }, {
33838
- body
33838
+ [path.split('[')[0]]: item
33839
33839
  });
33840
33840
  return pinsSettings;
33841
33841
  }
@@ -33850,7 +33850,7 @@ let KeycloakService = class KeycloakService {
33850
33850
  });
33851
33851
  return decodedtoken;
33852
33852
  }
33853
- async prepareBrowserPinsSettings(name, pinsSettings) {
33853
+ prepareBrowserPinsSettings(name, pinsSettings) {
33854
33854
  const preparedPinsSettings = pinsSettings.map((item, index)=>this.filteredWebPinsSettings(item, `${name}[${index}]`));
33855
33855
  return preparedPinsSettings;
33856
33856
  }
@@ -33861,7 +33861,8 @@ let KeycloakService = class KeycloakService {
33861
33861
  const preparedData = {};
33862
33862
  if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
33863
33863
  var _pinsSettings_properties, _context_request_headers_authorization, _pinsSettings_properties1, _pinsSettings_properties2;
33864
- const pinsSettings = this.findFactoryPinsSettings(context.request.body.params.path, body);
33864
+ const param = context.request.body.params.path.split('[')[0];
33865
+ const pinsSettings = this.findFactoryPinsSettings(context.request.body.params.path, params[param]);
33865
33866
  const pinsSettingsList = ((_pinsSettings_properties = pinsSettings.properties) == null ? void 0 : _pinsSettings_properties['execute']) || [];
33866
33867
  const token = /^Bearer /g.test(context.request.headers.authorization) && ((_context_request_headers_authorization = context.request.headers.authorization) == null ? void 0 : _context_request_headers_authorization.replace(/^Bearer /g, ''));
33867
33868
  if (token) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-keycloak",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"