@wbce-d9/api 11.1.2 → 11.1.4
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/services/server.js
CHANGED
|
@@ -13,7 +13,7 @@ import { rateLimiter } from '../middleware/rate-limiter-ip.js';
|
|
|
13
13
|
import { SERVER_ONLINE } from '../server.js';
|
|
14
14
|
import { getStorage } from '../storage/index.js';
|
|
15
15
|
import { getOSInfo } from '../utils/get-os-info.js';
|
|
16
|
-
import { version } from '../utils/package.js';
|
|
16
|
+
import { version, mainVersion } from '../utils/package.js';
|
|
17
17
|
import { SettingsService } from './settings.js';
|
|
18
18
|
export class ServerService {
|
|
19
19
|
knex;
|
|
@@ -66,6 +66,7 @@ export class ServerService {
|
|
|
66
66
|
const { osType, osVersion } = getOSInfo();
|
|
67
67
|
info['directus'] = {
|
|
68
68
|
version,
|
|
69
|
+
mainVersion,
|
|
69
70
|
};
|
|
70
71
|
info['node'] = {
|
|
71
72
|
version: process.versions.node,
|
package/dist/utils/package.d.ts
CHANGED
package/dist/utils/package.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { dirname, resolve } from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
5
|
-
const
|
|
6
|
-
|
|
5
|
+
const apiPkgPath = resolve(__dirname, '../../package.json');
|
|
6
|
+
const { name, version } = JSON.parse(readFileSync(apiPkgPath, 'utf8'));
|
|
7
|
+
const mainPkgPath = resolve(dirname(apiPkgPath), '../../../../../../package.json');
|
|
8
|
+
const mainVersion = existsSync(mainPkgPath) ? JSON.parse(readFileSync(mainPkgPath, 'utf8')).version : null;
|
|
9
|
+
export { name, version, mainVersion };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wbce-d9/api",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.4",
|
|
4
4
|
"description": "Directus is a real-time API and App dashboard for managing SQL database content",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"execa": "7.1.1",
|
|
93
93
|
"exif-reader": "1.2.0",
|
|
94
94
|
"express": "^4.21.2",
|
|
95
|
-
"fast-redact": "3.
|
|
95
|
+
"fast-redact": "^3.5.0",
|
|
96
96
|
"flat": "5.0.2",
|
|
97
97
|
"fs-extra": "11.1.1",
|
|
98
98
|
"graphql": "16.8.1",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"nanoid": "5.0.9",
|
|
120
120
|
"node-cron": "3.0.2",
|
|
121
121
|
"node-machine-id": "1.1.12",
|
|
122
|
-
"nodemailer": "
|
|
122
|
+
"nodemailer": "7.0.7",
|
|
123
123
|
"object-hash": "3.0.0",
|
|
124
124
|
"openapi3-ts": "3.2.0",
|
|
125
125
|
"openid-client": "5.4.0",
|
|
@@ -143,20 +143,20 @@
|
|
|
143
143
|
"uuid": "9.0.0",
|
|
144
144
|
"uuid-validate": "0.0.3",
|
|
145
145
|
"wellknown": "0.5.0",
|
|
146
|
-
"@wbce-d9/app": "9.33.
|
|
146
|
+
"@wbce-d9/app": "9.33.5",
|
|
147
|
+
"@wbce-d9/constants": "9.28.0",
|
|
147
148
|
"@wbce-d9/exceptions": "9.26.4",
|
|
148
149
|
"@wbce-d9/extensions-sdk": "9.27.3",
|
|
149
|
-
"@wbce-d9/
|
|
150
|
+
"@wbce-d9/schema": "9.26.4",
|
|
150
151
|
"@wbce-d9/specs": "9.26.5",
|
|
151
|
-
"@wbce-d9/storage": "9.26.4",
|
|
152
152
|
"@wbce-d9/storage-driver-azure": "9.26.9",
|
|
153
|
+
"@wbce-d9/storage": "9.26.4",
|
|
153
154
|
"@wbce-d9/storage-driver-cloudinary": "9.27.2",
|
|
154
155
|
"@wbce-d9/storage-driver-gcs": "9.26.9",
|
|
155
|
-
"@wbce-d9/storage-driver-s3": "9.26.11",
|
|
156
156
|
"@wbce-d9/storage-driver-local": "9.26.9",
|
|
157
157
|
"@wbce-d9/update-check": "9.28.0",
|
|
158
|
-
"@wbce-d9/
|
|
159
|
-
"@wbce-d9/
|
|
158
|
+
"@wbce-d9/utils": "9.29.2",
|
|
159
|
+
"@wbce-d9/storage-driver-s3": "9.26.11"
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|
|
162
162
|
"@ngneat/falso": "6.4.0",
|