@biorate/nestjs-tools 1.125.0 → 1.125.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/CHANGELOG.md +6 -0
- package/dist/src/app/infrastructure/controllers/index.js +1 -0
- package/dist/src/app/infrastructure/controllers/index.js.map +1 -1
- package/dist/src/app/infrastructure/controllers/probe.controller.js +42 -0
- package/dist/src/app/infrastructure/controllers/probe.controller.js.map +1 -0
- package/dist/src/http/controllers/probe.js +4 -2
- package/dist/src/http/controllers/probe.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.125.1](https://github.com/biorate/core/compare/v1.125.0...v1.125.1) (2025-05-21)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **nestjs-tools:** probe controller -> hexogonal arch ([dd3363a](https://github.com/biorate/core/commit/dd3363a68d7260c1c22b9feb88a6d71b5b32652f))
|
|
11
|
+
|
|
6
12
|
# [1.125.0](https://github.com/biorate/core/compare/v1.124.10...v1.125.0) (2025-05-15)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./metrics.controller"), exports);
|
|
18
18
|
__exportStar(require("./client.controller"), exports);
|
|
19
|
+
__exportStar(require("./probe.controller"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app/infrastructure/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app/infrastructure/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,qDAAmC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProbeController = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
let ProbeController = class ProbeController {
|
|
16
|
+
readiness() {
|
|
17
|
+
return 1;
|
|
18
|
+
}
|
|
19
|
+
healthz() {
|
|
20
|
+
return 1;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, common_1.Get)('readiness'),
|
|
25
|
+
(0, swagger_1.ApiOperation)({ summary: 'Readiness probe' }),
|
|
26
|
+
__metadata("design:type", Function),
|
|
27
|
+
__metadata("design:paramtypes", []),
|
|
28
|
+
__metadata("design:returntype", void 0)
|
|
29
|
+
], ProbeController.prototype, "readiness", null);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, common_1.Get)('healthz'),
|
|
32
|
+
(0, swagger_1.ApiOperation)({ summary: 'Healthz probe' }),
|
|
33
|
+
__metadata("design:type", Function),
|
|
34
|
+
__metadata("design:paramtypes", []),
|
|
35
|
+
__metadata("design:returntype", void 0)
|
|
36
|
+
], ProbeController.prototype, "healthz", null);
|
|
37
|
+
ProbeController = __decorate([
|
|
38
|
+
(0, swagger_1.ApiTags)('Probe'),
|
|
39
|
+
(0, common_1.Controller)('probe')
|
|
40
|
+
], ProbeController);
|
|
41
|
+
exports.ProbeController = ProbeController;
|
|
42
|
+
//# sourceMappingURL=probe.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe.controller.js","sourceRoot":"","sources":["../../../../../src/app/infrastructure/controllers/probe.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiD;AACjD,6CAAwD;AAIxD,IAAa,eAAe,GAA5B,MAAa,eAAe;IAGhB,SAAS;QACjB,OAAO,CAAC,CAAC;IACX,CAAC;IAIS,OAAO;QACf,OAAO,CAAC,CAAC;IACX,CAAC;CACF,CAAA;AATW;IAFT,IAAA,YAAG,EAAC,WAAW,CAAC;IAChB,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;;;;gDAG5C;AAIS;IAFT,IAAA,YAAG,EAAC,SAAS,CAAC;IACd,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;;;;8CAG1C;AAXU,eAAe;IAF3B,IAAA,iBAAO,EAAC,OAAO,CAAC;IAChB,IAAA,mBAAU,EAAC,OAAO,CAAC;GACP,eAAe,CAY3B;AAZY,0CAAe"}
|
|
@@ -22,14 +22,16 @@ let ProbeController = class ProbeController {
|
|
|
22
22
|
};
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, common_1.Get)('readiness'),
|
|
25
|
-
(0,
|
|
25
|
+
(0, common_1.Header)('Deprecation', 'Use domain controller instead [@biorate/nestjs-tools >= v1.121.0]'),
|
|
26
|
+
(0, swagger_1.ApiOperation)({ summary: 'Readiness probe', deprecated: true }),
|
|
26
27
|
__metadata("design:type", Function),
|
|
27
28
|
__metadata("design:paramtypes", []),
|
|
28
29
|
__metadata("design:returntype", void 0)
|
|
29
30
|
], ProbeController.prototype, "readiness", null);
|
|
30
31
|
__decorate([
|
|
31
32
|
(0, common_1.Get)('healthz'),
|
|
32
|
-
(0,
|
|
33
|
+
(0, common_1.Header)('Deprecation', 'Use domain controller instead [@biorate/nestjs-tools >= v1.121.0]'),
|
|
34
|
+
(0, swagger_1.ApiOperation)({ summary: 'Healthz probe', deprecated: true }),
|
|
33
35
|
__metadata("design:type", Function),
|
|
34
36
|
__metadata("design:paramtypes", []),
|
|
35
37
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"probe.js","sourceRoot":"","sources":["../../../../src/http/controllers/probe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"probe.js","sourceRoot":"","sources":["../../../../src/http/controllers/probe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyD;AACzD,6CAAwD;AAIxD,IAAa,eAAe,GAA5B,MAAa,eAAe;IAOhB,SAAS;QACjB,OAAO,CAAC,CAAC;IACX,CAAC;IAQS,OAAO;QACf,OAAO,CAAC,CAAC;IACX,CAAC;CACF,CAAA;AAbW;IANT,IAAA,YAAG,EAAC,WAAW,CAAC;IAChB,IAAA,eAAM,EACL,aAAa,EACb,mEAAmE,CACpE;IACA,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;;;;gDAG9D;AAQS;IANT,IAAA,YAAG,EAAC,SAAS,CAAC;IACd,IAAA,eAAM,EACL,aAAa,EACb,mEAAmE,CACpE;IACA,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;;;;8CAG5D;AAnBU,eAAe;IAF3B,IAAA,iBAAO,EAAC,OAAO,CAAC;IAChB,IAAA,mBAAU,EAAC,OAAO,CAAC;GACP,eAAe,CAoB3B;AApBY,0CAAe"}
|