@nestia/core 7.3.0 → 7.3.2

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 (112) hide show
  1. package/lib/decorators/DynamicModule.d.ts +3 -2
  2. package/lib/decorators/DynamicModule.js +3 -2
  3. package/lib/decorators/DynamicModule.js.map +1 -1
  4. package/lib/decorators/EncryptedBody.d.ts +11 -11
  5. package/lib/decorators/EncryptedBody.js +13 -17
  6. package/lib/decorators/EncryptedBody.js.map +1 -1
  7. package/lib/decorators/EncryptedController.d.ts +15 -13
  8. package/lib/decorators/EncryptedController.js +15 -13
  9. package/lib/decorators/EncryptedController.js.map +1 -1
  10. package/lib/decorators/EncryptedModule.d.ts +22 -22
  11. package/lib/decorators/EncryptedModule.js +23 -25
  12. package/lib/decorators/EncryptedModule.js.map +1 -1
  13. package/lib/decorators/EncryptedRoute.d.ts +20 -20
  14. package/lib/decorators/EncryptedRoute.js +23 -29
  15. package/lib/decorators/EncryptedRoute.js.map +1 -1
  16. package/lib/decorators/HumanRoute.d.ts +3 -3
  17. package/lib/decorators/HumanRoute.js +3 -3
  18. package/lib/decorators/NoTransformConfigurationError.d.ts +10 -8
  19. package/lib/decorators/NoTransformConfigurationError.js +10 -8
  20. package/lib/decorators/NoTransformConfigurationError.js.map +1 -1
  21. package/lib/decorators/PlainBody.d.ts +7 -6
  22. package/lib/decorators/PlainBody.js +2 -6
  23. package/lib/decorators/PlainBody.js.map +1 -1
  24. package/lib/decorators/SwaggerCustomizer.d.ts +12 -30
  25. package/lib/decorators/SwaggerCustomizer.js +3 -3
  26. package/lib/decorators/TypedBody.d.ts +7 -7
  27. package/lib/decorators/TypedBody.js +8 -10
  28. package/lib/decorators/TypedBody.js.map +1 -1
  29. package/lib/decorators/TypedException.d.ts +41 -58
  30. package/lib/decorators/TypedException.js +1 -3
  31. package/lib/decorators/TypedException.js.map +1 -1
  32. package/lib/decorators/TypedFormData.d.ts +16 -16
  33. package/lib/decorators/TypedFormData.js +17 -23
  34. package/lib/decorators/TypedFormData.js.map +1 -1
  35. package/lib/decorators/TypedHeaders.d.ts +27 -25
  36. package/lib/decorators/TypedHeaders.js +27 -25
  37. package/lib/decorators/TypedHeaders.js.map +1 -1
  38. package/lib/decorators/TypedParam.d.ts +5 -5
  39. package/lib/decorators/TypedParam.js +5 -5
  40. package/lib/decorators/TypedQuery.d.ts +7 -6
  41. package/lib/decorators/TypedQuery.js +13 -24
  42. package/lib/decorators/TypedQuery.js.map +1 -1
  43. package/lib/decorators/TypedRoute.d.ts +24 -34
  44. package/lib/decorators/TypedRoute.js +19 -28
  45. package/lib/decorators/TypedRoute.js.map +1 -1
  46. package/lib/decorators/WebSocketRoute.d.ts +33 -31
  47. package/lib/decorators/WebSocketRoute.js +34 -34
  48. package/lib/decorators/WebSocketRoute.js.map +1 -1
  49. package/lib/decorators/internal/EncryptedConstant.js +1 -3
  50. package/lib/decorators/internal/EncryptedConstant.js.map +1 -1
  51. package/lib/decorators/internal/get_path_and_querify.js +7 -21
  52. package/lib/decorators/internal/get_path_and_querify.js.map +1 -1
  53. package/lib/decorators/internal/get_path_and_stringify.js +6 -18
  54. package/lib/decorators/internal/get_path_and_stringify.js.map +1 -1
  55. package/lib/decorators/internal/get_text_body.js +2 -6
  56. package/lib/decorators/internal/get_text_body.js.map +1 -1
  57. package/lib/decorators/internal/headers_to_object.js +1 -3
  58. package/lib/decorators/internal/headers_to_object.js.map +1 -1
  59. package/lib/decorators/internal/is_request_body_undefined.js +1 -3
  60. package/lib/decorators/internal/is_request_body_undefined.js.map +1 -1
  61. package/lib/decorators/internal/load_controller.js +3 -7
  62. package/lib/decorators/internal/load_controller.js.map +1 -1
  63. package/lib/decorators/internal/route_error.js +1 -3
  64. package/lib/decorators/internal/route_error.js.map +1 -1
  65. package/lib/decorators/internal/validate_request_body.js +5 -15
  66. package/lib/decorators/internal/validate_request_body.js.map +1 -1
  67. package/lib/decorators/internal/validate_request_form_data.js +5 -15
  68. package/lib/decorators/internal/validate_request_form_data.js.map +1 -1
  69. package/lib/decorators/internal/validate_request_headers.js +5 -15
  70. package/lib/decorators/internal/validate_request_headers.js.map +1 -1
  71. package/lib/decorators/internal/validate_request_query.js +5 -15
  72. package/lib/decorators/internal/validate_request_query.js.map +1 -1
  73. package/lib/utils/ExceptionManager.d.ts +27 -20
  74. package/lib/utils/ExceptionManager.js +20 -20
  75. package/lib/utils/ExceptionManager.js.map +1 -1
  76. package/lib/utils/Singleton.js +2 -6
  77. package/lib/utils/Singleton.js.map +1 -1
  78. package/lib/utils/SourceFinder.js +4 -8
  79. package/lib/utils/SourceFinder.js.map +1 -1
  80. package/package.json +7 -8
  81. package/src/decorators/DynamicModule.ts +3 -2
  82. package/src/decorators/EncryptedBody.ts +13 -17
  83. package/src/decorators/EncryptedController.ts +15 -13
  84. package/src/decorators/EncryptedModule.ts +23 -25
  85. package/src/decorators/EncryptedRoute.ts +23 -29
  86. package/src/decorators/HumanRoute.ts +3 -3
  87. package/src/decorators/NoTransformConfigurationError.ts +10 -8
  88. package/src/decorators/PlainBody.ts +9 -12
  89. package/src/decorators/SwaggerCustomizer.ts +12 -30
  90. package/src/decorators/TypedBody.ts +8 -10
  91. package/src/decorators/TypedException.ts +42 -61
  92. package/src/decorators/TypedFormData.ts +34 -34
  93. package/src/decorators/TypedHeaders.ts +27 -25
  94. package/src/decorators/TypedParam.ts +5 -5
  95. package/src/decorators/TypedQuery.ts +13 -24
  96. package/src/decorators/TypedRoute.ts +28 -46
  97. package/src/decorators/WebSocketRoute.ts +34 -34
  98. package/src/decorators/internal/EncryptedConstant.ts +1 -3
  99. package/src/decorators/internal/get_path_and_querify.ts +7 -21
  100. package/src/decorators/internal/get_path_and_stringify.ts +6 -18
  101. package/src/decorators/internal/get_text_body.ts +2 -6
  102. package/src/decorators/internal/headers_to_object.ts +1 -3
  103. package/src/decorators/internal/is_request_body_undefined.ts +1 -3
  104. package/src/decorators/internal/load_controller.ts +3 -7
  105. package/src/decorators/internal/route_error.ts +1 -3
  106. package/src/decorators/internal/validate_request_body.ts +5 -15
  107. package/src/decorators/internal/validate_request_form_data.ts +5 -15
  108. package/src/decorators/internal/validate_request_headers.ts +5 -15
  109. package/src/decorators/internal/validate_request_query.ts +5 -15
  110. package/src/utils/ExceptionManager.ts +29 -26
  111. package/src/utils/Singleton.ts +2 -6
  112. package/src/utils/SourceFinder.ts +5 -8
