@pristine-ts/validation 0.0.173 → 0.0.177
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/lib/cjs/{enrichers/body-validation.request-enricher.js → interceptors/body-validation.request-interceptor.js} +8 -8
- package/dist/lib/cjs/interceptors/body-validation.request-interceptor.js.map +1 -0
- package/dist/lib/cjs/{enrichers/enrichers.js → interceptors/interceptors.js} +2 -2
- package/dist/lib/cjs/interceptors/interceptors.js.map +1 -0
- package/dist/lib/cjs/validation.module.js +1 -1
- package/dist/lib/cjs/validation.module.js.map +1 -1
- package/dist/lib/esm/{enrichers/body-validation.request-enricher.js → interceptors/body-validation.request-interceptor.js} +7 -7
- package/dist/lib/esm/interceptors/body-validation.request-interceptor.js.map +1 -0
- package/dist/lib/esm/interceptors/interceptors.js +2 -0
- package/dist/lib/esm/interceptors/interceptors.js.map +1 -0
- package/dist/lib/esm/validation.module.js +1 -1
- package/dist/lib/esm/validation.module.js.map +1 -1
- package/dist/types/interceptors/body-validation.request-interceptor.d.ts +8 -0
- package/dist/types/interceptors/interceptors.d.ts +1 -0
- package/dist/types/validation.module.d.ts +1 -1
- package/package.json +5 -5
- package/dist/lib/cjs/enrichers/body-validation.request-enricher.js.map +0 -1
- package/dist/lib/cjs/enrichers/enrichers.js.map +0 -1
- package/dist/lib/esm/enrichers/body-validation.request-enricher.js.map +0 -1
- package/dist/lib/esm/enrichers/enrichers.js +0 -2
- package/dist/lib/esm/enrichers/enrichers.js.map +0 -1
- package/dist/types/enrichers/body-validation.request-enricher.d.ts +0 -7
- package/dist/types/enrichers/enrichers.d.ts +0 -1
|
@@ -21,18 +21,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.BodyValidationRequestInterceptor = void 0;
|
|
25
25
|
const class_validator_1 = require("class-validator");
|
|
26
26
|
const networking_1 = require("@pristine-ts/networking");
|
|
27
27
|
const common_1 = require("@pristine-ts/common");
|
|
28
28
|
const validation_module_keyname_1 = require("../validation.module.keyname");
|
|
29
29
|
const tsyringe_1 = require("tsyringe");
|
|
30
30
|
const class_transformer_1 = require("class-transformer");
|
|
31
|
-
let
|
|
31
|
+
let BodyValidationRequestInterceptor = class BodyValidationRequestInterceptor {
|
|
32
32
|
constructor(loghandler) {
|
|
33
33
|
this.loghandler = loghandler;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
interceptRequest(request, methodNode) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
if (methodNode.route.context.bodyValidator === undefined || methodNode.route.context.bodyValidator.classType === undefined) {
|
|
38
38
|
return request;
|
|
@@ -52,12 +52,12 @@ let BodyValidationRequestEnricher = class BodyValidationRequestEnricher {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
BodyValidationRequestInterceptor = __decorate([
|
|
56
56
|
common_1.moduleScoped(validation_module_keyname_1.ValidationModuleKeyname),
|
|
57
|
-
common_1.tag(common_1.ServiceDefinitionTagEnum.
|
|
57
|
+
common_1.tag(common_1.ServiceDefinitionTagEnum.RequestInterceptor),
|
|
58
58
|
tsyringe_1.injectable(),
|
|
59
59
|
__param(0, tsyringe_1.inject("LogHandlerInterface")),
|
|
60
60
|
__metadata("design:paramtypes", [Object])
|
|
61
|
-
],
|
|
62
|
-
exports.
|
|
63
|
-
//# sourceMappingURL=body-validation.request-
|
|
61
|
+
], BodyValidationRequestInterceptor);
|
|
62
|
+
exports.BodyValidationRequestInterceptor = BodyValidationRequestInterceptor;
|
|
63
|
+
//# sourceMappingURL=body-validation.request-interceptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-validation.request-interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/body-validation.request-interceptor.ts"],"names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Star = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./body-validation.request-
|
|
14
|
-
//# sourceMappingURL=
|
|
13
|
+
__exportStar(require("./body-validation.request-interceptor"), exports);
|
|
14
|
+
//# sourceMappingURL=interceptors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interceptors.js","sourceRoot":"","sources":["../../../../src/interceptors/interceptors.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAsD"}
|
|
@@ -15,7 +15,7 @@ const validation_module_keyname_1 = require("./validation.module.keyname");
|
|
|
15
15
|
const networking_1 = require("@pristine-ts/networking");
|
|
16
16
|
const core_1 = require("@pristine-ts/core");
|
|
17
17
|
__exportStar(require("./decorators/decorators"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./interceptors/interceptors"), exports);
|
|
19
19
|
__exportStar(require("./validation.module.keyname"), exports);
|
|
20
20
|
exports.ValidationModule = {
|
|
21
21
|
keyname: validation_module_keyname_1.ValidationModuleKeyname,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.module.js","sourceRoot":"","sources":["../../../src/validation.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,2EAAoE;AACpE,wDAAyD;AACzD,4CAA6C;AAE7C,0DAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"validation.module.js","sourceRoot":"","sources":["../../../src/validation.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,2EAAoE;AACpE,wDAAyD;AACzD,4CAA6C;AAE7C,0DAAwC;AACxC,8DAA4C;AAE5C,8DAA4C;AAE/B,QAAA,gBAAgB,GAAoB;IAC7C,OAAO,EAAE,mDAAuB;IAChC,aAAa,EAAE;QACX,iBAAU;QACV,6BAAgB;KACnB;IACD,qBAAqB,EAAE,EACtB;CACJ,CAAA"}
|
|
@@ -25,11 +25,11 @@ import { moduleScoped, ServiceDefinitionTagEnum, tag } from "@pristine-ts/common
|
|
|
25
25
|
import { ValidationModuleKeyname } from "../validation.module.keyname";
|
|
26
26
|
import { injectable, inject } from "tsyringe";
|
|
27
27
|
import { plainToClass } from 'class-transformer';
|
|
28
|
-
let
|
|
28
|
+
let BodyValidationRequestInterceptor = class BodyValidationRequestInterceptor {
|
|
29
29
|
constructor(loghandler) {
|
|
30
30
|
this.loghandler = loghandler;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
interceptRequest(request, methodNode) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
if (methodNode.route.context.bodyValidator === undefined || methodNode.route.context.bodyValidator.classType === undefined) {
|
|
35
35
|
return request;
|
|
@@ -49,12 +49,12 @@ let BodyValidationRequestEnricher = class BodyValidationRequestEnricher {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
BodyValidationRequestInterceptor = __decorate([
|
|
53
53
|
moduleScoped(ValidationModuleKeyname),
|
|
54
|
-
tag(ServiceDefinitionTagEnum.
|
|
54
|
+
tag(ServiceDefinitionTagEnum.RequestInterceptor),
|
|
55
55
|
injectable(),
|
|
56
56
|
__param(0, inject("LogHandlerInterface")),
|
|
57
57
|
__metadata("design:paramtypes", [Object])
|
|
58
|
-
],
|
|
59
|
-
export {
|
|
60
|
-
//# sourceMappingURL=body-validation.request-
|
|
58
|
+
], BodyValidationRequestInterceptor);
|
|
59
|
+
export { BodyValidationRequestInterceptor };
|
|
60
|
+
//# sourceMappingURL=body-validation.request-interceptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-validation.request-interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/body-validation.request-interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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gC;IAH5C,YAAY,CAAC,uBAAuB,CAAC;IACrC,GAAG,CAAC,wBAAwB,CAAC,kBAAkB,CAAC;IAChD,UAAU,EAAE;IAEI,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;;GADjC,gCAAgC,CA0B5C;SA1BY,gCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interceptors.js","sourceRoot":"","sources":["../../../../src/interceptors/interceptors.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { ValidationModuleKeyname } from "./validation.module.keyname";
|
|
|
2
2
|
import { NetworkingModule } from "@pristine-ts/networking";
|
|
3
3
|
import { CoreModule } from "@pristine-ts/core";
|
|
4
4
|
export * from "./decorators/decorators";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./interceptors/interceptors";
|
|
6
6
|
export * from "./validation.module.keyname";
|
|
7
7
|
export const ValidationModule = {
|
|
8
8
|
keyname: ValidationModuleKeyname,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.module.js","sourceRoot":"","sources":["../../../src/validation.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,
|
|
1
|
+
{"version":3,"file":"validation.module.js","sourceRoot":"","sources":["../../../src/validation.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAE5C,cAAc,6BAA6B,CAAC;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAoB;IAC7C,OAAO,EAAE,uBAAuB;IAChC,aAAa,EAAE;QACX,UAAU;QACV,gBAAgB;KACnB;IACD,qBAAqB,EAAE,EACtB;CACJ,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RequestInterceptorInterface, MethodRouterNode } from "@pristine-ts/networking";
|
|
2
|
+
import { Request } from "@pristine-ts/common";
|
|
3
|
+
import { LogHandlerInterface } from "@pristine-ts/logging";
|
|
4
|
+
export declare class BodyValidationRequestInterceptor implements RequestInterceptorInterface {
|
|
5
|
+
private readonly loghandler;
|
|
6
|
+
constructor(loghandler: LogHandlerInterface);
|
|
7
|
+
interceptRequest(request: Request, methodNode: MethodRouterNode): Promise<Request>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./body-validation.request-interceptor";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleInterface } from "@pristine-ts/common";
|
|
2
2
|
export * from "./decorators/decorators";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./interceptors/interceptors";
|
|
4
4
|
export * from "./validation.module.keyname";
|
|
5
5
|
export declare const ValidationModule: ModuleInterface;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/validation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.177",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/validation.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/validation.module.js",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"test": "jest"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@pristine-ts/common": "^0.0.
|
|
15
|
-
"@pristine-ts/core": "^0.0.
|
|
16
|
-
"@pristine-ts/networking": "^0.0.
|
|
14
|
+
"@pristine-ts/common": "^0.0.177",
|
|
15
|
+
"@pristine-ts/core": "^0.0.177",
|
|
16
|
+
"@pristine-ts/networking": "^0.0.177",
|
|
17
17
|
"class-transformer": "^0.4.0",
|
|
18
18
|
"class-validator": "^0.13.1"
|
|
19
19
|
},
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"src/*.{js,ts}"
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "814886bbf3c28c5588cbd5f7bb9a2d5e323d6850"
|
|
63
63
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"body-validation.request-enricher.js","sourceRoot":"","sources":["../../../../src/enrichers/body-validation.request-enricher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAyC;AACzC,wDAA4D;AAC5D,gDAAgF;AAChF,4EAAqE;AACrE,uCAA4C;AAC5C,yDAAiD;AAMjD,IAAa,6BAA6B,GAA1C,MAAa,6BAA6B;IACtC,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAEK,aAAa,CAAC,OAAgB,EAAE,UAA4B;;YAC9D,IAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,KAAK,SAAS,EAAE;gBACvH,OAAO,OAAO,CAAC;aAClB;YAED,8CAA8C;YAC9C,MAAM,UAAU,GAAG,gCAAY,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;YAEhG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,+BAA+B,EAAE;gBACnD,OAAO;gBACP,UAAU;gBACV,YAAY,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO;aACzC,EAAE,mDAAuB,CAAC,CAAA;YAE3B,MAAM,MAAM,GAAG,MAAM,0BAAQ,CAAC,UAAU,CAAC,CAAC;YAE1C,IAAG,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE;gBACnB,OAAO,OAAO,CAAC;aAClB;YAED,MAAM,IAAI,gCAAmB,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;QAC9D,CAAC;KAAA;CACJ,CAAA;AA1BY,6BAA6B;IAHzC,qBAAY,CAAC,mDAAuB,CAAC;IACrC,YAAG,CAAC,iCAAwB,CAAC,qBAAqB,CAAC;IACnD,qBAAU,EAAE;IAEI,WAAA,iBAAM,CAAC,qBAAqB,CAAC,CAAA;;GADjC,6BAA6B,CA0BzC;AA1BY,sEAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enrichers.js","sourceRoot":"","sources":["../../../../src/enrichers/enrichers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAAmD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"body-validation.request-enricher.js","sourceRoot":"","sources":["../../../../src/enrichers/body-validation.request-enricher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAE,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMjD,IAAa,6BAA6B,GAA1C,MAAa,6BAA6B;IACtC,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAEK,aAAa,CAAC,OAAgB,EAAE,UAA4B;;YAC9D,IAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,KAAK,SAAS,EAAE;gBACvH,OAAO,OAAO,CAAC;aAClB;YAED,8CAA8C;YAC9C,MAAM,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;YAEhG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,+BAA+B,EAAE;gBACnD,OAAO;gBACP,UAAU;gBACV,YAAY,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO;aACzC,EAAE,uBAAuB,CAAC,CAAA;YAE3B,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,CAAC;YAE1C,IAAG,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE;gBACnB,OAAO,OAAO,CAAC;aAClB;YAED,MAAM,IAAI,mBAAmB,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;QAC9D,CAAC;KAAA;CACJ,CAAA;AA1BY,6BAA6B;IAHzC,YAAY,CAAC,uBAAuB,CAAC;IACrC,GAAG,CAAC,wBAAwB,CAAC,qBAAqB,CAAC;IACnD,UAAU,EAAE;IAEI,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;;GADjC,6BAA6B,CA0BzC;SA1BY,6BAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enrichers.js","sourceRoot":"","sources":["../../../../src/enrichers/enrichers.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RouterRequestEnricherInterface, Request, MethodRouterNode } from "@pristine-ts/networking";
|
|
2
|
-
import { LogHandlerInterface } from "@pristine-ts/logging";
|
|
3
|
-
export declare class BodyValidationRequestEnricher implements RouterRequestEnricherInterface {
|
|
4
|
-
private readonly loghandler;
|
|
5
|
-
constructor(loghandler: LogHandlerInterface);
|
|
6
|
-
enrichRequest(request: Request, methodNode: MethodRouterNode): Promise<Request>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./body-validation.request-enricher";
|