@wbce-d9/api 11.1.2 → 11.1.3
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.3",
|
|
4
4
|
"description": "Directus is a real-time API and App dashboard for managing SQL database content",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -143,19 +143,19 @@
|
|
|
143
143
|
"uuid": "9.0.0",
|
|
144
144
|
"uuid-validate": "0.0.3",
|
|
145
145
|
"wellknown": "0.5.0",
|
|
146
|
-
"@wbce-d9/
|
|
146
|
+
"@wbce-d9/constants": "9.28.0",
|
|
147
|
+
"@wbce-d9/app": "9.33.4",
|
|
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
153
|
"@wbce-d9/storage-driver-cloudinary": "9.27.2",
|
|
154
154
|
"@wbce-d9/storage-driver-gcs": "9.26.9",
|
|
155
|
-
"@wbce-d9/storage
|
|
155
|
+
"@wbce-d9/storage": "9.26.4",
|
|
156
156
|
"@wbce-d9/storage-driver-local": "9.26.9",
|
|
157
|
+
"@wbce-d9/storage-driver-s3": "9.26.11",
|
|
157
158
|
"@wbce-d9/update-check": "9.28.0",
|
|
158
|
-
"@wbce-d9/schema": "9.26.4",
|
|
159
159
|
"@wbce-d9/utils": "9.29.2"
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|