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

@vercel/next

Package Overview
Dependencies
Maintainers
13
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 2.6.6 to 2.6.7-canary.0

28

dist/utils.js

@@ -256,2 +256,15 @@ "use strict";

const routesManifest = require(pathRoutesManifest);
// massage temporary array based routeKeys from v1/v2 of routes
// manifest into new object based
for (const route of [
...(routesManifest.dataRoutes || []),
...(routesManifest.dynamicRoutes || []),
]) {
if (Array.isArray(route.routeKeys)) {
route.routeKeys = route.routeKeys.reduce((prev, cur) => {
prev[cur] = cur;
return prev;
}, {});
}
}
return routesManifest;

@@ -278,2 +291,17 @@ }

}
case 3: {
return routesManifest.dynamicRoutes
.filter(({ page }) => omittedRoutes ? !omittedRoutes.has(page) : true)
.map(({ page, namedRegex, regex, routeKeys }) => {
return {
src: namedRegex || regex,
dest: `${!isDev ? path_1.default.join('/', entryDirectory, page) : page}${routeKeys
? `?${Object.keys(routeKeys)
.map(key => `${routeKeys[key]}=$${key}`)
.join('&')}`
: ''}`,
check: true,
};
});
}
default: {

@@ -280,0 +308,0 @@ // update MIN_ROUTES_MANIFEST_VERSION

4

package.json
{
"name": "@vercel/next",
"version": "2.6.6",
"version": "2.6.7-canary.0",
"license": "MIT",

@@ -42,3 +42,3 @@ "main": "./dist/index",

},
"gitHead": "63cc9009c893612dcfb95f4d8c450523eab270fb"
"gitHead": "5a9391b7cec4fdb5f4e1d4399e57b8284cc3ee32"
}

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

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