@withwiz/toolkit 0.1.3 → 0.2.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.
@@ -1,3 +1,21 @@
1
+ import {
2
+ OAuthManager
3
+ } from "../chunk-V5K5FYU7.js";
4
+ import {
5
+ DEFAULT_PASSWORD_CONFIG,
6
+ createPasswordHasher,
7
+ createPasswordSchema,
8
+ createPasswordValidator,
9
+ getPasswordStrength,
10
+ passwordValidator,
11
+ validatePassword
12
+ } from "../chunk-G26T2PRQ.js";
13
+ import {
14
+ PasswordHasher,
15
+ PasswordValidator,
16
+ defaultPasswordSchema,
17
+ strongPasswordSchema
18
+ } from "../chunk-IHXRF3BH.js";
1
19
  import {
2
20
  TokenGenerator
3
21
  } from "../chunk-GDWEDUHO.js";
@@ -17,24 +35,6 @@ import {
17
35
  isTokenExpiringSoon,
18
36
  storeTokens
19
37
  } from "../chunk-XRRPEBKB.js";
20
- import {
21
- OAuthManager
22
- } from "../chunk-V5K5FYU7.js";
23
- import {
24
- DEFAULT_PASSWORD_CONFIG,
25
- createPasswordHasher,
26
- createPasswordSchema,
27
- createPasswordValidator,
28
- getPasswordStrength,
29
- passwordValidator,
30
- validatePassword
31
- } from "../chunk-G26T2PRQ.js";
32
- import {
33
- PasswordHasher,
34
- PasswordValidator,
35
- defaultPasswordSchema,
36
- strongPasswordSchema
37
- } from "../chunk-IHXRF3BH.js";
38
38
  import {
39
39
  OAuthProvider,
40
40
  PasswordStrength,
@@ -14,16 +14,16 @@ import {
14
14
  withFallbackChain,
15
15
  withFallbackFn
16
16
  } from "../chunk-MYLGYX4K.js";
17
+ import "../chunk-Y2TUZFCP.js";
18
+ import {
19
+ useErrorHandler
20
+ } from "../chunk-IAJNC34M.js";
17
21
  import {
18
22
  EmptyState,
19
23
  ErrorAlert,
20
24
  ErrorPage,
21
25
  LoadingState
22
26
  } from "../chunk-ZHVUK5OY.js";
23
- import "../chunk-Y2TUZFCP.js";
24
- import {
25
- useErrorHandler
26
- } from "../chunk-IAJNC34M.js";
27
27
  import "../chunk-7XFHGAJP.js";
28
28
  import "../chunk-COK4ZXNG.js";
29
29
  import {
@@ -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",
3
+ "version": "0.2.0",
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": "15",
136
+ "next": "^16.0.0",
137
137
  "tsup": "^8.0.0",
138
138
  "typescript": "^5",
139
139
  "vitest": "^4.0.18"