prostgles-client 4.0.318 → 4.0.320
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/auth/useAuthState.js +1 -1
- package/dist/hooks/reactImports.d.ts +1 -1
- package/dist/hooks/reactImports.d.ts.map +1 -1
- package/dist/hooks/useEffectDeep.d.ts +5 -3
- package/dist/hooks/useEffectDeep.d.ts.map +1 -1
- package/dist/hooks/useEffectDeep.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.no-sync.js +1 -1
- package/package.json +4 -4
|
@@ -221,7 +221,7 @@ exports.ERR_CODE_MESSAGES = {
|
|
|
221
221
|
"expired-magic-link": "Magic link expired",
|
|
222
222
|
"inactive-account": "Account is inactive",
|
|
223
223
|
"invalid-password": "Invalid or missing password",
|
|
224
|
-
"invalid-totp-code": "Invalid
|
|
224
|
+
"invalid-totp-code": "Invalid totp code",
|
|
225
225
|
"invalid-username": "Invalid or missing username",
|
|
226
226
|
"is-from-magic-link": "Cannot login with password",
|
|
227
227
|
"is-from-OAuth": "Cannot login with password",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type ReactT = typeof import("react");
|
|
2
2
|
declare let React: ReactT;
|
|
3
3
|
export declare const getReact: (throwError?: boolean) => ReactT;
|
|
4
4
|
declare const useEffect: typeof import("react").useEffect, useCallback: typeof import("react").useCallback, useRef: typeof import("react").useRef, useState: typeof import("react").useState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactImports.d.ts","sourceRoot":"","sources":["../../lib/hooks/reactImports.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"reactImports.d.ts","sourceRoot":"","sources":["../../lib/hooks/reactImports.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,cAAc,OAAO,CAAC,CAAC;AACrC,QAAA,IAAI,KAAK,EAAE,MAAM,CAAC;AAQlB,eAAO,MAAM,QAAQ,GAAI,aAAa,OAAO,KAAG,MAQ/C,CAAC;AAEF,QAAA,MACE,SAAS,oCACT,WAAW,sCACX,MAAM,iCACN,QAAQ,iCAEM,CAAC;AAEjB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAE3D,eAAO,MAAM,oBAAoB,eAA0C,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { React } from "./reactImports";
|
|
2
|
+
type React = typeof import("react");
|
|
2
3
|
export declare const useDeepCompareMemoize: (value: unknown) => unknown;
|
|
3
|
-
export declare const useMemoDeep:
|
|
4
|
-
export declare const useEffectDeep:
|
|
4
|
+
export declare const useMemoDeep: React["useMemo"];
|
|
5
|
+
export declare const useEffectDeep: React["useEffect"];
|
|
6
|
+
export {};
|
|
5
7
|
//# sourceMappingURL=useEffectDeep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEffectDeep.d.ts","sourceRoot":"","sources":["../../lib/hooks/useEffectDeep.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useEffectDeep.d.ts","sourceRoot":"","sources":["../../lib/hooks/useEffectDeep.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAqB,MAAM,gBAAgB,CAAC;AAE1D,KAAK,KAAK,GAAG,cAAc,OAAO,CAAC,CAAC;AACpC,eAAO,MAAM,qBAAqB,GAAI,OAAO,OAAO,YAQnD,CAAC;AAEF,eAAO,MAAM,WAAW,EAGlB,KAAK,CAAC,SAAS,CAAC,CAAC;AAEvB,eAAO,MAAM,aAAa,EAGpB,KAAK,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -13,7 +13,7 @@ const useDeepCompareMemoize = (value) => {
|
|
|
13
13
|
exports.useDeepCompareMemoize = useDeepCompareMemoize;
|
|
14
14
|
exports.useMemoDeep = ((callback, deps) => {
|
|
15
15
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16
|
-
return reactImports_1.React.useMemo(callback, deps
|
|
16
|
+
return reactImports_1.React.useMemo(callback, deps.map(exports.useDeepCompareMemoize));
|
|
17
17
|
});
|
|
18
18
|
exports.useEffectDeep = ((callback, deps) => {
|
|
19
19
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|