@@ -3,15 +3,15 @@ import { IRequestQueryValidator } from "../options/IRequestQueryValidator";
3
3
  /**
4
4
  * WebSocket route decorator.
5
5
  *
6
- * `@WebSocketRoute()` is a route decorator function for WebSocket routes.
7
- * If you want to define a WebSocket route with this `@WebSocketRoute` decorator,
8
- * please don't forget to call the {@link WebSocketAdaptor.upgrade} function
9
- * to the {@link INestApplication} instance.
6
+ * `@WebSocketRoute()` is a route decorator function for WebSocket routes. If
7
+ * you want to define a WebSocket route with this `@WebSocketRoute` decorator,
8
+ * please don't forget to call the {@link WebSocketAdaptor.upgrade} function to
9
+ * the {@link INestApplication} instance.
10
10
  *
11
- * Also, `WebSocketRoute` is a module containing parameter decorator
12
- * functions of below for the `@WebSocketRoute` decorated method, at the same
13
- * time. Note that, every parameters must be decorated by one of the parameter
14
- * decorators in the `WebSocketRoute` module. One thing more important is,
11
+ * Also, `WebSocketRoute` is a module containing parameter decorator functions
12
+ * of below for the `@WebSocketRoute` decorated method, at the same time. Note
13
+ * that, every parameters must be decorated by one of the parameter decorators
14
+ * in the `WebSocketRoute` module. One thing more important is,
15
15
  * {@link WebSocketRoute.Acceptor} decorated parameter must be defined in the
16
16
  * method. If not, it would be both compilation/runtime error.
17
17
  *
@@ -23,16 +23,16 @@ import { IRequestQueryValidator } from "../options/IRequestQueryValidator";
23
23
  *
24
24
  * For reference, key difference between `@WebSocketGateway()` of NestJS and
25
25
  * `@WebSocketRoute()` of Nestia is, `@WebSocketRoute()` can make multiple
26
- * WebSocket routes by configuring *paths*, besides `@WebSocketGateway()`
27
- * can't do it.
26
+ * WebSocket routes by configuring _paths_, besides `@WebSocketGateway()` can't
27
+ * do it.
28
28
  *
29
29
  * Furthermore, if you build SDK (Software Development Kit) library through
30
30
  * `@nestia/sdk`, you can make safe WebSocket client taking advantages of
31
31
  * TypeScript type hints and checks.
32
32
  *
33
+ * @author Jeongho Nam - https://github.com/samchon
33
34
  * @param path Path(s) of the WebSocket request
34
35
  * @returns Method decorator
35
- * @author Jeongho Nam - https://github.com/samchon
36
36
  */
37
37
  export declare function WebSocketRoute(path?: undefined | string | string[]): MethodDecorator;
