next-pipe-middleware
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
6906
5
1
112