@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.
Files changed (70) hide show
  1. package/dist/app.js +8 -7
  2. package/dist/auth/drivers/oauth2.js +3 -2
  3. package/dist/auth/drivers/openid.js +3 -2
  4. package/dist/cli/utils/create-env/env-stub.liquid +0 -3
  5. package/dist/cli/utils/create-env/index.js +0 -2
  6. package/dist/controllers/auth.js +3 -2
  7. package/dist/controllers/extensions.js +30 -19
  8. package/dist/controllers/users.js +25 -0
  9. package/dist/database/helpers/fn/types.js +4 -3
  10. package/dist/database/helpers/index.d.ts +2 -0
  11. package/dist/database/helpers/index.js +2 -0
  12. package/dist/database/helpers/number/dialects/default.d.ts +3 -0
  13. package/dist/database/helpers/number/dialects/default.js +3 -0
  14. package/dist/database/helpers/number/dialects/mssql.d.ts +7 -0
  15. package/dist/database/helpers/number/dialects/mssql.js +11 -0
  16. package/dist/database/helpers/number/dialects/oracle.d.ts +6 -0
  17. package/dist/database/helpers/number/dialects/oracle.js +7 -0
  18. package/dist/database/helpers/number/dialects/postgres.d.ts +5 -0
  19. package/dist/database/helpers/number/dialects/postgres.js +15 -0
  20. package/dist/database/helpers/number/dialects/sqlite.d.ts +6 -0
  21. package/dist/database/helpers/number/dialects/sqlite.js +7 -0
  22. package/dist/database/helpers/number/index.d.ts +7 -0
  23. package/dist/database/helpers/number/index.js +7 -0
  24. package/dist/database/helpers/number/types.d.ts +12 -0
  25. package/dist/database/helpers/number/types.js +9 -0
  26. package/dist/database/helpers/number/utils/decimal-limit.d.ts +4 -0
  27. package/dist/database/helpers/number/utils/decimal-limit.js +10 -0
  28. package/dist/database/helpers/number/utils/maybe-stringify-big-int.d.ts +1 -0
  29. package/dist/database/helpers/number/utils/maybe-stringify-big-int.js +6 -0
  30. package/dist/database/helpers/number/utils/number-in-range.d.ts +3 -0
  31. package/dist/database/helpers/number/utils/number-in-range.js +20 -0
  32. package/dist/database/migrations/20240422A-public-registration.d.ts +3 -0
  33. package/dist/database/migrations/20240422A-public-registration.js +14 -0
  34. package/dist/database/run-ast.js +5 -4
  35. package/dist/extensions/lib/get-extensions-settings.js +48 -11
  36. package/dist/extensions/lib/installation/manager.js +2 -2
  37. package/dist/middleware/rate-limiter-global.js +1 -1
  38. package/dist/middleware/rate-limiter-registration.d.ts +5 -0
  39. package/dist/middleware/rate-limiter-registration.js +32 -0
  40. package/dist/services/authentication.js +3 -2
  41. package/dist/services/authorization.js +4 -4
  42. package/dist/services/fields.js +2 -2
  43. package/dist/services/graphql/index.js +41 -2
  44. package/dist/services/mail/templates/user-registration.liquid +37 -0
  45. package/dist/services/meta.js +1 -1
  46. package/dist/services/payload.d.ts +2 -0
  47. package/dist/services/payload.js +16 -4
  48. package/dist/services/server.js +3 -1
  49. package/dist/services/shares.js +2 -1
  50. package/dist/services/users.d.ts +3 -1
  51. package/dist/services/users.js +92 -5
  52. package/dist/utils/apply-query.d.ts +1 -1
  53. package/dist/utils/apply-query.js +54 -28
  54. package/dist/utils/get-accountability-for-token.js +6 -3
  55. package/dist/utils/get-secret.d.ts +4 -0
  56. package/dist/utils/get-secret.js +14 -0
  57. package/dist/utils/parse-filter-key.d.ts +7 -0
  58. package/dist/utils/parse-filter-key.js +22 -0
  59. package/dist/utils/parse-numeric-string.d.ts +2 -0
  60. package/dist/utils/parse-numeric-string.js +21 -0
  61. package/dist/utils/sanitize-query.js +10 -5
  62. package/dist/utils/transaction.d.ts +1 -1
  63. package/dist/utils/transaction.js +39 -2
  64. package/dist/utils/validate-query.js +0 -2
  65. package/dist/utils/verify-session-jwt.d.ts +7 -0
  66. package/dist/utils/verify-session-jwt.js +22 -0
  67. package/dist/websocket/messages.d.ts +78 -50
  68. package/package.json +60 -61
  69. package/dist/utils/strip-function.d.ts +0 -4
  70. 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
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
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
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
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
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
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
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
- }, z.ZodTypeAny, "passthrough">>]>;
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
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
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
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
- }, z.ZodTypeAny, "passthrough">>, z.ZodUnion<[z.ZodObject<{
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
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
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
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
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
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
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
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
- }, z.ZodTypeAny, "passthrough">>]>;
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
- }, "strip", z.ZodTypeAny, {
197
+ }>, "strip", z.ZodTypeAny, {
173
198
  collection: string;
174
199
  type: "items";
175
200
  action: "create";
176
- data: (Partial<Item> | Partial<Item>[]) & (Partial<Item> | Partial<Item>[] | undefined);
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: (Partial<Item> | Partial<Item>[]) & (Partial<Item> | Partial<Item>[] | undefined);
184
- uid?: string | number | undefined;
208
+ data: Partial<Item> | Partial<Item>[];
185
209
  query?: Query | undefined;
186
- }>, z.ZodObject<{
187
- collection: z.ZodString;
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
- }, "strip", z.ZodTypeAny, {
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
- id?: string | number | undefined;
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
- }, "strip", z.ZodTypeAny, {
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
- id?: string | number | undefined;
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
- }, "strip", z.ZodTypeAny, {
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.2",
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.552.0",
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": "1.0.2",
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.15.0",
96
+ "graphql-ws": "5.16.0",
97
97
  "helmet": "7.1.0",
98
98
  "icc": "3.0.0",
99
- "inquirer": "9.2.16",
100
- "ioredis": "5.3.2",
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.12.2",
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.10.1",
111
+ "liquidjs": "10.12.0",
112
112
  "lodash-es": "4.17.21",
113
- "marked": "12.0.1",
113
+ "marked": "12.0.2",
114
114
  "micromustache": "8.0.3",
115
115
  "mime-types": "2.1.35",
116
- "minimatch": "9.0.3",
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": "8.19.0",
131
+ "pino": "9.0.0",
132
132
  "pino-http": "9.0.0",
133
133
  "pino-http-print": "3.1.0",
134
- "pino-pretty": "10.3.1",
135
- "qs": "6.12.0",
136
- "rate-limiter-flexible": "5.0.0",
137
- "rollup": "4.12.0",
138
- "samlify": "2.8.11",
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.2",
140
+ "sharp": "0.33.3",
141
141
  "snappy": "7.2.2",
142
142
  "stream-json": "1.8.0",
143
- "tar": "6.2.0",
144
- "tsx": "4.7.1",
143
+ "tar": "7.0.1",
144
+ "tsx": "4.9.3",
145
145
  "wellknown": "0.5.0",
146
- "ws": "8.16.0",
147
- "zod": "3.22.4",
148
- "zod-validation-error": "3.0.3",
149
- "@directus/env": "1.1.2",
150
- "@directus/app": "12.0.2",
151
- "@directus/extensions": "1.0.3",
152
- "@directus/constants": "11.0.3",
153
- "@directus/extensions-registry": "1.0.3",
154
- "@directus/errors": "0.2.4",
155
- "@directus/extensions-sdk": "11.0.3",
156
- "@directus/format-title": "10.1.1",
157
- "@directus/pressure": "1.0.18",
158
- "@directus/schema": "11.0.1",
159
- "@directus/memory": "1.0.6",
160
- "@directus/specs": "10.2.8",
161
- "@directus/storage-driver-azure": "10.0.19",
162
- "@directus/storage-driver-gcs": "10.0.19",
163
- "@directus/storage-driver-cloudinary": "10.0.19",
164
- "@directus/storage-driver-local": "10.0.18",
165
- "@directus/storage": "10.0.11",
166
- "@directus/storage-driver-s3": "10.0.20",
167
- "@directus/storage-driver-supabase": "1.0.11",
168
- "@directus/system-data": "1.0.2",
169
- "directus": "10.10.7",
170
- "@directus/utils": "11.0.7",
171
- "@directus/validation": "0.0.14"
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.3",
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.17.43",
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.26",
197
- "@types/node-schedule": "2.1.6",
198
- "@types/nodemailer": "6.4.14",
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.14",
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.4.0",
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.3.3",
212
- "vitest": "1.3.1",
213
- "@directus/random": "0.2.7",
214
- "@directus/types": "11.1.0",
215
- "@directus/tsconfig": "1.0.1"
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.4.0",
223
- "pg": "8.11.4",
221
+ "oracledb": "6.5.0",
222
+ "pg": "8.11.5",
224
223
  "sqlite3": "5.1.7",
225
- "tedious": "17.0.0"
224
+ "tedious": "18.2.0"
226
225
  },
227
226
  "engines": {
228
227
  "node": ">=18.17.0"
@@ -1,4 +0,0 @@
1
- /**
2
- * Strip the function declarations from a list of fields
3
- */
4
- export declare function stripFunction(field: string): string;
@@ -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
- }