Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

next-api-middleware

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-api-middleware - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

2

dist/index.d.ts

@@ -9,3 +9,3 @@ import type { NextApiHandler, NextApiRequest, NextApiResponse } from "next";

export declare function use(...middleware: (Middleware | Middleware[])[]): (apiRouteFn: NextApiHandler<any>) => NextApiHandler<any>;
export declare function label<T extends LabeledMiddleware>(middleware: T, defaults?: (keyof T)[]): (...chosenMiddleware: (keyof T | Middleware)[]) => (apiRouteFn: NextApiHandler<any>) => NextApiHandler<any>;
export declare function label<T extends LabeledMiddleware>(middleware: T, defaults?: (keyof T)[]): (...chosenMiddleware: (keyof T | Middleware | Middleware[])[]) => (apiRouteFn: NextApiHandler<any>) => NextApiHandler<any>;
/**

@@ -12,0 +12,0 @@ * @private

{
"name": "next-api-middleware",
"version": "0.5.2",
"version": "0.6.0",
"description": "Middleware solution for Next.js API routes",

@@ -5,0 +5,0 @@ "repository": "git@github.com:htunnicliff/next-api-middleware.git",

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