@tsed/platform-log-middleware 7.0.0-beta.1 → 7.0.0-beta.12
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/lib/cjs/index.js +5 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/middlewares/PlatformLogMiddleware.js +19 -19
- package/lib/cjs/middlewares/PlatformLogMiddleware.js.map +1 -1
- package/lib/cjs/package.json +3 -0
- package/lib/esm/index.js +5 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/package.json +3 -0
- package/lib/types/index.d.ts +3 -0
- package/package.json +28 -14
- package/readme.md +3 -3
- package/tsconfig.compile.esm.json +2 -12
package/lib/cjs/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file Automatically generated by barrelsby.
|
|
4
|
+
*/
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
tslib_1.__exportStar(require("./domain/PlatformLogMiddlewareSettings"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./middlewares/PlatformLogMiddleware"), exports);
|
|
6
9
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,iFAAuD;AACvD,8EAAoD","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./domain/PlatformLogMiddlewareSettings\";\nexport * from \"./middlewares/PlatformLogMiddleware\";\n"]}
|
|
@@ -103,39 +103,39 @@ let PlatformLogMiddleware = class PlatformLogMiddleware {
|
|
|
103
103
|
}, {});
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
-
|
|
106
|
+
tslib_1.__decorate([
|
|
107
107
|
(0, di_1.Constant)("logger.requestFields", ["reqId", "method", "url", "duration"]),
|
|
108
|
-
|
|
108
|
+
tslib_1.__metadata("design:type", Array)
|
|
109
109
|
], PlatformLogMiddleware.prototype, "requestFields", void 0);
|
|
110
|
-
|
|
110
|
+
tslib_1.__decorate([
|
|
111
111
|
(0, di_1.Constant)("logger.logRequest", true),
|
|
112
|
-
|
|
112
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
113
113
|
], PlatformLogMiddleware.prototype, "logRequest", void 0);
|
|
114
|
-
|
|
114
|
+
tslib_1.__decorate([
|
|
115
115
|
(0, di_1.Constant)("logger.logStart", true),
|
|
116
|
-
|
|
116
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
117
117
|
], PlatformLogMiddleware.prototype, "logStart", void 0);
|
|
118
|
-
|
|
118
|
+
tslib_1.__decorate([
|
|
119
119
|
(0, di_1.Constant)("logger.logEnd", true),
|
|
120
|
-
|
|
120
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
121
121
|
], PlatformLogMiddleware.prototype, "logEnd", void 0);
|
|
122
|
-
|
|
122
|
+
tslib_1.__decorate([
|
|
123
123
|
(0, di_1.Constant)("logger.level"),
|
|
124
|
-
|
|
124
|
+
tslib_1.__metadata("design:type", String)
|
|
125
125
|
], PlatformLogMiddleware.prototype, "logLevel", void 0);
|
|
126
|
-
|
|
126
|
+
tslib_1.__decorate([
|
|
127
127
|
(0, di_1.Constant)("debug"),
|
|
128
|
-
|
|
128
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
129
129
|
], PlatformLogMiddleware.prototype, "debug", void 0);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
tslib_1.__decorate([
|
|
131
|
+
tslib_1.__param(0, (0, platform_params_1.Context)()),
|
|
132
|
+
tslib_1.__metadata("design:type", Function),
|
|
133
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
134
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
135
135
|
], PlatformLogMiddleware.prototype, "use", null);
|
|
136
|
-
PlatformLogMiddleware =
|
|
136
|
+
PlatformLogMiddleware = tslib_1.__decorate([
|
|
137
137
|
(0, platform_middlewares_1.Middleware)(),
|
|
138
|
-
|
|
138
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
139
139
|
], PlatformLogMiddleware);
|
|
140
140
|
exports.PlatformLogMiddleware = PlatformLogMiddleware;
|
|
141
141
|
//# sourceMappingURL=PlatformLogMiddleware.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformLogMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/PlatformLogMiddleware.ts"],"names":[],"mappings":";;;;AAAA,iCAAkC;AAClC,qEAAyE;AACzE,2DAA8C;AAG9C;;;GAGG;AAEH,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAqBhC;QACE,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,EAAE;YAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC7C;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACI,GAAG,CAAY,GAAY;QAChC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAED;;;OAGG;IACO,UAAU,CAAC,GAAY;QAC/B,MAAM,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;QAEpD,IAAI,QAAQ,EAAE;YACZ,IAAI,KAAK,EAAE;gBACT,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC;oBACf,KAAK,EAAE,eAAe;iBACvB,CAA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AC,sBAAsB,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;;4DAC5B;AAG7C;IADC,IAAA,aAAQ,EAAC,mBAAmB,EAAE,IAAI,CAAC;;yDACN;AAG9B;IADC,IAAA,aAAQ,EAAC,iBAAiB,EAAE,IAAI,CAAC;;uDACN;AAG5B;IADC,IAAA,aAAQ,EAAC,eAAe,EAAE,IAAI,CAAC;;qDACN;AAG1B;IADC,IAAA,aAAQ,EAAC,cAAc,CAAC;;uDACE;AAG3B;IADC,IAAA,aAAQ,EAAC,OAAO,CAAC;;oDACO;AAezB;IAAY,mBAAA,IAAA,yBAAO,GAAE,CAAA;;;;gDAGpB;AArCU,qBAAqB;IADjC,IAAA,iCAAU,GAAE;;GACA,qBAAqB,CA4HjC;AA5HY,sDAAqB","sourcesContent":["import {Constant} from \"@tsed/di\";\nimport {Middleware, MiddlewareMethods} from \"@tsed/platform-middlewares\";\nimport {Context} from \"@tsed/platform-params\";\nimport type {LoggerRequestFields} from \"../domain/PlatformLogMiddlewareSettings\";\n\n/**\n * @middleware\n * @platform\n */\n@Middleware()\nexport class PlatformLogMiddleware implements MiddlewareMethods {\n $onResponse: any;\n\n @Constant(\"logger.requestFields\", [\"reqId\", \"method\", \"url\", \"duration\"])\n protected requestFields: LoggerRequestFields;\n\n @Constant(\"logger.logRequest\", true)\n protected logRequest: boolean;\n\n @Constant(\"logger.logStart\", true)\n protected logStart: boolean;\n\n @Constant(\"logger.logEnd\", true)\n protected logEnd: boolean;\n\n @Constant(\"logger.level\")\n protected logLevel: string;\n\n @Constant(\"debug\")\n protected debug: boolean;\n\n constructor() {\n if (this.logLevel !== \"off\") {\n this.$onResponse = this.onLogEnd.bind(this);\n }\n }\n\n get settings() {\n return this;\n }\n\n /**\n * Handle the request.\n */\n public use(@Context() ctx: Context): void {\n this.configureRequest(ctx);\n this.onLogStart(ctx);\n }\n\n /**\n * The separate onLogStart() function will allow developer to overwrite the initial request log.\n * @param ctx\n */\n protected onLogStart(ctx: Context) {\n const {debug, logRequest, logStart} = this.settings;\n\n if (logStart) {\n if (debug) {\n ctx.logger.debug({\n event: \"request.start\"\n });\n } else if (logRequest) {\n ctx.logger.info({\n event: \"request.start\"\n });\n }\n }\n }\n\n /**\n * Called when the `$onResponse` is called by Ts.ED (through Express.end).\n */\n protected onLogEnd(ctx: Context) {\n const {debug, logRequest, logEnd} = this.settings;\n\n if (logEnd) {\n if (debug) {\n ctx.logger.debug({\n event: \"request.end\",\n status: ctx.response.statusCode,\n data: ctx.data\n });\n } else if (logRequest) {\n ctx.logger.info({\n event: \"request.end\",\n status: ctx.response.statusCode\n });\n }\n }\n\n ctx.logger.flush();\n }\n\n /**\n * Attach all information that will be necessary to log the request. Attach a new `request.log` object.\n */\n protected configureRequest(ctx: Context) {\n ctx.logger.minimalRequestPicker = (obj: any) => ({...this.minimalRequestPicker(ctx), ...obj});\n ctx.logger.completeRequestPicker = (obj: any) => ({...this.requestToObject(ctx), ...obj});\n }\n\n /**\n * Return complete request info.\n * @returns {Object}\n * @param ctx\n */\n protected requestToObject(ctx: Context): any {\n const {request} = ctx;\n\n return {\n method: request.method,\n url: request.url,\n headers: request.headers,\n body: request.body,\n query: request.query,\n params: request.params\n };\n }\n\n /**\n * Return a filtered request from global configuration.\n * @returns {Object}\n * @param ctx\n */\n protected minimalRequestPicker(ctx: Context): any {\n const {requestFields} = this;\n const info = this.requestToObject(ctx);\n\n return requestFields!.reduce((acc: any, key: string) => {\n acc[key] = info[key];\n\n return acc;\n }, {});\n }\n}\n"]}
|
package/lib/esm/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./domain/PlatformLogMiddlewareSettings.js";
|
|
5
|
+
export * from "./middlewares/PlatformLogMiddleware.js";
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./domain/PlatformLogMiddlewareSettings\";\nexport * from \"./middlewares/PlatformLogMiddleware\";\n"]}
|
package/lib/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-log-middleware",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.12",
|
|
4
4
|
"description": "Log request middleware module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
|
+
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
"types": "./lib/types/index.d.ts",
|
|
@@ -13,31 +14,44 @@
|
|
|
13
14
|
"default": "./lib/esm/index.js"
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|
|
16
|
-
"build": "yarn run build:esm && yarn run build:cjs",
|
|
17
|
+
"build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
|
|
17
18
|
"build:cjs": "tsc --build tsconfig.compile.json",
|
|
18
19
|
"build:esm": "tsc --build tsconfig.compile.esm.json",
|
|
19
|
-
"
|
|
20
|
+
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
|
|
21
|
+
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2"
|
|
20
22
|
},
|
|
21
23
|
"dependencies": {
|
|
22
|
-
"tslib": "2.
|
|
24
|
+
"tslib": "2.3.1"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
|
-
"@tsed/
|
|
26
|
-
"@tsed/
|
|
27
|
-
"@tsed/platform-
|
|
28
|
-
"@tsed/platform-params": "7.0.0-beta.1"
|
|
27
|
+
"@tsed/di": "7.0.0-beta.12",
|
|
28
|
+
"@tsed/platform-middlewares": "7.0.0-beta.12",
|
|
29
|
+
"@tsed/platform-params": "7.0.0-beta.12"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
|
-
"@tsed/
|
|
32
|
-
"@tsed/
|
|
33
|
-
"@tsed/platform-
|
|
34
|
-
|
|
32
|
+
"@tsed/di": "^7.0.0-beta.12",
|
|
33
|
+
"@tsed/platform-middlewares": "^7.0.0-beta.12",
|
|
34
|
+
"@tsed/platform-params": "^7.0.0-beta.12"
|
|
35
|
+
},
|
|
36
|
+
"peerDependenciesMeta": {
|
|
37
|
+
"@tsed/di": {
|
|
38
|
+
"optional": false
|
|
39
|
+
},
|
|
40
|
+
"@tsed/platform-middlewares": {
|
|
41
|
+
"optional": false
|
|
42
|
+
},
|
|
43
|
+
"@tsed/platform-params": {
|
|
44
|
+
"optional": false
|
|
45
|
+
}
|
|
35
46
|
},
|
|
36
47
|
"repository": "https://github.com/tsedio/tsed",
|
|
37
48
|
"bugs": {
|
|
38
49
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
39
50
|
},
|
|
40
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
51
|
+
"homepage": "https://github.com/tsedio/tsed/tree/beta/packages/platform/platform-log-middleware",
|
|
41
52
|
"author": "Romain Lenzotti",
|
|
42
|
-
"license": "MIT"
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"tag": "beta"
|
|
56
|
+
}
|
|
43
57
|
}
|
package/readme.md
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
[](https://badge.fury.io/js/%40tsed%2Fcommon)
|
|
12
12
|
[](https://github.com/semantic-release/semantic-release)
|
|
13
13
|
[](https://github.com/prettier/prettier)
|
|
14
|
-
[](https://github.com/sponsors/romakita)
|
|
15
|
+
[](https://opencollective.com/tsed)
|
|
15
16
|
|
|
16
17
|
</div>
|
|
17
18
|
|
|
@@ -36,18 +37,17 @@ npm install --save @tsed/platform-params
|
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
## Contributors
|
|
40
|
+
|
|
39
41
|
Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html).
|
|
40
42
|
|
|
41
43
|
<a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
|
|
42
44
|
|
|
43
|
-
|
|
44
45
|
## Backers
|
|
45
46
|
|
|
46
47
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
|
|
47
48
|
|
|
48
49
|
<a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/tiers/backer.svg?width=890"></a>
|
|
49
50
|
|
|
50
|
-
|
|
51
51
|
## Sponsors
|
|
52
52
|
|
|
53
53
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
|
|
@@ -8,16 +8,6 @@
|
|
|
8
8
|
"declaration": true,
|
|
9
9
|
"declarationDir": "./lib/types"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"test",
|
|
14
|
-
"lib",
|
|
15
|
-
"benchmark",
|
|
16
|
-
"coverage",
|
|
17
|
-
"spec",
|
|
18
|
-
"**/*.benchmark.ts",
|
|
19
|
-
"**/*.spec.ts",
|
|
20
|
-
"keys",
|
|
21
|
-
"jest.config.js"
|
|
22
|
-
]
|
|
11
|
+
"include": ["src"],
|
|
12
|
+
"exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
|
|
23
13
|
}
|