@nestia/core 1.3.6 → 1.3.7

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.
Files changed (97) hide show
  1. package/lib/decorators/DynamicModule.d.ts +26 -26
  2. package/lib/decorators/DynamicModule.js +103 -103
  3. package/lib/decorators/DynamicModule.js.map +1 -1
  4. package/lib/decorators/EncryptedBody.d.ts +23 -23
  5. package/lib/decorators/EncryptedBody.js +128 -128
  6. package/lib/decorators/EncryptedController.d.ts +26 -26
  7. package/lib/decorators/EncryptedController.js +36 -36
  8. package/lib/decorators/EncryptedModule.d.ts +52 -52
  9. package/lib/decorators/EncryptedModule.js +161 -161
  10. package/lib/decorators/EncryptedModule.js.map +1 -1
  11. package/lib/decorators/EncryptedRoute.d.ts +78 -78
  12. package/lib/decorators/EncryptedRoute.js +209 -209
  13. package/lib/decorators/EncryptedRoute.js.map +1 -1
  14. package/lib/decorators/PlainBody.d.ts +22 -22
  15. package/lib/decorators/PlainBody.js +82 -82
  16. package/lib/decorators/TypedBody.d.ts +16 -16
  17. package/lib/decorators/TypedBody.js +45 -45
  18. package/lib/decorators/TypedParam.d.ts +31 -31
  19. package/lib/decorators/TypedParam.js +76 -76
  20. package/lib/decorators/TypedQuery.d.ts +14 -14
  21. package/lib/decorators/TypedQuery.js +109 -109
  22. package/lib/decorators/TypedQuery.js.map +1 -1
  23. package/lib/decorators/TypedRoute.d.ts +72 -72
  24. package/lib/decorators/TypedRoute.js +185 -185
  25. package/lib/decorators/TypedRoute.js.map +1 -1
  26. package/lib/decorators/internal/EncryptedConstant.d.ts +1 -1
  27. package/lib/decorators/internal/EncryptedConstant.js +7 -7
  28. package/lib/decorators/internal/TransformError.d.ts +1 -1
  29. package/lib/decorators/internal/TransformError.js +10 -10
  30. package/lib/decorators/internal/get_path_and_stringify.d.ts +1 -1
  31. package/lib/decorators/internal/get_path_and_stringify.js +83 -83
  32. package/lib/decorators/internal/get_text_body.d.ts +3 -3
  33. package/lib/decorators/internal/get_text_body.js +62 -62
  34. package/lib/decorators/internal/headers_to_object.d.ts +3 -3
  35. package/lib/decorators/internal/headers_to_object.js +49 -49
  36. package/lib/decorators/internal/load_controller.d.ts +5 -5
  37. package/lib/decorators/internal/load_controller.js +151 -152
  38. package/lib/decorators/internal/load_controller.js.map +1 -1
  39. package/lib/decorators/internal/route_error.d.ts +3 -3
  40. package/lib/decorators/internal/route_error.js +88 -88
  41. package/lib/decorators/internal/validate_request_body.d.ts +3 -3
  42. package/lib/decorators/internal/validate_request_body.js +66 -66
  43. package/lib/index.d.ts +3 -3
  44. package/lib/index.js +31 -31
  45. package/lib/module.d.ts +12 -12
  46. package/lib/module.js +28 -28
  47. package/lib/options/INestiaTransformOptions.d.ts +4 -4
  48. package/lib/options/INestiaTransformOptions.js +2 -2
  49. package/lib/options/INestiaTransformProject.d.ts +5 -5
  50. package/lib/options/INestiaTransformProject.js +2 -2
  51. package/lib/options/IRequestBodyValidator.d.ts +16 -16
  52. package/lib/options/IRequestBodyValidator.js +2 -2
  53. package/lib/options/IResponseBodyStringifier.d.ts +20 -20
  54. package/lib/options/IResponseBodyStringifier.js +2 -2
  55. package/lib/programmers/TypedBodyProgrammer.d.ts +5 -5
  56. package/lib/programmers/TypedBodyProgrammer.js +58 -58
  57. package/lib/programmers/TypedBodyProgrammer.js.map +1 -1
  58. package/lib/programmers/TypedParamProgrammer.d.ts +5 -5
  59. package/lib/programmers/TypedParamProgrammer.js +110 -110
  60. package/lib/programmers/TypedParamProgrammer.js.map +1 -1
  61. package/lib/programmers/TypedQueryProgrammer.d.ts +5 -5
  62. package/lib/programmers/TypedQueryProgrammer.js +264 -264
  63. package/lib/programmers/TypedQueryProgrammer.js.map +1 -1
  64. package/lib/programmers/TypedRouteProgrammer.d.ts +5 -5
  65. package/lib/programmers/TypedRouteProgrammer.js +49 -49
  66. package/lib/programmers/TypedRouteProgrammer.js.map +1 -1
  67. package/lib/transform.d.ts +4 -4
  68. package/lib/transform.js +25 -25
  69. package/lib/transformers/FileTransformer.d.ts +5 -5
  70. package/lib/transformers/FileTransformer.js +40 -40
  71. package/lib/transformers/FileTransformer.js.map +1 -1
  72. package/lib/transformers/MethodDecoratorTransformer.d.ts +5 -5
  73. package/lib/transformers/MethodDecoratorTransformer.js +92 -92
  74. package/lib/transformers/MethodDecoratorTransformer.js.map +1 -1
  75. package/lib/transformers/MethodTransformer.d.ts +5 -5
  76. package/lib/transformers/MethodTransformer.js +62 -62
  77. package/lib/transformers/MethodTransformer.js.map +1 -1
  78. package/lib/transformers/NodeTransformer.d.ts +5 -5
  79. package/lib/transformers/NodeTransformer.js +21 -21
  80. package/lib/transformers/NodeTransformer.js.map +1 -1
  81. package/lib/transformers/ParameterDecoratorTransformer.d.ts +5 -5
  82. package/lib/transformers/ParameterDecoratorTransformer.js +68 -68
  83. package/lib/transformers/ParameterDecoratorTransformer.js.map +1 -1
  84. package/lib/transformers/ParameterTransformer.d.ts +5 -5
  85. package/lib/transformers/ParameterTransformer.js +34 -34
  86. package/lib/transformers/ParameterTransformer.js.map +1 -1
  87. package/lib/typings/Creator.d.ts +3 -3
  88. package/lib/typings/Creator.js +2 -2
  89. package/lib/utils/ExceptionManager.d.ts +64 -64
  90. package/lib/utils/ExceptionManager.js +112 -112
  91. package/lib/utils/ExceptionManager.js.map +1 -1
  92. package/lib/utils/Singleton.d.ts +1 -1
  93. package/lib/utils/Singleton.js +23 -23
  94. package/lib/utils/SourceFinder.d.ts +9 -9
  95. package/lib/utils/SourceFinder.js +238 -238
  96. package/lib/utils/SourceFinder.js.map +1 -1
  97. package/package.json +5 -5
