@nestia/core 3.0.5 → 3.1.0-dev.20240429
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/lib/adaptors/WebSocketAdaptor.d.ts +21 -0
- package/lib/adaptors/WebSocketAdaptor.js +275 -0
- package/lib/adaptors/WebSocketAdaptor.js.map +1 -0
- package/lib/decorators/DynamicModule.js +12 -59
- package/lib/decorators/DynamicModule.js.map +1 -1
- package/lib/decorators/EncryptedBody.js +36 -73
- package/lib/decorators/EncryptedBody.js.map +1 -1
- package/lib/decorators/EncryptedController.js +2 -2
- package/lib/decorators/EncryptedController.js.map +1 -1
- package/lib/decorators/EncryptedModule.js +24 -107
- package/lib/decorators/EncryptedModule.js.map +1 -1
- package/lib/decorators/EncryptedRoute.js +43 -119
- package/lib/decorators/EncryptedRoute.js.map +1 -1
- package/lib/decorators/PlainBody.js +24 -61
- package/lib/decorators/PlainBody.js.map +1 -1
- package/lib/decorators/SwaggerCustomizer.js +2 -2
- package/lib/decorators/SwaggerCustomizer.js.map +1 -1
- package/lib/decorators/TypedBody.js +12 -14
- package/lib/decorators/TypedBody.js.map +1 -1
- package/lib/decorators/TypedException.js +5 -5
- package/lib/decorators/TypedException.js.map +1 -1
- package/lib/decorators/TypedFormData.js +88 -291
- package/lib/decorators/TypedFormData.js.map +1 -1
- package/lib/decorators/TypedHeaders.js +6 -6
- package/lib/decorators/TypedHeaders.js.map +1 -1
- package/lib/decorators/TypedParam.d.ts +5 -6
- package/lib/decorators/TypedParam.js +14 -15
- package/lib/decorators/TypedParam.js.map +1 -1
- package/lib/decorators/TypedQuery.d.ts +2 -2
- package/lib/decorators/TypedQuery.js +52 -129
- package/lib/decorators/TypedQuery.js.map +1 -1
- package/lib/decorators/TypedRoute.js +31 -107
- package/lib/decorators/TypedRoute.js.map +1 -1
- package/lib/decorators/WebSocketRoute.d.ts +120 -0
- package/lib/decorators/WebSocketRoute.js +202 -0
- package/lib/decorators/WebSocketRoute.js.map +1 -0
- package/lib/decorators/internal/IWebSocketRouteReflect.d.ts +25 -0
- package/lib/decorators/internal/IWebSocketRouteReflect.js +3 -0
- package/lib/decorators/internal/IWebSocketRouteReflect.js.map +1 -0
- package/lib/decorators/internal/NoTransformConfigureError.js +1 -1
- package/lib/decorators/internal/NoTransformConfigureError.js.map +1 -1
- package/lib/decorators/internal/get_path_and_querify.js +67 -131
- package/lib/decorators/internal/get_path_and_querify.js.map +1 -1
- package/lib/decorators/internal/get_path_and_stringify.js +57 -71
- package/lib/decorators/internal/get_path_and_stringify.js.map +1 -1
- package/lib/decorators/internal/get_text_body.js +7 -46
- package/lib/decorators/internal/get_text_body.js.map +1 -1
- package/lib/decorators/internal/headers_to_object.js +3 -42
- package/lib/decorators/internal/headers_to_object.js.map +1 -1
- package/lib/decorators/internal/load_controller.js +29 -106
- package/lib/decorators/internal/load_controller.js.map +1 -1
- package/lib/decorators/internal/route_error.js +15 -65
- package/lib/decorators/internal/route_error.js.map +1 -1
- package/lib/decorators/internal/validate_request_body.js +44 -54
- package/lib/decorators/internal/validate_request_body.js.map +1 -1
- package/lib/decorators/internal/validate_request_form_data.js +36 -44
- package/lib/decorators/internal/validate_request_form_data.js.map +1 -1
- package/lib/decorators/internal/validate_request_headers.js +36 -44
- package/lib/decorators/internal/validate_request_headers.js.map +1 -1
- package/lib/decorators/internal/validate_request_query.js +36 -44
- package/lib/decorators/internal/validate_request_query.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/module.d.ts +10 -9
- package/lib/module.js +10 -9
- package/lib/module.js.map +1 -1
- package/lib/programmers/PlainBodyProgrammer.js +29 -44
- package/lib/programmers/PlainBodyProgrammer.js.map +1 -1
- package/lib/programmers/TypedBodyProgrammer.js +57 -82
- package/lib/programmers/TypedBodyProgrammer.js.map +1 -1
- package/lib/programmers/TypedExceptionProgrammer.js +51 -54
- package/lib/programmers/TypedExceptionProgrammer.js.map +1 -1
- package/lib/programmers/TypedFormDataBodyProgrammer.js +50 -73
- package/lib/programmers/TypedFormDataBodyProgrammer.js.map +1 -1
- package/lib/programmers/TypedHeadersProgrammer.js +24 -43
- package/lib/programmers/TypedHeadersProgrammer.js.map +1 -1
- package/lib/programmers/TypedParamProgrammer.js +11 -28
- package/lib/programmers/TypedParamProgrammer.js.map +1 -1
- package/lib/programmers/TypedQueryBodyProgrammer.js +24 -43
- package/lib/programmers/TypedQueryBodyProgrammer.js.map +1 -1
- package/lib/programmers/TypedQueryProgrammer.js +24 -43
- package/lib/programmers/TypedQueryProgrammer.js.map +1 -1
- package/lib/programmers/TypedQueryRouteProgrammer.js +22 -39
- package/lib/programmers/TypedQueryRouteProgrammer.js.map +1 -1
- package/lib/programmers/TypedRouteProgrammer.js +22 -39
- package/lib/programmers/TypedRouteProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpAssertQuerifyProgrammer.js +12 -29
- package/lib/programmers/http/HttpAssertQuerifyProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpIsQuerifyProgrammer.js +10 -27
- package/lib/programmers/http/HttpIsQuerifyProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpQuerifyProgrammer.js +33 -69
- package/lib/programmers/http/HttpQuerifyProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpValidateQuerifyProgrammer.js +11 -28
- package/lib/programmers/http/HttpValidateQuerifyProgrammer.js.map +1 -1
- package/lib/programmers/internal/CoreMetadataUtil.js +12 -37
- package/lib/programmers/internal/CoreMetadataUtil.js.map +1 -1
- package/lib/transform.js +8 -8
- package/lib/transform.js.map +1 -1
- package/lib/transformers/FileTransformer.js +35 -66
- package/lib/transformers/FileTransformer.js.map +1 -1
- package/lib/transformers/MethodTransformer.js +39 -50
- package/lib/transformers/MethodTransformer.js.map +1 -1
- package/lib/transformers/NodeTransformer.js +8 -12
- package/lib/transformers/NodeTransformer.js.map +1 -1
- package/lib/transformers/ParameterDecoratorTransformer.js +75 -90
- package/lib/transformers/ParameterDecoratorTransformer.js.map +1 -1
- package/lib/transformers/ParameterTransformer.js +18 -24
- package/lib/transformers/ParameterTransformer.js.map +1 -1
- package/lib/transformers/TypedExceptionTransformer.js +24 -27
- package/lib/transformers/TypedExceptionTransformer.js.map +1 -1
- package/lib/transformers/TypedRouteTransformer.js +50 -88
- package/lib/transformers/TypedRouteTransformer.js.map +1 -1
- package/lib/transformers/WebSocketRouteTransformer.d.ts +6 -0
- package/lib/transformers/WebSocketRouteTransformer.js +72 -0
- package/lib/transformers/WebSocketRouteTransformer.js.map +1 -0
- package/lib/utils/ArrayUtil.d.ts +3 -0
- package/lib/utils/ArrayUtil.js +11 -0
- package/lib/utils/ArrayUtil.js.map +1 -0
- package/lib/utils/ExceptionManager.js +9 -31
- package/lib/utils/ExceptionManager.js.map +1 -1
- package/lib/utils/Singleton.js +6 -7
- package/lib/utils/Singleton.js.map +1 -1
- package/lib/utils/SourceFinder.js +38 -215
- package/lib/utils/SourceFinder.js.map +1 -1
- package/lib/utils/VersioningStrategy.d.ts +9 -0
- package/lib/utils/VersioningStrategy.js +17 -0
- package/lib/utils/VersioningStrategy.js.map +1 -0
- package/package.json +10 -6
- package/src/adaptors/WebSocketAdaptor.ts +416 -0
- package/src/decorators/TypedParam.ts +5 -6
- package/src/decorators/TypedQuery.ts +251 -251
- package/src/decorators/WebSocketRoute.ts +249 -0
- package/src/decorators/internal/IWebSocketRouteReflect.ts +23 -0
- package/src/decorators/internal/validate_request_body.ts +72 -72
- package/src/decorators/internal/validate_request_form_data.ts +75 -75
- package/src/decorators/internal/validate_request_headers.ts +83 -83
- package/src/decorators/internal/validate_request_query.ts +71 -71
- package/src/module.ts +20 -16
- package/src/transformers/MethodTransformer.ts +7 -4
- package/src/transformers/ParameterDecoratorTransformer.ts +129 -120
- package/src/transformers/TypedExceptionTransformer.ts +9 -13
- package/src/transformers/TypedRouteTransformer.ts +1 -8
- package/src/transformers/WebSocketRouteTransformer.ts +103 -0
- package/src/typings/get-function-location.d.ts +7 -0
- package/src/utils/ArrayUtil.ts +7 -0
- package/src/utils/VersioningStrategy.ts +27 -0
|
@@ -4,79 +4,69 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.validate_request_body = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const common_1 = require("@nestjs/common");
|
|
8
|
+
const typia_1 = __importDefault(require("typia"));
|
|
9
|
+
const NoTransformConfigureError_1 = require("./NoTransformConfigureError");
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return function () {
|
|
24
|
-
return new Error("Error on nestia.core.".concat(method, "(): invalid typed validator."));
|
|
25
|
-
};
|
|
26
|
-
};
|
|
13
|
+
const validate_request_body = (method) => (validator) => {
|
|
14
|
+
if (!validator)
|
|
15
|
+
throw (0, NoTransformConfigureError_1.NoTransformConfigureError)(method);
|
|
16
|
+
else if (validator.type === "assert")
|
|
17
|
+
return assert(validator.assert);
|
|
18
|
+
else if (validator.type === "is")
|
|
19
|
+
return is(validator.is);
|
|
20
|
+
else if (validator.type === "validate")
|
|
21
|
+
return validate(validator.validate);
|
|
22
|
+
return () => new Error(`Error on nestia.core.${method}(): invalid typed validator.`);
|
|
27
23
|
};
|
|
28
24
|
exports.validate_request_body = validate_request_body;
|
|
29
25
|
/**
|
|
30
26
|
* @internal
|
|
31
27
|
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
throw exp;
|
|
28
|
+
const assert = (closure) => (input) => {
|
|
29
|
+
try {
|
|
30
|
+
closure(input);
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
catch (exp) {
|
|
34
|
+
if ((input => {
|
|
35
|
+
const $io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack);
|
|
36
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
37
|
+
})(exp)) {
|
|
38
|
+
return new common_1.BadRequestException({
|
|
39
|
+
path: exp.path,
|
|
40
|
+
reason: exp.message,
|
|
41
|
+
expected: exp.expected,
|
|
42
|
+
value: exp.value,
|
|
43
|
+
message: MESSAGE,
|
|
44
|
+
});
|
|
52
45
|
}
|
|
53
|
-
|
|
46
|
+
throw exp;
|
|
47
|
+
}
|
|
54
48
|
};
|
|
55
49
|
/**
|
|
56
50
|
* @internal
|
|
57
51
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return success ? null : new common_1.BadRequestException(MESSAGE);
|
|
62
|
-
};
|
|
52
|
+
const is = (closure) => (input) => {
|
|
53
|
+
const success = closure(input);
|
|
54
|
+
return success ? null : new common_1.BadRequestException(MESSAGE);
|
|
63
55
|
};
|
|
64
56
|
/**
|
|
65
57
|
* @internal
|
|
66
58
|
*/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
});
|
|
76
|
-
};
|
|
59
|
+
const validate = (closure) => (input) => {
|
|
60
|
+
const result = closure(input);
|
|
61
|
+
return result.success
|
|
62
|
+
? null
|
|
63
|
+
: new common_1.BadRequestException({
|
|
64
|
+
errors: result.errors,
|
|
65
|
+
message: MESSAGE,
|
|
66
|
+
});
|
|
77
67
|
};
|
|
78
68
|
/**
|
|
79
69
|
* @internal
|
|
80
70
|
*/
|
|
81
|
-
|
|
71
|
+
const MESSAGE = "Request body data is not following the promised type.";
|
|
82
72
|
//# sourceMappingURL=validate_request_body.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate_request_body.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_body.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"validate_request_body.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_body.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AACrD,kDAA2D;AAG3D,2EAAwE;AAExE;;GAEG;AACI,MAAM,qBAAqB,GAChC,CAAC,MAAc,EAAE,EAAE,CACnB,CAAI,SAAoC,EAAE,EAAE;IAC1C,IAAI,CAAC,SAAS;QAAE,MAAM,IAAA,qDAAyB,EAAC,MAAM,CAAC,CAAC;SACnD,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACjE,IAAI,SAAS,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACrD,IAAI,SAAS,CAAC,IAAI,KAAK,UAAU;QAAE,OAAO,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5E,OAAO,GAAG,EAAE,CACV,IAAI,KAAK,CAAC,wBAAwB,MAAM,8BAA8B,CAAC,CAAC;AAC5E,CAAC,CAAC;AATS,QAAA,qBAAqB,yBAS9B;AAEJ;;GAEG;AACH,MAAM,MAAM,GACV,CAAI,OAAuB,EAAE,EAAE,CAC/B,CAAC,KAAQ,EAAE,EAAE;IACX,IAAI,CAAC;QACH,OAAO,CAAC,KAAK,CAAC,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb;;;WAA6B,GAAG,GAAG,CAAC;YAClC,OAAO,IAAI,4BAAmB,CAAC;gBAC7B,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,OAAO,EAAE,OAAO;aACjB,CAAC,CAAC;QACL,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,EAAE,GACN,CAAI,OAA6B,EAAE,EAAE,CACrC,CAAC,KAAQ,EAAE,EAAE;IACX,MAAM,OAAO,GAAY,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,4BAAmB,CAAC,OAAO,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,QAAQ,GACZ,CAAI,OAAoC,EAAE,EAAE,CAC5C,CAAC,KAAQ,EAAE,EAAE;IACX,MAAM,MAAM,GAAmB,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,MAAM,CAAC,OAAO;QACnB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,IAAI,4BAAmB,CAAC;YACtB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;AACT,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,OAAO,GAAG,uDAAuD,CAAC"}
|
|
@@ -4,76 +4,68 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.validate_request_form_data = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const common_1 = require("@nestjs/common");
|
|
8
|
+
const typia_1 = __importDefault(require("typia"));
|
|
9
|
+
const NoTransformConfigureError_1 = require("./NoTransformConfigureError");
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
const validate_request_form_data = (props) => {
|
|
14
14
|
if (!props)
|
|
15
|
-
|
|
15
|
+
throw (0, NoTransformConfigureError_1.NoTransformConfigureError)("TypedFormData.Bpdu");
|
|
16
16
|
else if (props.validator.type === "assert")
|
|
17
17
|
return assert(props.validator.assert);
|
|
18
18
|
else if (props.validator.type === "is")
|
|
19
19
|
return is(props.validator.is);
|
|
20
20
|
else if (props.validator.type === "validate")
|
|
21
21
|
return validate(props.validator.validate);
|
|
22
|
-
return
|
|
23
|
-
return new Error("Error on nestia.core.TypedFormData.Body(): invalid typed validator.");
|
|
24
|
-
};
|
|
22
|
+
return () => new Error(`Error on nestia.core.TypedFormData.Body(): invalid typed validator.`);
|
|
25
23
|
};
|
|
26
24
|
exports.validate_request_form_data = validate_request_form_data;
|
|
27
25
|
/**
|
|
28
26
|
* @internal
|
|
29
27
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
throw exp;
|
|
28
|
+
const assert = (closure) => (input) => {
|
|
29
|
+
try {
|
|
30
|
+
return closure(input);
|
|
31
|
+
}
|
|
32
|
+
catch (exp) {
|
|
33
|
+
if ((input => {
|
|
34
|
+
const $io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack);
|
|
35
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
36
|
+
})(exp)) {
|
|
37
|
+
return new common_1.BadRequestException({
|
|
38
|
+
path: exp.path,
|
|
39
|
+
reason: exp.message,
|
|
40
|
+
expected: exp.expected,
|
|
41
|
+
value: exp.value,
|
|
42
|
+
message: MESSAGE,
|
|
43
|
+
});
|
|
49
44
|
}
|
|
50
|
-
|
|
45
|
+
throw exp;
|
|
46
|
+
}
|
|
51
47
|
};
|
|
52
48
|
/**
|
|
53
49
|
* @internal
|
|
54
50
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return result !== null ? result : new common_1.BadRequestException(MESSAGE);
|
|
59
|
-
};
|
|
51
|
+
const is = (closure) => (input) => {
|
|
52
|
+
const result = closure(input);
|
|
53
|
+
return result !== null ? result : new common_1.BadRequestException(MESSAGE);
|
|
60
54
|
};
|
|
61
55
|
/**
|
|
62
56
|
* @internal
|
|
63
57
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
};
|
|
58
|
+
const validate = (closure) => (input) => {
|
|
59
|
+
const result = closure(input);
|
|
60
|
+
return result.success
|
|
61
|
+
? result.data
|
|
62
|
+
: new common_1.BadRequestException({
|
|
63
|
+
errors: result.errors,
|
|
64
|
+
message: MESSAGE,
|
|
65
|
+
});
|
|
74
66
|
};
|
|
75
67
|
/**
|
|
76
68
|
* @internal
|
|
77
69
|
*/
|
|
78
|
-
|
|
70
|
+
const MESSAGE = "Request multipart data is not following the promised type.";
|
|
79
71
|
//# sourceMappingURL=validate_request_form_data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate_request_form_data.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_form_data.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"validate_request_form_data.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_form_data.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AACrD,kDAA2D;AAG3D,2EAAwE;AAExE;;GAEG;AACI,MAAM,0BAA0B,GAAG,CACxC,KAAgC,EAChC,EAAE;IACF,IAAI,CAAC,KAAK;QAAE,MAAM,IAAA,qDAAyB,EAAC,oBAAoB,CAAC,CAAC;SAC7D,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,QAAQ;QACxC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACnC,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACjE,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,UAAU;QAC1C,OAAO,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO,GAAG,EAAE,CACV,IAAI,KAAK,CACP,qEAAqE,CACtE,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,0BAA0B,8BAarC;AAEF;;GAEG;AACH,MAAM,MAAM,GACV,CAAI,OAA+B,EAAE,EAAE,CACvC,CAAC,KAAe,EAA2B,EAAE;IAC3C,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb;;;WAA6B,GAAG,GAAG,CAAC;YAClC,OAAO,IAAI,4BAAmB,CAAC;gBAC7B,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,OAAO,EAAE,OAAO;aACjB,CAAC,CAAC;QACL,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,EAAE,GACN,CAAI,OAAsC,EAAE,EAAE,CAC9C,CAAC,KAAe,EAA2B,EAAE;IAC3C,MAAM,MAAM,GAAa,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,4BAAmB,CAAC,OAAO,CAAC,CAAC;AACrE,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,QAAQ,GACZ,CAAI,OAA4C,EAAE,EAAE,CACpD,CAAC,KAAe,EAA2B,EAAE;IAC3C,MAAM,MAAM,GAAmB,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,MAAM,CAAC,OAAO;QACnB,CAAC,CAAC,MAAM,CAAC,IAAI;QACb,CAAC,CAAC,IAAI,4BAAmB,CAAC;YACtB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;AACT,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,OAAO,GAAG,4DAA4D,CAAC"}
|
|
@@ -4,76 +4,68 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.validate_request_headers = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const common_1 = require("@nestjs/common");
|
|
8
|
+
const typia_1 = __importDefault(require("typia"));
|
|
9
|
+
const NoTransformConfigureError_1 = require("./NoTransformConfigureError");
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
const validate_request_headers = (validator) => {
|
|
14
14
|
if (!validator)
|
|
15
|
-
|
|
15
|
+
throw (0, NoTransformConfigureError_1.NoTransformConfigureError)("TypedHeaders");
|
|
16
16
|
else if (validator.type === "assert")
|
|
17
17
|
return assert(validator.assert);
|
|
18
18
|
else if (validator.type === "is")
|
|
19
19
|
return is(validator.is);
|
|
20
20
|
else if (validator.type === "validate")
|
|
21
21
|
return validate(validator.validate);
|
|
22
|
-
return
|
|
23
|
-
return new Error("Error on nestia.core.TypedHeaders(): invalid typed validator.");
|
|
24
|
-
};
|
|
22
|
+
return () => new Error(`Error on nestia.core.TypedHeaders(): invalid typed validator.`);
|
|
25
23
|
};
|
|
26
24
|
exports.validate_request_headers = validate_request_headers;
|
|
27
25
|
/**
|
|
28
26
|
* @internal
|
|
29
27
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
throw exp;
|
|
28
|
+
const assert = (closure) => (input) => {
|
|
29
|
+
try {
|
|
30
|
+
return closure(input);
|
|
31
|
+
}
|
|
32
|
+
catch (exp) {
|
|
33
|
+
if ((input => {
|
|
34
|
+
const $io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack);
|
|
35
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
36
|
+
})(exp)) {
|
|
37
|
+
return new common_1.BadRequestException({
|
|
38
|
+
path: exp.path,
|
|
39
|
+
reason: exp.message,
|
|
40
|
+
expected: exp.expected,
|
|
41
|
+
value: exp.value,
|
|
42
|
+
message: MESSAGE,
|
|
43
|
+
});
|
|
49
44
|
}
|
|
50
|
-
|
|
45
|
+
throw exp;
|
|
46
|
+
}
|
|
51
47
|
};
|
|
52
48
|
/**
|
|
53
49
|
* @internal
|
|
54
50
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return result !== null ? result : new common_1.BadRequestException(MESSAGE);
|
|
59
|
-
};
|
|
51
|
+
const is = (closure) => (input) => {
|
|
52
|
+
const result = closure(input);
|
|
53
|
+
return result !== null ? result : new common_1.BadRequestException(MESSAGE);
|
|
60
54
|
};
|
|
61
55
|
/**
|
|
62
56
|
* @internal
|
|
63
57
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
};
|
|
58
|
+
const validate = (closure) => (input) => {
|
|
59
|
+
const result = closure(input);
|
|
60
|
+
return result.success
|
|
61
|
+
? result.data
|
|
62
|
+
: new common_1.BadRequestException({
|
|
63
|
+
errors: result.errors,
|
|
64
|
+
message: MESSAGE,
|
|
65
|
+
});
|
|
74
66
|
};
|
|
75
67
|
/**
|
|
76
68
|
* @internal
|
|
77
69
|
*/
|
|
78
|
-
|
|
70
|
+
const MESSAGE = "Request headers data is not following the promised type.";
|
|
79
71
|
//# sourceMappingURL=validate_request_headers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate_request_headers.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_headers.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"validate_request_headers.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_headers.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AACrD,kDAA2D;AAG3D,2EAAwE;AAExE;;GAEG;AACI,MAAM,wBAAwB,GAAG,CACtC,SAAuC,EACvC,EAAE;IACF,IAAI,CAAC,SAAS;QAAE,MAAM,IAAA,qDAAyB,EAAC,cAAc,CAAC,CAAC;SAC3D,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACjE,IAAI,SAAS,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACrD,IAAI,SAAS,CAAC,IAAI,KAAK,UAAU;QAAE,OAAO,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5E,OAAO,GAAG,EAAE,CACV,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;AAC/E,CAAC,CAAC;AATW,QAAA,wBAAwB,4BASnC;AAEF;;GAEG;AACH,MAAM,MAAM,GACV,CAAI,OAAoE,EAAE,EAAE,CAC5E,CACE,KAAoD,EAC3B,EAAE;IAC3B,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb;;;WAA6B,GAAG,GAAG,CAAC;YAClC,OAAO,IAAI,4BAAmB,CAAC;gBAC7B,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,OAAO,EAAE,OAAO;aACjB,CAAC,CAAC;QACL,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,EAAE,GACN,CACE,OAA2E,EAC3E,EAAE,CACJ,CACE,KAAoD,EAC3B,EAAE;IAC3B,MAAM,MAAM,GAAa,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,4BAAmB,CAAC,OAAO,CAAC,CAAC;AACrE,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,QAAQ,GACZ,CACE,OAEmB,EACnB,EAAE,CACJ,CACE,KAAoD,EAC3B,EAAE;IAC3B,MAAM,MAAM,GAAmB,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,MAAM,CAAC,OAAO;QACnB,CAAC,CAAC,MAAM,CAAC,IAAI;QACb,CAAC,CAAC,IAAI,4BAAmB,CAAC;YACtB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;AACT,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,OAAO,GAAG,0DAA0D,CAAC"}
|
|
@@ -4,76 +4,68 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.validate_request_query = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const common_1 = require("@nestjs/common");
|
|
8
|
+
const typia_1 = __importDefault(require("typia"));
|
|
9
|
+
const NoTransformConfigureError_1 = require("./NoTransformConfigureError");
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
const validate_request_query = (method) => (validator) => {
|
|
14
14
|
if (!validator)
|
|
15
|
-
|
|
15
|
+
throw (0, NoTransformConfigureError_1.NoTransformConfigureError)(method);
|
|
16
16
|
else if (validator.type === "assert")
|
|
17
17
|
return assert(validator.assert);
|
|
18
18
|
else if (validator.type === "is")
|
|
19
19
|
return is(validator.is);
|
|
20
20
|
else if (validator.type === "validate")
|
|
21
21
|
return validate(validator.validate);
|
|
22
|
-
return
|
|
23
|
-
return new Error("Error on nestia.core.TypedQuery(): invalid typed validator.");
|
|
24
|
-
};
|
|
22
|
+
return () => new Error(`Error on nestia.core.${method}(): invalid typed validator.`);
|
|
25
23
|
};
|
|
26
24
|
exports.validate_request_query = validate_request_query;
|
|
27
25
|
/**
|
|
28
26
|
* @internal
|
|
29
27
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
throw exp;
|
|
28
|
+
const assert = (closure) => (input) => {
|
|
29
|
+
try {
|
|
30
|
+
return closure(input);
|
|
31
|
+
}
|
|
32
|
+
catch (exp) {
|
|
33
|
+
if ((input => {
|
|
34
|
+
const $io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack);
|
|
35
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
36
|
+
})(exp)) {
|
|
37
|
+
return new common_1.BadRequestException({
|
|
38
|
+
path: exp.path,
|
|
39
|
+
reason: exp.message,
|
|
40
|
+
expected: exp.expected,
|
|
41
|
+
value: exp.value,
|
|
42
|
+
message: MESSAGE,
|
|
43
|
+
});
|
|
49
44
|
}
|
|
50
|
-
|
|
45
|
+
throw exp;
|
|
46
|
+
}
|
|
51
47
|
};
|
|
52
48
|
/**
|
|
53
49
|
* @internal
|
|
54
50
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return result !== null ? result : new common_1.BadRequestException(MESSAGE);
|
|
59
|
-
};
|
|
51
|
+
const is = (closure) => (input) => {
|
|
52
|
+
const result = closure(input);
|
|
53
|
+
return result !== null ? result : new common_1.BadRequestException(MESSAGE);
|
|
60
54
|
};
|
|
61
55
|
/**
|
|
62
56
|
* @internal
|
|
63
57
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
};
|
|
58
|
+
const validate = (closure) => (input) => {
|
|
59
|
+
const result = closure(input);
|
|
60
|
+
return result.success
|
|
61
|
+
? result.data
|
|
62
|
+
: new common_1.BadRequestException({
|
|
63
|
+
errors: result.errors,
|
|
64
|
+
message: MESSAGE,
|
|
65
|
+
});
|
|
74
66
|
};
|
|
75
67
|
/**
|
|
76
68
|
* @internal
|
|
77
69
|
*/
|
|
78
|
-
|
|
70
|
+
const MESSAGE = "Request query data is not following the promised type.";
|
|
79
71
|
//# sourceMappingURL=validate_request_query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate_request_query.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_query.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"validate_request_query.js","sourceRoot":"","sources":["../../../src/decorators/internal/validate_request_query.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AACrD,kDAA2D;AAG3D,2EAAwE;AAExE;;GAEG;AACI,MAAM,sBAAsB,GACjC,CAAC,MAAc,EAAE,EAAE,CACnB,CAAI,SAAqC,EAAE,EAAE;IAC3C,IAAI,CAAC,SAAS;QAAE,MAAM,IAAA,qDAAyB,EAAC,MAAM,CAAC,CAAC;SACnD,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACjE,IAAI,SAAS,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACrD,IAAI,SAAS,CAAC,IAAI,KAAK,UAAU;QAAE,OAAO,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5E,OAAO,GAAG,EAAE,CACV,IAAI,KAAK,CAAC,wBAAwB,MAAM,8BAA8B,CAAC,CAAC;AAC5E,CAAC,CAAC;AATS,QAAA,sBAAsB,0BAS/B;AAEJ;;GAEG;AACH,MAAM,MAAM,GACV,CAAI,OAAsC,EAAE,EAAE,CAC9C,CAAC,KAAsB,EAA2B,EAAE;IAClD,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb;;;WAA6B,GAAG,GAAG,CAAC;YAClC,OAAO,IAAI,4BAAmB,CAAC;gBAC7B,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,OAAO,EAAE,OAAO;aACjB,CAAC,CAAC;QACL,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,EAAE,GACN,CAAI,OAA6C,EAAE,EAAE,CACrD,CAAC,KAAsB,EAA2B,EAAE;IAClD,MAAM,MAAM,GAAa,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,4BAAmB,CAAC,OAAO,CAAC,CAAC;AACrE,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,QAAQ,GACZ,CAAI,OAAmD,EAAE,EAAE,CAC3D,CAAC,KAAsB,EAA2B,EAAE;IAClD,MAAM,MAAM,GAAmB,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,MAAM,CAAC,OAAO;QACnB,CAAC,CAAC,MAAM,CAAC,IAAI;QACb,CAAC,CAAC,IAAI,4BAAmB,CAAC;YACtB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;AACT,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,OAAO,GAAG,wDAAwD,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
29
|
+
const core = __importStar(require("./module"));
|
|
30
30
|
__exportStar(require("./module"), exports);
|
|
31
31
|
exports.default = core;
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,2CAAyB;AAEzB,kBAAe,IAAI,CAAC"}
|
package/lib/module.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export * from "./decorators/DynamicModule";
|
|
2
|
-
export * from "./decorators/EncryptedBody";
|
|
3
|
-
export * from "./decorators/EncryptedController";
|
|
4
|
-
export * from "./decorators/EncryptedModule";
|
|
5
|
-
export * from "./decorators/EncryptedRoute";
|
|
6
2
|
export * from "./utils/ExceptionManager";
|
|
7
|
-
export * from "./decorators/
|
|
8
|
-
export * from "./decorators/SwaggerCustomizer";
|
|
3
|
+
export * from "./decorators/TypedRoute";
|
|
9
4
|
export * from "./decorators/TypedBody";
|
|
5
|
+
export * from "./decorators/TypedQuery";
|
|
10
6
|
export * from "./decorators/TypedException";
|
|
11
7
|
export * from "./decorators/TypedHeaders";
|
|
12
8
|
export * from "./decorators/TypedFormData";
|
|
13
9
|
export * from "./decorators/TypedParam";
|
|
14
|
-
export * from "./decorators/
|
|
15
|
-
export * from "./decorators/
|
|
16
|
-
export * from "./
|
|
10
|
+
export * from "./decorators/EncryptedController";
|
|
11
|
+
export * from "./decorators/EncryptedRoute";
|
|
12
|
+
export * from "./decorators/EncryptedBody";
|
|
13
|
+
export * from "./decorators/EncryptedModule";
|
|
14
|
+
export * from "./decorators/PlainBody";
|
|
15
|
+
export * from "./decorators/SwaggerCustomizer";
|
|
16
|
+
export * from "./adaptors/WebSocketAdaptor";
|
|
17
|
+
export * from "./decorators/WebSocketRoute";
|
package/lib/module.js
CHANGED
|
@@ -15,19 +15,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./decorators/DynamicModule"), exports);
|
|
18
|
-
__exportStar(require("./decorators/EncryptedBody"), exports);
|
|
19
|
-
__exportStar(require("./decorators/EncryptedController"), exports);
|
|
20
|
-
__exportStar(require("./decorators/EncryptedModule"), exports);
|
|
21
|
-
__exportStar(require("./decorators/EncryptedRoute"), exports);
|
|
22
18
|
__exportStar(require("./utils/ExceptionManager"), exports);
|
|
23
|
-
__exportStar(require("./decorators/
|
|
24
|
-
__exportStar(require("./decorators/SwaggerCustomizer"), exports);
|
|
19
|
+
__exportStar(require("./decorators/TypedRoute"), exports);
|
|
25
20
|
__exportStar(require("./decorators/TypedBody"), exports);
|
|
21
|
+
__exportStar(require("./decorators/TypedQuery"), exports);
|
|
26
22
|
__exportStar(require("./decorators/TypedException"), exports);
|
|
27
23
|
__exportStar(require("./decorators/TypedHeaders"), exports);
|
|
28
24
|
__exportStar(require("./decorators/TypedFormData"), exports);
|
|
29
25
|
__exportStar(require("./decorators/TypedParam"), exports);
|
|
30
|
-
__exportStar(require("./decorators/
|
|
31
|
-
__exportStar(require("./decorators/
|
|
32
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./decorators/EncryptedController"), exports);
|
|
27
|
+
__exportStar(require("./decorators/EncryptedRoute"), exports);
|
|
28
|
+
__exportStar(require("./decorators/EncryptedBody"), exports);
|
|
29
|
+
__exportStar(require("./decorators/EncryptedModule"), exports);
|
|
30
|
+
__exportStar(require("./decorators/PlainBody"), exports);
|
|
31
|
+
__exportStar(require("./decorators/SwaggerCustomizer"), exports);
|
|
32
|
+
__exportStar(require("./adaptors/WebSocketAdaptor"), exports);
|
|
33
|
+
__exportStar(require("./decorators/WebSocketRoute"), exports);
|
|
33
34
|
//# sourceMappingURL=module.js.map
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,2DAAyC;AAEzC,0DAAwC;AACxC,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,0DAAwC;AAExC,mEAAiD;AACjD,8DAA4C;AAC5C,6DAA2C;AAC3C,+DAA6C;AAC7C,yDAAuC;AACvC,iEAA+C;AAE/C,8DAA4C;AAC5C,8DAA4C"}
|