@tsed/common 5.67.0 → 5.67.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.
|
@@ -41,7 +41,7 @@ export interface PlatformLoggerSettings {
|
|
|
41
41
|
*/
|
|
42
42
|
disableRoutesSummary?: boolean;
|
|
43
43
|
/**
|
|
44
|
-
* Specify log format. Example: `%[%d{[yyyy-MM-dd hh:mm:ss,SSS}] %p%] %m`. See [@tsed/logger configuration](https://
|
|
44
|
+
* Specify log format. Example: `%[%d{[yyyy-MM-dd hh:mm:ss,SSS}] %p%] %m`. See [@tsed/logger configuration](https://tsedio.github.io/logger/).
|
|
45
45
|
*/
|
|
46
46
|
format?: string;
|
|
47
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformLoggerSettings.js","sourceRoot":"","sources":["../../../src/config/interfaces/PlatformLoggerSettings.ts"],"names":[],"mappings":"","sourcesContent":["export interface PlatformLoggerSettings {\n /**\n * Enable debug mode. By default debug is false.\n */\n debug?: boolean;\n /**\n * Enable info mode. By default debug is false.\n */\n level?: \"debug\" | \"info\" | \"warn\" | \"error\" | \"off\";\n /**\n * Fields displayed when a request is logged. Possible values: `reqId`, `method`, `url`, `headers`, `body`, `query`,`params`, `duration`.\n */\n requestFields?: (\"reqId\" | \"method\" | \"url\" | \"headers\" | \"body\" | \"query\" | \"params\" | \"duration\" | string)[];\n /**\n * List of regexp to ignore log.\n */\n ignoreUrlPatterns?: string[];\n /**\n * Log all incoming request. By default is true and print the configured `logger.requestFields`.\n */\n logRequest?: boolean;\n /**\n * Log start of all incoming request. By default is true\n */\n logStart?: boolean;\n /**\n * Log end of all incoming request. By default is true\n */\n logEnd?: boolean;\n /**\n * The number of space characters to use as white space in JSON output. Default is 2 (0 in production).\n */\n jsonIndentation?: number;\n /**\n * A function called for each incoming request to create a request id.\n * @returns {number}\n */\n reqIdBuilder?: () => string;\n /**\n * Disable routes table displayed in the logger. By default debug is `false`.\n */\n disableRoutesSummary?: boolean;\n /**\n * Specify log format. Example: `%[%d{[yyyy-MM-dd hh:mm:ss,SSS}] %p%] %m`. See [@tsed/logger configuration](https://
|
|
1
|
+
{"version":3,"file":"PlatformLoggerSettings.js","sourceRoot":"","sources":["../../../src/config/interfaces/PlatformLoggerSettings.ts"],"names":[],"mappings":"","sourcesContent":["export interface PlatformLoggerSettings {\n /**\n * Enable debug mode. By default debug is false.\n */\n debug?: boolean;\n /**\n * Enable info mode. By default debug is false.\n */\n level?: \"debug\" | \"info\" | \"warn\" | \"error\" | \"off\";\n /**\n * Fields displayed when a request is logged. Possible values: `reqId`, `method`, `url`, `headers`, `body`, `query`,`params`, `duration`.\n */\n requestFields?: (\"reqId\" | \"method\" | \"url\" | \"headers\" | \"body\" | \"query\" | \"params\" | \"duration\" | string)[];\n /**\n * List of regexp to ignore log.\n */\n ignoreUrlPatterns?: string[];\n /**\n * Log all incoming request. By default is true and print the configured `logger.requestFields`.\n */\n logRequest?: boolean;\n /**\n * Log start of all incoming request. By default is true\n */\n logStart?: boolean;\n /**\n * Log end of all incoming request. By default is true\n */\n logEnd?: boolean;\n /**\n * The number of space characters to use as white space in JSON output. Default is 2 (0 in production).\n */\n jsonIndentation?: number;\n /**\n * A function called for each incoming request to create a request id.\n * @returns {number}\n */\n reqIdBuilder?: () => string;\n /**\n * Disable routes table displayed in the logger. By default debug is `false`.\n */\n disableRoutesSummary?: boolean;\n /**\n * Specify log format. Example: `%[%d{[yyyy-MM-dd hh:mm:ss,SSS}] %p%] %m`. See [@tsed/logger configuration](https://tsedio.github.io/logger/).\n */\n format?: string;\n /**\n * Specify the log stack size for the context.logger. When the stack.length is reach, the logger is flushed during the request.\n * Default size is set to 30.\n */\n maxStackSize?: number;\n}\n/**\n * @deprecated Use PlatformLoggerSettings interface instead\n */\nexport interface ILoggerSettings extends PlatformLoggerSettings {}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/common",
|
|
3
|
-
"version": "5.67.
|
|
3
|
+
"version": "5.67.2",
|
|
4
4
|
"description": "A TypeScript Framework on top of Express",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"author": "Romain Lenzotti",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"bugs": {
|
|
33
|
-
"url": "https://github.com/
|
|
33
|
+
"url": "https://github.com/tsedio/tsed/issues"
|
|
34
34
|
},
|
|
35
|
-
"homepage": "https://github.com/
|
|
36
|
-
"repository": "https://github.com/
|
|
35
|
+
"homepage": "https://github.com/tsedio/tsed/tree/5.x/packages/common",
|
|
36
|
+
"repository": "https://github.com/tsedio/tsed",
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc --build tsconfig.compile.json"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tsed/core": "5.67.
|
|
42
|
-
"@tsed/di": "5.67.
|
|
43
|
-
"@tsed/exceptions": "5.67.
|
|
41
|
+
"@tsed/core": "5.67.2",
|
|
42
|
+
"@tsed/di": "5.67.2",
|
|
43
|
+
"@tsed/exceptions": "5.67.2",
|
|
44
44
|
"@tsed/logger": "5.5.3",
|
|
45
45
|
"@types/json-schema": "7.0.6",
|
|
46
46
|
"globby": "11.0.1",
|
|
47
|
-
"json-schema": "^0.
|
|
47
|
+
"json-schema": "^0.4.0",
|
|
48
48
|
"normalize-path": "3.0.0",
|
|
49
49
|
"on-finished": "2.3.0",
|
|
50
50
|
"rxjs": "^6.5.2",
|
package/readme.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
<a href="https://tsed.io" target="_blank"><img src="https://tsed.io/tsed-og.png" width="200" alt="Ts.ED logo"/></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
[](https://travis-ci.org/tsedio/tsed)
|
|
6
|
+
[](https://coveralls.io/github/tsedio/tsed?branch=production)
|
|
7
7
|

|
|
8
8
|
[](https://badge.fury.io/js/%40tsed%2Fcommon)
|
|
9
|
-
[](https://david-dm.org/tsedio/tsed#info=dependencies)
|
|
10
|
+
[](https://david-dm.org/tsedio/tsed/#info=devDependencies)
|
|
11
|
+
[](https://david-dm.org/tsedio/tsed/#info=peerDependenciess)
|
|
12
|
+
[](https://snyk.io/test/github/tsedio/tsed)
|
|
13
13
|
[](https://github.com/semantic-release/semantic-release)
|
|
14
14
|
[](https://github.com/prettier/prettier)
|
|
15
15
|
[](https://opencollective.com/tsed)
|
|
@@ -180,7 +180,7 @@ export class UsersCtrl {
|
|
|
180
180
|
## Contributors
|
|
181
181
|
Please read [contributing guidelines here](./CONTRIBUTING.md).
|
|
182
182
|
|
|
183
|
-
<a href="https://github.com/
|
|
183
|
+
<a href="https://github.com/tsedio/tsed/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
## Backers
|