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

next-pipe-middleware

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-pipe-middleware - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

README.md

2

dist/index.d.ts

@@ -6,3 +6,3 @@ import { NextRequest, NextResponse } from 'next/server';

res: Response;
_final: true;
final: true;
};

@@ -9,0 +9,0 @@ export declare type PipeableMiddleware = (req: Request, res: Response) => Promise<Response | FinalResponse>;

@@ -21,4 +21,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const result = yield middleware(req, res);
if ('_final' in result) {
return result._final ? result.res : pipeMiddleware(req, res, rest);
if ('final' in result) {
return result.final ? result.res : pipeMiddleware(req, res, rest);
}

@@ -25,0 +25,0 @@ return pipeMiddleware(req, result, rest);

{
"name": "next-pipe-middleware",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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