@nestjs/platform-express 8.2.4 → 8.2.5
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/LICENSE +1 -1
- package/adapters/express-adapter.js +3 -3
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(The MIT License)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2017-
|
|
3
|
+
Copyright (c) 2017-2022 Kamil Mysliwiec <https://kamilmysliwiec.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
|
@@ -6,7 +6,7 @@ const interfaces_1 = require("@nestjs/common/interfaces");
|
|
|
6
6
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
7
7
|
const http_adapter_1 = require("@nestjs/core/adapters/http-adapter");
|
|
8
8
|
const router_method_factory_1 = require("@nestjs/core/helpers/router-method-factory");
|
|
9
|
-
const
|
|
9
|
+
const body_parser_1 = require("body-parser");
|
|
10
10
|
const cors = require("cors");
|
|
11
11
|
const express = require("express");
|
|
12
12
|
const http = require("http");
|
|
@@ -113,8 +113,8 @@ class ExpressAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
113
113
|
}
|
|
114
114
|
registerParserMiddleware() {
|
|
115
115
|
const parserMiddleware = {
|
|
116
|
-
jsonParser:
|
|
117
|
-
urlencodedParser:
|
|
116
|
+
jsonParser: body_parser_1.json(),
|
|
117
|
+
urlencodedParser: body_parser_1.urlencoded({ extended: true }),
|
|
118
118
|
};
|
|
119
119
|
Object.keys(parserMiddleware)
|
|
120
120
|
.filter(parser => !this.isMiddlewareApplied(parser))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-express",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.5",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-express)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"body-parser": "1.19.
|
|
20
|
+
"body-parser": "1.19.1",
|
|
21
21
|
"cors": "2.8.5",
|
|
22
22
|
"express": "4.17.1",
|
|
23
23
|
"multer": "1.4.4",
|
|
24
24
|
"tslib": "2.3.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@nestjs/common": "8.2.
|
|
28
|
-
"@nestjs/core": "8.2.
|
|
27
|
+
"@nestjs/common": "8.2.5",
|
|
28
|
+
"@nestjs/core": "8.2.5"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@nestjs/common": "^8.0.0",
|