@nestia/core 1.0.18 → 1.0.20-dev.20230413
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 +6 -11
- package/lib/decorators/EncryptedModule.d.ts +3 -3
- package/lib/decorators/EncryptedModule.js.map +1 -1
- package/lib/decorators/EncryptedRoute.js +3 -3
- package/lib/decorators/EncryptedRoute.js.map +1 -1
- package/lib/decorators/TypedRoute.js +2 -2
- package/lib/decorators/TypedRoute.js.map +1 -1
- package/lib/decorators/internal/route_error.d.ts +1 -2
- package/lib/decorators/internal/route_error.js.map +1 -1
- package/package.json +9 -12
- package/src/decorators/EncryptedModule.ts +3 -3
- package/src/decorators/EncryptedRoute.ts +2 -5
- package/src/decorators/TypedRoute.ts +2 -5
- package/src/decorators/internal/route_error.ts +2 -5
- package/lib/executable/core.d.ts +0 -2
- package/lib/executable/core.js +0 -124
- package/lib/executable/core.js.map +0 -1
- package/lib/executable/internal/ArgumentParser.d.ts +0 -9
- package/lib/executable/internal/ArgumentParser.js +0 -256
- package/lib/executable/internal/ArgumentParser.js.map +0 -1
- package/lib/executable/internal/CommandExecutor.d.ts +0 -3
- package/lib/executable/internal/CommandExecutor.js +0 -17
- package/lib/executable/internal/CommandExecutor.js.map +0 -1
- package/lib/executable/internal/FileRetriever.d.ts +0 -5
- package/lib/executable/internal/FileRetriever.js +0 -109
- package/lib/executable/internal/FileRetriever.js.map +0 -1
- package/lib/executable/internal/PackageManager.d.ts +0 -27
- package/lib/executable/internal/PackageManager.js +0 -126
- package/lib/executable/internal/PackageManager.js.map +0 -1
- package/lib/executable/internal/PluginConfigurator.d.ts +0 -5
- package/lib/executable/internal/PluginConfigurator.js +0 -145
- package/lib/executable/internal/PluginConfigurator.js.map +0 -1
- package/src/executable/core.ts +0 -70
- package/src/executable/internal/ArgumentParser.ts +0 -156
- package/src/executable/internal/CommandExecutor.ts +0 -8
- package/src/executable/internal/FileRetriever.ts +0 -33
- package/src/executable/internal/PackageManager.ts +0 -92
- package/src/executable/internal/PluginConfigurator.ts +0 -130
package/README.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
Super-fast validation decorators for NestJS.
|
|
9
9
|
|
|
10
|
-
-
|
|
11
|
-
-
|
|
10
|
+
- 20,000x faster request body validation
|
|
11
|
+
- 200x faster JSON response, even type safe
|
|
12
12
|
- Do not need DTO class definition, just fine with interface
|
|
13
13
|
|
|
14
|
-
`@nestia/core` is a transformer library of NestJS, supporting super-fast validation decorators, by wrapping [typia](https://github.com/samchon/typia). Comparing validation speed with `class-validator`, [typia](https://github.com/samchon/typia) is maximum **
|
|
14
|
+
`@nestia/core` is a transformer library of NestJS, supporting super-fast validation decorators, by wrapping [typia](https://github.com/samchon/typia). Comparing validation speed with `class-validator`, [typia](https://github.com/samchon/typia) is maximum **20,000x faster** and it is even much safer.
|
|
15
15
|
|
|
16
16
|
Furthermore, `@nestia/core` can use pure interface typed DTO with **only one line**. With `@nestia/core`, you don't need any extra dedication like defining JSON schema (`@nestjs/swagger`), or using class definition with decorator function calls (`class-validator`). Just enjoy the superfast decorators with pure TypeScript type.
|
|
17
17
|
|
|
@@ -29,7 +29,7 @@ export class BbsArticlesController {
|
|
|
29
29
|
* @param inupt Content to store
|
|
30
30
|
* @returns Newly archived article
|
|
31
31
|
*/
|
|
32
|
-
@TypedRoute.Post() //
|
|
32
|
+
@TypedRoute.Post() // 200x faster and safer JSON serialization
|
|
33
33
|
public async store(
|
|
34
34
|
@TypedBody() input: IBbsArticle.IStore // super-fast validator
|
|
35
35
|
): Promise<IBbsArticle>;
|
|
@@ -51,15 +51,10 @@ Just run above command, then boilerplate project would be constructed.
|
|
|
51
51
|
|
|
52
52
|
### Setup Wizard
|
|
53
53
|
```bash
|
|
54
|
-
|
|
54
|
+
npm install --save-dev nestia
|
|
55
55
|
npx nestia setup
|
|
56
|
-
|
|
57
|
-
# setup @nestia/core only
|
|
58
|
-
npx @nestia/core setup
|
|
59
56
|
```
|
|
60
57
|
|
|
61
|
-
Just type `npx nestia setup`, that's all.
|
|
62
|
-
|
|
63
58
|
If you've installed [ttypescript](https://github.com/cevek/ttypescript) during setup, you should compile `@nestia/core` utilization code through `ttsc` command, instead of `tsc`.
|
|
64
59
|
|
|
65
60
|
```bash
|
|
@@ -105,7 +100,7 @@ export class BbsArticlesController {
|
|
|
105
100
|
* @param inupt Content to store
|
|
106
101
|
* @returns Newly archived article
|
|
107
102
|
*/
|
|
108
|
-
@TypedRoute.Put(":id") //
|
|
103
|
+
@TypedRoute.Put(":id") // 200x faster and safer JSON serialization
|
|
109
104
|
public async store(
|
|
110
105
|
@TypedParam("section", "string") section: string,
|
|
111
106
|
@TypedParam("id", "uuid") id: string,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IEncryptionPassword } from "@nestia/fetcher/lib/IEncryptionPassword";
|
|
2
|
-
import {
|
|
2
|
+
import { Module } from "@nestjs/common";
|
|
3
3
|
/**
|
|
4
4
|
* Encrypted module.
|
|
5
5
|
*
|
|
@@ -30,7 +30,7 @@ import { ModuleMetadata } from "@nestjs/common";
|
|
|
30
30
|
*
|
|
31
31
|
* @author Jeongho Nam - https://github.com/samchon
|
|
32
32
|
*/
|
|
33
|
-
export declare function EncryptedModule(metadata:
|
|
33
|
+
export declare function EncryptedModule(metadata: Parameters<typeof Module>[0], password: IEncryptionPassword | IEncryptionPassword.Closure): ClassDecorator;
|
|
34
34
|
export declare namespace EncryptedModule {
|
|
35
35
|
/**
|
|
36
36
|
* Dynamic encrypted module.
|
|
@@ -45,5 +45,5 @@ export declare namespace EncryptedModule {
|
|
|
45
45
|
* @param options Additional options except controller
|
|
46
46
|
* @returns Class decorated module instance
|
|
47
47
|
*/
|
|
48
|
-
function dynamic(path: string, password: IEncryptionPassword | IEncryptionPassword.Closure, options?: Omit<
|
|
48
|
+
function dynamic(path: string, password: IEncryptionPassword | IEncryptionPassword.Closure, options?: Omit<Parameters<typeof Module>[0], "controllers">): Promise<object>;
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncryptedModule.js","sourceRoot":"","sources":["../../src/decorators/EncryptedModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"EncryptedModule.js","sourceRoot":"","sources":["../../src/decorators/EncryptedModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAwC;AAGxC,kEAAuE;AACvE,8DAA8D;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,eAAe,CAC3B,QAAsC,EACtC,QAA2D;IAE3D,OAAO,UAAU,MAAW;;QACxB,IAAA,eAAM,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,QAAQ,CAAC,WAAW,KAAK,SAAS;YAAE,OAAO;;YAE/C,KAAgB,IAAA,KAAA,SAAA,QAAQ,CAAC,WAAW,CAAA,gBAAA;gBAA/B,IAAM,CAAC,WAAA;gBACR,IAAI,OAAO,CAAC,WAAW,CAAC,2CAAuB,EAAE,CAAC,CAAC,KAAK,KAAK;oBACzD,OAAO,CAAC,cAAc,CAAC,2CAAuB,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;aAAA;;;;;;;;;IACzE,CAAC,CAAC;AACN,CAAC;AAZD,0CAYC;AAED,WAAiB,eAAe;IAC5B;;;;;;;;;;;;OAYG;IACH,SAAsB,OAAO,CACzB,IAAY,EACZ,QAA2D,EAC3D,OAA+D;QAA/D,wBAAA,EAAA,YAA+D;;;;;4BAGxB,qBAAM,IAAA,kCAAgB,EAAC,IAAI,CAAC,EAAA;;wBAA7D,WAAW,GAAsB,SAA4B;;4BAInE;4BAAoB,CAAC;4BAAf,YAAY;gCADjB,eAAe,uBAAM,OAAO,KAAE,WAAW,aAAA,KAAI,QAAQ,CAAC;+BACjD,YAAY,CAAG;4BAAD,mBAAC;yBAAA,AAArB;wBACA,sBAAO,YAAY,EAAC;;;;KACvB;IAZqB,uBAAO,UAY5B,CAAA;AACL,CAAC,EA3BgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA2B/B"}
|
|
@@ -40,7 +40,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
40
40
|
exports.EncryptedRoute = void 0;
|
|
41
41
|
var fetcher_1 = require("@nestia/fetcher");
|
|
42
42
|
var common_1 = require("@nestjs/common");
|
|
43
|
-
var
|
|
43
|
+
var operators_1 = require("rxjs/operators");
|
|
44
44
|
var typia_1 = require("typia");
|
|
45
45
|
var Singleton_1 = require("../utils/Singleton");
|
|
46
46
|
var EncryptedConstant_1 = require("./internal/EncryptedConstant");
|
|
@@ -176,7 +176,7 @@ var EncryptedRouteInterceptor = /** @class */ (function () {
|
|
|
176
176
|
EncryptedRouteInterceptor.prototype.intercept = function (context, next) {
|
|
177
177
|
var _this = this;
|
|
178
178
|
var http = context.switchToHttp();
|
|
179
|
-
return next.handle().pipe((0,
|
|
179
|
+
return next.handle().pipe((0, operators_1.map)(function (value) {
|
|
180
180
|
var param = Reflect.getMetadata(EncryptedConstant_1.ENCRYPTION_METADATA_KEY, context.getClass());
|
|
181
181
|
if (!param)
|
|
182
182
|
throw (0, TransformError_1.TransformError)("EncryptedRoute.".concat(_this.method));
|
|
@@ -200,7 +200,7 @@ var EncryptedRouteInterceptor = /** @class */ (function () {
|
|
|
200
200
|
else if (body === undefined)
|
|
201
201
|
return body;
|
|
202
202
|
return fetcher_1.AesPkcs5.encrypt(body, password.key, password.iv);
|
|
203
|
-
}), (0,
|
|
203
|
+
}), (0, operators_1.catchError)(function (err) { return (0, route_error_1.route_error)(http.getRequest(), err); }));
|
|
204
204
|
};
|
|
205
205
|
return EncryptedRouteInterceptor;
|
|
206
206
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncryptedRoute.js","sourceRoot":"","sources":["../../src/decorators/EncryptedRoute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,yCAWwB;AAGxB,
|
|
1
|
+
{"version":3,"file":"EncryptedRoute.js","sourceRoot":"","sources":["../../src/decorators/EncryptedRoute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,yCAWwB;AAGxB,4CAAiD;AAEjD,+BAKe;AAGf,gDAA+C;AAC/C,kEAAuE;AACvE,4DAA2D;AAC3D,4EAA2E;AAC3E,kEAAiE;AACjE,sDAAqD;AAErD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,IAAiB,cAAc,CAgE9B;AAhED,WAAiB,cAAc;IAC3B;;;;;OAKG;IACU,kBAAG,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAEpC;;;;;OAKG;IACU,mBAAI,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAEtC;;;;;OAKG;IACU,oBAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAExC;;;;;OAKG;IACU,kBAAG,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAEpC;;;;;OAKG;IACU,qBAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;IAE1C,SAAS,SAAS,CAAC,MAAmD;QAUlE,SAAS,KAAK;YAAC,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YACnB,IAAA,KAAA,OAAoB,IAAA,+CAAsB,EAC5C,yBAAkB,MAAM,CAAE,CAC7B,wCAAI,IAAI,cAAC,EAFH,IAAI,QAAA,EAAE,SAAS,QAEZ,CAAC;YACX,OAAO,IAAA,wBAAe,EAClB,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EACrB,IAAA,wBAAe,EACX,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AU,EAAC,UAAC,GAAG,IAAK,OAAA,IAAA,yBAAW,EAAC,IAAI,CAAC,UAAU,EAAE,EAAE,GAAG,CAAC,EAAnC,CAAmC,CAAC,CAC3D,CAAC;IACN,CAAC;IACL,gCAAC;AAAD,CAAC,AArDD,IAqDC;AAED;;GAEG;AACH,IAAM,OAAO,GAAG;IACZ,GAAG,cAAA;IACH,IAAI,eAAA;IACJ,GAAG,cAAA;IACH,KAAK,gBAAA;IACL,MAAM,iBAAA;CACT,CAAC"}
|
|
@@ -39,7 +39,7 @@ var e_1, _a, e_2, _b, e_3, _c;
|
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
exports.TypedRoute = void 0;
|
|
41
41
|
var common_1 = require("@nestjs/common");
|
|
42
|
-
var
|
|
42
|
+
var operators_1 = require("rxjs/operators");
|
|
43
43
|
var typia_1 = require("typia");
|
|
44
44
|
var get_path_and_stringify_1 = require("./internal/get_path_and_stringify");
|
|
45
45
|
var route_error_1 = require("./internal/route_error");
|
|
@@ -169,7 +169,7 @@ var TypedRouteInterceptor = /** @class */ (function () {
|
|
|
169
169
|
var http = context.switchToHttp();
|
|
170
170
|
var response = http.getResponse();
|
|
171
171
|
response.header("Content-Type", "application/json");
|
|
172
|
-
return next.handle().pipe((0,
|
|
172
|
+
return next.handle().pipe((0, operators_1.map)(function (value) { return _this.stringify(value); }), (0, operators_1.catchError)(function (err) { return (0, route_error_1.route_error)(http.getRequest(), err); }));
|
|
173
173
|
};
|
|
174
174
|
return TypedRouteInterceptor;
|
|
175
175
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypedRoute.js","sourceRoot":"","sources":["../../src/decorators/TypedRoute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAWwB;AAGxB,
|
|
1
|
+
{"version":3,"file":"TypedRoute.js","sourceRoot":"","sources":["../../src/decorators/TypedRoute.ts"],"names":[],"mappings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express from "express";
|
|
2
|
-
|
|
3
|
-
export declare function route_error(request: express.Request, error: any): Observable<never>;
|
|
2
|
+
export declare function route_error(request: express.Request, error: any): import("rxjs").Observable<never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route_error.js","sourceRoot":"","sources":["../../../src/decorators/internal/route_error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA+C;AAE/C,
|
|
1
|
+
{"version":3,"file":"route_error.js","sourceRoot":"","sources":["../../../src/decorators/internal/route_error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA+C;AAE/C,6BAAkC;AAElC,iEAAgE;AAEhE,SAAgB,WAAW,CAAC,OAAwB,EAAE,KAAU;IAC5D,KAAK,GAAG,CAAC;;QACL,aAAa;QACb,IAAI,KAAK,YAAY,sBAAa;YAAE,OAAO,KAAK,CAAC;;YAEjD,0BAA0B;YAC1B,KAAiC,IAAA,KAAA,SAAA,mCAAgB,CAAC,MAAM,CAAA,gBAAA;gBAA7C,IAAA,KAAA,mBAAkB,EAAjB,OAAO,QAAA,EAAE,OAAO,QAAA;gBACxB,IAAI,KAAK,YAAY,OAAO;oBAAE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;aAAA;;;;;;;;;QAExD,uBAAuB;QACvB,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,EAAE,CAAC;IAEL,IAAI;QACA,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;KAC7B;IAAC,WAAM,GAAE;IAEV,UAAU,CAAC;;;YACP,KAAuB,IAAA,KAAA,SAAA,mCAAgB,CAAC,SAAS,CAAA,gBAAA,4BAAE;gBAA9C,IAAM,QAAQ,WAAA;gBACf,IAAI;oBACA,IAAM,GAAG,GAAuB,QAAQ,CAAC,KAAK,CAAC,CAAC;oBAChD,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,UAAU;wBAC1D,GAAG,CAAC,KAAK,CAAC,cAAO,CAAC,CAAC,CAAC;iBAC3B;gBAAC,WAAM,GAAE;aACb;;;;;;;;;IACL,CAAC,EAAE,CAAC,CAAC,CAAC;IACN,OAAO,IAAA,iBAAU,EAAC,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC,CAAC;AACnC,CAAC;AA5BD,kCA4BC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20-dev.20230413",
|
|
4
4
|
"description": "Super-fast validation decorators of NestJS",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
|
-
"bin": {
|
|
8
|
-
"@nestia/core": "lib/executable/core.js"
|
|
9
|
-
},
|
|
10
7
|
"scripts": {
|
|
11
8
|
"build": "rimraf lib && tsc",
|
|
12
9
|
"build:test": "rimraf bin && ttsc -p test/tsconfig.json",
|
|
@@ -55,15 +52,15 @@
|
|
|
55
52
|
"typescript-transform-paths": "^3.4.6"
|
|
56
53
|
},
|
|
57
54
|
"dependencies": {
|
|
58
|
-
"@nestia/fetcher": "^1.0.
|
|
59
|
-
"@nestjs/common": "
|
|
60
|
-
"@nestjs/core": "
|
|
61
|
-
"@nestjs/platform-express": "
|
|
55
|
+
"@nestia/fetcher": "^1.0.1",
|
|
56
|
+
"@nestjs/common": ">= 7.0.1",
|
|
57
|
+
"@nestjs/core": ">= 7.0.1",
|
|
58
|
+
"@nestjs/platform-express": ">= 7.0.1",
|
|
62
59
|
"detect-ts-node": "^1.0.5",
|
|
63
|
-
"raw-body": "
|
|
64
|
-
"reflect-metadata": "
|
|
65
|
-
"rxjs": "
|
|
66
|
-
"typia": "^3.
|
|
60
|
+
"raw-body": ">= 2.0.0",
|
|
61
|
+
"reflect-metadata": ">= 0.1.12",
|
|
62
|
+
"rxjs": ">= 6.0.0",
|
|
63
|
+
"typia": "^3.7.5"
|
|
67
64
|
},
|
|
68
65
|
"peerDependencies": {
|
|
69
66
|
"typescript": ">= 4.5.2 && < 5.0.0"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IEncryptionPassword } from "@nestia/fetcher/lib/IEncryptionPassword";
|
|
2
|
-
import { Module
|
|
2
|
+
import { Module } from "@nestjs/common";
|
|
3
3
|
|
|
4
4
|
import { Creator } from "../typings/Creator";
|
|
5
5
|
import { ENCRYPTION_METADATA_KEY } from "./internal/EncryptedConstant";
|
|
@@ -36,7 +36,7 @@ import { load_controllers } from "./internal/load_controller";
|
|
|
36
36
|
* @author Jeongho Nam - https://github.com/samchon
|
|
37
37
|
*/
|
|
38
38
|
export function EncryptedModule(
|
|
39
|
-
metadata:
|
|
39
|
+
metadata: Parameters<typeof Module>[0],
|
|
40
40
|
password: IEncryptionPassword | IEncryptionPassword.Closure,
|
|
41
41
|
): ClassDecorator {
|
|
42
42
|
return function (target: any) {
|
|
@@ -66,7 +66,7 @@ export namespace EncryptedModule {
|
|
|
66
66
|
export async function dynamic(
|
|
67
67
|
path: string,
|
|
68
68
|
password: IEncryptionPassword | IEncryptionPassword.Closure,
|
|
69
|
-
options: Omit<
|
|
69
|
+
options: Omit<Parameters<typeof Module>[0], "controllers"> = {},
|
|
70
70
|
): Promise<object> {
|
|
71
71
|
// LOAD CONTROLLERS
|
|
72
72
|
const controllers: Creator<object>[] = await load_controllers(path);
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "@nestjs/common";
|
|
14
14
|
import { HttpArgumentsHost } from "@nestjs/common/interfaces";
|
|
15
15
|
import express from "express";
|
|
16
|
-
import {
|
|
16
|
+
import { catchError, map } from "rxjs/operators";
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
assertStringify,
|
|
@@ -141,10 +141,7 @@ class EncryptedRouteInterceptor implements NestInterceptor {
|
|
|
141
141
|
private readonly stringify: (input: any) => string,
|
|
142
142
|
) {}
|
|
143
143
|
|
|
144
|
-
public intercept(
|
|
145
|
-
context: ExecutionContext,
|
|
146
|
-
next: CallHandler,
|
|
147
|
-
): Observable<any> {
|
|
144
|
+
public intercept(context: ExecutionContext, next: CallHandler) {
|
|
148
145
|
const http: HttpArgumentsHost = context.switchToHttp();
|
|
149
146
|
return next.handle().pipe(
|
|
150
147
|
map((value) => {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@nestjs/common";
|
|
13
13
|
import { HttpArgumentsHost } from "@nestjs/common/interfaces";
|
|
14
14
|
import express from "express";
|
|
15
|
-
import {
|
|
15
|
+
import { catchError, map } from "rxjs/operators";
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
18
|
assertStringify,
|
|
@@ -127,10 +127,7 @@ for (const method of [
|
|
|
127
127
|
class TypedRouteInterceptor implements NestInterceptor {
|
|
128
128
|
public constructor(private readonly stringify: (input: any) => string) {}
|
|
129
129
|
|
|
130
|
-
public intercept(
|
|
131
|
-
context: ExecutionContext,
|
|
132
|
-
next: CallHandler,
|
|
133
|
-
): Observable<any> {
|
|
130
|
+
public intercept(context: ExecutionContext, next: CallHandler) {
|
|
134
131
|
const http: HttpArgumentsHost = context.switchToHttp();
|
|
135
132
|
const response: express.Response = http.getResponse();
|
|
136
133
|
response.header("Content-Type", "application/json");
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { HttpException } from "@nestjs/common";
|
|
2
2
|
import express from "express";
|
|
3
|
-
import {
|
|
3
|
+
import { throwError } from "rxjs";
|
|
4
4
|
|
|
5
5
|
import { ExceptionManager } from "../../utils/ExceptionManager";
|
|
6
6
|
|
|
7
|
-
export function route_error(
|
|
8
|
-
request: express.Request,
|
|
9
|
-
error: any,
|
|
10
|
-
): Observable<never> {
|
|
7
|
+
export function route_error(request: express.Request, error: any) {
|
|
11
8
|
error = (() => {
|
|
12
9
|
// HTTP-ERROR
|
|
13
10
|
if (error instanceof HttpException) return error;
|
package/lib/executable/core.d.ts
DELETED
package/lib/executable/core.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
13
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
14
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
15
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
16
|
-
function step(op) {
|
|
17
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
18
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
19
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
20
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
21
|
-
switch (op[0]) {
|
|
22
|
-
case 0: case 1: t = op; break;
|
|
23
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
24
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
25
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
26
|
-
default:
|
|
27
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
28
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
29
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
30
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
31
|
-
if (t[2]) _.ops.pop();
|
|
32
|
-
_.trys.pop(); continue;
|
|
33
|
-
}
|
|
34
|
-
op = body.call(thisArg, _);
|
|
35
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
36
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
var ArgumentParser_1 = require("./internal/ArgumentParser");
|
|
41
|
-
var CommandExecutor_1 = require("./internal/CommandExecutor");
|
|
42
|
-
var PackageManager_1 = require("./internal/PackageManager");
|
|
43
|
-
var PluginConfigurator_1 = require("./internal/PluginConfigurator");
|
|
44
|
-
var USAGE = "Wrong command has been detected. Use like below:\n\n npx @nestia/core setup \\\n --compiler (ttypescript|ts-patch) \\\n --manager (npm|pnpm|yarn) \\\n --project {tsconfig.json file path}\n\n - npx @nestia/core setup\n - npx @nestia/core setup --compiler ts-patch\n - npx @nestia/core setup --manager pnpm\n - npx @nestia/core setup --project tsconfig.test.json";
|
|
45
|
-
function halt(desc) {
|
|
46
|
-
console.error(desc);
|
|
47
|
-
process.exit(-1);
|
|
48
|
-
}
|
|
49
|
-
function setup() {
|
|
50
|
-
var _a;
|
|
51
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
52
|
-
var pack, args;
|
|
53
|
-
return __generator(this, function (_b) {
|
|
54
|
-
switch (_b.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
console.log("----------------------------------------");
|
|
57
|
-
console.log(" Nestia Setup Wizard");
|
|
58
|
-
console.log("----------------------------------------");
|
|
59
|
-
return [4 /*yield*/, PackageManager_1.PackageManager.mount()];
|
|
60
|
-
case 1:
|
|
61
|
-
pack = _b.sent();
|
|
62
|
-
return [4 /*yield*/, ArgumentParser_1.ArgumentParser.parse(pack)];
|
|
63
|
-
case 2:
|
|
64
|
-
args = _b.sent();
|
|
65
|
-
// INSTALL TYPESCRIPT
|
|
66
|
-
pack.install({ dev: true, modulo: "typescript", version: "4.9.5" });
|
|
67
|
-
(_a = args.project) !== null && _a !== void 0 ? _a : (args.project = (function () {
|
|
68
|
-
CommandExecutor_1.CommandExecutor.run("npx tsc --init", false);
|
|
69
|
-
return (args.project = "tsconfig.json");
|
|
70
|
-
})());
|
|
71
|
-
pack.install({ dev: true, modulo: "ts-node" });
|
|
72
|
-
// INSTALL COMPILER
|
|
73
|
-
pack.install({ dev: true, modulo: args.compiler });
|
|
74
|
-
if (!(args.compiler === "ts-patch")) return [3 /*break*/, 4];
|
|
75
|
-
return [4 /*yield*/, pack.save(function (data) {
|
|
76
|
-
var _a;
|
|
77
|
-
(_a = data.scripts) !== null && _a !== void 0 ? _a : (data.scripts = {});
|
|
78
|
-
if (typeof data.scripts.prepare === "string")
|
|
79
|
-
data.scripts.prepare =
|
|
80
|
-
"ts-patch install && " + data.scripts.prepare;
|
|
81
|
-
else
|
|
82
|
-
data.scripts.prepare = "ts-patch install";
|
|
83
|
-
})];
|
|
84
|
-
case 3:
|
|
85
|
-
_b.sent();
|
|
86
|
-
CommandExecutor_1.CommandExecutor.run("npm run prepare", false);
|
|
87
|
-
_b.label = 4;
|
|
88
|
-
case 4:
|
|
89
|
-
// INSTALL AND CONFIGURE TYPIA
|
|
90
|
-
pack.install({ dev: false, modulo: "typia" });
|
|
91
|
-
pack.install({ dev: false, modulo: "@nestia/core" });
|
|
92
|
-
return [4 /*yield*/, PluginConfigurator_1.PluginConfigurator.configure(pack, args)];
|
|
93
|
-
case 5:
|
|
94
|
-
_b.sent();
|
|
95
|
-
return [2 /*return*/];
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function main() {
|
|
101
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
102
|
-
var type;
|
|
103
|
-
return __generator(this, function (_a) {
|
|
104
|
-
switch (_a.label) {
|
|
105
|
-
case 0:
|
|
106
|
-
type = process.argv[2];
|
|
107
|
-
if (!(type === "setup")) return [3 /*break*/, 2];
|
|
108
|
-
return [4 /*yield*/, setup()];
|
|
109
|
-
case 1:
|
|
110
|
-
_a.sent();
|
|
111
|
-
return [3 /*break*/, 3];
|
|
112
|
-
case 2:
|
|
113
|
-
halt(USAGE);
|
|
114
|
-
_a.label = 3;
|
|
115
|
-
case 3: return [2 /*return*/];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
main().catch(function (exp) {
|
|
121
|
-
console.error(exp);
|
|
122
|
-
process.exit(-1);
|
|
123
|
-
});
|
|
124
|
-
//# sourceMappingURL=core.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/executable/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4DAA2D;AAC3D,8DAA6D;AAC7D,4DAA2D;AAC3D,oEAAmE;AAEnE,IAAM,KAAK,GAAG,wXAU0C,CAAC;AAEzD,SAAS,IAAI,CAAC,IAAY;IACtB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC;AAED,SAAe,KAAK;;;;;;;oBAChB,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;oBACxD,OAAO,CAAC,GAAG,C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BAAkB,CAAC;wBACnD,CAAC,CAAC,EAAA;;oBANF,SAME,CAAC;oBACH,iCAAe,CAAC,GAAG,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;;;oBAGlD,8BAA8B;oBAC9B,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;oBAC9C,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;oBACrD,qBAAM,uCAAkB,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,EAAA;;oBAA9C,SAA8C,CAAC;;;;;CAClD;AAED,SAAe,IAAI;;;;;;oBACT,IAAI,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;yBAC7C,CAAA,IAAI,KAAK,OAAO,CAAA,EAAhB,wBAAgB;oBAAE,qBAAM,KAAK,EAAE,EAAA;;oBAAb,SAAa,CAAC;;;oBAC/B,IAAI,CAAC,KAAK,CAAC,CAAC;;;;;;CACpB;AACD,IAAI,EAAE,CAAC,KAAK,CAAC,UAAC,GAAG;IACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PackageManager } from "./PackageManager";
|
|
2
|
-
export declare namespace ArgumentParser {
|
|
3
|
-
interface IArguments {
|
|
4
|
-
compiler: "ts-patch" | "ttypescript";
|
|
5
|
-
manager: "npm" | "pnpm" | "yarn";
|
|
6
|
-
project: string | null;
|
|
7
|
-
}
|
|
8
|
-
function parse(pack: PackageManager): Promise<IArguments>;
|
|
9
|
-
}
|