@nestjs/platform-fastify 11.0.12 → 11.0.13
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.
|
@@ -346,10 +346,12 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
346
346
|
// Fallback to "*path" to support plugins like GraphQL
|
|
347
347
|
normalizedPath = normalizedPath === '/*path' ? '*path' : normalizedPath;
|
|
348
348
|
// Normalize the path to support the prefix if it set in application
|
|
349
|
-
normalizedPath
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
if (this._pathPrefix && !normalizedPath.startsWith(this._pathPrefix)) {
|
|
350
|
+
normalizedPath = `${this._pathPrefix}${normalizedPath}`;
|
|
351
|
+
if (normalizedPath.endsWith('/')) {
|
|
352
|
+
normalizedPath = `${normalizedPath}{*path}`;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
353
355
|
try {
|
|
354
356
|
let { regexp: re } = (0, path_to_regexp_1.pathToRegexp)(normalizedPath);
|
|
355
357
|
re = hasEndOfStringCharacter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-fastify",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.13",
|
|
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,11 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@fastify/cors": "11.0.
|
|
21
|
+
"@fastify/cors": "11.0.1",
|
|
22
22
|
"@fastify/formbody": "8.0.2",
|
|
23
23
|
"@fastify/middie": "9.0.3",
|
|
24
24
|
"fast-querystring": "1.1.2",
|
|
25
|
-
"fastify": "5.2.
|
|
25
|
+
"fastify": "5.2.2",
|
|
26
26
|
"light-my-request": "6.6.0",
|
|
27
27
|
"path-to-regexp": "8.2.0",
|
|
28
28
|
"tslib": "2.8.1"
|