@flexent/stack-backend 2.14.1 → 2.15.1
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/out/main/MetaRouter.js
CHANGED
|
@@ -7,18 +7,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import fs from 'node:fs';
|
|
11
10
|
import { Get, HttpRouter } from '@flexent/http-router';
|
|
12
11
|
import { HttpContext } from '@flexent/http-server';
|
|
13
12
|
import { generateMetricsReport } from '@flexent/metrics';
|
|
14
13
|
import { dep, Mesh } from 'mesh-ioc';
|
|
15
14
|
import { invokeStatusChecks } from './utils/status.js';
|
|
16
|
-
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf-8'));
|
|
17
15
|
export class MetaRouter extends HttpRouter {
|
|
18
16
|
async getStatus(ctx) {
|
|
19
17
|
const checks = await invokeStatusChecks(this.mesh);
|
|
20
18
|
ctx.responseBody = {
|
|
21
|
-
version:
|
|
19
|
+
version: process.env.APP_VERSION,
|
|
22
20
|
...checks,
|
|
23
21
|
};
|
|
24
22
|
ctx.status = 200;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaRouter.js","sourceRoot":"","sources":["../../src/main/MetaRouter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"MetaRouter.js","sourceRoot":"","sources":["../../src/main/MetaRouter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,OAAO,UAAW,SAAQ,UAAU;IAKhC,AAAN,KAAK,CAAC,SAAS,CAAC,GAAgB;QAC5B,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnD,GAAG,CAAC,YAAY,GAAG;YACf,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;YAChC,GAAG,MAAM;SACZ,CAAC;QACF,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC;QACjB,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC;IACpB,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAC,GAAgB;QAC7B,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChD,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC;QACjB,GAAG,CAAC,YAAY,GAAG,MAAM,CAAC;QAC1B,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC;IACpB,CAAC;CAEJ;AArBkB;IAAd,GAAG,EAAE;8BAAgB,IAAI;wCAAC;AAGrB;IADL,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;qCACJ,WAAW;;2CAQ/B;AAGK;IADL,GAAG,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;qCACJ,WAAW;;4CAKhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flexent/stack-backend",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.1",
|
|
4
4
|
"description": "Backend basic setup",
|
|
5
5
|
"author": "Boris Okunskiy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"out"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@flexent/errors": "^2.
|
|
16
|
-
"@flexent/http-router": "^2.
|
|
17
|
-
"@flexent/http-server": "^2.
|
|
18
|
-
"@flexent/logger": "^2.
|
|
15
|
+
"@flexent/errors": "^2.15.1",
|
|
16
|
+
"@flexent/http-router": "^2.15.1",
|
|
17
|
+
"@flexent/http-server": "^2.15.1",
|
|
18
|
+
"@flexent/logger": "^2.15.1",
|
|
19
19
|
"mesh-config": "^1.3.4",
|
|
20
20
|
"mesh-decorators": "^1.3.6",
|
|
21
21
|
"mesh-ioc": "^4.3.1",
|