@digipair/skill-keycloak 0.10.11 → 0.10.13
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 +7 -8
- package/index.esm.js +7 -8
- 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, nextMatch = nextMatch1, tokens = tokens1, {
|
|
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, nextMatch = nextMatch1, tokens = tokens1, "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, nextMatch = nextMatch1, tokens = tokens1, "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, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23571
23571
|
}
|
|
23572
|
-
return
|
|
23572
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23573
23573
|
v: nextMatch1
|
|
23574
23574
|
};
|
|
23575
23575
|
};
|
|
@@ -33936,16 +33936,15 @@ let KeycloakService = class KeycloakService {
|
|
|
33936
33936
|
import '${url}/js/keycloak.js';
|
|
33937
33937
|
import { config, executePinsList, generateElementFromPins } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
33938
33938
|
|
|
33939
|
-
const serverUrl = '${process.env['FACTORY_URL'] || 'https://factory.digipair.
|
|
33939
|
+
const serverUrl = '${process.env['FACTORY_URL'] || 'https://factory.digipair.ai'}';
|
|
33940
33940
|
const keycloakService = ${this.skillKeycloak};
|
|
33941
33941
|
|
|
33942
33942
|
const originalFetch = window.fetch;
|
|
33943
33943
|
window.fetch = async (url, options) => {
|
|
33944
|
-
if (!url.includes(serverUrl)) {
|
|
33944
|
+
if (typeof(url) !== 'string' || !url.includes(serverUrl)) {
|
|
33945
33945
|
return originalFetch(url, options);
|
|
33946
33946
|
}
|
|
33947
33947
|
|
|
33948
|
-
const token = await userService.token();
|
|
33949
33948
|
return originalFetch(url, {
|
|
33950
33949
|
...options,
|
|
33951
33950
|
headers: {
|
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
|
|
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
|
|
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
|
|
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
|
|
23541
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
|
|
23542
23542
|
}
|
|
23543
|
-
return
|
|
23543
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
|
|
23544
23544
|
v: nextMatch1
|
|
23545
23545
|
};
|
|
23546
23546
|
};
|
|
@@ -33907,16 +33907,15 @@ let KeycloakService = class KeycloakService {
|
|
|
33907
33907
|
import '${url}/js/keycloak.js';
|
|
33908
33908
|
import { config, executePinsList, generateElementFromPins } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
33909
33909
|
|
|
33910
|
-
const serverUrl = '${process.env['FACTORY_URL'] || 'https://factory.digipair.
|
|
33910
|
+
const serverUrl = '${process.env['FACTORY_URL'] || 'https://factory.digipair.ai'}';
|
|
33911
33911
|
const keycloakService = ${this.skillKeycloak};
|
|
33912
33912
|
|
|
33913
33913
|
const originalFetch = window.fetch;
|
|
33914
33914
|
window.fetch = async (url, options) => {
|
|
33915
|
-
if (!url.includes(serverUrl)) {
|
|
33915
|
+
if (typeof(url) !== 'string' || !url.includes(serverUrl)) {
|
|
33916
33916
|
return originalFetch(url, options);
|
|
33917
33917
|
}
|
|
33918
33918
|
|
|
33919
|
-
const token = await userService.token();
|
|
33920
33919
|
return originalFetch(url, {
|
|
33921
33920
|
...options,
|
|
33922
33921
|
headers: {
|