naystack 1.2.3 → 1.2.5
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.
|
@@ -30,7 +30,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/auth/email/client.ts
|
|
31
31
|
var client_exports = {};
|
|
32
32
|
__export(client_exports, {
|
|
33
|
-
getEmailAuthUtils: () => getEmailAuthUtils,
|
|
34
33
|
useLoginWithEmail: () => useLoginWithEmail,
|
|
35
34
|
useLogout: () => useLogout,
|
|
36
35
|
useSignUpWithEmail: () => useSignUpWithEmail
|
|
@@ -100,16 +99,8 @@ function useLogout(endpoint) {
|
|
|
100
99
|
[setToken]
|
|
101
100
|
);
|
|
102
101
|
}
|
|
103
|
-
function getEmailAuthUtils(endpoint) {
|
|
104
|
-
return {
|
|
105
|
-
useSignUp: () => useSignUpWithEmail(endpoint),
|
|
106
|
-
useLogin: () => useLoginWithEmail(endpoint),
|
|
107
|
-
useLogout: () => useLogout(endpoint)
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
102
|
// Annotate the CommonJS export names for ESM import in node:
|
|
111
103
|
0 && (module.exports = {
|
|
112
|
-
getEmailAuthUtils,
|
|
113
104
|
useLoginWithEmail,
|
|
114
105
|
useLogout,
|
|
115
106
|
useSignUpWithEmail
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
declare function useSignUpWithEmail(endpoint: string): (data: object) => Promise<string | null>;
|
|
2
2
|
declare function useLoginWithEmail(endpoint: string): (data: object) => Promise<string | null>;
|
|
3
3
|
declare function useLogout(endpoint: string): (data?: object) => Promise<void>;
|
|
4
|
-
declare function getEmailAuthUtils(endpoint: string): {
|
|
5
|
-
useSignUp: () => (data: object) => Promise<string | null>;
|
|
6
|
-
useLogin: () => (data: object) => Promise<string | null>;
|
|
7
|
-
useLogout: () => (data?: object) => Promise<void>;
|
|
8
|
-
};
|
|
9
4
|
|
|
10
|
-
export {
|
|
5
|
+
export { useLoginWithEmail, useLogout, useSignUpWithEmail };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
declare function useSignUpWithEmail(endpoint: string): (data: object) => Promise<string | null>;
|
|
2
2
|
declare function useLoginWithEmail(endpoint: string): (data: object) => Promise<string | null>;
|
|
3
3
|
declare function useLogout(endpoint: string): (data?: object) => Promise<void>;
|
|
4
|
-
declare function getEmailAuthUtils(endpoint: string): {
|
|
5
|
-
useSignUp: () => (data: object) => Promise<string | null>;
|
|
6
|
-
useLogin: () => (data: object) => Promise<string | null>;
|
|
7
|
-
useLogout: () => (data?: object) => Promise<void>;
|
|
8
|
-
};
|
|
9
4
|
|
|
10
|
-
export {
|
|
5
|
+
export { useLoginWithEmail, useLogout, useSignUpWithEmail };
|
|
@@ -77,15 +77,7 @@ function useLogout(endpoint) {
|
|
|
77
77
|
[setToken]
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
|
-
function getEmailAuthUtils(endpoint) {
|
|
81
|
-
return {
|
|
82
|
-
useSignUp: () => useSignUpWithEmail(endpoint),
|
|
83
|
-
useLogin: () => useLoginWithEmail(endpoint),
|
|
84
|
-
useLogout: () => useLogout(endpoint)
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
80
|
export {
|
|
88
|
-
getEmailAuthUtils,
|
|
89
81
|
useLoginWithEmail,
|
|
90
82
|
useLogout,
|
|
91
83
|
useSignUpWithEmail
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naystack",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "A stack built with Next + GraphQL + S3 + Auth",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsup"
|
|
12
|
+
"build": "NODE_OPTIONS='--max-old-space-size=16384' tsup"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
"./auth": {
|