@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 CHANGED
@@ -2,8 +2,8 @@
2
2
  ![Nestia Logo](https://nestia.io/logo.png)
3
3
 
4
4
  [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)
5
- [![npm version](https://img.shields.io/npm/v/@nestia/sdk.svg)](https://www.npmjs.com/package/@nestia/sdk)
6
- [![Downloads](https://img.shields.io/npm/dm/@nestia/sdk.svg)](https://www.npmjs.com/package/@nestia/sdk)
5
+ [![npm version](https://img.shields.io/npm/v/@nestia/fetcher.svg)](https://www.npmjs.com/package/@nestia/fetcher)
6
+ [![Downloads](https://img.shields.io/npm/dm/@nestia/fetcher.svg)](https://www.npmjs.com/package/@nestia/fetcher)
7
7
  [![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)
8
8
  [![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)
9
9
  [![Discord Badge](https://img.shields.io/badge/discord-NestJS/Nestia-d91965?style=flat&labelColor=5866f2&logo=discord&logoColor=white&link=https://discord.com/channels/520622812742811698/1197293125434093701)](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 $io0 = input => Array.isArray(input.paths) && input.paths.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && $io0(input); })()(route) === false)
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 $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))
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 $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))
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 $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))
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 $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
+ 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 $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)) {
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 $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)) {
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 $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)) {
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: `nestia.core.TypedQuery.${functor.method}`,
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.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core",
3
- "version": "4.0.0-dev.20241022",
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.20241022",
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.20241022",
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",
@@ -35,7 +35,7 @@ export namespace HttpQuerifyProgrammer {
35
35
  });
36
36
  if (result.success === false)
37
37
  throw TransformerError.from({
38
- code: `nestia.core.TypedQuery.${functor.method}`,
38
+ code: functor.method,
39
39
  errors: result.errors,
40
40
  });
41
41