@@ -1,89 +1,89 @@
1
- "use strict";
2
- var __values = (this && this.__values) || function(o) {
3
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
- if (m) return m.call(o);
5
- if (o && typeof o.length === "number") return {
6
- next: function () {
7
- if (o && i >= o.length) o = void 0;
8
- return { value: o && o[i++], done: !o };
9
- }
10
- };
11
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
- };
13
- var __read = (this && this.__read) || function (o, n) {
14
- var m = typeof Symbol === "function" && o[Symbol.iterator];
15
- if (!m) return o;
16
- var i = m.call(o), r, ar = [], e;
17
- try {
18
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
19
- }
20
- catch (error) { e = { error: error }; }
21
- finally {
22
- try {
23
- if (r && !r.done && (m = i["return"])) m.call(i);
24
- }
25
- finally { if (e) throw e.error; }
26
- }
27
- return ar;
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.route_error = void 0;
31
- var common_1 = require("@nestjs/common");
32
- var rxjs_1 = require("rxjs");
33
- var ExceptionManager_1 = require("../../utils/ExceptionManager");
34
- function route_error(request, error) {
35
- var _a;
36
- error = (function () {
37
- var e_1, _a;
38
- // HTTP-ERROR
39
- if (error instanceof common_1.HttpException)
40
- return error;
41
- try {
42
- // CUSTOM-REGISTERED ERROR
43
- for (var _b = __values(ExceptionManager_1.ExceptionManager.tuples), _c = _b.next(); !_c.done; _c = _b.next()) {
44
- var _d = __read(_c.value, 2), creator = _d[0], closure = _d[1];
45
- if (error instanceof creator)
46
- return closure(error);
47
- }
48
- }
49
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
50
- finally {
51
- try {
52
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
53
- }
54
- finally { if (e_1) throw e_1.error; }
55
- }
56
- // MAYBE INTERNAL ERROR
57
- return error;
58
- })();
59
- try {
60
- error.method = request.method;
61
- error.path =
62
- (_a = request.path) !== null && _a !== void 0 ? _a : request.routerPath;
63
- }
64
- catch (_b) { }
65
- setTimeout(function () {
66
- var e_2, _a;
67
- try {
68
- for (var _b = __values(ExceptionManager_1.ExceptionManager.listeners), _c = _b.next(); !_c.done; _c = _b.next()) {
69
- var listener = _c.value;
70
- try {
71
- var res = listener(error);
72
- if (typeof res === "object" && typeof res.catch === "function")
73
- res.catch(function () { });
74
- }
75
- catch (_d) { }
76
- }
77
- }
78
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
79
- finally {
80
- try {
81
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
82
- }
83
- finally { if (e_2) throw e_2.error; }
84
- }
85
- }, 0);
86
- return (0, rxjs_1.throwError)(function () { return error; });
87
- }
88
- exports.route_error = route_error;
1
+ "use strict";
2
+ var __values = (this && this.__values) || function(o) {
3
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
+ if (m) return m.call(o);
5
+ if (o && typeof o.length === "number") return {
6
+ next: function () {
7
+ if (o && i >= o.length) o = void 0;
8
+ return { value: o && o[i++], done: !o };
9
+ }
10
+ };
11
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
+ };
13
+ var __read = (this && this.__read) || function (o, n) {
14
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
15
+ if (!m) return o;
16
+ var i = m.call(o), r, ar = [], e;
17
+ try {
18
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
19
+ }
20
+ catch (error) { e = { error: error }; }
21
+ finally {
22
+ try {
23
+ if (r && !r.done && (m = i["return"])) m.call(i);
24
+ }
25
+ finally { if (e) throw e.error; }
26
+ }
27
+ return ar;
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.route_error = void 0;
31
+ var common_1 = require("@nestjs/common");
32
+ var rxjs_1 = require("rxjs");
33
+ var ExceptionManager_1 = require("../../utils/ExceptionManager");
34
+ function route_error(request, error) {
35
+ var _a;
36
+ error = (function () {
37
+ var e_1, _a;
38
+ // HTTP-ERROR
39
+ if (error instanceof common_1.HttpException)
40
+ return error;
41
+ try {
42
+ // CUSTOM-REGISTERED ERROR
43
+ for (var _b = __values(ExceptionManager_1.ExceptionManager.tuples), _c = _b.next(); !_c.done; _c = _b.next()) {
44
+ var _d = __read(_c.value, 2), creator = _d[0], closure = _d[1];
45
+ if (error instanceof creator)
46
+ return closure(error);
47
+ }
48
+ }
49
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
50
+ finally {
51
+ try {
52
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
53
+ }
54
+ finally { if (e_1) throw e_1.error; }
55
+ }
56
+ // MAYBE INTERNAL ERROR
57
+ return error;
58
+ })();
59
+ try {
60
+ error.method = request.method;
61
+ error.path =
62
+ (_a = request.path) !== null && _a !== void 0 ? _a : request.routerPath;
63
+ }
64
+ catch (_b) { }
65
+ setTimeout(function () {
66
+ var e_2, _a;
67
+ try {
68
+ for (var _b = __values(ExceptionManager_1.ExceptionManager.listeners), _c = _b.next(); !_c.done; _c = _b.next()) {
69
+ var listener = _c.value;
70
+ try {
71
+ var res = listener(error);
72
+ if (typeof res === "object" && typeof res.catch === "function")
73
+ res.catch(function () { });
74
+ }
75
+ catch (_d) { }
76
+ }
77
+ }
78
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
79
+ finally {
80
+ try {
81
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
82
+ }
83
+ finally { if (e_2) throw e_2.error; }
84
+ }
85
+ }, 0);
86
+ return (0, rxjs_1.throwError)(function () { return error; });
87
+ }
88
+ exports.route_error = route_error;
89
89
  //# sourceMappingURL=route_error.js.map
@@ -1,3 +1,3 @@
1
- import { BadRequestException } from "@nestjs/common";
2
- import { IRequestBodyValidator } from "../../options/IRequestBodyValidator";
3
- export declare const validate_request_body: (method: string) => <T>(validator?: IRequestBodyValidator<T> | undefined) => (() => Error) | ((data: T) => BadRequestException | null);
1
+ import { BadRequestException } from "@nestjs/common";
2
+ import { IRequestBodyValidator } from "../../options/IRequestBodyValidator";
3
+ export declare const validate_request_body: (method: string) => <T>(validator?: IRequestBodyValidator<T> | undefined) => (() => Error) | ((data: T) => BadRequestException | null);
@@ -1,67 +1,67 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.validate_request_body = void 0;
7
- var common_1 = require("@nestjs/common");
8
- var typia_1 = __importDefault(require("typia"));
9
- var TransformError_1 = require("./TransformError");
10
- var validate_request_body = function (method) {
11
- return function (validator) {
12
- if (!validator)
13
- return function () { return (0, TransformError_1.TransformError)(method); };
14
- else if (validator.type === "assert")
15
- return assert(validator.assert);
16
- else if (validator.type === "is")
17
- return is(validator.is);
18
- else if (validator.type === "validate")
19
- return validate(validator.validate);
20
- return function () {
21
- return new Error("Error on nestia.core.".concat(method, "(): invalid typed validator."));
22
- };
23
- };
24
- };
25
- exports.validate_request_body = validate_request_body;
26
- var assert = function (closure) {
27
- return function (data) {
28
- try {
29
- closure(data);
30
- return null;
31
- }
32
- catch (exp) {
33
- if ((function (input) {
34
- var $io0 = function (input) { return "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
- });
44
- }
45
- throw exp;
46
- }
47
- };
48
- };
49
- var is = function (closure) {
50
- return function (data) {
51
- var success = closure(data);
52
- return success ? null : new common_1.BadRequestException(MESSAGE);
53
- };
54
- };
55
- var validate = function (closure) {
56
- return function (data) {
57
- var result = closure(data);
58
- return result.success
59
- ? null
60
- : new common_1.BadRequestException({
61
- errors: result.errors,
62
- message: MESSAGE,
63
- });
64
- };
65
- };
66
- var MESSAGE = "Request body data is not following the promised type.";
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.validate_request_body = void 0;
7
+ var common_1 = require("@nestjs/common");
8
+ var typia_1 = __importDefault(require("typia"));
9
+ var TransformError_1 = require("./TransformError");
10
+ var validate_request_body = function (method) {
11
+ return function (validator) {
12
+ if (!validator)
13
+ return function () { return (0, TransformError_1.TransformError)(method); };
14
+ else if (validator.type === "assert")
15
+ return assert(validator.assert);
16
+ else if (validator.type === "is")
17
+ return is(validator.is);
18
+ else if (validator.type === "validate")
19
+ return validate(validator.validate);
20
+ return function () {
21
+ return new Error("Error on nestia.core.".concat(method, "(): invalid typed validator."));
22
+ };
23
+ };
24
+ };
25
+ exports.validate_request_body = validate_request_body;
26
+ var assert = function (closure) {
27
+ return function (data) {
28
+ try {
29
+ closure(data);
30
+ return null;
31
+ }
32
+ catch (exp) {
33
+ if ((function (input) {
34
+ var $io0 = function (input) { return "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
+ });
44
+ }
45
+ throw exp;
46
+ }
47
+ };
48
+ };
49
+ var is = function (closure) {
50
+ return function (data) {
51
+ var success = closure(data);
52
+ return success ? null : new common_1.BadRequestException(MESSAGE);
53
+ };
54
+ };
55
+ var validate = function (closure) {
56
+ return function (data) {
57
+ var result = closure(data);
58
+ return result.success
59
+ ? null
60
+ : new common_1.BadRequestException({
61
+ errors: result.errors,
62
+ message: MESSAGE,
63
+ });
64
+ };
65
+ };
66
+ var MESSAGE = "Request body data is not following the promised type.";
67
67
  //# sourceMappingURL=validate_request_body.js.map
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import * as core from "./module";
2
- export * from "./module";
3
- export default core;
1
+ import * as core from "./module";
2
+ export * from "./module";
3
+ export default core;
package/lib/index.js CHANGED
@@ -1,32 +1,32 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- var core = __importStar(require("./module"));
30
- __exportStar(require("./module"), exports);
31
- exports.default = core;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var core = __importStar(require("./module"));
30
+ __exportStar(require("./module"), exports);
31
+ exports.default = core;
32
32
  //# sourceMappingURL=index.js.map
package/lib/module.d.ts CHANGED
@@ -1,12 +1,12 @@
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
- export * from "./utils/ExceptionManager";
7
- export * from "./decorators/PlainBody";
8
- export * from "./decorators/TypedBody";
9
- export * from "./decorators/TypedParam";
10
- export * from "./decorators/TypedRoute";
11
- export * from "./decorators/TypedQuery";
12
- export * from "./options/INestiaTransformOptions";
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
+ export * from "./utils/ExceptionManager";
7
+ export * from "./decorators/PlainBody";
8
+ export * from "./decorators/TypedBody";
9
+ export * from "./decorators/TypedParam";
10
+ export * from "./decorators/TypedRoute";
11
+ export * from "./decorators/TypedQuery";
12
+ export * from "./options/INestiaTransformOptions";
package/lib/module.js CHANGED
@@ -1,29 +1,29 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
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
- __exportStar(require("./utils/ExceptionManager"), exports);
23
- __exportStar(require("./decorators/PlainBody"), exports);
24
- __exportStar(require("./decorators/TypedBody"), exports);
25
- __exportStar(require("./decorators/TypedParam"), exports);
26
- __exportStar(require("./decorators/TypedRoute"), exports);
27
- __exportStar(require("./decorators/TypedQuery"), exports);
28
- __exportStar(require("./options/INestiaTransformOptions"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
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
+ __exportStar(require("./utils/ExceptionManager"), exports);
23
+ __exportStar(require("./decorators/PlainBody"), exports);
24
+ __exportStar(require("./decorators/TypedBody"), exports);
25
+ __exportStar(require("./decorators/TypedParam"), exports);
26
+ __exportStar(require("./decorators/TypedRoute"), exports);
27
+ __exportStar(require("./decorators/TypedQuery"), exports);
28
+ __exportStar(require("./options/INestiaTransformOptions"), exports);
29
29
  //# sourceMappingURL=module.js.map
@@ -1,4 +1,4 @@
1
- export interface INestiaTransformOptions {
2
- validate?: "assert" | "is" | "validate" | "assertEquals" | "equals" | "validateEquals";
3
- stringify?: "stringify" | "assert" | "is" | "validate" | null;
4
- }
1
+ export interface INestiaTransformOptions {
2
+ validate?: "assert" | "is" | "validate" | "assertEquals" | "equals" | "validateEquals";
3
+ stringify?: "stringify" | "assert" | "is" | "validate" | null;
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=INestiaTransformOptions.js.map
@@ -1,5 +1,5 @@
1
- import { IProject } from "typia/lib/transformers/IProject";
2
- import { INestiaTransformOptions } from "./INestiaTransformOptions";
3
- export interface INestiaTransformProject extends Omit<IProject, "options"> {
4
- options: INestiaTransformOptions;
5
- }
1
+ import { IProject } from "typia/lib/transformers/IProject";
2
+ import { INestiaTransformOptions } from "./INestiaTransformOptions";
3
+ export interface INestiaTransformProject extends Omit<IProject, "options"> {
4
+ options: INestiaTransformOptions;
5
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=INestiaTransformProject.js.map
@@ -1,16 +1,16 @@
1
- import { IValidation } from "typia";
2
- export type IRequestBodyValidator<T> = IRequestBodyValidator.IAssert<T> | IRequestBodyValidator.IIs<T> | IRequestBodyValidator.IValidate<T>;
3
- export declare namespace IRequestBodyValidator {
4
- interface IAssert<T> {
5
- type: "assert";
6
- assert: (input: T) => T;
7
- }
8
- interface IIs<T> {
9
- type: "is";
10
- is: (input: T) => boolean;
11
- }
12
- interface IValidate<T> {
13
- type: "validate";
14
- validate: (input: T) => IValidation<T>;
15
- }
16
- }
1
+ import { IValidation } from "typia";
2
+ export type IRequestBodyValidator<T> = IRequestBodyValidator.IAssert<T> | IRequestBodyValidator.IIs<T> | IRequestBodyValidator.IValidate<T>;
3
+ export declare namespace IRequestBodyValidator {
4
+ interface IAssert<T> {
5
+ type: "assert";
6
+ assert: (input: T) => T;
7
+ }
8
+ interface IIs<T> {
9
+ type: "is";
10
+ is: (input: T) => boolean;
11
+ }
12
+ interface IValidate<T> {
13
+ type: "validate";
14
+ validate: (input: T) => IValidation<T>;
15
+ }
16
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IRequestBodyValidator.js.map
@@ -1,20 +1,20 @@
1
- import { IValidation } from "typia";
2
- export type IResponseBodyStringifier<T> = IResponseBodyStringifier.IStringify<T> | IResponseBodyStringifier.IIs<T> | IResponseBodyStringifier.IAssert<T> | IResponseBodyStringifier.IValidate<T>;
3
- export declare namespace IResponseBodyStringifier {
4
- interface IStringify<T> {
5
- type: "stringify";
6
- stringify: (input: T) => string;
7
- }
8
- interface IIs<T> {
9
- type: "is";
10
- is: (input: T) => string | null;
11
- }
12
- interface IAssert<T> {
13
- type: "assert";
14
- assert: (input: T) => string;
15
- }
16
- interface IValidate<T> {
17
- type: "validate";
18
- validate: (input: T) => IValidation<string>;
19
- }
20
- }
1
+ import { IValidation } from "typia";
2
+ export type IResponseBodyStringifier<T> = IResponseBodyStringifier.IStringify<T> | IResponseBodyStringifier.IIs<T> | IResponseBodyStringifier.IAssert<T> | IResponseBodyStringifier.IValidate<T>;
3
+ export declare namespace IResponseBodyStringifier {
4
+ interface IStringify<T> {
5
+ type: "stringify";
6
+ stringify: (input: T) => string;
7
+ }
8
+ interface IIs<T> {
9
+ type: "is";
10
+ is: (input: T) => string | null;
11
+ }
12
+ interface IAssert<T> {
13
+ type: "assert";
14
+ assert: (input: T) => string;
15
+ }
16
+ interface IValidate<T> {
17
+ type: "validate";
18
+ validate: (input: T) => IValidation<string>;
19
+ }
20
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IResponseBodyStringifier.js.map
@@ -1,5 +1,5 @@
1
- import ts from "typescript";
2
- import { INestiaTransformProject } from "../options/INestiaTransformProject";
3
- export declare namespace TypedBodyProgrammer {
4
- const generate: (project: INestiaTransformProject) => (modulo: ts.LeftHandSideExpression) => (type: ts.Type) => ts.ObjectLiteralExpression;
5
- }
1
+ import ts from "typescript";
2
+ import { INestiaTransformProject } from "../options/INestiaTransformProject";
3
+ export declare namespace TypedBodyProgrammer {
4
+ const generate: (project: INestiaTransformProject) => (modulo: ts.LeftHandSideExpression) => (type: ts.Type) => ts.ObjectLiteralExpression;
5
+ }