@nathapp/nestjs-common 1.0.1-rc.0 → 1.0.1-rc.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.
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +1 -1
- package/dist/decorator/index.d.ts +2 -2
- package/dist/decorator/index.js +2 -1
- package/dist/exception/global-exception.filter.d.ts +46 -0
- package/dist/exception/global-exception.filter.js +133 -0
- package/dist/exception/user-not-found.exception.d.ts +4 -0
- package/dist/exception/user-not-found.exception.js +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/middleware/index.d.ts +3 -0
- package/dist/middleware/index.js +7 -0
- package/dist/middleware/json-body.middleware.d.ts +4 -0
- package/dist/middleware/json-body.middleware.js +20 -0
- package/dist/middleware/raw-body.middleware.d.ts +6 -0
- package/dist/middleware/raw-body.middleware.js +25 -0
- package/dist/serialize/json-response.d.ts +10 -0
- package/dist/serialize/json-response.js +30 -0
- package/dist/validation/index.d.ts +0 -0
- package/dist/validation/index.js +0 -0
- package/lib/config/README.md +7 -0
- package/package.json +1 -3
- /package/dist/config/{joi-util.d.ts → utils/joi-util.d.ts} +0 -0
- /package/dist/config/{joi-util.js → utils/joi-util.js} +0 -0
- /package/dist/config/{validate-util.d.ts → utils/validate-util.d.ts} +0 -0
- /package/dist/config/{validate-util.js → utils/validate-util.js} +0 -0
package/dist/config/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import DbConfig from "./db.config";
|
|
|
2
2
|
import MongoConfig from "./mongodb.config";
|
|
3
3
|
import RedisConfig from "./redis.config";
|
|
4
4
|
import RabbitMQConfig from "./rabbitmq.config";
|
|
5
|
-
import JoiUtil, { JoiConfig } from "./joi-util";
|
|
5
|
+
import JoiUtil, { JoiConfig } from "./utils/joi-util";
|
|
6
6
|
export { DbConfig, MongoConfig, RedisConfig, RabbitMQConfig, JoiUtil, JoiConfig, };
|
package/dist/config/index.js
CHANGED
|
@@ -9,5 +9,5 @@ const redis_config_1 = require("./redis.config");
|
|
|
9
9
|
exports.RedisConfig = redis_config_1.default;
|
|
10
10
|
const rabbitmq_config_1 = require("./rabbitmq.config");
|
|
11
11
|
exports.RabbitMQConfig = rabbitmq_config_1.default;
|
|
12
|
-
const joi_util_1 = require("./joi-util");
|
|
12
|
+
const joi_util_1 = require("./utils/joi-util");
|
|
13
13
|
exports.JoiUtil = joi_util_1.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClientInfo } from "./client-info.decorator";
|
|
2
2
|
import { RealIP } from "./real-ip.decorator";
|
|
3
3
|
import { Public } from "./is-public.decorator";
|
|
4
|
-
import { RequiredPermission } from "./permission.decorator";
|
|
5
|
-
export { ClientInfo, RealIP, Public, RequiredPermission };
|
|
4
|
+
import { RequiredPermission, PERMISSION_KEY } from "./permission.decorator";
|
|
5
|
+
export { ClientInfo, RealIP, Public, PERMISSION_KEY, RequiredPermission };
|
package/dist/decorator/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RequiredPermission = exports.Public = exports.RealIP = exports.ClientInfo = void 0;
|
|
3
|
+
exports.RequiredPermission = exports.PERMISSION_KEY = exports.Public = exports.RealIP = exports.ClientInfo = void 0;
|
|
4
4
|
const client_info_decorator_1 = require("./client-info.decorator");
|
|
5
5
|
Object.defineProperty(exports, "ClientInfo", { enumerable: true, get: function () { return client_info_decorator_1.ClientInfo; } });
|
|
6
6
|
const real_ip_decorator_1 = require("./real-ip.decorator");
|
|
@@ -9,3 +9,4 @@ const is_public_decorator_1 = require("./is-public.decorator");
|
|
|
9
9
|
Object.defineProperty(exports, "Public", { enumerable: true, get: function () { return is_public_decorator_1.Public; } });
|
|
10
10
|
const permission_decorator_1 = require("./permission.decorator");
|
|
11
11
|
Object.defineProperty(exports, "RequiredPermission", { enumerable: true, get: function () { return permission_decorator_1.RequiredPermission; } });
|
|
12
|
+
Object.defineProperty(exports, "PERMISSION_KEY", { enumerable: true, get: function () { return permission_decorator_1.PERMISSION_KEY; } });
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ExceptionFilter, ArgumentsHost, ForbiddenException, NotFoundException } from "@nestjs/common";
|
|
2
|
+
import { HttpAdapterHost } from "@nestjs/core";
|
|
3
|
+
import { I18nService } from "nestjs-i18n";
|
|
4
|
+
import { AppException } from "./app.exception";
|
|
5
|
+
import { UsernameNotFoundException } from "./user-not-found.exception";
|
|
6
|
+
export declare enum ExceptionErrorCode {
|
|
7
|
+
UNKNOWN_ERROR = -1,
|
|
8
|
+
INTERNAL_ERROR = 501,
|
|
9
|
+
NOT_FOUND = 404,
|
|
10
|
+
FORBIDDEN = 41003,
|
|
11
|
+
USER_NOT_FOUND = 2018
|
|
12
|
+
}
|
|
13
|
+
export declare class AllExceptionsFilter implements ExceptionFilter {
|
|
14
|
+
private readonly httpAdapterHost;
|
|
15
|
+
private readonly i18nService;
|
|
16
|
+
private readonly logger;
|
|
17
|
+
private readonly exceptionPrefix;
|
|
18
|
+
constructor(httpAdapterHost: HttpAdapterHost, i18nService: I18nService);
|
|
19
|
+
catch(exception: unknown, host: ArgumentsHost): Promise<void>;
|
|
20
|
+
handleAppException(exception: AppException, lang: string): Promise<{
|
|
21
|
+
httpStatus: number;
|
|
22
|
+
errorCode: number;
|
|
23
|
+
errMessage: string;
|
|
24
|
+
}>;
|
|
25
|
+
handleForbiddenException(exception: ForbiddenException, lang: string): Promise<{
|
|
26
|
+
httpStatus: number;
|
|
27
|
+
errorCode: ExceptionErrorCode;
|
|
28
|
+
errMessage: string;
|
|
29
|
+
}>;
|
|
30
|
+
handleUserNotFoundException(exception: UsernameNotFoundException, lang: string): Promise<{
|
|
31
|
+
httpStatus: number;
|
|
32
|
+
errorCode: ExceptionErrorCode;
|
|
33
|
+
errMessage: string;
|
|
34
|
+
}>;
|
|
35
|
+
handleNotFoundException(exception: NotFoundException, request: any): Promise<{
|
|
36
|
+
httpStatus: number;
|
|
37
|
+
errorCode: ExceptionErrorCode;
|
|
38
|
+
errMessage: string;
|
|
39
|
+
}>;
|
|
40
|
+
handleUnknownException(exception: any, lang: string, responseBody?: any): Promise<{
|
|
41
|
+
httpStatus: number;
|
|
42
|
+
errorCode: ExceptionErrorCode;
|
|
43
|
+
errMessage: string;
|
|
44
|
+
}>;
|
|
45
|
+
translate(code: number, lang: string, args?: any, prefix?: string): Promise<string>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var AllExceptionsFilter_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.AllExceptionsFilter = exports.ExceptionErrorCode = void 0;
|
|
14
|
+
const common_1 = require("@nathapp/common");
|
|
15
|
+
const common_2 = require("@nestjs/common");
|
|
16
|
+
const core_1 = require("@nestjs/core");
|
|
17
|
+
const nestjs_i18n_1 = require("nestjs-i18n");
|
|
18
|
+
const app_exception_1 = require("./app.exception");
|
|
19
|
+
const user_not_found_exception_1 = require("./user-not-found.exception");
|
|
20
|
+
var ExceptionErrorCode;
|
|
21
|
+
(function (ExceptionErrorCode) {
|
|
22
|
+
ExceptionErrorCode[ExceptionErrorCode["UNKNOWN_ERROR"] = -1] = "UNKNOWN_ERROR";
|
|
23
|
+
ExceptionErrorCode[ExceptionErrorCode["INTERNAL_ERROR"] = 501] = "INTERNAL_ERROR";
|
|
24
|
+
ExceptionErrorCode[ExceptionErrorCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
25
|
+
ExceptionErrorCode[ExceptionErrorCode["FORBIDDEN"] = 41003] = "FORBIDDEN";
|
|
26
|
+
ExceptionErrorCode[ExceptionErrorCode["USER_NOT_FOUND"] = 2018] = "USER_NOT_FOUND";
|
|
27
|
+
})(ExceptionErrorCode = exports.ExceptionErrorCode || (exports.ExceptionErrorCode = {}));
|
|
28
|
+
let AllExceptionsFilter = AllExceptionsFilter_1 = class AllExceptionsFilter {
|
|
29
|
+
constructor(httpAdapterHost, i18nService) {
|
|
30
|
+
this.httpAdapterHost = httpAdapterHost;
|
|
31
|
+
this.i18nService = i18nService;
|
|
32
|
+
this.logger = new common_2.Logger(AllExceptionsFilter_1.name);
|
|
33
|
+
this.exceptionPrefix = "exception";
|
|
34
|
+
}
|
|
35
|
+
async catch(exception, host) {
|
|
36
|
+
const { httpAdapter } = this.httpAdapterHost;
|
|
37
|
+
const ctx = host.switchToHttp();
|
|
38
|
+
const response = ctx.getResponse();
|
|
39
|
+
const request = ctx.getRequest();
|
|
40
|
+
const lang = ctx.getRequest().i18nLang;
|
|
41
|
+
let es;
|
|
42
|
+
if (exception instanceof app_exception_1.AppException) {
|
|
43
|
+
es = await this.handleAppException(exception, lang);
|
|
44
|
+
}
|
|
45
|
+
else if (exception instanceof common_2.ForbiddenException) {
|
|
46
|
+
es = await this.handleForbiddenException(exception, lang);
|
|
47
|
+
}
|
|
48
|
+
else if (exception instanceof common_2.NotFoundException) {
|
|
49
|
+
es = await this.handleNotFoundException(exception, request);
|
|
50
|
+
}
|
|
51
|
+
else if (exception instanceof user_not_found_exception_1.UsernameNotFoundException) {
|
|
52
|
+
es = await this.handleUserNotFoundException(exception, lang);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const httpStatus = exception instanceof common_2.HttpException
|
|
56
|
+
? exception.getStatus()
|
|
57
|
+
: common_2.HttpStatus.INTERNAL_SERVER_ERROR;
|
|
58
|
+
const responseBody = {
|
|
59
|
+
statusCode: httpStatus,
|
|
60
|
+
timestamp: new Date().toISOString(),
|
|
61
|
+
path: httpAdapter.getRequestUrl(ctx.getRequest()),
|
|
62
|
+
};
|
|
63
|
+
es = await this.handleUnknownException(exception, lang, responseBody);
|
|
64
|
+
}
|
|
65
|
+
httpAdapter.reply(response, common_1.JsonResponse.Error(es.errorCode, es.errMessage), es.httpStatus);
|
|
66
|
+
}
|
|
67
|
+
async handleAppException(exception, lang) {
|
|
68
|
+
const httpStatus = 200;
|
|
69
|
+
const errorCode = exception.code;
|
|
70
|
+
const errMessage = await this.translate(errorCode, lang, exception.args, exception.prefix);
|
|
71
|
+
return {
|
|
72
|
+
httpStatus,
|
|
73
|
+
errorCode,
|
|
74
|
+
errMessage,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
async handleForbiddenException(exception, lang) {
|
|
78
|
+
const httpStatus = 200;
|
|
79
|
+
const errorCode = ExceptionErrorCode.FORBIDDEN;
|
|
80
|
+
const errMessage = await this.translate(errorCode, lang);
|
|
81
|
+
return {
|
|
82
|
+
httpStatus,
|
|
83
|
+
errorCode,
|
|
84
|
+
errMessage,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
async handleUserNotFoundException(exception, lang) {
|
|
88
|
+
const httpStatus = 200;
|
|
89
|
+
const errorCode = ExceptionErrorCode.USER_NOT_FOUND;
|
|
90
|
+
this.logger.warn(exception.message, user_not_found_exception_1.UsernameNotFoundException.name);
|
|
91
|
+
const errMessage = await this.translate(errorCode, lang);
|
|
92
|
+
return {
|
|
93
|
+
httpStatus,
|
|
94
|
+
errorCode,
|
|
95
|
+
errMessage,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
async handleNotFoundException(exception, request) {
|
|
99
|
+
const httpStatus = exception.getStatus();
|
|
100
|
+
const errorCode = ExceptionErrorCode.NOT_FOUND;
|
|
101
|
+
this.logger.warn(`Method: ${request.method}, url: ${request.url}`, exception.name);
|
|
102
|
+
const errMessage = exception.message;
|
|
103
|
+
return {
|
|
104
|
+
httpStatus,
|
|
105
|
+
errorCode,
|
|
106
|
+
errMessage,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
async handleUnknownException(exception, lang, responseBody) {
|
|
110
|
+
const httpStatus = 500;
|
|
111
|
+
const errorCode = ExceptionErrorCode.UNKNOWN_ERROR;
|
|
112
|
+
const { message } = (0, common_1.describeError)(exception);
|
|
113
|
+
this.logger.error(`Unknown Error occur. msg: ${message}, data: ${JSON.stringify(responseBody)}`, exception.stack);
|
|
114
|
+
const errMessage = await this.translate(errorCode, lang);
|
|
115
|
+
return {
|
|
116
|
+
httpStatus,
|
|
117
|
+
errorCode,
|
|
118
|
+
errMessage,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
async translate(code, lang, args, prefix) {
|
|
122
|
+
return this.i18nService.translate(`${prefix || this.exceptionPrefix}.${code}`, {
|
|
123
|
+
lang,
|
|
124
|
+
args,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
AllExceptionsFilter = AllExceptionsFilter_1 = __decorate([
|
|
129
|
+
(0, common_2.Catch)(),
|
|
130
|
+
__metadata("design:paramtypes", [core_1.HttpAdapterHost,
|
|
131
|
+
nestjs_i18n_1.I18nService])
|
|
132
|
+
], AllExceptionsFilter);
|
|
133
|
+
exports.AllExceptionsFilter = AllExceptionsFilter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UsernameNotFoundException = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
class UsernameNotFoundException extends common_1.HttpException {
|
|
6
|
+
constructor(message) {
|
|
7
|
+
super(message, 500);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.UsernameNotFoundException = UsernameNotFoundException;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RawBodyMiddleware = exports.JsonBodyMiddleware = void 0;
|
|
4
|
+
const json_body_middleware_1 = require("./json-body.middleware");
|
|
5
|
+
Object.defineProperty(exports, "JsonBodyMiddleware", { enumerable: true, get: function () { return json_body_middleware_1.JsonBodyMiddleware; } });
|
|
6
|
+
const raw_body_middleware_1 = require("./raw-body.middleware");
|
|
7
|
+
Object.defineProperty(exports, "RawBodyMiddleware", { enumerable: true, get: function () { return raw_body_middleware_1.RawBodyMiddleware; } });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.JsonBodyMiddleware = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const body_parser_1 = require("body-parser");
|
|
12
|
+
let JsonBodyMiddleware = class JsonBodyMiddleware {
|
|
13
|
+
use(req, res, next) {
|
|
14
|
+
(0, body_parser_1.json)()(req, res, next);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
JsonBodyMiddleware = __decorate([
|
|
18
|
+
(0, common_1.Injectable)()
|
|
19
|
+
], JsonBodyMiddleware);
|
|
20
|
+
exports.JsonBodyMiddleware = JsonBodyMiddleware;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RawBodyMiddleware = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const bodyParser = require("body-parser");
|
|
15
|
+
let RawBodyMiddleware = class RawBodyMiddleware {
|
|
16
|
+
constructor() { }
|
|
17
|
+
use(req, res, next) {
|
|
18
|
+
bodyParser.raw({ type: "*/*" })(req, res, next);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
RawBodyMiddleware = __decorate([
|
|
22
|
+
(0, common_1.Injectable)(),
|
|
23
|
+
__metadata("design:paramtypes", [])
|
|
24
|
+
], RawBodyMiddleware);
|
|
25
|
+
exports.RawBodyMiddleware = RawBodyMiddleware;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClassConstructor } from "class-transformer";
|
|
2
|
+
import { JsonResponse as JResponse } from "@nathapp/common";
|
|
3
|
+
export declare class JsonResponse<T> extends JResponse {
|
|
4
|
+
ret: number;
|
|
5
|
+
data: T;
|
|
6
|
+
message?: string;
|
|
7
|
+
constructor(ret: number, data: any, message?: string);
|
|
8
|
+
static Ok<T>(data?: T, cls?: ClassConstructor<T>): JsonResponse<T>;
|
|
9
|
+
static Error<T>(errcode: number, message: string): JsonResponse<T>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JsonResponse = void 0;
|
|
4
|
+
const class_transformer_1 = require("class-transformer");
|
|
5
|
+
const common_1 = require("@nathapp/common");
|
|
6
|
+
class JsonResponse extends common_1.JsonResponse {
|
|
7
|
+
constructor(ret, data, message) {
|
|
8
|
+
super(ret, data, message);
|
|
9
|
+
this.ret = ret;
|
|
10
|
+
this.data = data;
|
|
11
|
+
this.message = message;
|
|
12
|
+
}
|
|
13
|
+
static Ok(data, cls) {
|
|
14
|
+
let responseData;
|
|
15
|
+
if (data && cls) {
|
|
16
|
+
responseData = (0, class_transformer_1.plainToInstance)(cls, data);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
responseData = data;
|
|
20
|
+
}
|
|
21
|
+
const response = new JsonResponse(0, responseData, "ok");
|
|
22
|
+
return response;
|
|
23
|
+
}
|
|
24
|
+
static Error(errcode, message) {
|
|
25
|
+
const response = new JsonResponse(errcode, null, message);
|
|
26
|
+
delete response.data;
|
|
27
|
+
return response;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.JsonResponse = JsonResponse;
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nathapp/nestjs-common",
|
|
3
|
-
"version": "1.0.1-rc.
|
|
3
|
+
"version": "1.0.1-rc.2",
|
|
4
4
|
"description": "NestJs Common Library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf dist && tsc -p tsconfig.json",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@nestjs/platform-express": "^9.0.0",
|
|
18
18
|
"@nestjs/platform-fastify": "^9.0.0",
|
|
19
|
-
"@types/js-yaml": "^4.0.5",
|
|
20
19
|
"@types/node": "^17.0.22",
|
|
21
20
|
"@typescript-eslint/eslint-plugin": "^4",
|
|
22
21
|
"@typescript-eslint/parser": "^4",
|
|
@@ -34,7 +33,6 @@
|
|
|
34
33
|
"dependencies": {
|
|
35
34
|
"@nathapp/common": "^0.1.10",
|
|
36
35
|
"joi": "^17.6.0",
|
|
37
|
-
"js-yaml": "^4.1.0",
|
|
38
36
|
"nestjs-i18n": "^10.0.0",
|
|
39
37
|
"request-ip": "^3.2.0"
|
|
40
38
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|