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

@vercel/next

Package Overview
Dependencies
Maintainers
9
Versions
342
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/next - npm Package Compare versions

Comparing version 4.0.12 to 4.0.13

13

dist/server-launcher.js

@@ -15,5 +15,5 @@ "use strict";

const NextServer = require("__NEXT_SERVER_PATH__").default;
const conf = __NEXT_CONFIG__;
const nextServer = new NextServer({
// @ts-ignore __NEXT_CONFIG__ value is injected
conf: __NEXT_CONFIG__,
conf,
dir: ".",

@@ -23,7 +23,6 @@ minimalMode: true,

});
const requestHandler = nextServer.getRequestHandler();
module.exports = async (req, res) => {
const serve = (handler) => async (req, res) => {
try {
// @preserve entryDirectory handler
await requestHandler(req, res);
await handler(req, res);
} catch (err) {

@@ -34,1 +33,5 @@ console.error(err);

};
module.exports = serve(nextServer.getRequestHandler());
if (conf.experimental?.ppr && "getRequestHandlerWithMetadata" in nextServer && typeof nextServer.getRequestHandlerWithMetadata === "function") {
module.exports.getRequestHandlerWithMetadata = (metadata) => serve(nextServer.getRequestHandlerWithMetadata(metadata));
}
{
"name": "@vercel/next",
"version": "4.0.12",
"version": "4.0.13",
"license": "Apache-2.0",

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

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

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