38
38
  export declare namespace WebSocketRoute {
@@ -40,7 +40,8 @@ export declare namespace WebSocketRoute {
40
40
  * Acceptor parameter decorator.
41
41
  *
42
42
  * `@WebSocketRoute.Acceptor()` is a parameter decorator function for the
43
- * `WebSocketAcceptor<Header, Provider, Listener>` (of `tgrid`) typed parameter.
43
+ * `WebSocketAcceptor<Header, Provider, Listener>` (of `tgrid`) typed
44
+ * parameter.
44
45
  *
45
46
  * In the controller method decorated by `@WebSocketRoute()` and
46
47
  * `@WebSocketRoute.Acceptor()`, call {@link WebSocketAcceptor.accept} function
@@ -49,8 +50,8 @@ export declare namespace WebSocketRoute {
49
50
  * {@link WebSocketAcceptor.rejcet} function instead.
50
51
  *
51
52
  * For reference, this `@WebSocketRoute.Acceptor()` parameter decorator is
52
- * essential for the method decorated by `@WebSocketRoute()` decorator.
53
- * If you forget it, it would be both compilation/runtime error.
53
+ * essential for the method decorated by `@WebSocketRoute()` decorator. If you
54
+ * forget it, it would be both compilation/runtime error.
54
55
  */
55
56
  function Acceptor(): ParameterDecorator;
56
57
  /**
@@ -64,8 +65,8 @@ export declare namespace WebSocketRoute {
64
65
  * by calling the `Driver<Listener>` instance.
65
66
  *
66
67
  * For reference, this `@WebSocketRoute.Driver()` decorator is optional, and
67
- * can be substituted by `@WebSocketRoute.Acceptor()` decorated parameter
68
- * by calling the {@link WebSocketAcceptor.getDriver} function.
68
+ * can be substituted by `@WebSocketRoute.Acceptor()` decorated parameter by
69
+ * calling the {@link WebSocketAcceptor.getDriver} function.
69
70
  */
70
71
  function Driver(): ParameterDecorator;
71
72
  /**
@@ -75,12 +76,12 @@ export declare namespace WebSocketRoute {
75
76
  * WebSocket header with type casting and assertion.
76
77
  *
77
78
  * For reference, `@WebSocketRoute.Header()` is different with HTTP headers.
78
- * It's for WebSocket protocol, especially for TGrid's {@link WebSocketConnector}
79
- * and {@link WebSocketAcceptor}'s special header.
79
+ * It's for WebSocket protocol, especially for TGrid's
80
+ * {@link WebSocketConnector} and {@link WebSocketAcceptor}'s special header.
80
81
  *
81
- * Also, this `@WebSocketRoute.Header()` decorator is optional, and
82
- * can be substituted by `@WebSocketRoute.Acceptor()` decorated parameter
83
- * by accessting to the {@link WebSocketAcceptor.header} property.
82
+ * Also, this `@WebSocketRoute.Header()` decorator is optional, and can be
83
+ * substituted by `@WebSocketRoute.Acceptor()` decorated parameter by
84
+ * accessting to the {@link WebSocketAcceptor.header} property.
84
85
  */
85
86
  function Header<T>(validator?: IRequestBodyValidator<T>): ParameterDecorator;
86
87
  /**
@@ -89,9 +90,9 @@ export declare namespace WebSocketRoute {
89
90
  * `@WebSocketRoute.Param()` is a parameter decorator function for the URL
90
91
  * parameter with type casting and assertion.
91
92
  *
92
- * It's almost same with the {@link TypedParam}, but
93
- * `@WebSocketRoute.Param()` is only for WebSocket protocol router function
94
- * decorated by {@link WebSocketRoute}.
93
+ * It's almost same with the {@link TypedParam}, but `@WebSocketRoute.Param()`
94
+ * is only for WebSocket protocol router function decorated by
95
+ * {@link WebSocketRoute}.
95
96
  *
96
97
  * @param field URL parameter field name
97
98
  */
@@ -102,18 +103,19 @@ export declare namespace WebSocketRoute {
102
103
  * `@WebSocketRoute.Query()` is a parameter decorator function for the URL
103
104
  * query string with type casting and assertion.
104
105
  *
105
- * It is almost same with {@link TypedQuery}, but
106
- * `@WebSocketRoute.Query()` is only for WebSocket protocol router function
107
- * decorated by {@link WebSocketRoute}.
106
+ * It is almost same with {@link TypedQuery}, but `@WebSocketRoute.Query()` is
107
+ * only for WebSocket protocol router function decorated by
108
+ * {@link WebSocketRoute}.
108
109
  *
109
110
  * For reference, as same with {@link TypedQuery}, `@WebSocketRoute.Query()`
110
- * has same restriction for the target type `T`. If actual URL query
111
- * parameter values are different with their promised type `T`,
112
- * it would be runtime error.
111
+ * has same restriction for the target type `T`. If actual URL query parameter
112
+ * values are different with their promised type `T`, it would be runtime
113
+ * error.
113
114
  *
114
115
  * 1. Type `T` must be an object type
115
116
  * 2. Do not allow dynamic property
116
- * 3. Only `boolean`, `bigint`, `number`, `string` or their array types are allowed
117
+ * 3. Only `boolean`, `bigint`, `number`, `string` or their array types are
118
+ * allowed
117
119
  * 4. By the way, union type never be not allowed
118
120
  */
119
121
  function Query<T extends object>(validator?: IRequestQueryValidator<T>): ParameterDecorator;
@@ -7,15 +7,15 @@ const validate_request_query_1 = require("./internal/validate_request_query");
7
7
  /**
8
8
  * WebSocket route decorator.
9
9
  *
10
- * `@WebSocketRoute()` is a route decorator function for WebSocket routes.
11
- * If you want to define a WebSocket route with this `@WebSocketRoute` decorator,
12
- * please don't forget to call the {@link WebSocketAdaptor.upgrade} function
13
- * to the {@link INestApplication} instance.
10
+ * `@WebSocketRoute()` is a route decorator function for WebSocket routes. If
11
+ * you want to define a WebSocket route with this `@WebSocketRoute` decorator,
12
+ * please don't forget to call the {@link WebSocketAdaptor.upgrade} function to
13
+ * the {@link INestApplication} instance.
14
14
  *
15
- * Also, `WebSocketRoute` is a module containing parameter decorator
16
- * functions of below for the `@WebSocketRoute` decorated method, at the same
17
- * time. Note that, every parameters must be decorated by one of the parameter
18
- * decorators in the `WebSocketRoute` module. One thing more important is,
15
+ * Also, `WebSocketRoute` is a module containing parameter decorator functions
16
+ * of below for the `@WebSocketRoute` decorated method, at the same time. Note
17
+ * that, every parameters must be decorated by one of the parameter decorators
18
+ * in the `WebSocketRoute` module. One thing more important is,
19
19
  * {@link WebSocketRoute.Acceptor} decorated parameter must be defined in the
20
20
  * method. If not, it would be both compilation/runtime error.
21
21
  *
@@ -27,16 +27,16 @@ const validate_request_query_1 = require("./internal/validate_request_query");
27
27
  *
28
28
  * For reference, key difference between `@WebSocketGateway()` of NestJS and
29
29
  * `@WebSocketRoute()` of Nestia is, `@WebSocketRoute()` can make multiple
30
- * WebSocket routes by configuring *paths*, besides `@WebSocketGateway()`
31
- * can't do it.
30
+ * WebSocket routes by configuring _paths_, besides `@WebSocketGateway()` can't
31
+ * do it.
32
32
  *
33
33
  * Furthermore, if you build SDK (Software Development Kit) library through
34
34
  * `@nestia/sdk`, you can make safe WebSocket client taking advantages of
35
35
  * TypeScript type hints and checks.
36
36
  *
37
+ * @author Jeongho Nam - https://github.com/samchon
37
38
  * @param path Path(s) of the WebSocket request
38
39
  * @returns Method decorator
39
- * @author Jeongho Nam - https://github.com/samchon
40
40
  */
41
41
  function WebSocketRoute(path) {
42
42
  return function WebSocketRoute(_target, _propertyKey, descriptor) {
@@ -51,7 +51,8 @@ function WebSocketRoute(path) {
51
51
  * Acceptor parameter decorator.
52
52
  *
53
53
  * `@WebSocketRoute.Acceptor()` is a parameter decorator function for the
54
- * `WebSocketAcceptor<Header, Provider, Listener>` (of `tgrid`) typed parameter.
54
+ * `WebSocketAcceptor<Header, Provider, Listener>` (of `tgrid`) typed
55
+ * parameter.
55
56
  *
56
57
  * In the controller method decorated by `@WebSocketRoute()` and
57
58
  * `@WebSocketRoute.Acceptor()`, call {@link WebSocketAcceptor.accept} function
@@ -60,8 +61,8 @@ function WebSocketRoute(path) {
60
61
  * {@link WebSocketAcceptor.rejcet} function instead.
61
62
  *
62
63
  * For reference, this `@WebSocketRoute.Acceptor()` parameter decorator is
63
- * essential for the method decorated by `@WebSocketRoute()` decorator.
64
- * If you forget it, it would be both compilation/runtime error.
64
+ * essential for the method decorated by `@WebSocketRoute()` decorator. If you
65
+ * forget it, it would be both compilation/runtime error.
65
66
  */
66
67
  function Acceptor() {
67
68
  return function WebSocketAcceptor(target, propertyKey, parameterIndex) {
@@ -83,8 +84,8 @@ function WebSocketRoute(path) {
83
84
  * by calling the `Driver<Listener>` instance.
84
85
  *
85
86
  * For reference, this `@WebSocketRoute.Driver()` decorator is optional, and
86
- * can be substituted by `@WebSocketRoute.Acceptor()` decorated parameter
87
- * by calling the {@link WebSocketAcceptor.getDriver} function.
87
+ * can be substituted by `@WebSocketRoute.Acceptor()` decorated parameter by
88
+ * calling the {@link WebSocketAcceptor.getDriver} function.
88
89
  */
89
90
  function Driver() {
90
91
  return function WebSocketDriver(target, propertyKey, parameterIndex) {
@@ -102,12 +103,12 @@ function WebSocketRoute(path) {
102
103
  * WebSocket header with type casting and assertion.
103
104
  *
104
105
  * For reference, `@WebSocketRoute.Header()` is different with HTTP headers.
105
- * It's for WebSocket protocol, especially for TGrid's {@link WebSocketConnector}
106
- * and {@link WebSocketAcceptor}'s special header.
106
+ * It's for WebSocket protocol, especially for TGrid's
107
+ * {@link WebSocketConnector} and {@link WebSocketAcceptor}'s special header.
107
108
  *
108
- * Also, this `@WebSocketRoute.Header()` decorator is optional, and
109
- * can be substituted by `@WebSocketRoute.Acceptor()` decorated parameter
110
- * by accessting to the {@link WebSocketAcceptor.header} property.
109
+ * Also, this `@WebSocketRoute.Header()` decorator is optional, and can be
110
+ * substituted by `@WebSocketRoute.Acceptor()` decorated parameter by
111
+ * accessting to the {@link WebSocketAcceptor.header} property.
111
112
  */
112
113
  function Header(validator) {
113
114
  const validate = (0, validate_request_body_1.validate_request_body)("WebSocketRoute.Header")(validator);
@@ -126,9 +127,9 @@ function WebSocketRoute(path) {
126
127
  * `@WebSocketRoute.Param()` is a parameter decorator function for the URL
127
128
  * parameter with type casting and assertion.
128
129
  *
129
- * It's almost same with the {@link TypedParam}, but
130
- * `@WebSocketRoute.Param()` is only for WebSocket protocol router function
131
- * decorated by {@link WebSocketRoute}.
130
+ * It's almost same with the {@link TypedParam}, but `@WebSocketRoute.Param()`
131
+ * is only for WebSocket protocol router function decorated by
132
+ * {@link WebSocketRoute}.
132
133
  *
133
134
  * @param field URL parameter field name
134
135
  */
@@ -153,18 +154,19 @@ function WebSocketRoute(path) {
153
154
  * `@WebSocketRoute.Query()` is a parameter decorator function for the URL
154
155
  * query string with type casting and assertion.
155
156
  *
156
- * It is almost same with {@link TypedQuery}, but
157
- * `@WebSocketRoute.Query()` is only for WebSocket protocol router function
158
- * decorated by {@link WebSocketRoute}.
157
+ * It is almost same with {@link TypedQuery}, but `@WebSocketRoute.Query()` is
158
+ * only for WebSocket protocol router function decorated by
159
+ * {@link WebSocketRoute}.
159
160
  *
160
161
  * For reference, as same with {@link TypedQuery}, `@WebSocketRoute.Query()`
161
- * has same restriction for the target type `T`. If actual URL query
162
- * parameter values are different with their promised type `T`,
163
- * it would be runtime error.
162
+ * has same restriction for the target type `T`. If actual URL query parameter
163
+ * values are different with their promised type `T`, it would be runtime
164
+ * error.
164
165
  *
165
166
  * 1. Type `T` must be an object type
166
167
  * 2. Do not allow dynamic property
167
- * 3. Only `boolean`, `bigint`, `number`, `string` or their array types are allowed
168
+ * 3. Only `boolean`, `bigint`, `number`, `string` or their array types are
169
+ * allowed
168
170
  * 4. By the way, union type never be not allowed
169
171
  */
170
172
  function Query(validator) {
@@ -178,9 +180,7 @@ function WebSocketRoute(path) {
178
180
  };
179
181
  }
180
182
  WebSocketRoute.Query = Query;
181
- /**
182
- * @internal
183
- */
183
+ /** @internal */
184
184
  const emplace = (target, propertyKey, value) => {
185
185
  const array = Reflect.getMetadata("nestia/WebSocketRoute/Parameters", target, propertyKey);
186
186
  if (array !== undefined)
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketRoute.js","sourceRoot":"","sources":["../../src/decorators/WebSocketRoute.ts"],"names":[],"mappings":";;AAyCA,wCAiBC;AAxDD,mFAAgF;AAEhF,4EAAyE;AACzE,8EAA2E;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,cAAc,CAC5B,IAAoC;IAEpC,OAAO,SAAS,cAAc,CAC5B,OAAe,EACf,YAA6B,EAC7B,U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CAAC;IApBe,oBAAK,QAoBpB,CAAA;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,SAAgB,KAAK,CACnB,SAAqC;QAErC,MAAM,QAAQ,GAAG,IAAA,+CAAsB,EAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC;QAC3E,OAAO,SAAS,cAAc,CAC5B,MAAc,EACd,WAAwC,EACxC,cAAsB;YAEtB,OAAO,CAAC,MAAM,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,EAAE;gBACjC,QAAQ,EAAE,OAAO;gBACjB,KAAK,EAAE,cAAc;gBACrB,QAAQ;aACT,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;IAfe,oBAAK,QAepB,CAAA;IAED,gBAAgB;IAChB,MAAM,OAAO,GAAG,CACd,MAAc,EACd,WAA4B,EAC5B,KAAuC,EACvC,EAAE;QACF,MAAM,KAAK,GACT,OAAO,CAAC,WAAW,CACjB,kCAAkC,EAClC,MAAM,EACN,WAAW,CACZ,CAAC;QACJ,IAAI,KAAK,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;;YAEzC,OAAO,CAAC,cAAc,CACpB,kCAAkC,EAClC,CAAC,KAAK,CAAC,EACP,MAAM,EACN,WAAW,CACZ,CAAC;IACN,CAAC,CAAC;AACJ,CAAC,EAtLgB,cAAc,8BAAd,cAAc,QAsL9B"}
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ENCRYPTION_METADATA_KEY = void 0;
4
- /**
5
- * @internal
6
- */
4
+ /** @internal */
7
5
  exports.ENCRYPTION_METADATA_KEY = "nestia:core:encryption:password";
8
6
  //# sourceMappingURL=EncryptedConstant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EncryptedConstant.js","sourceRoot":"","sources":["../../../src/decorators/internal/EncryptedConstant.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,uBAAuB,GAAG,iCAAiC,CAAC"}
1
+ {"version":3,"file":"EncryptedConstant.js","sourceRoot":"","sources":["../../../src/decorators/internal/EncryptedConstant.ts"],"names":[],"mappings":";;;AAAA,gBAAgB;AACH,QAAA,uBAAuB,GAAG,iCAAiC,CAAC"}
@@ -7,9 +7,7 @@ exports.get_path_and_querify = void 0;
7
7
  const common_1 = require("@nestjs/common");
8
8
  const typia_1 = __importDefault(require("typia"));
9
9
  const NoTransformConfigurationError_1 = require("../NoTransformConfigurationError");
10
- /**
11
- * @internal
12
- */
10
+ /** @internal */
13
11
  const get_path_and_querify = (method) => (...args) => {
14
12
  const path = args[0] === undefined ||
15
13
  typeof args[0] === "string" ||
@@ -20,9 +18,7 @@ const get_path_and_querify = (method) => (...args) => {
20
18
  return [path !== null && path !== void 0 ? path : undefined, take(method)(functor)];
21
19
  };
22
20
  exports.get_path_and_querify = get_path_and_querify;
23
- /**
24
- * @internal
25
- */
21
+ /** @internal */
26
22
  const take = (method) => (functor) => {
27
23
  if (functor === undefined) {
28
24
  (0, NoTransformConfigurationError_1.NoTransformConfigurationError)(method);
@@ -40,9 +36,7 @@ const take = (method) => (functor) => {
40
36
  return validate(functor.validate);
41
37
  throw new Error(`Error on nestia.core.${method}(): invalid typed stringify function.`);
42
38
  };
43
- /**
44
- * @internal
45
- */
39
+ /** @internal */
46
40
  const querify = (input) => {
47
41
  const output = new URLSearchParams();
48
42
  for (const [key, value] of Object.entries(input))
@@ -55,9 +49,7 @@ const querify = (input) => {
55
49
  output.append(key, String(value));
56
50
  return output;
57
51
  };
58
- /**
59
- * @internal
60
- */
52
+ /** @internal */
61
53
  const assert = (closure) => (data) => {
62
54
  try {
63
55
  return closure(data);
@@ -74,18 +66,14 @@ const assert = (closure) => (data) => {
74
66
  throw exp;
75
67
  }
76
68
  };
77
- /**
78
- * @internal
79
- */
69
+ /** @internal */
80
70
  const is = (closure) => (data) => {
81
71
  const result = closure(data);
82
72
  if (result === null)
83
73
  throw new common_1.InternalServerErrorException(MESSAGE);
84
74
  return result;
85
75
  };
86
- /**
87
- * @internal
88
- */
76
+ /** @internal */
89
77
  const validate = (closure) => (data) => {
90
78
  const result = closure(data);
91
79
  if (result.success === false)
@@ -95,8 +83,6 @@ const validate = (closure) => (data) => {
95
83
  });
96
84
  return result.data;
97
85
  };
98
- /**
99
- * @internal
100
- */
86
+ /** @internal */
101
87
  const MESSAGE = "Response body data is not following the promised type.";
102
88
  //# sourceMappingURL=get_path_and_querify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get_path_and_querify.js","sourceRoot":"","sources":["../../../src/decorators/internal/get_path_and_querify.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA8D;AAC9D,kDAA2D;AAG3D,oFAAiF;AAEjF;;GAEG;AACI,MAAM,oBAAoB,GAC/B,CAAC,MAAc,EAAE,EAAE,CACnB,CACE,GAAG,IAAW,EACoD,EAAE;IACpE,MAAM,IAAI,GACR,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS;QACrB,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACT,CAAC,CAAC,IAAI,CAAC;IACX,MAAM,OAAO,GACX,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC;AAdS,QAAA,oBAAoB,wBAc7B;AAEJ;;GAEG;AACH,MAAM,IAAI,GACR,CAAC,MAAc,EAAE,EAAE,CACnB,CAAI,OAA0C,EAAE,EAAE;IAChD,IAAI,OAAO,KAAK,SAAS,EAAE,CAA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AAC;QACH,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,6YAA6B,GAAG;YAC9B,MAAM,IAAI,qCAA4B,CAAC;gBACrC,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,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,EAAE,GACN,CAAI,OAA4C,EAAE,EAAE,CACpD,CAAC,IAAO,EAAE,EAAE;IACV,MAAM,MAAM,GAA2B,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,MAAM,KAAK,IAAI;QAAE,MAAM,IAAI,qCAA4B,CAAC,OAAO,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,QAAQ,GACZ,CAAI,OAAkD,EAAE,EAAE,CAC1D,CAAC,IAAO,EAAE,EAAE;IACV,MAAM,MAAM,GAAiC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK;QAC1B,MAAM,IAAI,qCAA4B,CAAC;YACrC,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;IACL,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,OAAO,GAAG,wDAAwD,CAAC"}
1
+ {"version":3,"file":"get_path_and_querify.js","sourceRoot":"","sources":["../../../src/decorators/internal/get_path_and_querify.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA8D;AAC9D,kDAA2D;AAG3D,oFAAiF;AAEjF,gBAAgB;AACT,MAAM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E;IACV,MAAM,MAAM,GAA2B,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,MAAM,KAAK,IAAI;QAAE,MAAM,IAAI,qCAA4B,CAAC,OAAO,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEJ,gBAAgB;AAChB,MAAM,QAAQ,GACZ,CAAI,OAAkD,EAAE,EAAE,CAC1D,CAAC,IAAO,EAAE,EAAE;IACV,MAAM,MAAM,GAAiC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK;QAC1B,MAAM,IAAI,qCAA4B,CAAC;YACrC,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;IACL,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC,CAAC;AAEJ,gBAAgB;AAChB,MAAM,OAAO,GAAG,wDAAwD,CAAC"}
@@ -7,9 +7,7 @@ exports.get_path_and_stringify = void 0;
7
7
  const common_1 = require("@nestjs/common");
8
8
  const typia_1 = __importDefault(require("typia"));
9
9
  const NoTransformConfigurationError_1 = require("../NoTransformConfigurationError");
10
- /**
11
- * @internal
12
- */
10
+ /** @internal */
13
11
  const get_path_and_stringify = (logger) => (method) => (...args) => {
14
12
  const path = args[0] === undefined ||
15
13
  typeof args[0] === "string" ||
@@ -20,9 +18,7 @@ const get_path_and_stringify = (logger) => (method) => (...args) => {
20
18
  return [path !== null && path !== void 0 ? path : undefined, take(logger)(method)(functor)];
21
19
  };
22
20
  exports.get_path_and_stringify = get_path_and_stringify;
23
- /**
24
- * @internal
25
- */
21
+ /** @internal */
26
22
  const take = (logger) => (method) => (functor) => {
27
23
  if (functor === undefined) {
28
24
  (0, NoTransformConfigurationError_1.NoTransformConfigurationError)(method);
@@ -42,9 +38,7 @@ const take = (logger) => (method) => (functor) => {
42
38
  return validateLog(logger)(functor.validate);
43
39
  throw new Error(`Error on nestia.core.${method}(): invalid typed stringify function.`);
44
40
  };
45
- /**
46
- * @internal
47
- */
41
+ /** @internal */
48
42
  const assert = (closure) => (data) => {
49
43
  try {
50
44
  return closure(data);
@@ -61,18 +55,14 @@ const assert = (closure) => (data) => {
61
55
  throw exp;
62
56
  }
63
57
  };
64
- /**
65
- * @internal
66
- */
58
+ /** @internal */
67
59
  const is = (closure) => (data, _method, _path) => {
68
60
  const result = closure(data);
69
61
  if (result === null)
70
62
  throw new common_1.InternalServerErrorException(MESSAGE);
71
63
  return result;
72
64
  };
73
- /**
74
- * @internal
75
- */
65
+ /** @internal */
76
66
  const validate = (closure) => (data, _method, _path) => {
77
67
  const result = closure(data);
78
68
  if (result.success === false)
@@ -95,8 +85,6 @@ const validateLog = (logger) => (closure) => (data, method, path) => {
95
85
  });
96
86
  return JSON.stringify(data);
97
87
  };
98
- /**
99
- * @internal
100
- */
88
+ /** @internal */
101
89
  const MESSAGE = "Response body data is not following the promised type.";
102
90
  //# sourceMappingURL=get_path_and_stringify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get_path_and_stringify.js","sourceRoot":"","sources":["../../../src/decorators/internal/get_path_and_stringify.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA8D;AAC9D,kDAA2D;AAG3D,oFAAiF;AAGjF;;GAEG;AACI,MAAM,sBAAsB,GACjC,CAAC,MAAyD,EAAE,EAAE,CAC9D,CAAC,MAAc,EAAE,EAAE,CACnB,CACE,GAAG,IAAW,EAId,EAAE;IACF,MAAM,IAAI,GACR,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS;QACrB,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACT,CAAC,CAAC,IAAI,CAAC;IACX,MAAM,OAAO,GACX,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,C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,WAAW,GACf,CAAC,MAAyD,EAAE,EAAE,CAC9D,CAAI,OAAsC,EAAE,EAAE,CAC9C,CAAC,IAAO,EAAE,MAAc,EAAE,IAAY,EAAU,EAAE;IAChD,MAAM,MAAM,GAAwB,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,MAAM,CAAC,OAAO,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC,IAAI,CAAC;IAChD,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK;QAC1B,MAAM,EAAE,CAAC;YACP,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,MAAM;YACN,IAAI;YACJ,IAAI;SACL,CAAC,CAAC;IACL,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,OAAO,GAAG,wDAAwD,CAAC"}
1
+ {"version":3,"file":"get_path_and_stringify.js","sourceRoot":"","sources":["../../../src/decorators/internal/get_path_and_stringify.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA8D;AAC9D,kDAA2D;AAG3D,oFAAiF;AAGjF,gBAAgB;AACT,MAAM,sBAAsB,GACjC,CAAC,MAAyD,EAAE,EAAE,CAC9D,CAAC,MAAc,EAAE,EAAE,CACnB,CACE,GAAG,IAAW,EAId,EAAE;IACF,MAAM,IAAI,GACR,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS;QACrB,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACT,CAAC,CAAC,IAAI,CAAC;IACX,MAAM,OAAO,GACX,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI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O,EAAE,MAAc,EAAE,IAAY,EAAU,EAAE;IAChD,MAAM,MAAM,GAAwB,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,MAAM,CAAC,OAAO,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC,IAAI,CAAC;IAChD,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK;QAC1B,MAAM,EAAE,CAAC;YACP,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,MAAM;YACN,IAAI;YACJ,IAAI;SACL,CAAC,CAAC;IACL,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEJ,gBAAgB;AAChB,MAAM,OAAO,GAAG,wDAAwD,CAAC"}
@@ -14,17 +14,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.get_text_body = void 0;
16
16
  const raw_body_1 = __importDefault(require("raw-body"));
17
- /**
18
- * @internal
19
- */
17
+ /** @internal */
20
18
  const get_text_body = (request) => __awaiter(void 0, void 0, void 0, function* () {
21
19
  return isExpressRequest(request)
22
20
  ? (yield (0, raw_body_1.default)(request)).toString("utf8")
23
21
  : request.body;
24
22
  });
25
23
  exports.get_text_body = get_text_body;
26
- /**
27
- * @internal
28
- */
24
+ /** @internal */
29
25
  const isExpressRequest = (request) => request.app !== undefined;
30
26
  //# sourceMappingURL=get_text_body.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get_text_body.js","sourceRoot":"","sources":["../../../src/decorators/internal/get_text_body.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wDAA2B;AAE3B;;GAEG;AACI,MAAM,aAAa,GAAG,CAC3B,OAAyC,EACxB,EAAE;IACnB,OAAA,gBAAgB,CAAC,OAAO,CAAC;QACvB,CAAC,CAAC,CAAC,MAAM,IAAA,kBAAG,EAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QACvC,CAAC,CAAE,OAAO,CAAC,IAAe,CAAA;EAAA,CAAC;AALlB,QAAA,aAAa,iBAKK;AAE/B;;GAEG;AACH,MAAM,gBAAgB,GAAG,CACvB,OAAyC,EACb,EAAE,CAAE,OAA2B,CAAC,GAAG,KAAK,SAAS,CAAC"}
1
+ {"version":3,"file":"get_text_body.js","sourceRoot":"","sources":["../../../src/decorators/internal/get_text_body.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wDAA2B;AAE3B,gBAAgB;AACT,MAAM,aAAa,GAAG,CAC3B,OAAyC,EACxB,EAAE;IACnB,OAAA,gBAAgB,CAAC,OAAO,CAAC;QACvB,CAAC,CAAC,CAAC,MAAM,IAAA,kBAAG,EAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QACvC,CAAC,CAAE,OAAO,CAAC,IAAe,CAAA;EAAA,CAAC;AALlB,QAAA,aAAa,iBAKK;AAE/B,gBAAgB;AAChB,MAAM,gBAAgB,GAAG,CACvB,OAAyC,EACb,EAAE,CAAE,OAA2B,CAAC,GAAG,KAAK,SAAS,CAAC"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.headers_to_object = headers_to_object;
4
- /**
5
- * @internal
6
- */
4
+ /** @internal */
7
5
  function headers_to_object(headers) {
8
6
  const output = {};
9
7
  for (const [key, value] of Object.entries(headers))
@@ -1 +1 @@
1
- {"version":3,"file":"headers_to_object.js","sourceRoot":"","sources":["../../../src/decorators/internal/headers_to_object.ts"],"names":[],"mappings":";;AAKA,8CAOC;AAVD;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,OAAiC;IAEjC,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;QAChD,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;IAChE,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"headers_to_object.js","sourceRoot":"","sources":["../../../src/decorators/internal/headers_to_object.ts"],"names":[],"mappings":";;AAGA,8CAOC;AARD,gBAAgB;AAChB,SAAgB,iBAAiB,CAC/B,OAAiC;IAEjC,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;QAChD,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;IAChE,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.is_request_body_undefined = void 0;
4
- /**
5
- * @internal
6
- */
4
+ /** @internal */
7
5
  const is_request_body_undefined = (request) => request.headers["content-type"] === undefined &&
8
6
  (request.body === undefined ||
9
7
  (typeof request.body === "object" &&
@@ -1 +1 @@
1
- {"version":3,"file":"is_request_body_undefined.js","sourceRoot":"","sources":["../../../src/decorators/internal/is_request_body_undefined.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACI,MAAM,yBAAyB,GAAG,CACvC,OAAyC,EAChC,EAAE,CACX,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,SAAS;IAC7C,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS;QACzB,CAAC,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ;YAC/B,OAAO,CAAC,IAAI,KAAK,IAAI;YACrB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;AAPlC,QAAA,yBAAyB,6BAOS"}
1
+ {"version":3,"file":"is_request_body_undefined.js","sourceRoot":"","sources":["../../../src/decorators/internal/is_request_body_undefined.ts"],"names":[],"mappings":";;;AAGA,gBAAgB;AACT,MAAM,yBAAyB,GAAG,CACvC,OAAyC,EAChC,EAAE,CACX,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,SAAS;IAC7C,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS;QACzB,CAAC,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ;YAC/B,OAAO,CAAC,IAAI,KAAK,IAAI;YACrB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;AAPlC,QAAA,yBAAyB,6BAOS"}
@@ -57,7 +57,7 @@ const load_controllers = (path, isTsNode) => __awaiter(void 0, void 0, void 0, f
57
57
  ? path.include
58
58
  : [path],
59
59
  exclude: typeof path === "object" && !Array.isArray(path)
60
- ? (_a = path.exclude) !== null && _a !== void 0 ? _a : []
60
+ ? ((_a = path.exclude) !== null && _a !== void 0 ? _a : [])
61
61
  : [],
62
62
  filter: isTsNode === true || EXTENSION === "ts"
63
63
  ? (file) => file.substring(file.length - 3) === ".ts" &&
@@ -67,9 +67,7 @@ const load_controllers = (path, isTsNode) => __awaiter(void 0, void 0, void 0, f
67
67
  return mount(sources);
68
68
  });
69
69
  exports.load_controllers = load_controllers;
70
- /**
71
- * @internal
72
- */
70
+ /** @internal */
73
71
  function mount(sources) {
74
72
  return __awaiter(this, void 0, void 0, function* () {
75
73
  const controllers = [];
@@ -84,8 +82,6 @@ function mount(sources) {
84
82
  return controllers;
85
83
  });
86
84
  }
87
- /**
88
- * @internal
89
- */
85
+ /** @internal */
90
86
  const EXTENSION = detect_ts_node_1.default ? "ts" : "js";
91
87
  //# sourceMappingURL=load_controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load_controller.js","sourceRoot":"","sources":["../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P,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,KAAK;gBACzC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,OAAO;YAC/C,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,KAAK;KAC1D,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;AACxB,CAAC,CAAA,CAAC;AAtBW,QAAA,gBAAgB,oBAsB3B;AAEF,gBAAgB;AAChB,SAAe,KAAK,CAAC,OAAiB;;QACpC,MAAM,WAAW,GAAU,EAAE,CAAC;QAC9B,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC3B,MAAM,QAAQ,GAAQ,yBAAa,IAAI,uCAAC,CAAC;YACzC,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;gBAC3B,MAAM,QAAQ,GAAoB,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAChD,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,SAAS;oBACrD,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;CAAA;AAED,gBAAgB;AAChB,MAAM,SAAS,GAAG,wBAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -4,9 +4,7 @@ exports.route_error = route_error;
4
4
  const common_1 = require("@nestjs/common");
5
5
  const rxjs_1 = require("rxjs");
6
6
  const ExceptionManager_1 = require("../../utils/ExceptionManager");
7
- /**
8
- * @internal
9
- */
7
+ /** @internal */
10
8
  function route_error(request, error) {
11
9
  var _a, _b, _c;
12
10
  error = (() => {
@@ -1 +1 @@
1
- {"version":3,"file":"route_error.js","s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