@nestjs/platform-fastify 11.1.25 → 11.1.27
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.
|
@@ -400,8 +400,13 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
400
400
|
? req.originalUrl.slice(0, queryParamsIndex)
|
|
401
401
|
: req.originalUrl;
|
|
402
402
|
pathname = this.sanitizeUrl(pathname);
|
|
403
|
-
if (
|
|
404
|
-
|
|
403
|
+
if (normalizedPath) {
|
|
404
|
+
const pathToCheck = pathname.endsWith('/')
|
|
405
|
+
? pathname
|
|
406
|
+
: `${pathname}/`;
|
|
407
|
+
if (!re.exec(pathToCheck)) {
|
|
408
|
+
return next();
|
|
409
|
+
}
|
|
405
410
|
}
|
|
406
411
|
return callback(req, res, next);
|
|
407
412
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-fastify",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.27",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@fastify/formbody": "8.0.2",
|
|
23
23
|
"fast-querystring": "1.1.2",
|
|
24
24
|
"fastify": "5.8.5",
|
|
25
|
-
"fastify-plugin": "
|
|
25
|
+
"fastify-plugin": "6.0.0",
|
|
26
26
|
"find-my-way": "9.6.0",
|
|
27
27
|
"light-my-request": "6.6.0",
|
|
28
28
|
"path-to-regexp": "8.4.2",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@fastify/static": "^8.0.0 || ^9.0.0",
|
|
34
|
-
"@fastify/view": "^10.0.0 || ^11.0.0",
|
|
34
|
+
"@fastify/view": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
35
35
|
"@nestjs/common": "^11.0.0",
|
|
36
36
|
"@nestjs/core": "^11.0.0"
|
|
37
37
|
},
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"optional": true
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "660a1249e32e7701cdd7e5ccb20b7f695e721bce"
|
|
47
47
|
}
|