@directus/api 19.0.2 → 19.1.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/dist/app.js +8 -7
- package/dist/auth/drivers/oauth2.js +3 -2
- package/dist/auth/drivers/openid.js +3 -2
- package/dist/cli/utils/create-env/env-stub.liquid +0 -3
- package/dist/cli/utils/create-env/index.js +0 -2
- package/dist/controllers/auth.js +3 -2
- package/dist/controllers/extensions.js +30 -19
- package/dist/controllers/users.js +25 -0
- package/dist/database/helpers/fn/types.js +4 -3
- package/dist/database/helpers/index.d.ts +2 -0
- package/dist/database/helpers/index.js +2 -0
- package/dist/database/helpers/number/dialects/default.d.ts +3 -0
- package/dist/database/helpers/number/dialects/default.js +3 -0
- package/dist/database/helpers/number/dialects/mssql.d.ts +7 -0
- package/dist/database/helpers/number/dialects/mssql.js +11 -0
- package/dist/database/helpers/number/dialects/oracle.d.ts +6 -0
- package/dist/database/helpers/number/dialects/oracle.js +7 -0
- package/dist/database/helpers/number/dialects/postgres.d.ts +5 -0
- package/dist/database/helpers/number/dialects/postgres.js +15 -0
- package/dist/database/helpers/number/dialects/sqlite.d.ts +6 -0
- package/dist/database/helpers/number/dialects/sqlite.js +7 -0
- package/dist/database/helpers/number/index.d.ts +7 -0
- package/dist/database/helpers/number/index.js +7 -0
- package/dist/database/helpers/number/types.d.ts +12 -0
- package/dist/database/helpers/number/types.js +9 -0
- package/dist/database/helpers/number/utils/decimal-limit.d.ts +4 -0
- package/dist/database/helpers/number/utils/decimal-limit.js +10 -0
- package/dist/database/helpers/number/utils/maybe-stringify-big-int.d.ts +1 -0
- package/dist/database/helpers/number/utils/maybe-stringify-big-int.js +6 -0
- package/dist/database/helpers/number/utils/number-in-range.d.ts +3 -0
- package/dist/database/helpers/number/utils/number-in-range.js +20 -0
- package/dist/database/migrations/20240422A-public-registration.d.ts +3 -0
- package/dist/database/migrations/20240422A-public-registration.js +14 -0
- package/dist/database/run-ast.js +5 -4
- package/dist/extensions/lib/get-extensions-settings.js +48 -11
- package/dist/extensions/lib/installation/manager.js +2 -2
- package/dist/middleware/rate-limiter-global.js +1 -1
- package/dist/middleware/rate-limiter-registration.d.ts +5 -0
- package/dist/middleware/rate-limiter-registration.js +32 -0
- package/dist/services/authentication.js +3 -2
- package/dist/services/authorization.js +4 -4
- package/dist/services/fields.js +2 -2
- package/dist/services/graphql/index.js +41 -2
- package/dist/services/mail/templates/user-registration.liquid +37 -0
- package/dist/services/meta.js +1 -1
- package/dist/services/payload.d.ts +2 -0
- package/dist/services/payload.js +16 -4
- package/dist/services/server.js +3 -1
- package/dist/services/shares.js +2 -1
- package/dist/services/users.d.ts +3 -1
- package/dist/services/users.js +92 -5
- package/dist/utils/apply-query.d.ts +1 -1
- package/dist/utils/apply-query.js +54 -28
- package/dist/utils/get-accountability-for-token.js +6 -3
- package/dist/utils/get-secret.d.ts +4 -0
- package/dist/utils/get-secret.js +14 -0
- package/dist/utils/parse-filter-key.d.ts +7 -0
- package/dist/utils/parse-filter-key.js +22 -0
- package/dist/utils/parse-numeric-string.d.ts +2 -0
- package/dist/utils/parse-numeric-string.js +21 -0
- package/dist/utils/sanitize-query.js +10 -5
- package/dist/utils/transaction.d.ts +1 -1
- package/dist/utils/transaction.js +39 -2
- package/dist/utils/validate-query.js +0 -2
- package/dist/utils/verify-session-jwt.d.ts +7 -0
- package/dist/utils/verify-session-jwt.js +22 -0
- package/dist/websocket/messages.d.ts +78 -50
- package/package.json +60 -61
- package/dist/utils/strip-function.d.ts +0 -4
- package/dist/utils/strip-function.js +0 -12
|
@@ -11,21 +11,25 @@ export declare const WebSocketMessage: z.ZodObject<{
|
|
|
11
11
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
12
12
|
}, z.ZodTypeAny, "passthrough">>;
|
|
13
13
|
export type WebSocketMessage = z.infer<typeof WebSocketMessage>;
|
|
14
|
-
export declare const WebSocketResponse: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
14
|
+
export declare const WebSocketResponse: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<{
|
|
15
15
|
type: z.ZodString;
|
|
16
16
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
17
|
+
}, {
|
|
17
18
|
status: z.ZodLiteral<"ok">;
|
|
18
|
-
}
|
|
19
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
19
20
|
type: z.ZodString;
|
|
20
21
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
22
|
+
}, {
|
|
21
23
|
status: z.ZodLiteral<"ok">;
|
|
22
|
-
}
|
|
24
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
23
25
|
type: z.ZodString;
|
|
24
26
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
27
|
+
}, {
|
|
25
28
|
status: z.ZodLiteral<"ok">;
|
|
26
|
-
}
|
|
29
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
27
30
|
type: z.ZodString;
|
|
28
31
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
32
|
+
}, {
|
|
29
33
|
status: z.ZodLiteral<"error">;
|
|
30
34
|
error: z.ZodObject<{
|
|
31
35
|
code: z.ZodString;
|
|
@@ -37,9 +41,10 @@ export declare const WebSocketResponse: z.ZodDiscriminatedUnion<"status", [z.Zod
|
|
|
37
41
|
code: z.ZodString;
|
|
38
42
|
message: z.ZodString;
|
|
39
43
|
}, z.ZodTypeAny, "passthrough">>;
|
|
40
|
-
}
|
|
44
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
41
45
|
type: z.ZodString;
|
|
42
46
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
47
|
+
}, {
|
|
43
48
|
status: z.ZodLiteral<"error">;
|
|
44
49
|
error: z.ZodObject<{
|
|
45
50
|
code: z.ZodString;
|
|
@@ -51,9 +56,10 @@ export declare const WebSocketResponse: z.ZodDiscriminatedUnion<"status", [z.Zod
|
|
|
51
56
|
code: z.ZodString;
|
|
52
57
|
message: z.ZodString;
|
|
53
58
|
}, z.ZodTypeAny, "passthrough">>;
|
|
54
|
-
}
|
|
59
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
55
60
|
type: z.ZodString;
|
|
56
61
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
62
|
+
}, {
|
|
57
63
|
status: z.ZodLiteral<"error">;
|
|
58
64
|
error: z.ZodObject<{
|
|
59
65
|
code: z.ZodString;
|
|
@@ -65,7 +71,7 @@ export declare const WebSocketResponse: z.ZodDiscriminatedUnion<"status", [z.Zod
|
|
|
65
71
|
code: z.ZodString;
|
|
66
72
|
message: z.ZodString;
|
|
67
73
|
}, z.ZodTypeAny, "passthrough">>;
|
|
68
|
-
}
|
|
74
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
69
75
|
export type WebSocketResponse = z.infer<typeof WebSocketResponse>;
|
|
70
76
|
export declare const ConnectionParams: z.ZodObject<{
|
|
71
77
|
access_token: z.ZodOptional<z.ZodString>;
|
|
@@ -98,16 +104,22 @@ export declare const BasicAuthMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
98
104
|
refresh_token: string;
|
|
99
105
|
}>]>;
|
|
100
106
|
export type BasicAuthMessage = z.infer<typeof BasicAuthMessage>;
|
|
101
|
-
export declare const WebSocketAuthMessage: z.ZodIntersection<z.ZodObject<{
|
|
107
|
+
export declare const WebSocketAuthMessage: z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<{
|
|
108
|
+
type: z.ZodString;
|
|
102
109
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
110
|
+
}, {
|
|
103
111
|
type: z.ZodLiteral<"auth">;
|
|
104
|
-
}
|
|
112
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
113
|
+
type: z.ZodString;
|
|
105
114
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
115
|
+
}, {
|
|
106
116
|
type: z.ZodLiteral<"auth">;
|
|
107
|
-
}
|
|
117
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
118
|
+
type: z.ZodString;
|
|
108
119
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
120
|
+
}, {
|
|
109
121
|
type: z.ZodLiteral<"auth">;
|
|
110
|
-
}
|
|
122
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodUnion<[z.ZodObject<{
|
|
111
123
|
email: z.ZodString;
|
|
112
124
|
password: z.ZodString;
|
|
113
125
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -130,134 +142,150 @@ export declare const WebSocketAuthMessage: z.ZodIntersection<z.ZodObject<{
|
|
|
130
142
|
refresh_token: string;
|
|
131
143
|
}>]>>;
|
|
132
144
|
export type WebSocketAuthMessage = z.infer<typeof WebSocketAuthMessage>;
|
|
133
|
-
export declare const WebSocketSubscribeMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
145
|
+
export declare const WebSocketSubscribeMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
146
|
+
type: z.ZodString;
|
|
134
147
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
148
|
+
}, {
|
|
135
149
|
type: z.ZodLiteral<"subscribe">;
|
|
136
150
|
collection: z.ZodString;
|
|
137
151
|
event: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"create">, z.ZodLiteral<"update">, z.ZodLiteral<"delete">]>>;
|
|
138
152
|
item: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
139
153
|
query: z.ZodOptional<z.ZodType<Query, z.ZodTypeDef, Query>>;
|
|
140
|
-
}
|
|
154
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
155
|
+
type: z.ZodString;
|
|
141
156
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
157
|
+
}, {
|
|
142
158
|
type: z.ZodLiteral<"subscribe">;
|
|
143
159
|
collection: z.ZodString;
|
|
144
160
|
event: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"create">, z.ZodLiteral<"update">, z.ZodLiteral<"delete">]>>;
|
|
145
161
|
item: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
146
162
|
query: z.ZodOptional<z.ZodType<Query, z.ZodTypeDef, Query>>;
|
|
147
|
-
}
|
|
163
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
164
|
+
type: z.ZodString;
|
|
148
165
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
166
|
+
}, {
|
|
149
167
|
type: z.ZodLiteral<"subscribe">;
|
|
150
168
|
collection: z.ZodString;
|
|
151
169
|
event: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"create">, z.ZodLiteral<"update">, z.ZodLiteral<"delete">]>>;
|
|
152
170
|
item: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
153
171
|
query: z.ZodOptional<z.ZodType<Query, z.ZodTypeDef, Query>>;
|
|
154
|
-
}
|
|
172
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
173
|
+
type: z.ZodString;
|
|
155
174
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
175
|
+
}, {
|
|
156
176
|
type: z.ZodLiteral<"unsubscribe">;
|
|
157
|
-
}
|
|
177
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
178
|
+
type: z.ZodString;
|
|
158
179
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
180
|
+
}, {
|
|
159
181
|
type: z.ZodLiteral<"unsubscribe">;
|
|
160
|
-
}
|
|
182
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
183
|
+
type: z.ZodString;
|
|
161
184
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
185
|
+
}, {
|
|
162
186
|
type: z.ZodLiteral<"unsubscribe">;
|
|
163
|
-
}
|
|
187
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
164
188
|
export type WebSocketSubscribeMessage = z.infer<typeof WebSocketSubscribeMessage>;
|
|
165
|
-
export declare const WebSocketItemsMessage: z.ZodUnion<[z.ZodObject<{
|
|
166
|
-
collection: z.ZodString;
|
|
167
|
-
type: z.ZodLiteral<"items">;
|
|
189
|
+
export declare const WebSocketItemsMessage: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
168
190
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
191
|
+
type: z.ZodLiteral<"items">;
|
|
192
|
+
collection: z.ZodString;
|
|
193
|
+
}, {
|
|
169
194
|
action: z.ZodLiteral<"create">;
|
|
170
195
|
data: z.ZodUnion<[z.ZodArray<z.ZodType<Partial<Item>, z.ZodTypeDef, Partial<Item>>, "many">, z.ZodType<Partial<Item>, z.ZodTypeDef, Partial<Item>>]>;
|
|
171
196
|
query: z.ZodOptional<z.ZodType<Query, z.ZodTypeDef, Query>>;
|
|
172
|
-
}
|
|
197
|
+
}>, "strip", z.ZodTypeAny, {
|
|
173
198
|
collection: string;
|
|
174
199
|
type: "items";
|
|
175
200
|
action: "create";
|
|
176
|
-
data:
|
|
177
|
-
uid?: string | number | undefined;
|
|
201
|
+
data: Partial<Item> | Partial<Item>[];
|
|
178
202
|
query?: Query | undefined;
|
|
203
|
+
uid?: string | number | undefined;
|
|
179
204
|
}, {
|
|
180
205
|
collection: string;
|
|
181
206
|
type: "items";
|
|
182
207
|
action: "create";
|
|
183
|
-
data:
|
|
184
|
-
uid?: string | number | undefined;
|
|
208
|
+
data: Partial<Item> | Partial<Item>[];
|
|
185
209
|
query?: Query | undefined;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
type: z.ZodLiteral<"items">;
|
|
210
|
+
uid?: string | number | undefined;
|
|
211
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
189
212
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
213
|
+
type: z.ZodLiteral<"items">;
|
|
214
|
+
collection: z.ZodString;
|
|
215
|
+
}, {
|
|
190
216
|
action: z.ZodLiteral<"read">;
|
|
191
217
|
ids: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
192
218
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
193
219
|
query: z.ZodOptional<z.ZodType<Query, z.ZodTypeDef, Query>>;
|
|
194
|
-
}
|
|
220
|
+
}>, "strip", z.ZodTypeAny, {
|
|
195
221
|
collection: string;
|
|
196
222
|
type: "items";
|
|
197
223
|
action: "read";
|
|
224
|
+
query?: Query | undefined;
|
|
225
|
+
id?: string | number | undefined;
|
|
198
226
|
uid?: string | number | undefined;
|
|
199
227
|
ids?: (string | number)[] | undefined;
|
|
200
|
-
id?: string | number | undefined;
|
|
201
|
-
query?: Query | undefined;
|
|
202
228
|
}, {
|
|
203
229
|
collection: string;
|
|
204
230
|
type: "items";
|
|
205
231
|
action: "read";
|
|
232
|
+
query?: Query | undefined;
|
|
233
|
+
id?: string | number | undefined;
|
|
206
234
|
uid?: string | number | undefined;
|
|
207
235
|
ids?: (string | number)[] | undefined;
|
|
208
|
-
|
|
209
|
-
query?: Query | undefined;
|
|
210
|
-
}>, z.ZodObject<{
|
|
211
|
-
collection: z.ZodString;
|
|
212
|
-
type: z.ZodLiteral<"items">;
|
|
236
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
213
237
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
238
|
+
type: z.ZodLiteral<"items">;
|
|
239
|
+
collection: z.ZodString;
|
|
240
|
+
}, {
|
|
214
241
|
action: z.ZodLiteral<"update">;
|
|
215
242
|
data: z.ZodType<Partial<Item>, z.ZodTypeDef, Partial<Item>>;
|
|
216
243
|
ids: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
217
244
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
218
245
|
query: z.ZodOptional<z.ZodType<Query, z.ZodTypeDef, Query>>;
|
|
219
|
-
}
|
|
246
|
+
}>, "strip", z.ZodTypeAny, {
|
|
220
247
|
collection: string;
|
|
221
248
|
type: "items";
|
|
222
249
|
action: "update";
|
|
223
250
|
data: Partial<Item>;
|
|
251
|
+
query?: Query | undefined;
|
|
252
|
+
id?: string | number | undefined;
|
|
224
253
|
uid?: string | number | undefined;
|
|
225
254
|
ids?: (string | number)[] | undefined;
|
|
226
|
-
id?: string | number | undefined;
|
|
227
|
-
query?: Query | undefined;
|
|
228
255
|
}, {
|
|
229
256
|
collection: string;
|
|
230
257
|
type: "items";
|
|
231
258
|
action: "update";
|
|
232
259
|
data: Partial<Item>;
|
|
260
|
+
query?: Query | undefined;
|
|
261
|
+
id?: string | number | undefined;
|
|
233
262
|
uid?: string | number | undefined;
|
|
234
263
|
ids?: (string | number)[] | undefined;
|
|
235
|
-
|
|
236
|
-
query?: Query | undefined;
|
|
237
|
-
}>, z.ZodObject<{
|
|
238
|
-
collection: z.ZodString;
|
|
239
|
-
type: z.ZodLiteral<"items">;
|
|
264
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
240
265
|
uid: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
266
|
+
type: z.ZodLiteral<"items">;
|
|
267
|
+
collection: z.ZodString;
|
|
268
|
+
}, {
|
|
241
269
|
action: z.ZodLiteral<"delete">;
|
|
242
270
|
ids: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
243
271
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
244
272
|
query: z.ZodOptional<z.ZodType<Query, z.ZodTypeDef, Query>>;
|
|
245
|
-
}
|
|
273
|
+
}>, "strip", z.ZodTypeAny, {
|
|
246
274
|
collection: string;
|
|
247
275
|
type: "items";
|
|
248
276
|
action: "delete";
|
|
277
|
+
query?: Query | undefined;
|
|
278
|
+
id?: string | number | undefined;
|
|
249
279
|
uid?: string | number | undefined;
|
|
250
280
|
ids?: (string | number)[] | undefined;
|
|
251
|
-
id?: string | number | undefined;
|
|
252
|
-
query?: Query | undefined;
|
|
253
281
|
}, {
|
|
254
282
|
collection: string;
|
|
255
283
|
type: "items";
|
|
256
284
|
action: "delete";
|
|
285
|
+
query?: Query | undefined;
|
|
286
|
+
id?: string | number | undefined;
|
|
257
287
|
uid?: string | number | undefined;
|
|
258
288
|
ids?: (string | number)[] | undefined;
|
|
259
|
-
id?: string | number | undefined;
|
|
260
|
-
query?: Query | undefined;
|
|
261
289
|
}>]>;
|
|
262
290
|
export type WebSocketItemsMessage = z.infer<typeof WebSocketItemsMessage>;
|
|
263
291
|
export declare const WebSocketEvent: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/api",
|
|
3
|
-
"version": "19.0
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "Directus is a real-time API and App dashboard for managing SQL database content",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"directus",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@authenio/samlify-node-xmllint": "2.0.0",
|
|
62
|
-
"@aws-sdk/client-ses": "3.
|
|
62
|
+
"@aws-sdk/client-ses": "3.568.0",
|
|
63
63
|
"@godaddy/terminus": "4.12.1",
|
|
64
64
|
"@rollup/plugin-alias": "5.1.0",
|
|
65
65
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"deep-diff": "1.0.2",
|
|
84
84
|
"destroy": "1.2.0",
|
|
85
85
|
"dotenv": "16.4.5",
|
|
86
|
-
"encodeurl": "
|
|
86
|
+
"encodeurl": "2.0.0",
|
|
87
87
|
"eventemitter2": "6.4.9",
|
|
88
88
|
"execa": "8.0.1",
|
|
89
89
|
"exif-reader": "2.0.1",
|
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
"glob-to-regexp": "0.4.1",
|
|
94
94
|
"graphql": "16.8.1",
|
|
95
95
|
"graphql-compose": "9.0.10",
|
|
96
|
-
"graphql-ws": "5.
|
|
96
|
+
"graphql-ws": "5.16.0",
|
|
97
97
|
"helmet": "7.1.0",
|
|
98
98
|
"icc": "3.0.0",
|
|
99
|
-
"inquirer": "9.2.
|
|
100
|
-
"ioredis": "5.
|
|
99
|
+
"inquirer": "9.2.20",
|
|
100
|
+
"ioredis": "5.4.1",
|
|
101
101
|
"ip-matching": "2.1.2",
|
|
102
102
|
"isolated-vm": "4.7.2",
|
|
103
|
-
"joi": "17.
|
|
103
|
+
"joi": "17.13.1",
|
|
104
104
|
"js-yaml": "4.1.0",
|
|
105
105
|
"js2xmlparser": "5.0.0",
|
|
106
106
|
"json2csv": "5.0.7",
|
|
@@ -108,12 +108,12 @@
|
|
|
108
108
|
"keyv": "4.5.4",
|
|
109
109
|
"knex": "3.1.0",
|
|
110
110
|
"ldapjs": "2.3.3",
|
|
111
|
-
"liquidjs": "10.
|
|
111
|
+
"liquidjs": "10.12.0",
|
|
112
112
|
"lodash-es": "4.17.21",
|
|
113
|
-
"marked": "12.0.
|
|
113
|
+
"marked": "12.0.2",
|
|
114
114
|
"micromustache": "8.0.3",
|
|
115
115
|
"mime-types": "2.1.35",
|
|
116
|
-
"minimatch": "9.0.
|
|
116
|
+
"minimatch": "9.0.4",
|
|
117
117
|
"mnemonist": "0.39.8",
|
|
118
118
|
"ms": "2.1.3",
|
|
119
119
|
"nanoid": "5.0.7",
|
|
@@ -128,52 +128,52 @@
|
|
|
128
128
|
"p-limit": "5.0.0",
|
|
129
129
|
"p-queue": "8.0.1",
|
|
130
130
|
"papaparse": "5.4.1",
|
|
131
|
-
"pino": "
|
|
131
|
+
"pino": "9.0.0",
|
|
132
132
|
"pino-http": "9.0.0",
|
|
133
133
|
"pino-http-print": "3.1.0",
|
|
134
|
-
"pino-pretty": "
|
|
135
|
-
"qs": "6.12.
|
|
136
|
-
"rate-limiter-flexible": "5.0.
|
|
137
|
-
"rollup": "4.
|
|
138
|
-
"samlify": "2.8.
|
|
134
|
+
"pino-pretty": "11.0.0",
|
|
135
|
+
"qs": "6.12.1",
|
|
136
|
+
"rate-limiter-flexible": "5.0.3",
|
|
137
|
+
"rollup": "4.17.2",
|
|
138
|
+
"samlify": "2.8.10",
|
|
139
139
|
"sanitize-html": "2.13.0",
|
|
140
|
-
"sharp": "0.33.
|
|
140
|
+
"sharp": "0.33.3",
|
|
141
141
|
"snappy": "7.2.2",
|
|
142
142
|
"stream-json": "1.8.0",
|
|
143
|
-
"tar": "
|
|
144
|
-
"tsx": "4.
|
|
143
|
+
"tar": "7.0.1",
|
|
144
|
+
"tsx": "4.9.3",
|
|
145
145
|
"wellknown": "0.5.0",
|
|
146
|
-
"ws": "8.
|
|
147
|
-
"zod": "3.
|
|
148
|
-
"zod-validation-error": "3.0
|
|
149
|
-
"@directus/
|
|
150
|
-
"@directus/
|
|
151
|
-
"@directus/
|
|
152
|
-
"@directus/
|
|
153
|
-
"@directus/
|
|
154
|
-
"@directus/
|
|
155
|
-
"@directus/extensions-sdk": "11.0.
|
|
156
|
-
"@directus/format-title": "10.1.
|
|
157
|
-
"@directus/
|
|
158
|
-
"@directus/
|
|
159
|
-
"@directus/
|
|
160
|
-
"@directus/
|
|
161
|
-
"@directus/storage
|
|
162
|
-
"@directus/storage-driver-
|
|
163
|
-
"@directus/storage-driver-cloudinary": "10.0.
|
|
164
|
-
"@directus/storage-driver-
|
|
165
|
-
"@directus/storage": "10.0.
|
|
166
|
-
"@directus/storage-driver-
|
|
167
|
-
"@directus/storage-driver-
|
|
168
|
-
"@directus/system-data": "1.0.
|
|
169
|
-
"directus": "
|
|
170
|
-
"@directus/
|
|
171
|
-
"
|
|
146
|
+
"ws": "8.17.0",
|
|
147
|
+
"zod": "3.23.6",
|
|
148
|
+
"zod-validation-error": "3.2.0",
|
|
149
|
+
"@directus/app": "12.1.0",
|
|
150
|
+
"@directus/env": "1.1.3",
|
|
151
|
+
"@directus/errors": "0.3.0",
|
|
152
|
+
"@directus/extensions": "1.0.4",
|
|
153
|
+
"@directus/constants": "11.0.4",
|
|
154
|
+
"@directus/extensions-registry": "1.0.4",
|
|
155
|
+
"@directus/extensions-sdk": "11.0.4",
|
|
156
|
+
"@directus/format-title": "10.1.2",
|
|
157
|
+
"@directus/memory": "1.0.7",
|
|
158
|
+
"@directus/pressure": "1.0.19",
|
|
159
|
+
"@directus/specs": "10.2.9",
|
|
160
|
+
"@directus/schema": "11.0.2",
|
|
161
|
+
"@directus/storage": "10.0.12",
|
|
162
|
+
"@directus/storage-driver-azure": "10.0.20",
|
|
163
|
+
"@directus/storage-driver-cloudinary": "10.0.20",
|
|
164
|
+
"@directus/storage-driver-gcs": "10.0.20",
|
|
165
|
+
"@directus/storage-driver-local": "10.0.19",
|
|
166
|
+
"@directus/storage-driver-supabase": "1.0.12",
|
|
167
|
+
"@directus/storage-driver-s3": "10.0.21",
|
|
168
|
+
"@directus/system-data": "1.0.3",
|
|
169
|
+
"@directus/utils": "11.0.8",
|
|
170
|
+
"@directus/validation": "0.0.15",
|
|
171
|
+
"directus": "10.11.0"
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|
|
174
174
|
"@ngneat/falso": "7.2.0",
|
|
175
175
|
"@types/async": "3.2.24",
|
|
176
|
-
"@types/busboy": "1.5.
|
|
176
|
+
"@types/busboy": "1.5.4",
|
|
177
177
|
"@types/bytes": "3.1.4",
|
|
178
178
|
"@types/content-disposition": "0.5.8",
|
|
179
179
|
"@types/cookie-parser": "1.4.7",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"@types/destroy": "1.0.3",
|
|
183
183
|
"@types/encodeurl": "1.0.2",
|
|
184
184
|
"@types/express": "4.17.21",
|
|
185
|
-
"@types/express-serve-static-core": "4.
|
|
185
|
+
"@types/express-serve-static-core": "4.19.0",
|
|
186
186
|
"@types/fs-extra": "11.0.4",
|
|
187
187
|
"@types/glob-to-regexp": "0.4.4",
|
|
188
188
|
"@types/inquirer": "9.0.7",
|
|
@@ -193,36 +193,35 @@
|
|
|
193
193
|
"@types/lodash-es": "4.17.12",
|
|
194
194
|
"@types/mime-types": "2.1.4",
|
|
195
195
|
"@types/ms": "0.7.34",
|
|
196
|
-
"@types/node": "18.19.
|
|
197
|
-
"@types/node-schedule": "2.1.
|
|
198
|
-
"@types/nodemailer": "6.4.
|
|
196
|
+
"@types/node": "18.19.31",
|
|
197
|
+
"@types/node-schedule": "2.1.7",
|
|
198
|
+
"@types/nodemailer": "6.4.15",
|
|
199
199
|
"@types/object-hash": "3.0.6",
|
|
200
200
|
"@types/papaparse": "5.3.14",
|
|
201
|
-
"@types/qs": "6.9.
|
|
201
|
+
"@types/qs": "6.9.15",
|
|
202
202
|
"@types/sanitize-html": "2.11.0",
|
|
203
203
|
"@types/stream-json": "1.7.7",
|
|
204
|
-
"@types/tar": "6.1.11",
|
|
205
204
|
"@types/wellknown": "0.5.8",
|
|
206
205
|
"@types/ws": "8.5.10",
|
|
207
|
-
"@vitest/coverage-v8": "1.
|
|
206
|
+
"@vitest/coverage-v8": "1.5.3",
|
|
208
207
|
"copyfiles": "2.4.1",
|
|
209
208
|
"form-data": "4.0.0",
|
|
210
209
|
"knex-mock-client": "2.0.1",
|
|
211
|
-
"typescript": "5.
|
|
212
|
-
"vitest": "1.3
|
|
213
|
-
"@directus/random": "0.2.
|
|
214
|
-
"@directus/
|
|
215
|
-
"@directus/
|
|
210
|
+
"typescript": "5.4.5",
|
|
211
|
+
"vitest": "1.5.3",
|
|
212
|
+
"@directus/random": "0.2.8",
|
|
213
|
+
"@directus/tsconfig": "1.0.1",
|
|
214
|
+
"@directus/types": "11.1.1"
|
|
216
215
|
},
|
|
217
216
|
"optionalDependencies": {
|
|
218
217
|
"@keyv/redis": "2.8.4",
|
|
219
218
|
"mysql": "2.18.1",
|
|
220
219
|
"nodemailer-mailgun-transport": "2.1.5",
|
|
221
220
|
"nodemailer-sendgrid": "1.0.3",
|
|
222
|
-
"oracledb": "6.
|
|
223
|
-
"pg": "8.11.
|
|
221
|
+
"oracledb": "6.5.0",
|
|
222
|
+
"pg": "8.11.5",
|
|
224
223
|
"sqlite3": "5.1.7",
|
|
225
|
-
"tedious": "
|
|
224
|
+
"tedious": "18.2.0"
|
|
226
225
|
},
|
|
227
226
|
"engines": {
|
|
228
227
|
"node": ">=18.17.0"
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { REGEX_BETWEEN_PARENS } from '@directus/constants';
|
|
2
|
-
/**
|
|
3
|
-
* Strip the function declarations from a list of fields
|
|
4
|
-
*/
|
|
5
|
-
export function stripFunction(field) {
|
|
6
|
-
if (field.includes('(') && field.includes(')')) {
|
|
7
|
-
return field.match(REGEX_BETWEEN_PARENS)?.[1]?.trim() ?? field;
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return field;
|
|
11
|
-
}
|
|
12
|
-
}
|