oidc-spa 8.1.14 → 8.1.15
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/createOidc.js
CHANGED
|
@@ -65,7 +65,7 @@ const isKeycloak_1 = require("../keycloak/isKeycloak");
|
|
|
65
65
|
const INFINITY_TIME_1 = require("../tools/INFINITY_TIME");
|
|
66
66
|
const getIsValidRemoteJson_1 = require("../tools/getIsValidRemoteJson");
|
|
67
67
|
// NOTE: Replaced at build time
|
|
68
|
-
const VERSION = "8.1.
|
|
68
|
+
const VERSION = "8.1.15";
|
|
69
69
|
const globalContext = {
|
|
70
70
|
prOidcByConfigId: new Map(),
|
|
71
71
|
hasLogoutBeenCalled: (0, id_1.id)(false),
|
package/esm/core/createOidc.js
CHANGED
|
@@ -28,7 +28,7 @@ import { isKeycloak } from "../keycloak/isKeycloak";
|
|
|
28
28
|
import { INFINITY_TIME } from "../tools/INFINITY_TIME";
|
|
29
29
|
import { getIsValidRemoteJson } from "../tools/getIsValidRemoteJson";
|
|
30
30
|
// NOTE: Replaced at build time
|
|
31
|
-
const VERSION = "8.1.
|
|
31
|
+
const VERSION = "8.1.15";
|
|
32
32
|
const globalContext = {
|
|
33
33
|
prOidcByConfigId: new Map(),
|
|
34
34
|
hasLogoutBeenCalled: id(false),
|
package/package.json
CHANGED
|
@@ -8,7 +8,13 @@ import { transformCreateFileRoute } from "./transformCreateFileRoute";
|
|
|
8
8
|
|
|
9
9
|
export type OidcSpaVitePluginParams = Omit<Param0<typeof oidcEarlyInit>, "isPostLoginRedirectManual">;
|
|
10
10
|
|
|
11
|
-
export function oidcSpa(
|
|
11
|
+
export function oidcSpa(
|
|
12
|
+
params: OidcSpaVitePluginParams = {
|
|
13
|
+
freezeFetch: true,
|
|
14
|
+
freezeXMLHttpRequest: true,
|
|
15
|
+
freezeWebSocket: true
|
|
16
|
+
}
|
|
17
|
+
) {
|
|
12
18
|
let loadHandleEntrypoint: ReturnType<typeof createLoadHandleEntrypoint> | undefined = undefined;
|
|
13
19
|
|
|
14
20
|
const plugin: Plugin = {
|
|
@@ -2,4 +2,4 @@ import type { Plugin } from "vite";
|
|
|
2
2
|
import type { Param0 } from "../tools/tsafe/Param0";
|
|
3
3
|
import type { oidcEarlyInit } from "../entrypoint";
|
|
4
4
|
export type OidcSpaVitePluginParams = Omit<Param0<typeof oidcEarlyInit>, "isPostLoginRedirectManual">;
|
|
5
|
-
export declare function oidcSpa(params
|
|
5
|
+
export declare function oidcSpa(params?: OidcSpaVitePluginParams): Plugin<any>;
|
|
@@ -5,7 +5,11 @@ const assert_1 = require("../tools/tsafe/assert");
|
|
|
5
5
|
const handleClientEntrypoint_1 = require("./handleClientEntrypoint");
|
|
6
6
|
const excludeModuleExportFromOptimizedDeps_1 = require("./excludeModuleExportFromOptimizedDeps");
|
|
7
7
|
const transformCreateFileRoute_1 = require("./transformCreateFileRoute");
|
|
8
|
-
function oidcSpa(params
|
|
8
|
+
function oidcSpa(params = {
|
|
9
|
+
freezeFetch: true,
|
|
10
|
+
freezeXMLHttpRequest: true,
|
|
11
|
+
freezeWebSocket: true
|
|
12
|
+
}) {
|
|
9
13
|
let loadHandleEntrypoint = undefined;
|
|
10
14
|
const plugin = {
|
|
11
15
|
name: "oidc-spa",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin.js","sourceRoot":"","sources":["../src/vite-plugin/vite-plugin.ts"],"names":[],"mappings":";;AAUA,
|
|
1
|
+
{"version":3,"file":"vite-plugin.js","sourceRoot":"","sources":["../src/vite-plugin/vite-plugin.ts"],"names":[],"mappings":";;AAUA,0BAiDC;AA1DD,kDAA+C;AAG/C,qEAAsE;AACtE,iGAA8F;AAC9F,yEAAsE;AAItE,SAAgB,OAAO,CACnB,SAAkC;IAC9B,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,IAAI;CACxB;IAED,IAAI,oBAAoB,GAA8D,SAAS,CAAC;IAEhG,MAAM,MAAM,GAAW;QACnB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,KAAK;QACd,MAAM,CAAC,UAAU;YACb,UAAU,GAAG,IAAA,2EAAoC,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;YAClE,OAAO,UAAU,CAAC;QACtB,CAAC;QACD,cAAc,CAAC,cAAc;YACzB,oBAAoB,GAAG,IAAA,mDAA0B,EAAC;gBAC9C,uBAAuB,EAAE,MAAM;gBAC/B,cAAc;aACjB,CAAC,CAAC;QACP,CAAC;QACD,SAAS,CAAC,IAAI,EAAE,EAAE;YACd,MAAM,WAAW,GAAG,IAAA,mDAAwB,EAAC;gBACzC,IAAI;gBACJ,EAAE;aACL,CAAC,CAAC;YAEH,OAAO,WAAW,CAAC;QACvB,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE;YACT,IAAA,eAAM,EAAC,oBAAoB,KAAK,SAAS,CAAC,CAAC;YAE3C,CAAC;gBACG,MAAM,CAAC,GAAG,MAAM,oBAAoB,CAAC;oBACjC,EAAE;oBACF,aAAa,EAAE,IAAI;iBACtB,CAAC,CAAC;gBAEH,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;oBACb,OAAO,CAAC,CAAC;gBACb,CAAC;YACL,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;IAEF,OAAO,MAAM,CAAC;AAClB,CAAC"}
|