@withwiz/toolkit 0.8.0 → 0.9.0
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/README.ko.md +16 -25
- package/README.md +16 -25
- package/dist/chunk-2JUFL4KX.js +41 -0
- package/dist/chunk-6A5JHOBB.js +134 -0
- package/dist/chunk-BTYH4MHU.js +118 -0
- package/dist/chunk-E4TKORMQ.js +59 -0
- package/dist/{chunk-OII5BXCZ.js → chunk-U2TGXJ3A.js} +1 -1
- package/dist/chunk-VQJY52YF.js +139 -0
- package/dist/{chunk-NLV7IEYM.js → chunk-WSHRBK6Y.js} +1 -1
- package/dist/core/auth/adapters/sql/dialect.d.ts +21 -0
- package/dist/core/auth/adapters/sql/dialect.js +11 -0
- package/dist/core/auth/adapters/sql/email-token-repository.d.ts +17 -0
- package/dist/core/auth/adapters/sql/email-token-repository.js +9 -0
- package/dist/core/auth/adapters/sql/index.d.ts +7 -0
- package/dist/core/auth/adapters/sql/index.js +27 -0
- package/dist/core/auth/adapters/sql/oauth-account-repository.d.ts +18 -0
- package/dist/core/auth/adapters/sql/oauth-account-repository.js +9 -0
- package/dist/core/auth/adapters/sql/types.d.ts +73 -0
- package/dist/core/auth/adapters/sql/types.js +7 -0
- package/dist/core/auth/adapters/sql/user-repository.d.ts +20 -0
- package/dist/core/auth/adapters/sql/user-repository.js +9 -0
- package/dist/core/auth/index.js +9 -9
- package/dist/core/auth/oauth/index.js +7 -7
- package/dist/core/auth/oauth/providers/index.js +6 -6
- package/dist/core/auth/services/index.js +4 -4
- package/dist/core/constants/index.js +6 -6
- package/dist/core/geolocation/index.js +4 -4
- package/dist/core/geolocation/providers/index.js +4 -4
- package/dist/core/system/health-check.js +2 -2
- package/dist/core/system/index.js +5 -5
- package/dist/core/utils/index.js +8 -8
- package/dist/initialize.js +3 -3
- package/dist/next/auth-handlers/index.js +19 -19
- package/dist/next/auth-handlers/oauth-authorize.handler.js +4 -4
- package/dist/next/auth-handlers/oauth-callback.handler.js +5 -5
- package/dist/next/error/index.js +3 -3
- package/dist/next/middleware/index.js +1 -1
- package/dist/next/middleware/wrappers.js +1 -1
- package/dist/next/utils/index.js +14 -14
- package/package.json +3 -2
- package/dist/{chunk-SXBDP3CK.js → chunk-4EXZ2SDV.js} +3 -3
- package/dist/{chunk-VDRLJU6C.js → chunk-E2HYIONP.js} +3 -3
- package/dist/{chunk-ER6LSA4M.js → chunk-P7WHMKN5.js} +6 -6
|
@@ -10,11 +10,11 @@ import "../../chunk-WXOWI7BJ.js";
|
|
|
10
10
|
import "../../chunk-TRGFXIEF.js";
|
|
11
11
|
import "../../chunk-LCYDMYZS.js";
|
|
12
12
|
import "../../chunk-Y4WPEIKW.js";
|
|
13
|
+
import "../../chunk-K2PNAQI4.js";
|
|
13
14
|
import "../../chunk-XKIBJJA3.js";
|
|
14
15
|
import "../../chunk-UWOWKOOQ.js";
|
|
15
16
|
import "../../chunk-BRBOGLFT.js";
|
|
16
17
|
import "../../chunk-R7EFDSPZ.js";
|
|
17
|
-
import "../../chunk-K2PNAQI4.js";
|
|
18
18
|
import "../../chunk-KKZCNF6U.js";
|
|
19
19
|
import "../../chunk-VUYS3SU7.js";
|
|
20
20
|
import "../../chunk-AMZWDLJ4.js";
|
package/dist/next/utils/index.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPaginatedResponse,
|
|
3
|
+
getReferer,
|
|
4
|
+
getSearchParam,
|
|
5
|
+
getUserAgent,
|
|
6
|
+
parseBooleanParam,
|
|
7
|
+
parseFilters,
|
|
8
|
+
parseNumberParam,
|
|
9
|
+
parsePagination,
|
|
10
|
+
parseRequestBody,
|
|
11
|
+
parseSort,
|
|
12
|
+
requireAdmin,
|
|
13
|
+
validateAndParse
|
|
14
|
+
} from "../../chunk-23LQJYZN.js";
|
|
1
15
|
import {
|
|
2
16
|
getAllowedOrigins,
|
|
3
17
|
getCorsConfig,
|
|
@@ -31,20 +45,6 @@ import {
|
|
|
31
45
|
throwValidationError,
|
|
32
46
|
withErrorHandling
|
|
33
47
|
} from "../../chunk-BRFW2LL2.js";
|
|
34
|
-
import {
|
|
35
|
-
createPaginatedResponse,
|
|
36
|
-
getReferer,
|
|
37
|
-
getSearchParam,
|
|
38
|
-
getUserAgent,
|
|
39
|
-
parseBooleanParam,
|
|
40
|
-
parseFilters,
|
|
41
|
-
parseNumberParam,
|
|
42
|
-
parsePagination,
|
|
43
|
-
parseRequestBody,
|
|
44
|
-
parseSort,
|
|
45
|
-
requireAdmin,
|
|
46
|
-
validateAndParse
|
|
47
|
-
} from "../../chunk-23LQJYZN.js";
|
|
48
48
|
import "../../chunk-ATAQRXTH.js";
|
|
49
49
|
import "../../chunk-XQIAXMRY.js";
|
|
50
50
|
import "../../chunk-7ZO5UNTJ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@withwiz/toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Shared utility library for withwiz projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
"./initialize": "./dist/initialize.js",
|
|
34
34
|
"./core/auth": "./dist/core/auth/index.js",
|
|
35
|
+
"./core/auth/adapters/sql": "./dist/core/auth/adapters/sql/index.js",
|
|
35
36
|
"./core/auth/config": "./dist/core/auth/config.js",
|
|
36
37
|
"./core/auth/email": "./dist/core/auth/email/index.js",
|
|
37
38
|
"./core/auth/email/sender": "./dist/core/auth/email/sender.js",
|
|
@@ -248,7 +249,7 @@
|
|
|
248
249
|
"@vitest/ui": "^4.0.18",
|
|
249
250
|
"date-fns": "^4.1.0",
|
|
250
251
|
"jsdom": "^24.1.0",
|
|
251
|
-
"next": "^16.
|
|
252
|
+
"next": "^16.2.9",
|
|
252
253
|
"nodemailer": "^6.9.0",
|
|
253
254
|
"tsup": "^8.0.0",
|
|
254
255
|
"typescript": "^5",
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MaxMindProvider
|
|
3
|
+
} from "./chunk-R463CTX4.js";
|
|
1
4
|
import {
|
|
2
5
|
IPApiProvider
|
|
3
6
|
} from "./chunk-E27YZK7O.js";
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
import {
|
|
8
11
|
IPGeolocationProvider
|
|
9
12
|
} from "./chunk-GJYHMHTU.js";
|
|
10
|
-
import {
|
|
11
|
-
MaxMindProvider
|
|
12
|
-
} from "./chunk-R463CTX4.js";
|
|
13
13
|
|
|
14
14
|
// src/core/geolocation/providers/index.ts
|
|
15
15
|
var GeoIPProviderFactory = class {
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MicrosoftOAuthProvider
|
|
3
|
-
} from "./chunk-GSSHHVHF.js";
|
|
4
|
-
import {
|
|
5
|
-
GitHubOAuthProvider
|
|
6
|
-
} from "./chunk-HIZ7USIF.js";
|
|
7
1
|
import {
|
|
8
2
|
GoogleOAuthProvider
|
|
9
3
|
} from "./chunk-GF3DKZIW.js";
|
|
@@ -13,6 +7,12 @@ import {
|
|
|
13
7
|
import {
|
|
14
8
|
MetaOAuthProvider
|
|
15
9
|
} from "./chunk-33RIHX7O.js";
|
|
10
|
+
import {
|
|
11
|
+
MicrosoftOAuthProvider
|
|
12
|
+
} from "./chunk-GSSHHVHF.js";
|
|
13
|
+
import {
|
|
14
|
+
GitHubOAuthProvider
|
|
15
|
+
} from "./chunk-HIZ7USIF.js";
|
|
16
16
|
import {
|
|
17
17
|
OAuthError
|
|
18
18
|
} from "./chunk-5GWGARXI.js";
|