@digipair/skill-keycloak 0.8.5 → 0.8.7
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 +10 -9
- package/index.esm.js +5 -4
- 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
|
|
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
|
|
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
|
|
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
|
|
23570
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23571
23571
|
}
|
|
23572
|
-
return
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
@@ -33827,7 +33827,7 @@ let KeycloakService = class KeycloakService {
|
|
|
33827
33827
|
});
|
|
33828
33828
|
return result;
|
|
33829
33829
|
}
|
|
33830
|
-
findFactoryPinsSettings(path,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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) {
|