@withwiz/toolkit 0.1.3 → 0.1.4
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/index.js +4 -4
- package/dist/error/index.js +3 -3
- package/dist/error/recovery/index.js +3 -3
- package/dist/geolocation/index.js +4 -4
- package/dist/geolocation/providers/index.js +4 -4
- package/dist/utils/index.js +14 -14
- package/package.json +3 -3
- package/dist/{chunk-S73334QY.js → chunk-QF6FH4GZ.js} +3 -3
package/dist/auth/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
2
|
+
OAuthManager
|
|
3
|
+
} from "../chunk-V5K5FYU7.js";
|
|
4
4
|
import {
|
|
5
5
|
JWTClientManager,
|
|
6
6
|
clearStoredTokens,
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
storeTokens
|
|
19
19
|
} from "../chunk-XRRPEBKB.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "../chunk-
|
|
21
|
+
TokenGenerator
|
|
22
|
+
} from "../chunk-GDWEDUHO.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_PASSWORD_CONFIG,
|
|
25
25
|
createPasswordHasher,
|
package/dist/error/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-ULF5RDDX.js";
|
|
2
|
-
import {
|
|
3
|
-
withRetry
|
|
4
|
-
} from "../chunk-A6EAAWMK.js";
|
|
5
2
|
import {
|
|
6
3
|
CircuitBreaker,
|
|
7
4
|
ECircuitState
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
withFallbackChain,
|
|
15
12
|
withFallbackFn
|
|
16
13
|
} from "../chunk-MYLGYX4K.js";
|
|
14
|
+
import {
|
|
15
|
+
withRetry
|
|
16
|
+
} from "../chunk-A6EAAWMK.js";
|
|
17
17
|
import {
|
|
18
18
|
EmptyState,
|
|
19
19
|
ErrorAlert,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../../chunk-ULF5RDDX.js";
|
|
2
|
-
import {
|
|
3
|
-
withRetry
|
|
4
|
-
} from "../../chunk-A6EAAWMK.js";
|
|
5
2
|
import {
|
|
6
3
|
CircuitBreaker,
|
|
7
4
|
ECircuitState
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
withFallbackChain,
|
|
15
12
|
withFallbackFn
|
|
16
13
|
} from "../../chunk-MYLGYX4K.js";
|
|
14
|
+
import {
|
|
15
|
+
withRetry
|
|
16
|
+
} from "../../chunk-A6EAAWMK.js";
|
|
17
17
|
import "../../chunk-ORMEWXMH.js";
|
|
18
18
|
export {
|
|
19
19
|
CircuitBreaker,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoIPProviderFactory
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import {
|
|
5
|
-
IPApiProvider
|
|
6
|
-
} from "../chunk-DEEJBDJE.js";
|
|
3
|
+
} from "../chunk-QF6FH4GZ.js";
|
|
7
4
|
import {
|
|
8
5
|
IPApiCoProvider
|
|
9
6
|
} from "../chunk-VSGKVZB4.js";
|
|
@@ -13,6 +10,9 @@ import {
|
|
|
13
10
|
import {
|
|
14
11
|
MaxMindProvider
|
|
15
12
|
} from "../chunk-4NWJ3WCZ.js";
|
|
13
|
+
import {
|
|
14
|
+
IPApiProvider
|
|
15
|
+
} from "../chunk-DEEJBDJE.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseGeoIPProvider,
|
|
18
18
|
truncateString
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoIPProviderFactory
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import {
|
|
5
|
-
IPApiProvider
|
|
6
|
-
} from "../../chunk-DEEJBDJE.js";
|
|
3
|
+
} from "../../chunk-QF6FH4GZ.js";
|
|
7
4
|
import {
|
|
8
5
|
IPApiCoProvider
|
|
9
6
|
} from "../../chunk-VSGKVZB4.js";
|
|
@@ -13,6 +10,9 @@ import {
|
|
|
13
10
|
import {
|
|
14
11
|
MaxMindProvider
|
|
15
12
|
} from "../../chunk-4NWJ3WCZ.js";
|
|
13
|
+
import {
|
|
14
|
+
IPApiProvider
|
|
15
|
+
} from "../../chunk-DEEJBDJE.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseGeoIPProvider,
|
|
18
18
|
truncateString
|
package/dist/utils/index.js
CHANGED
|
@@ -34,20 +34,6 @@ import {
|
|
|
34
34
|
isValidJSON,
|
|
35
35
|
isValidUrl
|
|
36
36
|
} from "../chunk-EUQATJLI.js";
|
|
37
|
-
import {
|
|
38
|
-
createPaginatedResponse,
|
|
39
|
-
getReferer,
|
|
40
|
-
getSearchParam,
|
|
41
|
-
getUserAgent,
|
|
42
|
-
parseBooleanParam,
|
|
43
|
-
parseFilters,
|
|
44
|
-
parseNumberParam,
|
|
45
|
-
parsePagination,
|
|
46
|
-
parseRequestBody,
|
|
47
|
-
parseSort,
|
|
48
|
-
requireAdmin,
|
|
49
|
-
validateAndParse
|
|
50
|
-
} from "../chunk-2KAPUVIS.js";
|
|
51
37
|
import {
|
|
52
38
|
getAllowedOrigins,
|
|
53
39
|
getCorsConfig,
|
|
@@ -81,6 +67,20 @@ import {
|
|
|
81
67
|
throwValidationError,
|
|
82
68
|
withErrorHandling
|
|
83
69
|
} from "../chunk-XPASCCUA.js";
|
|
70
|
+
import {
|
|
71
|
+
createPaginatedResponse,
|
|
72
|
+
getReferer,
|
|
73
|
+
getSearchParam,
|
|
74
|
+
getUserAgent,
|
|
75
|
+
parseBooleanParam,
|
|
76
|
+
parseFilters,
|
|
77
|
+
parseNumberParam,
|
|
78
|
+
parsePagination,
|
|
79
|
+
parseRequestBody,
|
|
80
|
+
parseSort,
|
|
81
|
+
requireAdmin,
|
|
82
|
+
validateAndParse
|
|
83
|
+
} from "../chunk-2KAPUVIS.js";
|
|
84
84
|
import "../chunk-MLGO3HLS.js";
|
|
85
85
|
import "../chunk-Y3OTJH2S.js";
|
|
86
86
|
import "../chunk-EZR55KV2.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@withwiz/toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Shared utility library for withwiz projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"zod": "^3.25.67"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
|
-
"next": "15",
|
|
118
|
+
"next": ">=15.0.0",
|
|
119
119
|
"react": ">=18.0.0",
|
|
120
120
|
"react-dom": ">=18.0.0"
|
|
121
121
|
},
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"@vitest/ui": "^4.0.18",
|
|
134
134
|
"date-fns": "^4.1.0",
|
|
135
135
|
"jsdom": "^24.1.0",
|
|
136
|
-
"next": "
|
|
136
|
+
"next": "^16.0.0",
|
|
137
137
|
"tsup": "^8.0.0",
|
|
138
138
|
"typescript": "^5",
|
|
139
139
|
"vitest": "^4.0.18"
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IPApiProvider
|
|
3
|
-
} from "./chunk-DEEJBDJE.js";
|
|
4
1
|
import {
|
|
5
2
|
IPApiCoProvider
|
|
6
3
|
} from "./chunk-VSGKVZB4.js";
|
|
@@ -10,6 +7,9 @@ import {
|
|
|
10
7
|
import {
|
|
11
8
|
MaxMindProvider
|
|
12
9
|
} from "./chunk-4NWJ3WCZ.js";
|
|
10
|
+
import {
|
|
11
|
+
IPApiProvider
|
|
12
|
+
} from "./chunk-DEEJBDJE.js";
|
|
13
13
|
|
|
14
14
|
// src/geolocation/providers/index.ts
|
|
15
15
|
var GeoIPProviderFactory = class {
|