Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@vercel/node

Package Overview
Dependencies
Maintainers
8
Versions
402
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/node - npm Package Compare versions

Comparing version
5.3.10
to
5.3.11
+10
-1
dist/dev-server.mjs

@@ -1119,3 +1119,3 @@ var __create = Object.create;

}
const shouldUseWebHandlers = options.isMiddleware || HTTP_METHODS.some((method) => typeof listener[method] === "function");
const shouldUseWebHandlers = options.isMiddleware || HTTP_METHODS.some((method) => typeof listener[method] === "function") || typeof listener.fetch === "function";
if (shouldUseWebHandlers) {

@@ -1134,2 +1134,11 @@ const { createWebExportsHandler: createWebExportsHandler2 } = await Promise.resolve().then(() => (init_helpers_web(), helpers_web_exports));

}
if (typeof listener.fetch === "function") {
handler = HTTP_METHODS.reduce(
(acc, method) => {
acc[method] = listener.fetch;
return acc;
},
{}
);
}
return getWebExportsHandler(handler, HTTP_METHODS);

@@ -1136,0 +1145,0 @@ }

+1
-1
{
"name": "@vercel/node",
"version": "5.3.10",
"version": "5.3.11",
"license": "Apache-2.0",

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

Sorry, the diff of this file is too big to display