dn-react-router-toolkit 0.7.3 → 0.7.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.
- package/dist/api/create_api_handler.d.mts +1 -1
- package/dist/api/create_api_handler.d.ts +1 -1
- package/dist/api/create_api_handler.js +19 -22
- package/dist/api/create_api_handler.mjs +19 -22
- package/dist/crud/crud_form_provider.d.mts +1 -1
- package/dist/crud/crud_form_provider.d.ts +1 -1
- package/dist/crud/crud_loader.js +19 -22
- package/dist/crud/crud_loader.mjs +19 -22
- package/dist/crud/crud_page.d.mts +1 -1
- package/dist/crud/crud_page.d.ts +1 -1
- package/dist/crud/index.d.mts +1 -0
- package/dist/crud/index.d.ts +1 -0
- package/dist/crud/index.js +23 -22
- package/dist/crud/index.mjs +21 -22
- package/package.json +92 -92
|
@@ -15,7 +15,7 @@ type APIHandlerOptions<T extends Table, TSelect> = {
|
|
|
15
15
|
message?: (value?: InferInsertModel<T>[K]) => string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
existingConditions
|
|
18
|
+
existingConditions?: {
|
|
19
19
|
[K in keyof InferInsertModel<T>]?: (value: InferInsertModel<T>[K]) => SQLWrapper;
|
|
20
20
|
};
|
|
21
21
|
injectUserId?: boolean;
|
|
@@ -15,7 +15,7 @@ type APIHandlerOptions<T extends Table, TSelect> = {
|
|
|
15
15
|
message?: (value?: InferInsertModel<T>[K]) => string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
existingConditions
|
|
18
|
+
existingConditions?: {
|
|
19
19
|
[K in keyof InferInsertModel<T>]?: (value: InferInsertModel<T>[K]) => SQLWrapper;
|
|
20
20
|
};
|
|
21
21
|
injectUserId?: boolean;
|
|
@@ -87,13 +87,8 @@ function apiHandler({
|
|
|
87
87
|
const serilaizedParams = await request.json();
|
|
88
88
|
const params = deserialize(serilaizedParams);
|
|
89
89
|
if (validators) {
|
|
90
|
-
const paramsForValidation = Object.keys(
|
|
91
|
-
validators
|
|
92
|
-
).filter(
|
|
93
|
-
(key) => Object.prototype.hasOwnProperty.call(
|
|
94
|
-
validators,
|
|
95
|
-
key
|
|
96
|
-
)
|
|
90
|
+
const paramsForValidation = Object.keys(validators).filter(
|
|
91
|
+
(key) => Object.prototype.hasOwnProperty.call(validators, key)
|
|
97
92
|
);
|
|
98
93
|
for (const paramKey of paramsForValidation) {
|
|
99
94
|
const value = params[paramKey];
|
|
@@ -112,21 +107,23 @@ function apiHandler({
|
|
|
112
107
|
).filter(
|
|
113
108
|
(key) => Object.prototype.hasOwnProperty.call(params, key)
|
|
114
109
|
);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
110
|
+
if (paramsForExistenceCheck.length > 0) {
|
|
111
|
+
const where = (0, import_drizzle_orm.and)(
|
|
112
|
+
...paramsForExistenceCheck.reduce((acc, key) => {
|
|
113
|
+
const condition = existingConditions[key];
|
|
114
|
+
if (condition) {
|
|
115
|
+
acc.push(condition(params[key]));
|
|
116
|
+
}
|
|
117
|
+
return acc;
|
|
118
|
+
}, [])
|
|
119
|
+
);
|
|
120
|
+
const existing = await repository.findAll({
|
|
121
|
+
limit: 1,
|
|
122
|
+
where
|
|
123
|
+
});
|
|
124
|
+
if (existing.length > 0) {
|
|
125
|
+
throw (0, import_http.CONFLICT)("\uC790\uB8CC\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.");
|
|
126
|
+
}
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
129
|
const values = {
|
|
@@ -73,13 +73,8 @@ function apiHandler({
|
|
|
73
73
|
const serilaizedParams = await request.json();
|
|
74
74
|
const params = deserialize(serilaizedParams);
|
|
75
75
|
if (validators) {
|
|
76
|
-
const paramsForValidation = Object.keys(
|
|
77
|
-
validators
|
|
78
|
-
).filter(
|
|
79
|
-
(key) => Object.prototype.hasOwnProperty.call(
|
|
80
|
-
validators,
|
|
81
|
-
key
|
|
82
|
-
)
|
|
76
|
+
const paramsForValidation = Object.keys(validators).filter(
|
|
77
|
+
(key) => Object.prototype.hasOwnProperty.call(validators, key)
|
|
83
78
|
);
|
|
84
79
|
for (const paramKey of paramsForValidation) {
|
|
85
80
|
const value = params[paramKey];
|
|
@@ -98,21 +93,23 @@ function apiHandler({
|
|
|
98
93
|
).filter(
|
|
99
94
|
(key) => Object.prototype.hasOwnProperty.call(params, key)
|
|
100
95
|
);
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
96
|
+
if (paramsForExistenceCheck.length > 0) {
|
|
97
|
+
const where = and(
|
|
98
|
+
...paramsForExistenceCheck.reduce((acc, key) => {
|
|
99
|
+
const condition = existingConditions[key];
|
|
100
|
+
if (condition) {
|
|
101
|
+
acc.push(condition(params[key]));
|
|
102
|
+
}
|
|
103
|
+
return acc;
|
|
104
|
+
}, [])
|
|
105
|
+
);
|
|
106
|
+
const existing = await repository.findAll({
|
|
107
|
+
limit: 1,
|
|
108
|
+
where
|
|
109
|
+
});
|
|
110
|
+
if (existing.length > 0) {
|
|
111
|
+
throw CONFLICT("\uC790\uB8CC\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.");
|
|
112
|
+
}
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
115
|
const values = {
|
|
@@ -25,7 +25,7 @@ type FormContextProps<TModel> = {
|
|
|
25
25
|
declare const FormContext: React__default.Context<{}>;
|
|
26
26
|
declare function useFormContext<TModel>(): FormContextProps<TModel>;
|
|
27
27
|
type CrudFormProps<TModel> = {
|
|
28
|
-
primaryKey
|
|
28
|
+
primaryKey?: keyof TModel;
|
|
29
29
|
name: string;
|
|
30
30
|
prefix: string;
|
|
31
31
|
item?: TModel;
|
|
@@ -25,7 +25,7 @@ type FormContextProps<TModel> = {
|
|
|
25
25
|
declare const FormContext: React__default.Context<{}>;
|
|
26
26
|
declare function useFormContext<TModel>(): FormContextProps<TModel>;
|
|
27
27
|
type CrudFormProps<TModel> = {
|
|
28
|
-
primaryKey
|
|
28
|
+
primaryKey?: keyof TModel;
|
|
29
29
|
name: string;
|
|
30
30
|
prefix: string;
|
|
31
31
|
item?: TModel;
|
package/dist/crud/crud_loader.js
CHANGED
|
@@ -148,13 +148,8 @@ function apiHandler({
|
|
|
148
148
|
const serilaizedParams = await request.json();
|
|
149
149
|
const params = deserialize(serilaizedParams);
|
|
150
150
|
if (validators) {
|
|
151
|
-
const paramsForValidation = Object.keys(
|
|
152
|
-
validators
|
|
153
|
-
).filter(
|
|
154
|
-
(key) => Object.prototype.hasOwnProperty.call(
|
|
155
|
-
validators,
|
|
156
|
-
key
|
|
157
|
-
)
|
|
151
|
+
const paramsForValidation = Object.keys(validators).filter(
|
|
152
|
+
(key) => Object.prototype.hasOwnProperty.call(validators, key)
|
|
158
153
|
);
|
|
159
154
|
for (const paramKey of paramsForValidation) {
|
|
160
155
|
const value = params[paramKey];
|
|
@@ -173,21 +168,23 @@ function apiHandler({
|
|
|
173
168
|
).filter(
|
|
174
169
|
(key) => Object.prototype.hasOwnProperty.call(params, key)
|
|
175
170
|
);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
171
|
+
if (paramsForExistenceCheck.length > 0) {
|
|
172
|
+
const where = (0, import_drizzle_orm2.and)(
|
|
173
|
+
...paramsForExistenceCheck.reduce((acc, key) => {
|
|
174
|
+
const condition = existingConditions[key];
|
|
175
|
+
if (condition) {
|
|
176
|
+
acc.push(condition(params[key]));
|
|
177
|
+
}
|
|
178
|
+
return acc;
|
|
179
|
+
}, [])
|
|
180
|
+
);
|
|
181
|
+
const existing = await repository.findAll({
|
|
182
|
+
limit: 1,
|
|
183
|
+
where
|
|
184
|
+
});
|
|
185
|
+
if (existing.length > 0) {
|
|
186
|
+
throw (0, import_http.CONFLICT)("\uC790\uB8CC\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.");
|
|
187
|
+
}
|
|
191
188
|
}
|
|
192
189
|
}
|
|
193
190
|
const values = {
|
|
@@ -135,13 +135,8 @@ function apiHandler({
|
|
|
135
135
|
const serilaizedParams = await request.json();
|
|
136
136
|
const params = deserialize(serilaizedParams);
|
|
137
137
|
if (validators) {
|
|
138
|
-
const paramsForValidation = Object.keys(
|
|
139
|
-
validators
|
|
140
|
-
).filter(
|
|
141
|
-
(key) => Object.prototype.hasOwnProperty.call(
|
|
142
|
-
validators,
|
|
143
|
-
key
|
|
144
|
-
)
|
|
138
|
+
const paramsForValidation = Object.keys(validators).filter(
|
|
139
|
+
(key) => Object.prototype.hasOwnProperty.call(validators, key)
|
|
145
140
|
);
|
|
146
141
|
for (const paramKey of paramsForValidation) {
|
|
147
142
|
const value = params[paramKey];
|
|
@@ -160,21 +155,23 @@ function apiHandler({
|
|
|
160
155
|
).filter(
|
|
161
156
|
(key) => Object.prototype.hasOwnProperty.call(params, key)
|
|
162
157
|
);
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
158
|
+
if (paramsForExistenceCheck.length > 0) {
|
|
159
|
+
const where = and2(
|
|
160
|
+
...paramsForExistenceCheck.reduce((acc, key) => {
|
|
161
|
+
const condition = existingConditions[key];
|
|
162
|
+
if (condition) {
|
|
163
|
+
acc.push(condition(params[key]));
|
|
164
|
+
}
|
|
165
|
+
return acc;
|
|
166
|
+
}, [])
|
|
167
|
+
);
|
|
168
|
+
const existing = await repository.findAll({
|
|
169
|
+
limit: 1,
|
|
170
|
+
where
|
|
171
|
+
});
|
|
172
|
+
if (existing.length > 0) {
|
|
173
|
+
throw CONFLICT("\uC790\uB8CC\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.");
|
|
174
|
+
}
|
|
178
175
|
}
|
|
179
176
|
}
|
|
180
177
|
const values = {
|
package/dist/crud/crud_page.d.ts
CHANGED
package/dist/crud/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ export { CrudPage, CrudPageOptions, crudPage } from './crud_page.mjs';
|
|
|
4
4
|
export { generateHandlers } from './generate_handlers.mjs';
|
|
5
5
|
export { generatePages } from './generate_pages.mjs';
|
|
6
6
|
export { generateCrudRoutes } from './generate_routes.mjs';
|
|
7
|
+
export { deserialize, serialize } from './serialize.mjs';
|
|
7
8
|
import 'react-store-input';
|
|
8
9
|
import 'react';
|
|
9
10
|
import 'react-router';
|
package/dist/crud/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { CrudPage, CrudPageOptions, crudPage } from './crud_page.js';
|
|
|
4
4
|
export { generateHandlers } from './generate_handlers.js';
|
|
5
5
|
export { generatePages } from './generate_pages.js';
|
|
6
6
|
export { generateCrudRoutes } from './generate_routes.js';
|
|
7
|
+
export { deserialize, serialize } from './serialize.js';
|
|
7
8
|
import 'react-store-input';
|
|
8
9
|
import 'react';
|
|
9
10
|
import 'react-router';
|
package/dist/crud/index.js
CHANGED
|
@@ -7596,9 +7596,11 @@ __export(crud_exports, {
|
|
|
7596
7596
|
FormContext: () => FormContext,
|
|
7597
7597
|
crudHandler: () => crudHandler,
|
|
7598
7598
|
crudPage: () => crudPage,
|
|
7599
|
+
deserialize: () => deserialize,
|
|
7599
7600
|
generateCrudRoutes: () => generateCrudRoutes,
|
|
7600
7601
|
generateHandlers: () => generateHandlers,
|
|
7601
7602
|
generatePages: () => generatePages,
|
|
7603
|
+
serialize: () => serialize,
|
|
7602
7604
|
useFormContext: () => useFormContext
|
|
7603
7605
|
});
|
|
7604
7606
|
module.exports = __toCommonJS(crud_exports);
|
|
@@ -8052,13 +8054,8 @@ function apiHandler({
|
|
|
8052
8054
|
const serilaizedParams = await request.json();
|
|
8053
8055
|
const params = deserialize(serilaizedParams);
|
|
8054
8056
|
if (validators) {
|
|
8055
|
-
const paramsForValidation = Object.keys(
|
|
8056
|
-
validators
|
|
8057
|
-
).filter(
|
|
8058
|
-
(key) => Object.prototype.hasOwnProperty.call(
|
|
8059
|
-
validators,
|
|
8060
|
-
key
|
|
8061
|
-
)
|
|
8057
|
+
const paramsForValidation = Object.keys(validators).filter(
|
|
8058
|
+
(key) => Object.prototype.hasOwnProperty.call(validators, key)
|
|
8062
8059
|
);
|
|
8063
8060
|
for (const paramKey of paramsForValidation) {
|
|
8064
8061
|
const value = params[paramKey];
|
|
@@ -8077,21 +8074,23 @@ function apiHandler({
|
|
|
8077
8074
|
).filter(
|
|
8078
8075
|
(key) => Object.prototype.hasOwnProperty.call(params, key)
|
|
8079
8076
|
);
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8077
|
+
if (paramsForExistenceCheck.length > 0) {
|
|
8078
|
+
const where = (0, import_drizzle_orm2.and)(
|
|
8079
|
+
...paramsForExistenceCheck.reduce((acc, key) => {
|
|
8080
|
+
const condition = existingConditions[key];
|
|
8081
|
+
if (condition) {
|
|
8082
|
+
acc.push(condition(params[key]));
|
|
8083
|
+
}
|
|
8084
|
+
return acc;
|
|
8085
|
+
}, [])
|
|
8086
|
+
);
|
|
8087
|
+
const existing = await repository.findAll({
|
|
8088
|
+
limit: 1,
|
|
8089
|
+
where
|
|
8090
|
+
});
|
|
8091
|
+
if (existing.length > 0) {
|
|
8092
|
+
throw (0, import_http.CONFLICT)("\uC790\uB8CC\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.");
|
|
8093
|
+
}
|
|
8095
8094
|
}
|
|
8096
8095
|
}
|
|
8097
8096
|
const values = {
|
|
@@ -8717,9 +8716,11 @@ function generateCrudRoutes(routes, apiFile, file) {
|
|
|
8717
8716
|
FormContext,
|
|
8718
8717
|
crudHandler,
|
|
8719
8718
|
crudPage,
|
|
8719
|
+
deserialize,
|
|
8720
8720
|
generateCrudRoutes,
|
|
8721
8721
|
generateHandlers,
|
|
8722
8722
|
generatePages,
|
|
8723
|
+
serialize,
|
|
8723
8724
|
useFormContext
|
|
8724
8725
|
});
|
|
8725
8726
|
/*! Bundled license information:
|
package/dist/crud/index.mjs
CHANGED
|
@@ -8048,13 +8048,8 @@ function apiHandler({
|
|
|
8048
8048
|
const serilaizedParams = await request.json();
|
|
8049
8049
|
const params = deserialize(serilaizedParams);
|
|
8050
8050
|
if (validators) {
|
|
8051
|
-
const paramsForValidation = Object.keys(
|
|
8052
|
-
validators
|
|
8053
|
-
).filter(
|
|
8054
|
-
(key) => Object.prototype.hasOwnProperty.call(
|
|
8055
|
-
validators,
|
|
8056
|
-
key
|
|
8057
|
-
)
|
|
8051
|
+
const paramsForValidation = Object.keys(validators).filter(
|
|
8052
|
+
(key) => Object.prototype.hasOwnProperty.call(validators, key)
|
|
8058
8053
|
);
|
|
8059
8054
|
for (const paramKey of paramsForValidation) {
|
|
8060
8055
|
const value = params[paramKey];
|
|
@@ -8073,21 +8068,23 @@ function apiHandler({
|
|
|
8073
8068
|
).filter(
|
|
8074
8069
|
(key) => Object.prototype.hasOwnProperty.call(params, key)
|
|
8075
8070
|
);
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8071
|
+
if (paramsForExistenceCheck.length > 0) {
|
|
8072
|
+
const where = and2(
|
|
8073
|
+
...paramsForExistenceCheck.reduce((acc, key) => {
|
|
8074
|
+
const condition = existingConditions[key];
|
|
8075
|
+
if (condition) {
|
|
8076
|
+
acc.push(condition(params[key]));
|
|
8077
|
+
}
|
|
8078
|
+
return acc;
|
|
8079
|
+
}, [])
|
|
8080
|
+
);
|
|
8081
|
+
const existing = await repository.findAll({
|
|
8082
|
+
limit: 1,
|
|
8083
|
+
where
|
|
8084
|
+
});
|
|
8085
|
+
if (existing.length > 0) {
|
|
8086
|
+
throw CONFLICT("\uC790\uB8CC\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.");
|
|
8087
|
+
}
|
|
8091
8088
|
}
|
|
8092
8089
|
}
|
|
8093
8090
|
const values = {
|
|
@@ -8718,9 +8715,11 @@ export {
|
|
|
8718
8715
|
FormContext,
|
|
8719
8716
|
crudHandler,
|
|
8720
8717
|
crudPage,
|
|
8718
|
+
deserialize,
|
|
8721
8719
|
generateCrudRoutes,
|
|
8722
8720
|
generateHandlers,
|
|
8723
8721
|
generatePages,
|
|
8722
|
+
serialize,
|
|
8724
8723
|
useFormContext
|
|
8725
8724
|
};
|
|
8726
8725
|
/*! Bundled license information:
|
package/package.json
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
"./auth": {
|
|
14
|
-
"types": "./dist/auth/index.d.ts",
|
|
15
|
-
"import": "./dist/auth/index.mjs",
|
|
16
|
-
"require": "./dist/auth/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./api": {
|
|
19
|
-
"types": "./dist/api/index.d.ts",
|
|
20
|
-
"import": "./dist/api/index.mjs",
|
|
21
|
-
"require": "./dist/api/index.js"
|
|
22
|
-
},
|
|
23
|
-
"./client": {
|
|
24
|
-
"types": "./dist/client/index.d.ts",
|
|
25
|
-
"import": "./dist/client/index.mjs",
|
|
26
|
-
"require": "./dist/client/index.js"
|
|
27
|
-
},
|
|
28
|
-
"./seo": {
|
|
29
|
-
"types": "./dist/seo/index.d.ts",
|
|
30
|
-
"import": "./dist/seo/index.mjs",
|
|
31
|
-
"require": "./dist/seo/index.js"
|
|
32
|
-
},
|
|
33
|
-
"./db": {
|
|
34
|
-
"types": "./dist/db/index.d.ts",
|
|
35
|
-
"import": "./dist/db/index.mjs",
|
|
36
|
-
"require": "./dist/db/index.js"
|
|
37
|
-
},
|
|
38
|
-
"./db/backup": {
|
|
39
|
-
"types": "./dist/db/backup/index.d.ts",
|
|
40
|
-
"import": "./dist/db/backup/index.mjs",
|
|
41
|
-
"require": "./dist/db/backup/index.js"
|
|
42
|
-
},
|
|
43
|
-
"./table": {
|
|
44
|
-
"types": "./dist/table/index.d.ts",
|
|
45
|
-
"import": "./dist/table/index.mjs",
|
|
46
|
-
"require": "./dist/table/index.js"
|
|
47
|
-
},
|
|
48
|
-
"./crud": {
|
|
49
|
-
"types": "./dist/crud/index.d.ts",
|
|
50
|
-
"import": "./dist/crud/index.mjs",
|
|
51
|
-
"require": "./dist/crud/index.js"
|
|
52
|
-
},
|
|
53
|
-
"./post": {
|
|
54
|
-
"types": "./dist/post/index.d.ts",
|
|
55
|
-
"import": "./dist/post/index.mjs",
|
|
56
|
-
"require": "./dist/post/index.js"
|
|
57
|
-
},
|
|
58
|
-
"./form": {
|
|
59
|
-
"types": "./dist/form/index.d.ts",
|
|
60
|
-
"import": "./dist/form/index.mjs",
|
|
61
|
-
"require": "./dist/form/index.js"
|
|
62
|
-
}
|
|
2
|
+
"name": "dn-react-router-toolkit",
|
|
3
|
+
"version": "0.7.5",
|
|
4
|
+
"types": "./dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.mjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js"
|
|
63
12
|
},
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
13
|
+
"./auth": {
|
|
14
|
+
"types": "./dist/auth/index.d.ts",
|
|
15
|
+
"import": "./dist/auth/index.mjs",
|
|
16
|
+
"require": "./dist/auth/index.js"
|
|
67
17
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
18
|
+
"./api": {
|
|
19
|
+
"types": "./dist/api/index.d.ts",
|
|
20
|
+
"import": "./dist/api/index.mjs",
|
|
21
|
+
"require": "./dist/api/index.js"
|
|
71
22
|
},
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
23
|
+
"./client": {
|
|
24
|
+
"types": "./dist/client/index.d.ts",
|
|
25
|
+
"import": "./dist/client/index.mjs",
|
|
26
|
+
"require": "./dist/client/index.js"
|
|
76
27
|
},
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"@types/react": "^19",
|
|
82
|
-
"@types/react-dom": "^19",
|
|
83
|
-
"schema-dts": "^1.1.5",
|
|
84
|
-
"tsup": "^8.5.1",
|
|
85
|
-
"@react-router/dev": "^7.12.0",
|
|
86
|
-
"typescript": "^5.7.3"
|
|
28
|
+
"./seo": {
|
|
29
|
+
"types": "./dist/seo/index.d.ts",
|
|
30
|
+
"import": "./dist/seo/index.mjs",
|
|
31
|
+
"require": "./dist/seo/index.js"
|
|
87
32
|
},
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"react-store-input": "^0.2.0",
|
|
93
|
-
"uuid": "^13.0.0"
|
|
33
|
+
"./db": {
|
|
34
|
+
"types": "./dist/db/index.d.ts",
|
|
35
|
+
"import": "./dist/db/index.mjs",
|
|
36
|
+
"require": "./dist/db/index.js"
|
|
94
37
|
},
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
38
|
+
"./db/backup": {
|
|
39
|
+
"types": "./dist/db/backup/index.d.ts",
|
|
40
|
+
"import": "./dist/db/backup/index.mjs",
|
|
41
|
+
"require": "./dist/db/backup/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./table": {
|
|
44
|
+
"types": "./dist/table/index.d.ts",
|
|
45
|
+
"import": "./dist/table/index.mjs",
|
|
46
|
+
"require": "./dist/table/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./crud": {
|
|
49
|
+
"types": "./dist/crud/index.d.ts",
|
|
50
|
+
"import": "./dist/crud/index.mjs",
|
|
51
|
+
"require": "./dist/crud/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./post": {
|
|
54
|
+
"types": "./dist/post/index.d.ts",
|
|
55
|
+
"import": "./dist/post/index.mjs",
|
|
56
|
+
"require": "./dist/post/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./form": {
|
|
59
|
+
"types": "./dist/form/index.d.ts",
|
|
60
|
+
"import": "./dist/form/index.mjs",
|
|
61
|
+
"require": "./dist/form/index.js"
|
|
100
62
|
}
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsup",
|
|
66
|
+
"dev": "tsup --watch"
|
|
67
|
+
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/dndnsoft/dn-react-router-toolkit.git"
|
|
71
|
+
},
|
|
72
|
+
"author": "",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/dndnsoft/dn-react-router-toolkit/issues"
|
|
76
|
+
},
|
|
77
|
+
"homepage": "https://github.com/dndnsoft/dn-react-router-toolkit#readme",
|
|
78
|
+
"description": "",
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@types/node": "^24.10.1",
|
|
81
|
+
"@types/react": "^19",
|
|
82
|
+
"@types/react-dom": "^19",
|
|
83
|
+
"schema-dts": "^1.1.5",
|
|
84
|
+
"tsup": "^8.5.1",
|
|
85
|
+
"@react-router/dev": "^7.12.0",
|
|
86
|
+
"typescript": "^5.7.3"
|
|
87
|
+
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"dn-react-text-editor": "^0.3.6",
|
|
90
|
+
"dn-react-toolkit": "^0.2.49",
|
|
91
|
+
"pg": "^8.16.3",
|
|
92
|
+
"react-store-input": "^0.2.0",
|
|
93
|
+
"uuid": "^13.0.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"drizzle-orm": "^0.45.1",
|
|
97
|
+
"react": "^19",
|
|
98
|
+
"react-dom": "^19",
|
|
99
|
+
"react-router": "^7.12.0"
|
|
100
|
+
}
|
|
101
101
|
}
|