@nestia/core 2.5.13 → 2.5.14-dev.20240306

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.
@@ -77,10 +77,10 @@ var DynamicModule;
77
77
  * @param metadata Addtional metadata except controllers
78
78
  * @returns module instance
79
79
  */
80
- function mount(path, metadata) {
81
- if (metadata === void 0) { metadata = {}; }
82
- return __awaiter(this, void 0, void 0, function () {
80
+ function mount(path_1) {
81
+ return __awaiter(this, arguments, void 0, function (path, metadata) {
83
82
  var controllers, NestiaModule;
83
+ if (metadata === void 0) { metadata = {}; }
84
84
  return __generator(this, function (_a) {
85
85
  switch (_a.label) {
86
86
  case 0: return [4 /*yield*/, (0, load_controller_1.load_controllers)(path)];
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicModule.js","sourceRoot":"","sources":["../../src/decorators/DynamicModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAwC;AAIxC,8DAA8D;AAE9D;;;;;;;GAOG;AACH,IAAiB,aAAa,CAwB7B;AAxBD,WAAiB,aAAa;IAC5B;;;;;;;;;;OAUG;IACH,SAAsB,KAAK,CACzB,IAAmE,EACnE,QAAkD;QAAlD,yBAAA,EAAA,aAAkD;;;;;4BAGX,qBAAM,IAAA,kCAAgB,EAAC,IAAI,CAAC,EAAA;;wBAA7D,WAAW,GAAsB,SAA4B;;4BAInE;4BAAoB,CAAC;4BAAf,YAAY;gCADjB,IAAA,eAAM,wBAAM,QAAQ,KAAE,WAAW,aAAA,IAAG;+BAC/B,YAAY,CAAG;4BAAD,mBAAC;yBAAA,AAArB;wBACA,sBAAO,YAAY,EAAC;;;;KACrB;IAXqB,mBAAK,QAW1B,CAAA;AACH,CAAC,EAxBgB,aAAa,6BAAb,aAAa,QAwB7B"}
1
+ {"version":3,"file":"DynamicModule.js","sourceRoot":"","sources":["../../src/decorators/DynamicModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAwC;AAIxC,8DAA8D;AAE9D;;;;;;;GAOG;AACH,IAAiB,aAAa,CAwB7B;AAxBD,WAAiB,aAAa;IAC5B;;;;;;;;;;OAUG;IACH,SAAsB,KAAK;4DACzB,IAAmE,EACnE,QAAkD;;YAAlD,yBAAA,EAAA,aAAkD;;;4BAGX,qBAAM,IAAA,kCAAgB,EAAC,IAAI,CAAC,EAAA;;wBAA7D,WAAW,GAAsB,SAA4B;;4BAInE;4BAAoB,CAAC;4BAAf,YAAY;gCADjB,IAAA,eAAM,wBAAM,QAAQ,KAAE,WAAW,aAAA,IAAG;+BAC/B,YAAY,CAAG;4BAAD,mBAAC;yBAAA,AAArB;wBACA,sBAAO,YAAY,EAAC;;;;KACrB;IAXqB,mBAAK,QAW1B,CAAA;AACH,CAAC,EAxBgB,aAAa,6BAAb,aAAa,QAwB7B"}
@@ -119,10 +119,10 @@ exports.EncryptedModule = EncryptedModule;
119
119
  * @param options Additional options except controller
120
120
  * @returns Class decorated module instance
121
121
  */
122
- function dynamic(path, password, options) {
123
- if (options === void 0) { options = {}; }
124
- return __awaiter(this, void 0, void 0, function () {
122
+ function dynamic(path_1, password_1) {
123
+ return __awaiter(this, arguments, void 0, function (path, password, options) {
125
124
  var controllers, NestiaModule;
125
+ if (options === void 0) { options = {}; }
126
126
  return __generator(this, function (_a) {
127
127
  switch (_a.label) {
128
128
  case 0: return [4 /*yield*/, (0, load_controller_1.load_controllers)(path)];
@@ -1 +1 @@
1
- {"version":3,"file":"EncryptedModule.js","sourceRoot":"","sources":["../../src/decorators/EncryptedModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAwC;AAGxC,kEAAuE;AACvE,8DAA8D;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,QAAQ,CACzD;+BACK,YAAY,CAAG;4BAAD,mBAAC;yBAAA,AAArB;wBACA,sBAAO,YAAY,EAAC;;;;KACrB;IAfqB,uBAAO,UAe5B,CAAA;AACH,CAAC,EA9BgB,eAAe,+BAAf,eAAe,QA8B/B;AAED;;GAEG;AACH,IAAM,OAAO,GACX,UAAC,QAAqC;IACtC,OAAA,UAAC,MAAW;;QACV,IAAM,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACvD,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;;gBACxB,KAAkB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA;oBAApB,IAAM,GAAG,oBAAA;oBACZ,IAAI,OAAO,GAAG,KAAK,UAAU;wBAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC;iBAAA;;;;;;;;aAAA;QAE1D,IAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAC/D,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;;gBAC5B,KAAgB,IAAA,gBAAA,SAAA,WAAW,CAAA,wCAAA;oBAAtB,IAAM,CAAC,wBAAA;oBACV,IAAI,OAAO,CAAC,KAAK,UAAU;wBACzB,OAAO,CAAC,cAAc,CAAC,2CAAuB,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;iBAAA;;;;;;;;aAAA;IACrE,CAAC;AAXD,CAWC,CAAC"}
@@ -28,7 +28,7 @@ export declare namespace EncryptedRoute {
28
28
  */
29
29
  const Get: {
30
30
  (path?: string | string[]): MethodDecorator;
31
- <T>(stringify?: IResponseBodyStringifier<T> | null | undefined): MethodDecorator;
31
+ <T>(stringify?: IResponseBodyStringifier<T> | null): MethodDecorator;
32
32
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | null | undefined): MethodDecorator;
33
33
  };
34
34
  /**
@@ -39,7 +39,7 @@ export declare namespace EncryptedRoute {
39
39
  */
40
40
  const Post: {
41
41
  (path?: string | string[]): MethodDecorator;
42
- <T>(stringify?: IResponseBodyStringifier<T> | null | undefined): MethodDecorator;
42
+ <T>(stringify?: IResponseBodyStringifier<T> | null): MethodDecorator;
43
43
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | null | undefined): MethodDecorator;
44
44
  };
45
45
  /**
@@ -50,7 +50,7 @@ export declare namespace EncryptedRoute {
50
50
  */
51
51
  const Patch: {
52
52
  (path?: string | string[]): MethodDecorator;
53
- <T>(stringify?: IResponseBodyStringifier<T> | null | undefined): MethodDecorator;
53
+ <T>(stringify?: IResponseBodyStringifier<T> | null): MethodDecorator;
54
54
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | null | undefined): MethodDecorator;
55
55
  };
56
56
  /**
@@ -61,7 +61,7 @@ export declare namespace EncryptedRoute {
61
61
  */
62
62
  const Put: {
63
63
  (path?: string | string[]): MethodDecorator;
64
- <T>(stringify?: IResponseBodyStringifier<T> | null | undefined): MethodDecorator;
64
+ <T>(stringify?: IResponseBodyStringifier<T> | null): MethodDecorator;
65
65
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | null | undefined): MethodDecorator;
66
66
  };
67
67
  /**
@@ -72,7 +72,7 @@ export declare namespace EncryptedRoute {
72
72
  */
73
73
  const Delete: {
74
74
  (path?: string | string[]): MethodDecorator;
75
- <T>(stringify?: IResponseBodyStringifier<T> | null | undefined): MethodDecorator;
75
+ <T>(stringify?: IResponseBodyStringifier<T> | null): MethodDecorator;
76
76
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | null | undefined): MethodDecorator;
77
77
  };
78
78
  }
@@ -35,7 +35,7 @@ export declare namespace TypedQuery {
35
35
  */
36
36
  const Get: {
37
37
  (path?: string | string[]): MethodDecorator;
38
- <T>(stringify?: IResponseBodyQuerifier<T> | undefined): MethodDecorator;
38
+ <T>(stringify?: IResponseBodyQuerifier<T>): MethodDecorator;
39
39
  <T_1>(path: string | string[], stringify?: IResponseBodyQuerifier<T_1> | undefined): MethodDecorator;
40
40
  };
41
41
  /**
@@ -46,7 +46,7 @@ export declare namespace TypedQuery {
46
46
  */
47
47
  const Post: {
48
48
  (path?: string | string[]): MethodDecorator;
49
- <T>(stringify?: IResponseBodyQuerifier<T> | undefined): MethodDecorator;
49
+ <T>(stringify?: IResponseBodyQuerifier<T>): MethodDecorator;
50
50
  <T_1>(path: string | string[], stringify?: IResponseBodyQuerifier<T_1> | undefined): MethodDecorator;
51
51
  };
52
52
  /**
@@ -57,7 +57,7 @@ export declare namespace TypedQuery {
57
57
  */
58
58
  const Patch: {
59
59
  (path?: string | string[]): MethodDecorator;
60
- <T>(stringify?: IResponseBodyQuerifier<T> | undefined): MethodDecorator;
60
+ <T>(stringify?: IResponseBodyQuerifier<T>): MethodDecorator;
61
61
  <T_1>(path: string | string[], stringify?: IResponseBodyQuerifier<T_1> | undefined): MethodDecorator;
62
62
  };
63
63
  /**
@@ -68,7 +68,7 @@ export declare namespace TypedQuery {
68
68
  */
69
69
  const Put: {
70
70
  (path?: string | string[]): MethodDecorator;
71
- <T>(stringify?: IResponseBodyQuerifier<T> | undefined): MethodDecorator;
71
+ <T>(stringify?: IResponseBodyQuerifier<T>): MethodDecorator;
72
72
  <T_1>(path: string | string[], stringify?: IResponseBodyQuerifier<T_1> | undefined): MethodDecorator;
73
73
  };
74
74
  /**
@@ -79,7 +79,7 @@ export declare namespace TypedQuery {
79
79
  */
80
80
  const Delete: {
81
81
  (path?: string | string[]): MethodDecorator;
82
- <T>(stringify?: IResponseBodyQuerifier<T> | undefined): MethodDecorator;
82
+ <T>(stringify?: IResponseBodyQuerifier<T>): MethodDecorator;
83
83
  <T_1>(path: string | string[], stringify?: IResponseBodyQuerifier<T_1> | undefined): MethodDecorator;
84
84
  };
85
85
  }
@@ -23,7 +23,7 @@ export declare namespace TypedRoute {
23
23
  */
24
24
  const Get: {
25
25
  (path?: string | string[]): MethodDecorator;
26
- <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
26
+ <T>(stringify?: IResponseBodyStringifier<T>): MethodDecorator;
27
27
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
28
28
  };
29
29
  /**
@@ -34,7 +34,7 @@ export declare namespace TypedRoute {
34
34
  */
35
35
  const Post: {
36
36
  (path?: string | string[]): MethodDecorator;
37
- <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
37
+ <T>(stringify?: IResponseBodyStringifier<T>): MethodDecorator;
38
38
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
39
39
  };
40
40
  /**
@@ -45,7 +45,7 @@ export declare namespace TypedRoute {
45
45
  */
46
46
  const Patch: {
47
47
  (path?: string | string[]): MethodDecorator;
48
- <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
48
+ <T>(stringify?: IResponseBodyStringifier<T>): MethodDecorator;
49
49
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
50
50
  };
51
51
  /**
@@ -56,7 +56,7 @@ export declare namespace TypedRoute {
56
56
  */
57
57
  const Put: {
58
58
  (path?: string | string[]): MethodDecorator;
59
- <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
59
+ <T>(stringify?: IResponseBodyStringifier<T>): MethodDecorator;
60
60
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
61
61
  };
62
62
  /**
@@ -67,7 +67,7 @@ export declare namespace TypedRoute {
67
67
  */
68
68
  const Delete: {
69
69
  (path?: string | string[]): MethodDecorator;
70
- <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
70
+ <T>(stringify?: IResponseBodyStringifier<T>): MethodDecorator;
71
71
  <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
72
72
  };
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/core",
3
- "version": "2.5.13",
3
+ "version": "2.5.14-dev.20240306",
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": "^2.5.13",
39
+ "@nestia/fetcher": "^2.5.14-dev.20240306",
40
40
  "@nestjs/common": ">=7.0.1",
41
41
  "@nestjs/core": ">=7.0.1",
42
42
  "detect-ts-node": "^1.0.5",
@@ -48,7 +48,7 @@
48
48
  "typia": "^5.4.12"
49
49
  },
50
50
  "peerDependencies": {
51
- "@nestia/fetcher": ">=2.5.13",
51
+ "@nestia/fetcher": ">=2.5.14-dev.20240306",
52
52
  "@nestjs/common": ">=7.0.1",
53
53
  "@nestjs/core": ">=7.0.1",
54
54
  "reflect-metadata": ">=0.1.12",