@greatapps/common 1.1.134 → 1.1.137
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/{account-management.action-7QQCACDJ.mjs → account-management.action-GPQUKGJ4.mjs} +3 -3
- package/dist/{chunk-EC3T7NF6.mjs → chunk-2FMTHF5Y.mjs} +2 -2
- package/dist/chunk-47SDUOY2.mjs +75 -0
- package/dist/chunk-47SDUOY2.mjs.map +1 -0
- package/dist/{chunk-ICUZDG2N.mjs → chunk-4KASY4B6.mjs} +4 -4
- package/dist/{chunk-7MBVHKTC.mjs → chunk-5MR4OYS4.mjs} +1 -1
- package/dist/{chunk-QEFMNBSY.mjs → chunk-5QQ2B7R6.mjs} +4 -4
- package/dist/index.mjs +50 -114
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.mjs +13 -0
- package/dist/server.mjs +11 -11
- package/dist/{validate-session.action-K7RWN2GE.mjs → validate-session.action-QC2VBJ4N.mjs} +3 -3
- package/dist/validate-session.action-QC2VBJ4N.mjs.map +1 -0
- package/dist/{verify-two-factor.action-V6JQATK2.mjs → verify-two-factor.action-BAKUOXIH.mjs} +3 -3
- package/package.json +5 -1
- package/src/index.ts +0 -1
- package/src/middleware.ts +4 -0
- /package/dist/{account-management.action-7QQCACDJ.mjs.map → account-management.action-GPQUKGJ4.mjs.map} +0 -0
- /package/dist/{chunk-EC3T7NF6.mjs.map → chunk-2FMTHF5Y.mjs.map} +0 -0
- /package/dist/{chunk-ICUZDG2N.mjs.map → chunk-4KASY4B6.mjs.map} +0 -0
- /package/dist/{chunk-7MBVHKTC.mjs.map → chunk-5MR4OYS4.mjs.map} +0 -0
- /package/dist/{chunk-QEFMNBSY.mjs.map → chunk-5QQ2B7R6.mjs.map} +0 -0
- /package/dist/{validate-session.action-K7RWN2GE.mjs.map → middleware.mjs.map} +0 -0
- /package/dist/{verify-two-factor.action-V6JQATK2.mjs.map → verify-two-factor.action-BAKUOXIH.mjs.map} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
continueChain,
|
|
3
|
+
createAuthMiddleware,
|
|
4
|
+
createMiddlewareChain,
|
|
5
|
+
stopChain
|
|
6
|
+
} from "./chunk-47SDUOY2.mjs";
|
|
7
|
+
export {
|
|
8
|
+
continueChain,
|
|
9
|
+
createAuthMiddleware,
|
|
10
|
+
createMiddlewareChain,
|
|
11
|
+
stopChain
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=middleware.mjs.map
|
package/dist/server.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validateSessionAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2FMTHF5Y.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addProjectUserAction,
|
|
6
6
|
findCurrentAccount,
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
projectUsersService,
|
|
13
13
|
removeProjectUserAction,
|
|
14
14
|
subscriptionsService
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4KASY4B6.mjs";
|
|
16
16
|
import {
|
|
17
17
|
authService,
|
|
18
18
|
getClientInfoFromRequest
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5MR4OYS4.mjs";
|
|
20
20
|
import {
|
|
21
21
|
changePasswordAction,
|
|
22
22
|
confirmEmailChangeAction,
|
|
@@ -34,14 +34,7 @@ import {
|
|
|
34
34
|
updateAccountAction,
|
|
35
35
|
updateAccountUserByIdAction,
|
|
36
36
|
updateUserAction
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
findUserById
|
|
40
|
-
} from "./chunk-XY4LNPBR.mjs";
|
|
41
|
-
import {
|
|
42
|
-
safeServerAction
|
|
43
|
-
} from "./chunk-JW4XRHLX.mjs";
|
|
44
|
-
import "./chunk-B2W2HK7C.mjs";
|
|
37
|
+
} from "./chunk-5QQ2B7R6.mjs";
|
|
45
38
|
import {
|
|
46
39
|
accountService,
|
|
47
40
|
getUserContext
|
|
@@ -51,6 +44,13 @@ import {
|
|
|
51
44
|
api,
|
|
52
45
|
apiClient
|
|
53
46
|
} from "./chunk-RV7ECGIH.mjs";
|
|
47
|
+
import {
|
|
48
|
+
findUserById
|
|
49
|
+
} from "./chunk-XY4LNPBR.mjs";
|
|
50
|
+
import {
|
|
51
|
+
safeServerAction
|
|
52
|
+
} from "./chunk-JW4XRHLX.mjs";
|
|
53
|
+
import "./chunk-B2W2HK7C.mjs";
|
|
54
54
|
import {
|
|
55
55
|
ApiError,
|
|
56
56
|
findWhitelabel,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use server";
|
|
2
2
|
import {
|
|
3
3
|
validateSessionAction
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2FMTHF5Y.mjs";
|
|
5
|
+
import "./chunk-5MR4OYS4.mjs";
|
|
6
6
|
import "./chunk-RV7ECGIH.mjs";
|
|
7
7
|
import "./chunk-UEWT6VFS.mjs";
|
|
8
8
|
export {
|
|
9
9
|
validateSessionAction
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=validate-session.action-
|
|
11
|
+
//# sourceMappingURL=validate-session.action-QC2VBJ4N.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/{verify-two-factor.action-V6JQATK2.mjs → verify-two-factor.action-BAKUOXIH.mjs}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
authService,
|
|
4
4
|
getClientInfoFromRequest
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5MR4OYS4.mjs";
|
|
6
|
+
import "./chunk-RV7ECGIH.mjs";
|
|
6
7
|
import {
|
|
7
8
|
safeServerAction
|
|
8
9
|
} from "./chunk-JW4XRHLX.mjs";
|
|
9
|
-
import "./chunk-RV7ECGIH.mjs";
|
|
10
10
|
import "./chunk-UEWT6VFS.mjs";
|
|
11
11
|
|
|
12
12
|
// src/modules/auth/actions/verify-two-factor.action.ts
|
|
@@ -22,4 +22,4 @@ async function verifyTwoFactorAction(cookie, code) {
|
|
|
22
22
|
export {
|
|
23
23
|
verifyTwoFactorAction
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=verify-two-factor.action-
|
|
25
|
+
//# sourceMappingURL=verify-two-factor.action-BAKUOXIH.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greatapps/common",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.137",
|
|
4
4
|
"description": "Shared library for GreatApps frontend applications",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"./server": {
|
|
13
13
|
"import": "./dist/server.mjs",
|
|
14
14
|
"types": "./src/server.ts"
|
|
15
|
+
},
|
|
16
|
+
"./middleware": {
|
|
17
|
+
"import": "./dist/middleware.mjs",
|
|
18
|
+
"types": "./src/middleware.ts"
|
|
15
19
|
}
|
|
16
20
|
},
|
|
17
21
|
"files": [
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from "./modules/auth/schema";
|
|
|
3
3
|
export * from "./modules/users/schema";
|
|
4
4
|
export * from "./modules/whitelabel/schema";
|
|
5
5
|
export * from "./modules/whitelabel/styles-schema";
|
|
6
|
-
export { useWhitelabelStyles } from "./providers/whitelabel.provider";
|
|
7
6
|
export * from "./infra/api/types";
|
|
8
7
|
|
|
9
8
|
// Contexts
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { createAuthMiddleware } from './middlewares/create-auth-middleware';
|
|
2
|
+
export { createMiddlewareChain } from './middlewares/chain';
|
|
3
|
+
export type { MiddlewareConfig, MiddlewareFunction, MiddlewareResult } from './middlewares/types';
|
|
4
|
+
export { continueChain, stopChain } from './middlewares/types';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|