@nestjs/platform-fastify 11.0.9 → 11.0.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.
|
@@ -10,8 +10,8 @@ const fastify_1 = require("fastify");
|
|
|
10
10
|
const Reply = require("fastify/lib/reply");
|
|
11
11
|
const symbols_1 = require("fastify/lib/symbols");
|
|
12
12
|
const path_to_regexp_1 = require("path-to-regexp");
|
|
13
|
-
// `querystring`
|
|
14
|
-
const
|
|
13
|
+
// Fastify uses `fast-querystring` internally to quickly parse URL query strings.
|
|
14
|
+
const fast_querystring_1 = require("fast-querystring");
|
|
15
15
|
const constants_1 = require("../constants");
|
|
16
16
|
/**
|
|
17
17
|
* @publicApi
|
|
@@ -400,7 +400,7 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
400
400
|
const withRawBody = !!rawBody;
|
|
401
401
|
const { bodyLimit } = this.getInstance().initialConfig;
|
|
402
402
|
this.useBodyParser(contentType, withRawBody, { bodyLimit }, (_req, body, done) => {
|
|
403
|
-
done(null, (0,
|
|
403
|
+
done(null, (0, fast_querystring_1.parse)(body.toString()));
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
async registerMiddie() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-fastify",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.11",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@fastify/cors": "
|
|
21
|
+
"@fastify/cors": "11.0.0",
|
|
22
22
|
"@fastify/formbody": "8.0.2",
|
|
23
23
|
"@fastify/middie": "9.0.3",
|
|
24
|
+
"fast-querystring": "1.1.2",
|
|
24
25
|
"fastify": "5.2.1",
|
|
25
|
-
"light-my-request": "6.
|
|
26
|
+
"light-my-request": "6.6.0",
|
|
26
27
|
"path-to-regexp": "8.2.0",
|
|
27
28
|
"tslib": "2.8.1"
|
|
28
29
|
},
|