Socket
Socket
Sign inDemoInstall

@nestjs/platform-fastify

Package Overview
Dependencies
Maintainers
2
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/platform-fastify - npm Package Compare versions

Comparing version 10.2.10 to 10.3.0

decorators/route-constraints.decorator.d.ts

14

adapters/fastify-adapter.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc