prostgles-client 4.0.293 → 4.0.295
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/dist/getAuthHandler.d.ts +9 -5
- package/dist/getAuthHandler.d.ts.map +1 -1
- package/dist/getAuthHandler.js +9 -10
- package/dist/hooks/useProstglesClient.d.ts +1 -1
- package/dist/hooks/useProstglesClient.d.ts.map +1 -1
- package/dist/hooks/useProstglesClient.js +6 -7
- package/dist/index.js +1 -1
- package/dist/index.no-sync.js +1 -1
- package/dist/prostgles.d.ts +2 -4
- package/dist/prostgles.d.ts.map +1 -1
- package/dist/prostgles.js +3 -2
- package/package.json +1 -1
package/dist/getAuthHandler.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { AuthRequest, AuthResponse, AuthSocketSchema, IdentityProvider, LocalLoginMode, UserLike } from "prostgles-types";
|
|
2
|
-
type
|
|
3
|
-
|
|
2
|
+
import { type InitOptions } from "./prostgles";
|
|
3
|
+
import type { Socket } from "socket.io-client";
|
|
4
|
+
type OptionalToUndefined<T> = {
|
|
5
|
+
[K in {} & keyof T]: T[K];
|
|
6
|
+
};
|
|
7
|
+
type Args = Pick<OptionalToUndefined<InitOptions>, "credentials" | "redirect"> & {
|
|
8
|
+
socket: Socket;
|
|
4
9
|
authData: AuthSocketSchema | undefined;
|
|
5
10
|
onReload: VoidFunction | undefined;
|
|
6
11
|
endpoint: string | undefined;
|
|
7
|
-
project: string | undefined;
|
|
8
12
|
};
|
|
9
13
|
type WithProviderLogin = Partial<Record<IdentityProvider, VoidFunction>>;
|
|
10
14
|
type ClientAuthSuccess<T> = T & {
|
|
@@ -34,7 +38,7 @@ type AuthStateLoggedIn<U extends UserLike = UserLike> = LoginSignupOptions & {
|
|
|
34
38
|
logout: () => Promise<any>;
|
|
35
39
|
};
|
|
36
40
|
export type AuthHandler<U extends UserLike = UserLike> = AuthStateLoggedOut | AuthStateLoggedIn<U>;
|
|
37
|
-
export declare const getAuthHandler: ({ authData: authConfig, socket, onReload, endpoint,
|
|
41
|
+
export declare const getAuthHandler: ({ authData: authConfig, socket, onReload, endpoint, ...authOpts }: Args) => AuthHandler;
|
|
38
42
|
export declare const authRequest: <T extends (import("prostgles-types").CommonAuthFailure & {
|
|
39
43
|
/**
|
|
40
44
|
* This is a client-only property that is obtained from server redirect response
|
|
@@ -109,6 +113,6 @@ export declare const authRequest: <T extends (import("prostgles-types").CommonAu
|
|
|
109
113
|
* This is a client-only property that is obtained from server redirect response
|
|
110
114
|
*/
|
|
111
115
|
redirect_url?: string | undefined;
|
|
112
|
-
})>(path: string, data: object, method
|
|
116
|
+
})>(path: string, data: object, method: "GET" | "POST", { credentials, redirect }: Pick<Partial<Request>, "credentials" | "redirect">) => Promise<T>;
|
|
113
117
|
export {};
|
|
114
118
|
//# sourceMappingURL=getAuthHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAuthHandler.d.ts","sourceRoot":"","sources":["../lib/getAuthHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACT,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"getAuthHandler.d.ts","sourceRoot":"","sources":["../lib/getAuthHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAE5D,KA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AAE,SAAS,GAAG,gBAAgB,CAAC;IACzD,YAAY,EACR,SAAS,GACT,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,gBAAgB,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC;CACjF,CAAC;AAEF,KAAK,kBAAkB,GAAG,kBAAkB,GAAG;IAC7C,UAAU,EAAE,KAAK,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,kBAAkB,GAAG;IAC3E,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,kBAAkB,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAEnG,eAAO,MAAM,cAAc,sEAMxB,IAAI,KAAG,WAsGT,CAAC;AAEF,eAAO,MAAM,WAAW;IA3JtB;;OAEG;;;;;;;IAFH;;OAEG;;;;;;;IAFH;;OAEG;;;;;;;IAFH;;OAEG;;;IAFH;;OAEG;;;IAFH;;OAEG;;;;;;;IAFH;;OAEG;;;;;;;IAFH;;OAEG;;;IAFH;;OAEG;;;;;;;IAFH;;OAEG;;UA0JG,MAAM,QACN,MAAM,UACJ,KAAK,GAAG,MAAM,6BACK,KAAK,QAAQ,OAAO,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,eAkC9E,CAAC"}
|
package/dist/getAuthHandler.js
CHANGED
|
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.authRequest = exports.getAuthHandler = void 0;
|
|
4
4
|
const prostgles_types_1 = require("prostgles-types");
|
|
5
5
|
const prostgles_1 = require("./prostgles");
|
|
6
|
-
const getAuthHandler = ({ authData: authConfig, socket, onReload, endpoint,
|
|
6
|
+
const getAuthHandler = ({ authData: authConfig, socket, onReload, endpoint, ...authOpts }) => {
|
|
7
7
|
var _a;
|
|
8
8
|
const urlWithEndpointAndSearch = (route) => {
|
|
9
9
|
const { search } = window.location;
|
|
10
10
|
let url = route + search;
|
|
11
|
-
if (project)
|
|
12
|
-
url = `/${project}${route}`;
|
|
13
11
|
if (endpoint)
|
|
14
12
|
url = `${endpoint}${url}`;
|
|
15
13
|
return url;
|
|
@@ -57,17 +55,17 @@ const getAuthHandler = ({ authData: authConfig, socket, onReload, endpoint, proj
|
|
|
57
55
|
loginSignupOptions.login =
|
|
58
56
|
login &&
|
|
59
57
|
(async (params) => {
|
|
60
|
-
return (0, exports.authRequest)(urlWithEndpointAndSearch(login.loginRoute), params);
|
|
58
|
+
return (0, exports.authRequest)(urlWithEndpointAndSearch(login.loginRoute), params, "POST", authOpts);
|
|
61
59
|
});
|
|
62
60
|
loginSignupOptions.signupWithEmailAndPassword =
|
|
63
61
|
signupWithEmailAndPassword &&
|
|
64
62
|
((params) => {
|
|
65
|
-
return (0, exports.authRequest)(urlWithEndpointAndSearch(signupWithEmailAndPassword.url), params);
|
|
63
|
+
return (0, exports.authRequest)(urlWithEndpointAndSearch(signupWithEmailAndPassword.url), params, "POST", authOpts);
|
|
66
64
|
});
|
|
67
65
|
loginSignupOptions.confirmEmail =
|
|
68
66
|
signupWithEmailAndPassword &&
|
|
69
67
|
((data) => {
|
|
70
|
-
return (0, exports.authRequest)(urlWithEndpointAndSearch(signupWithEmailAndPassword.emailConfirmationRoute), data);
|
|
68
|
+
return (0, exports.authRequest)(urlWithEndpointAndSearch(signupWithEmailAndPassword.emailConfirmationRoute), data, "POST", authOpts);
|
|
71
69
|
});
|
|
72
70
|
}
|
|
73
71
|
if (!(authConfig === null || authConfig === void 0 ? void 0 : authConfig.user)) {
|
|
@@ -85,21 +83,22 @@ const getAuthHandler = ({ authData: authConfig, socket, onReload, endpoint, proj
|
|
|
85
83
|
const { logoutRoute } = (_a = authConfig.login) !== null && _a !== void 0 ? _a : {};
|
|
86
84
|
if (!logoutRoute)
|
|
87
85
|
throw new Error("Unexpected");
|
|
88
|
-
return (0, exports.authRequest)(urlWithEndpointAndSearch(logoutRoute), {}, "POST");
|
|
86
|
+
return (0, exports.authRequest)(urlWithEndpointAndSearch(logoutRoute), {}, "POST", authOpts);
|
|
89
87
|
},
|
|
90
88
|
...loginSignupOptions,
|
|
91
89
|
};
|
|
92
90
|
};
|
|
93
91
|
exports.getAuthHandler = getAuthHandler;
|
|
94
|
-
const authRequest = async (path, data, method) => {
|
|
92
|
+
const authRequest = async (path, data, method, { credentials, redirect }) => {
|
|
95
93
|
const rawResponse = await fetch(path, {
|
|
96
|
-
method: method
|
|
94
|
+
method: method,
|
|
97
95
|
headers: {
|
|
98
96
|
Accept: "application/json",
|
|
99
97
|
"Content-Type": "application/json",
|
|
100
98
|
},
|
|
101
99
|
...(method !== "GET" && { body: JSON.stringify(data) }),
|
|
102
|
-
credentials
|
|
100
|
+
credentials,
|
|
101
|
+
redirect,
|
|
103
102
|
});
|
|
104
103
|
if (!rawResponse.ok) {
|
|
105
104
|
const error = await rawResponse
|
|
@@ -35,6 +35,6 @@ export type ProstglesClientState<PGC> = {
|
|
|
35
35
|
hasError: true;
|
|
36
36
|
error: unknown;
|
|
37
37
|
};
|
|
38
|
-
export declare const useProstglesClient: <DBSchema_1, FuncSchema extends Partial<Record<string, import("lib/getMethods").FunctionHandle>> = Partial<Record<string, import("lib/getMethods").FunctionHandle>>, U extends UserLike = UserLike>({ skip, socketOptions: socketPathOrOptions, endpoint,
|
|
38
|
+
export declare const useProstglesClient: <DBSchema_1, FuncSchema extends Partial<Record<string, import("lib/getMethods").FunctionHandle>> = Partial<Record<string, import("lib/getMethods").FunctionHandle>>, U extends UserLike = UserLike>({ skip, socketOptions: socketPathOrOptions, endpoint, token, ...initOpts }?: UseProstglesClientProps) => ProstglesClientState<OnReadyParams<DBSchema_1, FuncSchema, U>>;
|
|
39
39
|
export {};
|
|
40
40
|
//# sourceMappingURL=useProstglesClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProstglesClient.d.ts","sourceRoot":"","sources":["../../lib/hooks/useProstglesClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,EACd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAa,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAIjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAG5D,eAAO,MAAM,KAAK,gEAQjB,CAAC;AAEF,MAAM,MAAM,aAAa,CACvB,QAAQ,EACR,cAAc,SAAS,qBAAqB,GAAG,qBAAqB,EACpE,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B;IACF,GAAG,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC/B,OAAO,EAAE,cAAc,GAAG,SAAS,CAAC;IACpC,YAAY,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAChD,WAAW,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,mBAAmB,GAAG,OAAO,CAAC,cAAc,GAAG,aAAa,CAAC,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC,GAAG;IACxF;;OAEG;IACH,KAAK,CAAC,EAA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AO,EAAE,cAAc,GAAG,SAAS,CAAC;IACpC,YAAY,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAChD,WAAW,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,mBAAmB,GAAG,OAAO,CAAC,cAAc,GAAG,aAAa,CAAC,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC,GAAG;IACxF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,oBAAoB,CAAC,GAAG,IAChC;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAC5D,CAAC;IAAE,SAAS,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,GAAG,CAAC,GACjE;IAAE,SAAS,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzD,eAAO,MAAM,kBAAkB,mRAU5B,uBAAuB,mEAwEzB,CAAC"}
|
|
@@ -22,7 +22,7 @@ const getIO = (throwError = false) => {
|
|
|
22
22
|
return {};
|
|
23
23
|
};
|
|
24
24
|
exports.getIO = getIO;
|
|
25
|
-
const useProstglesClient = ({ skip, socketOptions: socketPathOrOptions, endpoint,
|
|
25
|
+
const useProstglesClient = ({ skip, socketOptions: socketPathOrOptions, endpoint, token, ...initOpts } = {}) => {
|
|
26
26
|
const { useRef, useState } = (0, reactImports_1.getReact)(true);
|
|
27
27
|
const [onReadyArgs, setOnReadyArgs] = useState({
|
|
28
28
|
isLoading: true,
|
|
@@ -30,23 +30,23 @@ const useProstglesClient = ({ skip, socketOptions: socketPathOrOptions, endpoint
|
|
|
30
30
|
const getIsMounted = (0, useIsMounted_1.useIsMounted)();
|
|
31
31
|
const socketRef = useRef();
|
|
32
32
|
(0, useAsyncEffectQueue_1.useAsyncEffectQueue)(async () => {
|
|
33
|
-
var _a, _b;
|
|
33
|
+
var _a, _b, _c;
|
|
34
34
|
if (skip)
|
|
35
35
|
return undefined;
|
|
36
36
|
(_a = socketRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
37
37
|
const io = (0, exports.getIO)();
|
|
38
38
|
const socketOptions = typeof socketPathOrOptions === "string" ? { path: socketPathOrOptions } : socketPathOrOptions;
|
|
39
39
|
const opts = {
|
|
40
|
-
withCredentials:
|
|
40
|
+
withCredentials: initOpts.credentials && initOpts.credentials !== "omit",
|
|
41
41
|
...socketOptions,
|
|
42
42
|
reconnectionDelay: 1000,
|
|
43
43
|
reconnection: true,
|
|
44
44
|
};
|
|
45
|
-
if (
|
|
46
|
-
opts.path = `/ws-api
|
|
45
|
+
if (endpoint) {
|
|
46
|
+
(_b = opts.path) !== null && _b !== void 0 ? _b : (opts.path = `/ws-api`);
|
|
47
47
|
}
|
|
48
48
|
if (token) {
|
|
49
|
-
(
|
|
49
|
+
(_c = opts.query) !== null && _c !== void 0 ? _c : (opts.query = {});
|
|
50
50
|
opts.query.sid_token = token;
|
|
51
51
|
}
|
|
52
52
|
const socket = endpoint ? io(endpoint, opts) : io(opts);
|
|
@@ -54,7 +54,6 @@ const useProstglesClient = ({ skip, socketOptions: socketPathOrOptions, endpoint
|
|
|
54
54
|
await (0, prostgles_1.prostgles)({
|
|
55
55
|
socket,
|
|
56
56
|
endpoint,
|
|
57
|
-
project,
|
|
58
57
|
...initOpts,
|
|
59
58
|
onReady: (...args) => {
|
|
60
59
|
var _a, _b;
|