Socket
Socket
Sign inDemoInstall

@netlify/plugin-nextjs

Package Overview
Dependencies
Maintainers
20
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/plugin-nextjs - npm Package Compare versions

Comparing version 4.41.2 to 4.41.3

9

lib/templates/handlerUtils.js

@@ -110,5 +110,8 @@ "use strict";

promises.readFile = (async (file, options) => {
const baseUrl = getBase();
// We only care about page files
if (file.startsWith(pageRoot)) {
// file argument can be a string, URL, etc - Next.js cache reading uses a string
// and that's only thing we really want to handle here, so we just do type checking
// instead of trying to handle all possible type before checking weather read
// is about page files.
if (typeof file === 'string' && file.startsWith(pageRoot)) {
const baseUrl = getBase();
// We only want the part after `.next/server/`

@@ -115,0 +118,0 @@ const filePath = file.slice(pageRoot.length + 1);

{
"name": "@netlify/plugin-nextjs",
"version": "4.41.2",
"version": "4.41.3",
"description": "Run Next.js seamlessly on Netlify",

@@ -42,3 +42,3 @@ "main": "index.js",

"@delucis/if-env": "^1.1.2",
"@netlify/build": "^29.26.5",
"@netlify/build": "^29.30.0",
"@types/fs-extra": "^9.0.13",

@@ -45,0 +45,0 @@ "@types/jest": "^27.4.1",

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