oidc-spa 8.1.3 → 8.1.4
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/core/OidcMetadata.js +2 -2
- package/core/OidcMetadata.js.map +1 -1
- package/core/StateData.js +3 -2
- package/core/StateData.js.map +1 -1
- package/core/createOidc.js +33 -32
- package/core/createOidc.js.map +1 -1
- package/core/earlyInit.js +5 -5
- package/core/earlyInit.js.map +1 -1
- package/core/evtIsUserActive.js +5 -4
- package/core/evtIsUserActive.js.map +1 -1
- package/core/iframeMessageProtection.js +4 -8
- package/core/iframeMessageProtection.js.map +1 -1
- package/core/loginOrGoToAuthServer.js +5 -4
- package/core/loginOrGoToAuthServer.js.map +1 -1
- package/core/loginPropagationToOtherTabs.js +2 -2
- package/core/loginPropagationToOtherTabs.js.map +1 -1
- package/core/loginSilent.js +8 -6
- package/core/loginSilent.js.map +1 -1
- package/core/logoutPropagationToOtherTabs.js +2 -2
- package/core/logoutPropagationToOtherTabs.js.map +1 -1
- package/core/oidcClientTsUserToTokens.js +12 -11
- package/core/oidcClientTsUserToTokens.js.map +1 -1
- package/core/ongoingLoginOrRefreshProcesses.js +5 -4
- package/core/ongoingLoginOrRefreshProcesses.js.map +1 -1
- package/core/persistedAuthState.js +7 -6
- package/core/persistedAuthState.js.map +1 -1
- package/esm/angular.js +1 -1
- package/esm/angular.js.map +1 -1
- package/esm/core/OidcMetadata.js +1 -1
- package/esm/core/OidcMetadata.js.map +1 -1
- package/esm/core/StateData.js +2 -1
- package/esm/core/StateData.js.map +1 -1
- package/esm/core/createOidc.js +3 -2
- package/esm/core/createOidc.js.map +1 -1
- package/esm/core/earlyInit.js +1 -1
- package/esm/core/earlyInit.js.map +1 -1
- package/esm/core/evtIsUserActive.js +2 -1
- package/esm/core/evtIsUserActive.js.map +1 -1
- package/esm/core/iframeMessageProtection.js +2 -6
- package/esm/core/iframeMessageProtection.js.map +1 -1
- package/esm/core/loginOrGoToAuthServer.js +2 -1
- package/esm/core/loginOrGoToAuthServer.js.map +1 -1
- package/esm/core/loginPropagationToOtherTabs.js +1 -1
- package/esm/core/loginPropagationToOtherTabs.js.map +1 -1
- package/esm/core/loginSilent.js +3 -1
- package/esm/core/loginSilent.js.map +1 -1
- package/esm/core/logoutPropagationToOtherTabs.js +1 -1
- package/esm/core/logoutPropagationToOtherTabs.js.map +1 -1
- package/esm/core/oidcClientTsUserToTokens.js +2 -1
- package/esm/core/oidcClientTsUserToTokens.js.map +1 -1
- package/esm/core/ongoingLoginOrRefreshProcesses.js +2 -1
- package/esm/core/ongoingLoginOrRefreshProcesses.js.map +1 -1
- package/esm/core/persistedAuthState.js +2 -1
- package/esm/core/persistedAuthState.js.map +1 -1
- package/esm/keycloak/keycloak-js/Keycloak.js +2 -1
- package/esm/keycloak/keycloak-js/Keycloak.js.map +1 -1
- package/esm/keycloak/keycloakIssuerUriParsed.js +1 -1
- package/esm/keycloak/keycloakIssuerUriParsed.js.map +1 -1
- package/esm/mock/oidc.js +1 -1
- package/esm/mock/oidc.js.map +1 -1
- package/esm/react/react.js +2 -2
- package/esm/react/react.js.map +1 -1
- package/esm/tools/EphemeralSessionStorage.js +3 -1
- package/esm/tools/EphemeralSessionStorage.js.map +1 -1
- package/esm/tools/Evt.js +1 -1
- package/esm/tools/Evt.js.map +1 -1
- package/esm/tools/getDownlinkAndRtt.js +1 -1
- package/esm/tools/getDownlinkAndRtt.js.map +1 -1
- package/esm/tools/readExpirationTimeInJwt.js +1 -1
- package/esm/tools/readExpirationTimeInJwt.js.map +1 -1
- package/esm/tools/tsafe/Equals.d.ts +4 -0
- package/esm/tools/tsafe/Equals.js +5 -0
- package/esm/tools/tsafe/Equals.js.map +1 -0
- package/esm/tools/tsafe/Param0.d.ts +7 -0
- package/esm/tools/tsafe/Param0.js +2 -0
- package/esm/tools/tsafe/Param0.js.map +1 -0
- package/esm/tools/tsafe/Parameters.d.ts +2 -0
- package/esm/tools/tsafe/Parameters.js +2 -0
- package/esm/tools/tsafe/Parameters.js.map +1 -0
- package/esm/tools/tsafe/Reflect.d.ts +2 -0
- package/esm/tools/tsafe/Reflect.js +5 -0
- package/esm/tools/tsafe/Reflect.js.map +1 -0
- package/esm/tools/tsafe/assert.d.ts +10 -0
- package/esm/tools/tsafe/assert.js +46 -0
- package/esm/tools/tsafe/assert.js.map +1 -0
- package/esm/tools/tsafe/id.d.ts +36 -0
- package/esm/tools/tsafe/id.js +3 -0
- package/esm/tools/tsafe/id.js.map +1 -0
- package/esm/tools/tsafe/isAmong.d.ts +2 -0
- package/esm/tools/tsafe/isAmong.js +10 -0
- package/esm/tools/tsafe/isAmong.js.map +1 -0
- package/esm/tools/tsafe/noUndefined.d.ts +9 -0
- package/esm/tools/tsafe/noUndefined.js +19 -0
- package/esm/tools/tsafe/noUndefined.js.map +1 -0
- package/esm/tools/tsafe/tools/StrictEquals.d.ts +1 -0
- package/esm/tools/tsafe/tools/StrictEquals.js +2 -0
- package/esm/tools/tsafe/tools/StrictEquals.js.map +1 -0
- package/esm/tools/tsafe/tools/Unite.d.ts +3 -0
- package/esm/tools/tsafe/tools/Unite.js +2 -0
- package/esm/tools/tsafe/tools/Unite.js.map +1 -0
- package/esm/tools/tsafe/typeGuard.d.ts +2 -0
- package/esm/tools/tsafe/typeGuard.js +5 -0
- package/esm/tools/tsafe/typeGuard.js.map +1 -0
- package/keycloak/keycloak-js/Keycloak.js +55 -54
- package/keycloak/keycloak-js/Keycloak.js.map +1 -1
- package/keycloak/keycloakIssuerUriParsed.js +3 -3
- package/keycloak/keycloakIssuerUriParsed.js.map +1 -1
- package/mock/oidc.js +4 -4
- package/mock/oidc.js.map +1 -1
- package/package.json +1 -1
- package/react/react.js +8 -8
- package/react/react.js.map +1 -1
- package/src/angular.ts +1 -1
- package/src/core/OidcMetadata.ts +1 -1
- package/src/core/StateData.ts +2 -1
- package/src/core/createOidc.ts +2 -1
- package/src/core/earlyInit.ts +1 -1
- package/src/core/evtIsUserActive.ts +2 -1
- package/src/core/iframeMessageProtection.ts +2 -7
- package/src/core/loginOrGoToAuthServer.ts +2 -1
- package/src/core/loginPropagationToOtherTabs.ts +1 -1
- package/src/core/loginSilent.ts +3 -1
- package/src/core/logoutPropagationToOtherTabs.ts +1 -1
- package/src/core/oidcClientTsUserToTokens.ts +2 -1
- package/src/core/ongoingLoginOrRefreshProcesses.ts +2 -1
- package/src/core/persistedAuthState.ts +2 -1
- package/src/keycloak/keycloak-js/Keycloak.ts +2 -1
- package/src/keycloak/keycloakIssuerUriParsed.ts +1 -1
- package/src/mock/oidc.ts +1 -1
- package/src/react/react.tsx +3 -2
- package/src/tools/EphemeralSessionStorage.ts +3 -1
- package/src/tools/Evt.ts +1 -1
- package/src/tools/getDownlinkAndRtt.ts +1 -1
- package/src/tools/readExpirationTimeInJwt.ts +1 -1
- package/src/tools/tsafe/Equals.ts +10 -0
- package/src/tools/tsafe/Param0.ts +12 -0
- package/src/tools/tsafe/Parameters.ts +3 -0
- package/src/tools/tsafe/Reflect.ts +4 -0
- package/src/tools/tsafe/assert.ts +66 -0
- package/src/tools/tsafe/id.ts +37 -0
- package/src/tools/tsafe/isAmong.ts +12 -0
- package/src/tools/tsafe/noUndefined.ts +21 -0
- package/src/tools/tsafe/tools/StrictEquals.ts +5 -0
- package/src/tools/tsafe/tools/Unite.ts +1 -0
- package/src/tools/tsafe/typeGuard.ts +4 -0
- package/tools/EphemeralSessionStorage.js +12 -10
- package/tools/EphemeralSessionStorage.js.map +1 -1
- package/tools/Evt.js +2 -2
- package/tools/Evt.js.map +1 -1
- package/tools/getDownlinkAndRtt.js +3 -3
- package/tools/getDownlinkAndRtt.js.map +1 -1
- package/tools/readExpirationTimeInJwt.js +2 -2
- package/tools/readExpirationTimeInJwt.js.map +1 -1
- package/tools/tsafe/Equals.d.ts +4 -0
- package/tools/tsafe/Equals.js +6 -0
- package/tools/tsafe/Equals.js.map +1 -0
- package/tools/tsafe/Param0.d.ts +7 -0
- package/tools/tsafe/Param0.js +3 -0
- package/tools/tsafe/Param0.js.map +1 -0
- package/tools/tsafe/Parameters.d.ts +2 -0
- package/tools/tsafe/Parameters.js +3 -0
- package/tools/tsafe/Parameters.js.map +1 -0
- package/tools/tsafe/Reflect.d.ts +2 -0
- package/tools/tsafe/Reflect.js +8 -0
- package/tools/tsafe/Reflect.js.map +1 -0
- package/tools/tsafe/assert.d.ts +10 -0
- package/tools/tsafe/assert.js +52 -0
- package/tools/tsafe/assert.js.map +1 -0
- package/tools/tsafe/id.d.ts +36 -0
- package/tools/tsafe/id.js +7 -0
- package/tools/tsafe/id.js.map +1 -0
- package/tools/tsafe/isAmong.d.ts +2 -0
- package/tools/tsafe/isAmong.js +13 -0
- package/tools/tsafe/isAmong.js.map +1 -0
- package/tools/tsafe/noUndefined.d.ts +9 -0
- package/tools/tsafe/noUndefined.js +22 -0
- package/tools/tsafe/noUndefined.js.map +1 -0
- package/tools/tsafe/tools/StrictEquals.d.ts +1 -0
- package/tools/tsafe/tools/StrictEquals.js +3 -0
- package/tools/tsafe/tools/StrictEquals.js.map +1 -0
- package/tools/tsafe/tools/Unite.d.ts +3 -0
- package/tools/tsafe/tools/Unite.js +3 -0
- package/tools/tsafe/tools/Unite.js.map +1 -0
- package/tools/tsafe/typeGuard.d.ts +2 -0
- package/tools/tsafe/typeGuard.js +8 -0
- package/tools/tsafe/typeGuard.js.map +1 -0
- package/vendor/backend/tsafe.js +1 -1
- package/esm/vendor/frontend/tsafe.d.ts +0 -7
- package/esm/vendor/frontend/tsafe.js +0 -1
- package/src/vendor/frontend/tsafe.ts +0 -7
- package/vendor/frontend/tsafe.d.ts +0 -7
- package/vendor/frontend/tsafe.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Parameters.js","sourceRoot":"","sources":["../../src/tools/tsafe/Parameters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reflect.js","sourceRoot":"","sources":["../../src/tools/tsafe/Reflect.ts"],"names":[],"mappings":";;AACA,0BAEC;AAHD,qEAAqE;AACrE,SAAgB,OAAO;IACnB,OAAO,IAAW,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { Equals } from "./Equals";
|
|
2
|
+
/** https://docs.tsafe.dev/assert#error-thrown */
|
|
3
|
+
export declare class AssertionError extends Error {
|
|
4
|
+
originalMessage?: string;
|
|
5
|
+
constructor(msg: string | undefined);
|
|
6
|
+
}
|
|
7
|
+
/** https://docs.tsafe.dev/assert */
|
|
8
|
+
export declare function assert<_T extends true>(condition?: any, msg?: string | (() => string)): asserts condition;
|
|
9
|
+
/** https://docs.tsafe.dev/is */
|
|
10
|
+
export declare function is<T>(_value: any): _value is T;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssertionError = void 0;
|
|
4
|
+
exports.assert = assert;
|
|
5
|
+
exports.is = is;
|
|
6
|
+
/** https://docs.tsafe.dev/assert#error-thrown */
|
|
7
|
+
class AssertionError extends Error {
|
|
8
|
+
constructor(msg) {
|
|
9
|
+
super(`Wrong assert${!msg ? "" : `: "${msg}"`}`);
|
|
10
|
+
this.originalMessage = msg;
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (!this.stack) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AssertionError = AssertionError;
|
|
18
|
+
let refOfIs = undefined;
|
|
19
|
+
/** https://docs.tsafe.dev/assert */
|
|
20
|
+
function assert(condition, msg) {
|
|
21
|
+
if (arguments.length === 0) {
|
|
22
|
+
condition = true;
|
|
23
|
+
}
|
|
24
|
+
if (refOfIs) {
|
|
25
|
+
refOfIs = undefined;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (!condition) {
|
|
29
|
+
const error = new AssertionError(typeof msg === "function" ? msg() : msg);
|
|
30
|
+
if (Error.captureStackTrace) {
|
|
31
|
+
Error.captureStackTrace(error, assert);
|
|
32
|
+
}
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const errorMessage = "'is' error";
|
|
37
|
+
/** https://docs.tsafe.dev/is */
|
|
38
|
+
function is(_value) {
|
|
39
|
+
const ref = {};
|
|
40
|
+
if (refOfIs) {
|
|
41
|
+
refOfIs = undefined;
|
|
42
|
+
throw new Error(errorMessage);
|
|
43
|
+
}
|
|
44
|
+
refOfIs = ref;
|
|
45
|
+
Promise.resolve().then(() => {
|
|
46
|
+
if (refOfIs === ref) {
|
|
47
|
+
throw new Error(errorMessage);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=assert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert.js","sourceRoot":"","sources":["../../src/tools/tsafe/assert.ts"],"names":[],"mappings":";;;AAsBA,wBAqBC;AAKD,gBAiBC;AA/DD,iDAAiD;AACjD,MAAa,cAAe,SAAQ,KAAK;IAGrC,YAAY,GAAuB;QAC/B,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC;QAEjD,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;QAE3B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAElD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACd,OAAO;QACX,CAAC;IACL,CAAC;CACJ;AAdD,wCAcC;AAED,IAAI,OAAO,GAAsC,SAAS,CAAC;AAE3D,oCAAoC;AACpC,SAAgB,MAAM,CAClB,SAAe,EACf,GAA6B;IAE7B,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,SAAS,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,GAAG,SAAS,CAAC;QACpB,OAAO;IACX,CAAC;IAED,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,MAAM,KAAK,GAAG,IAAI,cAAc,CAAC,OAAO,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAE1E,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC1B,KAAK,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC3C,CAAC;QAED,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC;AAED,MAAM,YAAY,GAAG,YAAY,CAAC;AAElC,gCAAgC;AAChC,SAAgB,EAAE,CAAI,MAAW;IAC7B,MAAM,GAAG,GAAG,EAAE,CAAC;IAEf,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,GAAG,SAAS,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAED,OAAO,GAAG,GAAG,CAAC;IAEd,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;QACxB,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAClC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAW,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** https://docs.tsafe.dev/id */
|
|
2
|
+
export declare const id: <T>(x: T) => T;
|
|
3
|
+
/**
|
|
4
|
+
* Ensure that a that a specific type that we are declaring extends a more generic type
|
|
5
|
+
*
|
|
6
|
+
* Use case example 1:
|
|
7
|
+
*
|
|
8
|
+
* type MyObject = {
|
|
9
|
+
* p1: string;
|
|
10
|
+
* p2: string;
|
|
11
|
+
* a: string;
|
|
12
|
+
* b: string;
|
|
13
|
+
* };
|
|
14
|
+
*
|
|
15
|
+
* We want to define a type that consist in an union of
|
|
16
|
+
* all the property name that are letters:
|
|
17
|
+
*
|
|
18
|
+
* type AlphabeticalKeys = Id<keyof MyObject, "a" | "b">;
|
|
19
|
+
*
|
|
20
|
+
* Here AlphabeticalKeys is "a" | "b" but it's better than
|
|
21
|
+
* simply writing it explicitly as we get autocompletion
|
|
22
|
+
* and we can't include a property name that does not exist on MyObject.
|
|
23
|
+
*
|
|
24
|
+
* Use case example 2:
|
|
25
|
+
*
|
|
26
|
+
* We want to declare object type that only take string or number
|
|
27
|
+
* as key value:
|
|
28
|
+
*
|
|
29
|
+
* export type MyObject = Id<Record<string, string | number>, {
|
|
30
|
+
* p1: string;
|
|
31
|
+
* p2: number;
|
|
32
|
+
* }>;
|
|
33
|
+
*
|
|
34
|
+
* If later on someone adds "p3": string[] he will get a type error.
|
|
35
|
+
* */
|
|
36
|
+
export type Id<Generic, Specific extends Generic> = Specific;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/tools/tsafe/id.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AAC1B,MAAM,EAAE,GAAG,CAAI,CAAI,EAAE,EAAE,CAAC,CAAC,CAAC;AAApB,QAAA,EAAE,MAAkB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isAmong = isAmong;
|
|
4
|
+
/** https://docs.tsafe.dev/isamong */
|
|
5
|
+
function isAmong(names, value) {
|
|
6
|
+
for (const name of names) {
|
|
7
|
+
if (name === value) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=isAmong.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAmong.js","sourceRoot":"","sources":["../../src/tools/tsafe/isAmong.ts"],"names":[],"mappings":";;AACA,0BAUC;AAXD,qCAAqC;AACrC,SAAgB,OAAO,CACnB,KAAsB,EACtB,KAAc;IAEd,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACvB,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.noUndefined = noUndefined;
|
|
4
|
+
/**
|
|
5
|
+
* Removes the enumerable properties whose values are
|
|
6
|
+
* undefined.
|
|
7
|
+
*
|
|
8
|
+
* Example:
|
|
9
|
+
* noUndefined({ "foo": undefined, "bar": 3 }) returns
|
|
10
|
+
* a new object { "bar": 3 }
|
|
11
|
+
*/
|
|
12
|
+
function noUndefined(obj) {
|
|
13
|
+
const out = {};
|
|
14
|
+
for (const key in obj) {
|
|
15
|
+
if (obj[key] === undefined) {
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
out[key] = obj[key];
|
|
19
|
+
}
|
|
20
|
+
return out;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=noUndefined.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noUndefined.js","sourceRoot":"","sources":["../../src/tools/tsafe/noUndefined.ts"],"names":[],"mappings":";;AAQA,kCAYC;AApBD;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAmB,GAAM;IAChD,MAAM,GAAG,GAAe,EAAS,CAAC;IAElC,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QACpB,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;YACzB,SAAS;QACb,CAAC;QAED,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StrictEquals<A1, A2> = (<A>() => A extends A2 ? true : false) extends <A>() => A extends A1 ? true : false ? true : false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StrictEquals.js","sourceRoot":"","sources":["../../../src/tools/tsafe/tools/StrictEquals.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Unite.js","sourceRoot":"","sources":["../../../src/tools/tsafe/tools/Unite.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeGuard.js","sourceRoot":"","sources":["../../src/tools/tsafe/typeGuard.ts"],"names":[],"mappings":";;AACA,8BAEC;AAHD,uCAAuC;AACvC,SAAgB,SAAS,CAAI,MAAW,EAAE,SAAkB;IACxD,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
package/vendor/backend/tsafe.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e={720:(e,
|
|
1
|
+
(()=>{"use strict";var e={720:function(e,r){var t,n=this&&this.__extends||(t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},t(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(r,"__esModule",{value:!0}),r.AssertionError=void 0,r.assert=function e(r,t){if(0===arguments.length&&(r=!0),void 0===i){if(!r){var n=new o("function"==typeof t?t():t);throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}}else i=void 0},r.is=function(e){var r={};if(void 0!==i)throw i=void 0,new Error(u);return i=r,Promise.resolve().then((function(){if(i===r)throw new Error(u)})),null};var o=function(e){function r(r){var t=this.constructor,n=e.call(this,"Wrong assertion encountered"+(r?': "'.concat(r,'"'):""))||this;return n.originalMessage=r,Object.setPrototypeOf(n,t.prototype),n.stack,n}return n(r,e),r}(Error);r.AssertionError=o;var i=void 0,u="Wrong usage of the `is` function refer to https://docs.tsafe.dev/is"},202:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.exclude=function(e){var r=e instanceof Object?function(r){return e.indexOf(r)<0}:function(r){return r!==e};return function(e){return r(e)}}},135:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.id=void 0,r.id=function(e){return e}},952:function(e,r){var t=this&&this.__values||function(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.isAmong=function(e,r){var n,o;try{for(var i=t(e),u=i.next();!u.done;u=i.next())if(u.value===r)return!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return!1}}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n].call(i.exports,i,i.exports,t),i.exports}var n={};(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.exclude=e.isAmong=e.id=e.is=e.assert=void 0;var r=t(720);Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return r.assert}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return r.is}});var o=t(135);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return o.id}});var i=t(952);Object.defineProperty(e,"isAmong",{enumerable:!0,get:function(){return i.isAmong}});var u=t(202);Object.defineProperty(e,"exclude",{enumerable:!0,get:function(){return u.exclude}})})(),module.exports=n})();
|
|
2
2
|
exports.__oidcSpaBundle = true;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { id } from "tsafe/id";
|
|
2
|
-
export { assert, is, type Equals } from "tsafe/assert";
|
|
3
|
-
export { typeGuard } from "tsafe/typeGuard";
|
|
4
|
-
export { noUndefined } from "tsafe/noUndefined";
|
|
5
|
-
export type { Param0 } from "tsafe";
|
|
6
|
-
export { isAmong } from "tsafe/isAmong";
|
|
7
|
-
export { Reflect } from "tsafe/Reflect";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t={d:(r,e)=>{for(var n in e)t.o(e,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r)},r={};t.d(r,{W9:()=>j,vA:()=>v,id:()=>e,is:()=>h,FB:()=>g,AG:()=>m,Ew:()=>w});var e=function(t){return t};function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function i(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?o(Object(e),!0).forEach((function(r){u(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function u(t,r,e){return(r=function(t){var r=function(t){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,"string");if("object"!=n(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,r){if(r&&("object"==c(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){var r="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(r){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return function(t,r,e){if(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var o=new(t.bind.apply(t,n));return e&&s(o,e.prototype),o}(t,arguments,p(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s(e,t)},a(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function s(t,r){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},s(t,r)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var y=function(){function t(r){var e,n,o,u;if(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=t,u=["Wrong assertion encountered"+(r?': "'.concat(r,'"'):"")],o=p(o),(e=f(n,l()?Reflect.construct(o,u||[],p(n).constructor):o.apply(n,u))).originalMessage=r,Object.setPrototypeOf(e,(this instanceof t?this.constructor:void 0).prototype),!e.stack)return f(e);try{!function(t,r,e){try{t[r]=e}catch(t){}if(t[r]===e)return e;var n=void 0,o=Object.getOwnPropertyDescriptor(t,r)||{enumerable:!0,configurable:!0};if(o.get)throw new Error("Probably a wrong idea to overwrite ".concat(String(r)," getter"));try{Object.defineProperty(t,r,i(i({},o),{},{value:e}))}catch(t){n=t}if(t[r]!==e)throw n||new Error("Can't assign")}(e,"stack",e.stack.split("\n").filter((function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];var n=r[1];return 1!==n&&2!==n})).join("\n"))}catch(t){}return e}return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&s(t,r)}(t,a(Error)),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(),b=void 0;function v(t,r){if(0===arguments.length&&(t=!0),void 0===b){if(!t)throw new y("function"==typeof r?r():r)}else b=void 0}var d="Wrong usage of the `is` function refer to https://docs.tsafe.dev/is";function h(t){var r={};if(void 0!==b)throw b=void 0,new Error(d);return b=r,Promise.resolve().then((function(){if(b===r)throw new Error(d)})),null}function w(t,r){return r}function m(t){var r={};for(var e in t)void 0!==t[e]&&(r[e]=t[e]);return r}function O(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function g(t,r){var e,n=function(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(t){if("string"==typeof t)return O(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?O(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw i}}}}(t);try{for(n.s();!(e=n.n()).done;)if(e.value===r)return!0}catch(t){n.e(t)}finally{n.f()}return!1}function j(){return null}var P=r.W9,S=r.vA,E=r.id,A=r.is,_=r.FB,D=r.AG,T=r.Ew;export{P as Reflect,S as assert,E as id,A as is,_ as isAmong,D as noUndefined,T as typeGuard};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { id } from "tsafe/id";
|
|
2
|
-
export { assert, is, type Equals } from "tsafe/assert";
|
|
3
|
-
export { typeGuard } from "tsafe/typeGuard";
|
|
4
|
-
export { noUndefined } from "tsafe/noUndefined";
|
|
5
|
-
export type { Param0 } from "tsafe";
|
|
6
|
-
export { isAmong } from "tsafe/isAmong";
|
|
7
|
-
export { Reflect } from "tsafe/Reflect";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { id } from "tsafe/id";
|
|
2
|
-
export { assert, is, type Equals } from "tsafe/assert";
|
|
3
|
-
export { typeGuard } from "tsafe/typeGuard";
|
|
4
|
-
export { noUndefined } from "tsafe/noUndefined";
|
|
5
|
-
export type { Param0 } from "tsafe";
|
|
6
|
-
export { isAmong } from "tsafe/isAmong";
|
|
7
|
-
export { Reflect } from "tsafe/Reflect";
|
package/vendor/frontend/tsafe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e={549:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Reflect=function(){return null}},720:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&c(o,r.prototype),o}(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},i(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.AssertionError=void 0,t.assert=function(e,t){if(0===arguments.length&&(e=!0),void 0===s){if(!e)throw new l("function"==typeof t?t():t)}else s=void 0},t.is=function(e){var t={};if(void 0!==s)throw s=void 0,new Error(p);return s=t,Promise.resolve().then((function(){if(s===t)throw new Error(p)})),null};var a=r(522),l=function(e){function t(e){var r,n,i,c;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,i=t,c=["Wrong assertion encountered"+(e?': "'.concat(e,'"'):"")],i=f(i),(r=o(n,u()?Reflect.construct(i,c||[],f(n).constructor):i.apply(n,c))).originalMessage=e,Object.setPrototypeOf(r,(this instanceof t?this.constructor:void 0).prototype),!r.stack)return o(r);try{(0,a.overwriteReadonlyProp)(r,"stack",r.stack.split("\n").filter((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[1];return 1!==n&&2!==n})).join("\n"))}catch(e){}return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(i(Error));t.AssertionError=l;var s=void 0,p="Wrong usage of the `is` function refer to https://docs.tsafe.dev/is"},135:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0,t.id=function(e){return e}},952:(e,t)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.isAmong=function(e,t){var n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){f=!0,u=e},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw u}}}}(e);try{for(o.s();!(n=o.n()).done;)if(n.value===t)return!0}catch(e){o.e(e)}finally{o.f()}return!1}},522:(e,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.overwriteReadonlyProp=function(e,t,r){try{e[t]=r}catch(e){}if(e[t]===r)return r;var n=void 0,i=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};if(i.get)throw new Error("Probably a wrong idea to overwrite ".concat(String(t)," getter"));try{Object.defineProperty(e,t,o(o({},i),{},{value:r}))}catch(e){n=e}if(e[t]!==r)throw n||new Error("Can't assign");return r}},505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noUndefined=function(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}},497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.typeGuard=function(e,t){return t}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.Reflect=e.isAmong=e.noUndefined=e.typeGuard=e.is=e.assert=e.id=void 0;var t=r(135);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return t.id}});var o=r(720);Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return o.is}});var i=r(497);Object.defineProperty(e,"typeGuard",{enumerable:!0,get:function(){return i.typeGuard}});var u=r(505);Object.defineProperty(e,"noUndefined",{enumerable:!0,get:function(){return u.noUndefined}});var c=r(952);Object.defineProperty(e,"isAmong",{enumerable:!0,get:function(){return c.isAmong}});var f=r(549);Object.defineProperty(e,"Reflect",{enumerable:!0,get:function(){return f.Reflect}})})(),module.exports=n})();
|
|
2
|
-
exports.__oidcSpaBundle = true;
|