directus 9.13.0 → 9.14.2
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 +9 -4
- package/dist/auth/drivers/openid.js +4 -1
- package/dist/cli/commands/security/key.d.ts +1 -0
- package/dist/cli/commands/security/key.js +8 -0
- package/dist/cli/commands/security/secret.d.ts +1 -0
- package/dist/cli/commands/security/secret.js +8 -0
- package/dist/cli/index.js +6 -0
- package/dist/controllers/extensions.js +9 -1
- package/dist/controllers/files.js +1 -1
- package/dist/database/helpers/fn/dialects/mssql.d.ts +2 -2
- package/dist/database/helpers/fn/dialects/mssql.js +2 -2
- package/dist/database/helpers/fn/dialects/mysql.d.ts +2 -2
- package/dist/database/helpers/fn/dialects/mysql.js +2 -2
- package/dist/database/helpers/fn/dialects/oracle.d.ts +1 -1
- package/dist/database/helpers/fn/dialects/oracle.js +2 -2
- package/dist/database/helpers/fn/dialects/postgres.d.ts +2 -2
- package/dist/database/helpers/fn/dialects/postgres.js +2 -2
- package/dist/database/helpers/fn/dialects/sqlite.d.ts +1 -1
- package/dist/database/helpers/fn/dialects/sqlite.js +2 -2
- package/dist/database/helpers/fn/types.d.ts +3 -2
- package/dist/database/helpers/fn/types.js +11 -8
- package/dist/database/helpers/index.d.ts +3 -3
- package/dist/database/helpers/schema/dialects/sqlite.d.ts +5 -0
- package/dist/database/helpers/schema/dialects/sqlite.js +17 -0
- package/dist/database/helpers/schema/index.d.ts +1 -1
- package/dist/database/helpers/schema/index.js +4 -4
- package/dist/database/helpers/schema/types.d.ts +2 -0
- package/dist/database/helpers/schema/types.js +6 -0
- package/dist/database/run-ast.js +8 -5
- package/dist/emitter.js +12 -7
- package/dist/logger.d.ts +0 -1
- package/dist/middleware/authenticate.d.ts +0 -1
- package/dist/middleware/cache.js +3 -3
- package/dist/middleware/graphql.js +9 -7
- package/dist/middleware/respond.js +5 -5
- package/dist/operations/item-read/index.d.ts +1 -0
- package/dist/operations/item-read/index.js +3 -3
- package/dist/operations/request/index.js +1 -1
- package/dist/services/authorization.js +15 -5
- package/dist/services/fields.js +4 -0
- package/dist/services/graphql/index.js +40 -15
- package/dist/services/import-export.js +6 -1
- package/dist/services/items.d.ts +1 -0
- package/dist/services/items.js +21 -17
- package/dist/services/notifications.js +22 -11
- package/dist/services/payload.js +11 -8
- package/dist/services/server.js +13 -2
- package/dist/types/ast.d.ts +11 -4
- package/dist/utils/apply-query.js +5 -13
- package/dist/utils/apply-snapshot.js +41 -17
- package/dist/utils/filter-items.js +3 -6
- package/dist/utils/get-ast-from-query.js +18 -0
- package/dist/utils/get-column-path.d.ts +5 -1
- package/dist/utils/get-column-path.js +3 -1
- package/dist/utils/get-column.d.ts +2 -2
- package/dist/utils/get-column.js +2 -2
- package/dist/utils/get-config-from-env.js +1 -1
- package/dist/utils/merge-permissions.d.ts +0 -1
- package/package.json +232 -226
- package/dist/utils/generate-joi.d.ts +0 -3
- package/dist/utils/generate-joi.js +0 -145
|
@@ -11,6 +11,10 @@ export declare type ColPathProps = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Converts a Directus field list path to the correct SQL names based on the constructed alias map.
|
|
13
13
|
* For example: ['author', 'role', 'name'] -> 'ljnsv.name'
|
|
14
|
+
* Also returns the target collection of the column: 'directus_roles'
|
|
14
15
|
*/
|
|
15
|
-
export declare function getColumnPath({ path, collection, aliasMap, relations }: ColPathProps):
|
|
16
|
+
export declare function getColumnPath({ path, collection, aliasMap, relations }: ColPathProps): {
|
|
17
|
+
columnPath: string;
|
|
18
|
+
targetCollection: string;
|
|
19
|
+
};
|
|
16
20
|
export {};
|
|
@@ -7,6 +7,7 @@ const lodash_1 = require("lodash");
|
|
|
7
7
|
/**
|
|
8
8
|
* Converts a Directus field list path to the correct SQL names based on the constructed alias map.
|
|
9
9
|
* For example: ['author', 'role', 'name'] -> 'ljnsv.name'
|
|
10
|
+
* Also returns the target collection of the column: 'directus_roles'
|
|
10
11
|
*/
|
|
11
12
|
function getColumnPath({ path, collection, aliasMap, relations }) {
|
|
12
13
|
return followRelation(path);
|
|
@@ -36,11 +37,12 @@ function getColumnPath({ path, collection, aliasMap, relations }) {
|
|
|
36
37
|
parent = relation.collection;
|
|
37
38
|
}
|
|
38
39
|
if (remainingParts.length === 1) {
|
|
39
|
-
return `${alias || parent}.${remainingParts[0]}
|
|
40
|
+
return { columnPath: `${alias || parent}.${remainingParts[0]}`, targetCollection: parent };
|
|
40
41
|
}
|
|
41
42
|
if (remainingParts.length) {
|
|
42
43
|
return followRelation(remainingParts, parent, alias);
|
|
43
44
|
}
|
|
45
|
+
return { columnPath: '', targetCollection: '' };
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
exports.getColumnPath = getColumnPath;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaOverview } from '@directus/shared/types';
|
|
1
|
+
import { Query, SchemaOverview } from '@directus/shared/types';
|
|
2
2
|
import { Knex } from 'knex';
|
|
3
3
|
/**
|
|
4
4
|
* Return column prefixed by table. If column includes functions (like `year(date_created)`), the
|
|
@@ -10,4 +10,4 @@ import { Knex } from 'knex';
|
|
|
10
10
|
* @param alias Whether or not to add a SQL AS statement
|
|
11
11
|
* @returns Knex raw instance
|
|
12
12
|
*/
|
|
13
|
-
export declare function getColumn(knex: Knex, table: string, column: string, alias: string | false | undefined, schema: SchemaOverview): Knex.Raw;
|
|
13
|
+
export declare function getColumn(knex: Knex, table: string, column: string, alias: string | false | undefined, schema: SchemaOverview, query?: Query): Knex.Raw;
|
package/dist/utils/get-column.js
CHANGED
|
@@ -16,7 +16,7 @@ const apply_function_to_column_name_1 = require("./apply-function-to-column-name
|
|
|
16
16
|
* @param alias Whether or not to add a SQL AS statement
|
|
17
17
|
* @returns Knex raw instance
|
|
18
18
|
*/
|
|
19
|
-
function getColumn(knex, table, column, alias = (0, apply_function_to_column_name_1.applyFunctionToColumnName)(column), schema) {
|
|
19
|
+
function getColumn(knex, table, column, alias = (0, apply_function_to_column_name_1.applyFunctionToColumnName)(column), schema, query) {
|
|
20
20
|
var _a, _b, _c, _d;
|
|
21
21
|
const fn = (0, helpers_1.getFunctions)(knex, schema);
|
|
22
22
|
if (column.includes('(') && column.includes(')')) {
|
|
@@ -28,7 +28,7 @@ function getColumn(knex, table, column, alias = (0, apply_function_to_column_nam
|
|
|
28
28
|
if (allowedFunctions.includes(functionName) === false) {
|
|
29
29
|
throw new exceptions_1.InvalidQueryException(`Invalid function specified "${functionName}"`);
|
|
30
30
|
}
|
|
31
|
-
const result = fn[functionName](table, columnName, { type });
|
|
31
|
+
const result = fn[functionName](table, columnName, { type, query });
|
|
32
32
|
if (alias) {
|
|
33
33
|
return knex.raw(result + ' AS ??', [alias]);
|
|
34
34
|
}
|
|
@@ -36,7 +36,7 @@ function getConfigFromEnv(prefix, omitPrefix, type = 'camelcase') {
|
|
|
36
36
|
return config;
|
|
37
37
|
function transform(key) {
|
|
38
38
|
if (type === 'camelcase') {
|
|
39
|
-
return (0, camelcase_1.default)(key);
|
|
39
|
+
return (0, camelcase_1.default)(key, { locale: false });
|
|
40
40
|
}
|
|
41
41
|
else if (type === 'underscore') {
|
|
42
42
|
return key.toLowerCase();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { Permission } from '@directus/shared/types';
|
|
3
2
|
export declare function mergePermissions(strategy: 'and' | 'or', ...permissions: Permission[][]): Permission[];
|
|
4
3
|
export declare function mergePermission(strategy: 'and' | 'or', currentPerm: Permission, newPerm: Permission): import("lodash").Omit<{
|
package/package.json
CHANGED
|
@@ -1,227 +1,233 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
2
|
+
"name": "directus",
|
|
3
|
+
"version": "9.14.2",
|
|
4
|
+
"license": "GPL-3.0-only",
|
|
5
|
+
"homepage": "https://github.com/directus/directus#readme",
|
|
6
|
+
"description": "Directus is a real-time API and App dashboard for managing SQL database content.",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"directus",
|
|
9
|
+
"realtime",
|
|
10
|
+
"database",
|
|
11
|
+
"content",
|
|
12
|
+
"api",
|
|
13
|
+
"rest",
|
|
14
|
+
"graphql",
|
|
15
|
+
"app",
|
|
16
|
+
"dashboard",
|
|
17
|
+
"headless",
|
|
18
|
+
"cms",
|
|
19
|
+
"mysql",
|
|
20
|
+
"postgresql",
|
|
21
|
+
"cockroachdb",
|
|
22
|
+
"sqlite",
|
|
23
|
+
"framework",
|
|
24
|
+
"vue"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/directus/directus.git"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/directus/directus/issues"
|
|
32
|
+
},
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "Monospace Inc",
|
|
35
|
+
"email": "info@monospace.io",
|
|
36
|
+
"url": "https://monospace.io"
|
|
37
|
+
},
|
|
38
|
+
"maintainers": [
|
|
39
|
+
{
|
|
40
|
+
"name": "Rijk van Zanten",
|
|
41
|
+
"email": "rijkvanzanten@me.com",
|
|
42
|
+
"url": "https://github.com/rijkvanzanten"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "Ben Haynes",
|
|
46
|
+
"email": "ben@rngr.org",
|
|
47
|
+
"url": "https://github.com/benhaynes"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"main": "dist/index.js",
|
|
51
|
+
"exports": {
|
|
52
|
+
".": "./dist/index.js",
|
|
53
|
+
"./*": "./dist/*.js",
|
|
54
|
+
"./package.json": "./package.json"
|
|
55
|
+
},
|
|
56
|
+
"bin": {
|
|
57
|
+
"directus": "cli.js"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=12.20.0"
|
|
61
|
+
},
|
|
62
|
+
"files": [
|
|
63
|
+
"dist",
|
|
64
|
+
"LICENSE",
|
|
65
|
+
"README.md"
|
|
66
|
+
],
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@aws-sdk/client-ses": "^3.107.0",
|
|
69
|
+
"@directus/app": "9.14.2",
|
|
70
|
+
"@directus/drive": "9.14.2",
|
|
71
|
+
"@directus/drive-azure": "9.14.2",
|
|
72
|
+
"@directus/drive-gcs": "9.14.2",
|
|
73
|
+
"@directus/drive-s3": "9.14.2",
|
|
74
|
+
"@directus/extensions-sdk": "^9.14.1",
|
|
75
|
+
"@directus/format-title": "^9.15.0",
|
|
76
|
+
"@directus/schema": "9.14.2",
|
|
77
|
+
"@directus/shared": "9.14.2",
|
|
78
|
+
"@directus/specs": "9.14.2",
|
|
79
|
+
"@godaddy/terminus": "^4.10.2",
|
|
80
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
81
|
+
"@rollup/plugin-virtual": "^2.1.0",
|
|
82
|
+
"argon2": "^0.28.5",
|
|
83
|
+
"async": "^3.2.4",
|
|
84
|
+
"async-mutex": "^0.3.2",
|
|
85
|
+
"axios": "^0.27.2",
|
|
86
|
+
"busboy": "^1.6.0",
|
|
87
|
+
"bytes": "^3.1.2",
|
|
88
|
+
"camelcase": "^6.2.0",
|
|
89
|
+
"chalk": "^4.1.1",
|
|
90
|
+
"chokidar": "^3.5.3",
|
|
91
|
+
"commander": "^8.0.0",
|
|
92
|
+
"cookie-parser": "^1.4.6",
|
|
93
|
+
"cors": "^2.8.5",
|
|
94
|
+
"csv-parser": "^3.0.0",
|
|
95
|
+
"date-fns": "^2.28.0",
|
|
96
|
+
"deep-diff": "^1.0.2",
|
|
97
|
+
"deep-map": "^2.0.0",
|
|
98
|
+
"destroy": "^1.2.0",
|
|
99
|
+
"dotenv": "^10.0.0",
|
|
100
|
+
"eventemitter2": "^6.4.5",
|
|
101
|
+
"execa": "^5.1.1",
|
|
102
|
+
"exifr": "^7.1.3",
|
|
103
|
+
"express": "^4.18.1",
|
|
104
|
+
"fast-redact": "^3.1.1",
|
|
105
|
+
"flat": "^5.0.2",
|
|
106
|
+
"fs-extra": "^10.1.0",
|
|
107
|
+
"globby": "^11.0.4",
|
|
108
|
+
"graphql": "^15.5.0",
|
|
109
|
+
"graphql-compose": "^9.0.8",
|
|
110
|
+
"helmet": "^4.6.0",
|
|
111
|
+
"inquirer": "^8.2.4",
|
|
112
|
+
"ioredis": "^4.27.6",
|
|
113
|
+
"joi": "^17.6.0",
|
|
114
|
+
"js-yaml": "^4.1.0",
|
|
115
|
+
"js2xmlparser": "^4.0.2",
|
|
116
|
+
"json2csv": "^5.0.7",
|
|
117
|
+
"jsonwebtoken": "^8.5.1",
|
|
118
|
+
"keyv": "^4.3.0",
|
|
119
|
+
"knex": "2.2.0",
|
|
120
|
+
"knex-schema-inspector": "^2.0.3",
|
|
121
|
+
"ldapjs": "^2.3.3",
|
|
122
|
+
"liquidjs": "^9.37.0",
|
|
123
|
+
"lodash": "^4.17.21",
|
|
124
|
+
"macos-release": "^2.4.1",
|
|
125
|
+
"marked": "^4.0.16",
|
|
126
|
+
"micromustache": "^8.0.3",
|
|
127
|
+
"mime-types": "^2.1.35",
|
|
128
|
+
"ms": "^2.1.3",
|
|
129
|
+
"nanoid": "^3.1.23",
|
|
130
|
+
"node-cron": "^3.0.1",
|
|
131
|
+
"node-machine-id": "^1.1.12",
|
|
132
|
+
"nodemailer": "^6.7.5",
|
|
133
|
+
"object-hash": "^2.2.0",
|
|
134
|
+
"openapi3-ts": "^2.0.2",
|
|
135
|
+
"openid-client": "^5.1.6",
|
|
136
|
+
"ora": "^5.4.0",
|
|
137
|
+
"otplib": "^12.0.1",
|
|
138
|
+
"pino": "6.13.3",
|
|
139
|
+
"pino-colada": "^2.2.2",
|
|
140
|
+
"pino-http": "5.8.0",
|
|
141
|
+
"qs": "^6.10.5",
|
|
142
|
+
"rate-limiter-flexible": "^2.3.7",
|
|
143
|
+
"resolve-cwd": "^3.0.0",
|
|
144
|
+
"rollup": "^2.75.6",
|
|
145
|
+
"sanitize-html": "^2.7.0",
|
|
146
|
+
"sharp": "^0.30.6",
|
|
147
|
+
"stream-json": "^1.7.4",
|
|
148
|
+
"strip-bom-stream": "^4.0.0",
|
|
149
|
+
"supertest": "^6.2.3",
|
|
150
|
+
"tmp-promise": "^3.0.3",
|
|
151
|
+
"update-check": "^1.5.4",
|
|
152
|
+
"uuid": "^8.3.2",
|
|
153
|
+
"uuid-validate": "0.0.3",
|
|
154
|
+
"wellknown": "^0.5.0"
|
|
155
|
+
},
|
|
156
|
+
"optionalDependencies": {
|
|
157
|
+
"@keyv/redis": "^2.3.6",
|
|
158
|
+
"keyv-memcache": "^1.2.5",
|
|
159
|
+
"memcached": "^2.2.2",
|
|
160
|
+
"mysql": "^2.18.1",
|
|
161
|
+
"nodemailer-mailgun-transport": "^2.1.4",
|
|
162
|
+
"oracledb": "5.3.0",
|
|
163
|
+
"pg": "^8.7.3",
|
|
164
|
+
"sqlite3": "^5.0.8",
|
|
165
|
+
"tedious": "^13.0.0"
|
|
166
|
+
},
|
|
167
|
+
"gitHead": "24621f3934dc77eb23441331040ed13c676ceffd",
|
|
168
|
+
"devDependencies": {
|
|
169
|
+
"@otplib/preset-default": "^12.0.1",
|
|
170
|
+
"@types/async": "3.2.13",
|
|
171
|
+
"@types/body-parser": "1.19.2",
|
|
172
|
+
"@types/busboy": "1.5.0",
|
|
173
|
+
"@types/bytes": "3.1.1",
|
|
174
|
+
"@types/cookie-parser": "1.4.3",
|
|
175
|
+
"@types/cors": "2.8.12",
|
|
176
|
+
"@types/deep-diff": "1.0.1",
|
|
177
|
+
"@types/destroy": "1.0.0",
|
|
178
|
+
"@types/express": "4.17.13",
|
|
179
|
+
"@types/express-pino-logger": "4.0.3",
|
|
180
|
+
"@types/express-serve-static-core": "^4.17.29",
|
|
181
|
+
"@types/express-session": "1.17.4",
|
|
182
|
+
"@types/fast-redact": "^3.0.1",
|
|
183
|
+
"@types/flat": "5.0.2",
|
|
184
|
+
"@types/fs-extra": "9.0.13",
|
|
185
|
+
"@types/inquirer": "8.2.1",
|
|
186
|
+
"@types/ioredis": "^4.28.10",
|
|
187
|
+
"@types/jest": "27.5.2",
|
|
188
|
+
"@types/js-yaml": "4.0.5",
|
|
189
|
+
"@types/json2csv": "5.0.3",
|
|
190
|
+
"@types/jsonwebtoken": "8.5.8",
|
|
191
|
+
"@types/keyv": "3.1.4",
|
|
192
|
+
"@types/ldapjs": "2.2.2",
|
|
193
|
+
"@types/lodash": "4.14.182",
|
|
194
|
+
"@types/marked": "4.0.3",
|
|
195
|
+
"@types/mime-types": "2.1.1",
|
|
196
|
+
"@types/ms": "0.7.31",
|
|
197
|
+
"@types/node": "16.11.9",
|
|
198
|
+
"@types/node-cron": "2.0.5",
|
|
199
|
+
"@types/nodemailer": "6.4.4",
|
|
200
|
+
"@types/object-hash": "2.2.1",
|
|
201
|
+
"@types/pino": "6.3.12",
|
|
202
|
+
"@types/pino-http": "5.8.1",
|
|
203
|
+
"@types/qs": "6.9.7",
|
|
204
|
+
"@types/sanitize-html": "2.6.2",
|
|
205
|
+
"@types/sharp": "0.30.4",
|
|
206
|
+
"@types/stream-json": "1.7.2",
|
|
207
|
+
"@types/supertest": "2.0.12",
|
|
208
|
+
"@types/uuid": "8.3.4",
|
|
209
|
+
"@types/uuid-validate": "0.0.1",
|
|
210
|
+
"@types/wellknown": "0.5.3",
|
|
211
|
+
"copyfiles": "2.4.1",
|
|
212
|
+
"cross-env": "7.0.3",
|
|
213
|
+
"form-data": "^4.0.0",
|
|
214
|
+
"jest": "28.1.2",
|
|
215
|
+
"knex-mock-client": "1.8.4",
|
|
216
|
+
"rimraf": "3.0.2",
|
|
217
|
+
"ts-jest": "28.0.5",
|
|
218
|
+
"ts-node": "^10.8.2",
|
|
219
|
+
"ts-node-dev": "1.1.8",
|
|
220
|
+
"typescript": "4.7.3"
|
|
221
|
+
},
|
|
222
|
+
"scripts": {
|
|
223
|
+
"start": "npx directus start",
|
|
224
|
+
"prebuild": "pnpm cleanup",
|
|
225
|
+
"build": "tsc --build && copyfiles \"src/**/*.*\" -e \"src/**/*.ts\" -u 1 dist",
|
|
226
|
+
"cleanup": "rimraf dist",
|
|
227
|
+
"dev": "cross-env NODE_ENV=development SERVE_APP=false ts-node-dev --files --transpile-only --respawn --watch \".env\" --inspect=0 --exit-child -- src/start.ts",
|
|
228
|
+
"cli": "cross-env NODE_ENV=development SERVE_APP=false ts-node --script-mode --transpile-only src/cli/run.ts",
|
|
229
|
+
"test": "jest",
|
|
230
|
+
"test:coverage": "jest --coverage",
|
|
231
|
+
"test:watch": "jest --watch"
|
|
232
|
+
}
|
|
233
|
+
}
|