creditu-common-library 2.3.10 → 2.3.11
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.
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { NestMiddleware, Logger } from '@nestjs/common';
|
|
2
2
|
import { Request, Response, NextFunction } from 'express';
|
|
3
|
+
interface RequestWithStartTime extends Request {
|
|
4
|
+
startTime?: number;
|
|
5
|
+
}
|
|
3
6
|
export declare class AppLoggerMiddleware implements NestMiddleware {
|
|
4
7
|
private logger;
|
|
5
8
|
constructor(logger?: Logger);
|
|
6
9
|
private logObject;
|
|
7
10
|
private sanitizeObject;
|
|
8
|
-
use(request:
|
|
11
|
+
use(request: RequestWithStartTime, response: Response, next: NextFunction): void;
|
|
9
12
|
}
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creditu-common-library",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"description": "Common library for Creditu applications",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
|
-
"lint": "eslint \"src/**/*.ts\" --no-fix",
|
|
12
|
+
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --no-fix",
|
|
13
13
|
"test:unit": "jest",
|
|
14
14
|
"test:cov": "jest --coverage",
|
|
15
15
|
"test:functional": "jest --config jest.config-functional.ts"
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://gitlab.com/creditu-team/creditu-common-library#readme",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/preset-typescript": "^7.
|
|
28
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
29
|
+
"@types/express": "^5.0.0",
|
|
29
30
|
"@types/jest": "^29.5.14",
|
|
30
31
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
31
32
|
"@typescript-eslint/parser": "^5.62.0",
|
|
@@ -38,11 +39,12 @@
|
|
|
38
39
|
"typescript": "^4.9.5"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@nestjs/common": "^
|
|
42
|
+
"@nestjs/common": "^10.4.15",
|
|
43
|
+
"@nestjs/testing": "^10.4.15",
|
|
42
44
|
"creditu-date-model": "^2.9.1",
|
|
43
45
|
"dinero.js": "^1.9.1",
|
|
44
46
|
"express": "^4.21.2",
|
|
45
|
-
"reflect-metadata": "^0.
|
|
47
|
+
"reflect-metadata": "^0.2.2",
|
|
46
48
|
"rxjs": "^7.8.2",
|
|
47
49
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
|
|
48
50
|
},
|