@nestia/core 4.0.0-dev.20241022 → 4.0.0-dev.20241115
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/README.md +2 -2
- package/lib/adaptors/WebSocketAdaptor.js +1 -1
- package/lib/decorators/TypedParam.js +1 -1
- package/lib/decorators/internal/get_path_and_querify.js +1 -1
- package/lib/decorators/internal/get_path_and_stringify.js +1 -1
- package/lib/decorators/internal/validate_request_body.js +1 -1
- package/lib/decorators/internal/validate_request_form_data.js +1 -1
- package/lib/decorators/internal/validate_request_headers.js +1 -1
- package/lib/decorators/internal/validate_request_query.js +1 -1
- package/lib/programmers/http/HttpQuerifyProgrammer.js +1 -1
- package/lib/programmers/http/HttpQuerifyProgrammer.js.map +1 -1
- package/package.json +5 -5
- package/src/programmers/http/HttpQuerifyProgrammer.ts +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|

|
|
3
3
|
|
|
4
4
|
[](https://github.com/samchon/nestia/blob/master/LICENSE)
|
|
5
|
-
[](https://www.npmjs.com/package/@nestia/fetcher)
|
|
6
|
+
[](https://www.npmjs.com/package/@nestia/fetcher)
|
|
7
7
|
[](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)
|
|
8
8
|
[](https://nestia.io/docs/)
|
|
9
9
|
[](https://discord.com/channels/520622812742811698/1181877086797967420)
|
|
@@ -175,7 +175,7 @@ const visitController = (props) => __awaiter(void 0, void 0, void 0, function* (
|
|
|
175
175
|
const visitMethod = (props) => {
|
|
176
176
|
var _a, _b, _c;
|
|
177
177
|
const route = Reflect.getMetadata("nestia/WebSocketRoute", props.method.value);
|
|
178
|
-
if ((() => { const
|
|
178
|
+
if ((() => { const _io0 = input => Array.isArray(input.paths) && input.paths.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && _io0(input); })()(route) === false)
|
|
179
179
|
return;
|
|
180
180
|
const parameters = ((_a = Reflect.getMetadata("nestia/WebSocketRoute/Parameters", props.controller.prototype, props.method.key)) !== null && _a !== void 0 ? _a : []).sort((a, b) => a.index - b.index);
|
|
181
181
|
// acceptor must be
|
|
@@ -44,7 +44,7 @@ function TypedParam(name, assert) {
|
|
|
44
44
|
return assert(str);
|
|
45
45
|
}
|
|
46
46
|
catch (exp) {
|
|
47
|
-
if ((() => { const
|
|
47
|
+
if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp))
|
|
48
48
|
throw new common_1.BadRequestException({
|
|
49
49
|
path: exp.path,
|
|
50
50
|
reason: exp.message,
|
|
@@ -63,7 +63,7 @@ const assert = (closure) => (data) => {
|
|
|
63
63
|
return closure(data);
|
|
64
64
|
}
|
|
65
65
|
catch (exp) {
|
|
66
|
-
if ((() => { const
|
|
66
|
+
if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp))
|
|
67
67
|
throw new common_1.InternalServerErrorException({
|
|
68
68
|
path: exp.path,
|
|
69
69
|
reason: exp.message,
|
|
@@ -50,7 +50,7 @@ const assert = (closure) => (data) => {
|
|
|
50
50
|
return closure(data);
|
|
51
51
|
}
|
|
52
52
|
catch (exp) {
|
|
53
|
-
if ((() => { const
|
|
53
|
+
if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp))
|
|
54
54
|
throw new common_1.InternalServerErrorException({
|
|
55
55
|
path: exp.path,
|
|
56
56
|
reason: exp.message,
|
|
@@ -33,7 +33,7 @@ const assert = (closure) => (input) => {
|
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
35
|
catch (exp) {
|
|
36
|
-
if ((() => { const
|
|
36
|
+
if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp)) {
|
|
37
37
|
return new common_1.BadRequestException({
|
|
38
38
|
path: exp.path,
|
|
39
39
|
reason: exp.message,
|
|
@@ -32,7 +32,7 @@ const assert = (closure) => (input) => {
|
|
|
32
32
|
return closure(input);
|
|
33
33
|
}
|
|
34
34
|
catch (exp) {
|
|
35
|
-
if ((() => { const
|
|
35
|
+
if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp)) {
|
|
36
36
|
return new common_1.BadRequestException({
|
|
37
37
|
path: exp.path,
|
|
38
38
|
reason: exp.message,
|
|
@@ -32,7 +32,7 @@ const assert = (closure) => (input) => {
|
|
|
32
32
|
return closure(input);
|
|
33
33
|
}
|
|
34
34
|
catch (exp) {
|
|
35
|
-
if ((() => { const
|
|
35
|
+
if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp)) {
|
|
36
36
|
return new common_1.BadRequestException({
|
|
37
37
|
path: exp.path,
|
|
38
38
|
reason: exp.message,
|
|
@@ -32,7 +32,7 @@ const assert = (closure) => (input) => {
|
|
|
32
32
|
return closure(input);
|
|
33
33
|
}
|
|
34
34
|
catch (exp) {
|
|
35
|
-
if ((() => { const
|
|
35
|
+
if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp)) {
|
|
36
36
|
return new common_1.BadRequestException({
|
|
37
37
|
path: exp.path,
|
|
38
38
|
reason: exp.message,
|
|
@@ -32,7 +32,7 @@ var HttpQuerifyProgrammer;
|
|
|
32
32
|
});
|
|
33
33
|
if (result.success === false)
|
|
34
34
|
throw TransformerError_1.TransformerError.from({
|
|
35
|
-
code:
|
|
35
|
+
code: functor.method,
|
|
36
36
|
errors: result.errors,
|
|
37
37
|
});
|
|
38
38
|
const object = result.data.objects[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpQuerifyProgrammer.js","sourceRoot":"","sources":["../../../src/programmers/http/HttpQuerifyProgrammer.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAC5B,6EAA0E;AAC1E,+EAA4E;AAC5E,yEAAsE;AACtE,2EAAwE;AACxE,yFAAsF;AACtF,wFAAqF;AAIrF,8EAA2E;AAE3E,IAAiB,qBAAqB,CA+FrC;AA/FD,WAAiB,qBAAqB;IACvB,2BAAK,GAAG,CAAC,KAIrB,EAAoB,EAAE;QACrB,kBAAkB;QAClB,MAAM,OAAO,GAAuB,IAAI,uCAAkB,CACxD,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CACvB,CAAC;QACF,MAAM,UAAU,GAAuB,IAAI,uCAAkB,EAAE,CAAC;QAChE,MAAM,MAAM,GAAG,iCAAe,CAAC,OAAO,CAAC;YACrC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO;YAC9B,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW;YACtC,OAAO,EAAE;gBACP,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,IAAI;gBACd,MAAM,EAAE,IAAI;gBACZ,QAAQ,EA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CACJ,EACD,SAAS,CACV,EACD,SAAS,EACT;YACE,oBAAE,CAAC,OAAO,CAAC,mBAAmB,CAC5B,SAAS,EACT,SAAS,EACT,CAAC,qCAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EACrC,SAAS,EACT,SAAS,EACT,MAAM,CAAC,GAAG,CAAC,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CACjD;SACF,CACF;QACH,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CACT,qCAAiB,CAAC,MAAM,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,CACpE,CAAC;IAEV,MAAM,MAAM,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,IAAmB,EAAE,EAAE,CACtD,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAC7B,qCAAiB,CAAC,MAAM,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,EACzE,SAAS,EACT,CAAC,oBAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAC5C,CAAC;AACN,CAAC,EA/FgB,qBAAqB,qCAArB,qBAAqB,QA+FrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/core",
|
|
3
|
-
"version": "4.0.0-dev.
|
|
3
|
+
"version": "4.0.0-dev.20241115",
|
|
4
4
|
"description": "Super-fast validation decorators of NestJS",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://nestia.io",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nestia/fetcher": "^4.0.0-dev.
|
|
39
|
+
"@nestia/fetcher": "^4.0.0-dev.20241115",
|
|
40
40
|
"@nestjs/common": ">=7.0.1",
|
|
41
41
|
"@nestjs/core": ">=7.0.1",
|
|
42
42
|
"@samchon/openapi": "^1.1.0",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"reflect-metadata": ">=0.1.12",
|
|
50
50
|
"rxjs": ">=6.0.3",
|
|
51
51
|
"tgrid": "^1.0.0",
|
|
52
|
-
"typia": "^7.0.0-dev.20241022",
|
|
52
|
+
"typia": "^7.0.0-dev.20241022-2",
|
|
53
53
|
"ws": "^7.5.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@nestia/fetcher": ">=4.0.0-dev.
|
|
56
|
+
"@nestia/fetcher": ">=4.0.0-dev.20241115",
|
|
57
57
|
"@nestjs/common": ">=7.0.1",
|
|
58
58
|
"@nestjs/core": ">=7.0.1",
|
|
59
59
|
"reflect-metadata": ">=0.1.12",
|
|
60
60
|
"rxjs": ">=6.0.3",
|
|
61
|
-
"typia": ">=7.0.0-dev.20241022 <8.0.0"
|
|
61
|
+
"typia": ">=7.0.0-dev.20241022-2 <8.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@fastify/multipart": "^8.1.0",
|