@nestjs/platform-fastify
Advanced tools
Comparing version 10.2.10 to 10.3.0
@@ -362,12 +362,16 @@ "use strict"; | ||
const routeConfig = Reflect.getMetadata(constants_1.FASTIFY_ROUTE_CONFIG_METADATA, handlerRef); | ||
const routeConstraints = Reflect.getMetadata(constants_1.FASTIFY_ROUTE_CONSTRAINTS_METADATA, handlerRef); | ||
const hasConfig = !(0, shared_utils_1.isUndefined)(routeConfig); | ||
if (isVersioned || hasConfig) { | ||
const hasConstraints = !(0, shared_utils_1.isUndefined)(routeConstraints); | ||
if (isVersioned || hasConstraints || hasConfig) { | ||
const isPathAndRouteTuple = args.length === 2; | ||
if (isPathAndRouteTuple) { | ||
const options = { | ||
const constraints = { | ||
...(hasConstraints && routeConstraints), | ||
...(isVersioned && { | ||
constraints: { | ||
version: handlerRef.version, | ||
}, | ||
version: handlerRef.version, | ||
}), | ||
}; | ||
const options = { | ||
constraints, | ||
...(hasConfig && { | ||
@@ -374,0 +378,0 @@ config: { |
export declare const FASTIFY_ROUTE_CONFIG_METADATA = "__fastify_route_config__"; | ||
export declare const FASTIFY_ROUTE_CONSTRAINTS_METADATA = "__fastify_route_constraints__"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FASTIFY_ROUTE_CONFIG_METADATA = void 0; | ||
exports.FASTIFY_ROUTE_CONSTRAINTS_METADATA = exports.FASTIFY_ROUTE_CONFIG_METADATA = void 0; | ||
exports.FASTIFY_ROUTE_CONFIG_METADATA = '__fastify_route_config__'; | ||
exports.FASTIFY_ROUTE_CONSTRAINTS_METADATA = '__fastify_route_constraints__'; |
export * from './route-config.decorator'; | ||
export * from './route-constraints.decorator'; |
@@ -5,1 +5,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./route-config.decorator"), exports); | ||
tslib_1.__exportStar(require("./route-constraints.decorator"), exports); |
{ | ||
"name": "@nestjs/platform-fastify", | ||
"version": "10.2.10", | ||
"version": "10.3.0", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)", | ||
@@ -21,6 +21,6 @@ "author": "Kamil Mysliwiec", | ||
"dependencies": { | ||
"@fastify/cors": "8.4.1", | ||
"@fastify/cors": "8.4.2", | ||
"@fastify/formbody": "7.4.0", | ||
"@fastify/middie": "8.3.0", | ||
"fastify": "4.24.3", | ||
"fastify": "4.25.1", | ||
"light-my-request": "5.11.0", | ||
@@ -27,0 +27,0 @@ "path-to-regexp": "3.2.0", |
@@ -86,3 +86,6 @@ <p align="center"> | ||
<a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td><td> | ||
<a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td></</tr></table> | ||
<a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td> | ||
</tr><tr><td> | ||
<a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/skunk-logo.png" height="60" valign="middle" /></a></td> | ||
</tr></table> | ||
@@ -89,0 +92,0 @@ #### Silver Sponsors |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50927
32
820
140
+ Added@fastify/cors@8.4.2(transitive)
+ Addedfastify@4.25.1(transitive)
- Removed@fastify/cors@8.4.1(transitive)
- Removedfastify@4.24.3(transitive)
Updated@fastify/cors@8.4.2
Updatedfastify@4.25.1