@hg-ts/http-controller 0.1.76 → 0.1.77
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.
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExceptionController = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const validation_1 = require("@hg-ts/validation");
|
|
5
6
|
const decorators_1 = require("../../../decorators");
|
|
6
7
|
const services_1 = require("../../../services");
|
|
7
8
|
const exceptions_1 = require("../exceptions");
|
|
8
|
-
|
|
9
|
-
services_1.ExceptionService.registerSchema(exceptions_1.MockNotFoundException, dtos_1.CommonExceptionDto);
|
|
9
|
+
services_1.ExceptionService.registerSchema(exceptions_1.MockNotFoundException, validation_1.baseExceptionSchema.toClass());
|
|
10
10
|
let ExceptionController = class ExceptionController {
|
|
11
11
|
async getNotFound() {
|
|
12
12
|
throw new exceptions_1.MockNotFoundException();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exception.controller.js","sourceRoot":"","sources":["../../../../src/tests/exception/controllers/exception.controller.ts"],"names":[],"mappings":";;;;AAAA,oDAA2C;AAC3C,gDAAqD;AACrD,8CAAsD;
|
|
1
|
+
{"version":3,"file":"exception.controller.js","sourceRoot":"","sources":["../../../../src/tests/exception/controllers/exception.controller.ts"],"names":[],"mappings":";;;;AAAA,kDAAwD;AACxD,oDAA2C;AAC3C,gDAAqD;AACrD,8CAAsD;AAEtD,2BAAgB,CAAC,cAAc,CAAC,kCAAqB,EAAE,gCAAmB,CAAC,OAAO,EAAE,CAAC,CAAC;AAM/E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAGlB,AAAN,KAAK,CAAC,WAAW;QAEvB,MAAM,IAAI,kCAAqB,EAAE,CAAC;IACnC,CAAC;CACD,CAAA;AAPY,kDAAmB;AAGlB;IAFZ,iBAAI,CAAC,eAAe,CAAC,kCAAqB,EAAE,GAAG,CAAC;IAChD,iBAAI,CAAC,GAAG,CAAC,MAAM,CAAC;;;;sDAIhB;8BANW,mBAAmB;IAJ/B,iBAAI,CAAC,UAAU,CAAC;QAChB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,WAAW;KACjB,CAAC;GACW,mBAAmB,CAO/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/http-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.77",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"start:example": "yarn build:dev --onSuccess \"node dist/example.js\""
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@hg-ts-config/typescript": "0.1.
|
|
21
|
-
"@hg-ts/exception": "0.1.
|
|
22
|
-
"@hg-ts/ioc": "0.1.
|
|
23
|
-
"@hg-ts/linter": "0.1.
|
|
24
|
-
"@hg-ts/logger": "0.1.
|
|
25
|
-
"@hg-ts/tests": "0.1.
|
|
26
|
-
"@hg-ts/types": "0.1.
|
|
27
|
-
"@hg-ts/validation": "0.1.
|
|
20
|
+
"@hg-ts-config/typescript": "0.1.77",
|
|
21
|
+
"@hg-ts/exception": "0.1.77",
|
|
22
|
+
"@hg-ts/ioc": "0.1.77",
|
|
23
|
+
"@hg-ts/linter": "0.1.77",
|
|
24
|
+
"@hg-ts/logger": "0.1.77",
|
|
25
|
+
"@hg-ts/tests": "0.1.77",
|
|
26
|
+
"@hg-ts/types": "0.1.77",
|
|
27
|
+
"@hg-ts/validation": "0.1.77",
|
|
28
28
|
"@nestjs/platform-fastify": "11.1.0",
|
|
29
29
|
"@types/node": "22.10.6",
|
|
30
30
|
"axios": "1.9.0",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"typescript": "5.7.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@hg-ts/exception": "0.1.
|
|
42
|
-
"@hg-ts/ioc": "0.1.
|
|
43
|
-
"@hg-ts/logger": "0.1.
|
|
44
|
-
"@hg-ts/validation": "0.1.
|
|
41
|
+
"@hg-ts/exception": "0.1.77",
|
|
42
|
+
"@hg-ts/ioc": "0.1.77",
|
|
43
|
+
"@hg-ts/logger": "0.1.77",
|
|
44
|
+
"@hg-ts/validation": "0.1.77",
|
|
45
45
|
"reflect-metadata": "*",
|
|
46
46
|
"rxjs": "*",
|
|
47
47
|
"tslib": "*"
|