Socket
Socket
Sign inDemoInstall

@netlify/plugin-nextjs

Package Overview
Dependencies
Maintainers
23
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 5.2.0 to 5.2.1

dist/esm-chunks/package-SCUAWNXR.js

17

dist/build/content/prerendered.js

@@ -81,2 +81,3 @@

// node_modules/p-limit/index.js
import { AsyncResource } from "async_hooks";
function pLimit(concurrency) {

@@ -94,5 +95,5 @@ if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {

};
const run = async (fn, resolve, args) => {
const run = async (function_, resolve, arguments_) => {
activeCount++;
const result = (async () => fn(...args))();
const result = (async () => function_(...arguments_))();
resolve(result);

@@ -105,4 +106,6 @@ try {

};
const enqueue = (fn, resolve, args) => {
queue.enqueue(run.bind(void 0, fn, resolve, args));
const enqueue = (function_, resolve, arguments_) => {
queue.enqueue(
AsyncResource.bind(run.bind(void 0, function_, resolve, arguments_))
);
(async () => {

@@ -115,4 +118,4 @@ await Promise.resolve();

};
const generator = (fn, ...args) => new Promise((resolve) => {
enqueue(fn, resolve, args);
const generator = (function_, ...arguments_) => new Promise((resolve) => {
enqueue(function_, resolve, arguments_);
});

@@ -127,3 +130,3 @@ Object.defineProperties(generator, {

clearQueue: {
value: () => {
value() {
queue.clear();

@@ -130,0 +133,0 @@ }

@@ -9,3 +9,2 @@

__commonJS,
__require,
__toESM

@@ -227,2 +226,12 @@ } from "../esm-chunks/chunk-5JVNISGM.js";

exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
exports.isWindows = () => {
if (typeof navigator !== "undefined" && navigator.platform) {
const platform = navigator.platform.toLowerCase();
return platform === "win32" || platform === "windows";
}
if (typeof process !== "undefined" && process.platform) {
return process.platform === "win32";
}
return false;
};
exports.removeBackslashes = (str) => {

@@ -233,11 +242,2 @@ return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {

};
exports.supportsLookbehinds = () => {
if (typeof process !== "undefined") {
const segs = process.version.slice(1).split(".").map(Number);
if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
return true;
}
}
return false;
};
exports.escapeLast = (input, char, lastIdx) => {

@@ -759,4 +759,4 @@ const idx = input.lastIndexOf(char, lastIdx);

if (prev && prev.type === "text" && tok.type === "text") {
prev.output = (prev.output || prev.value) + tok.value;
prev.value += tok.value;
prev.output = (prev.output || "") + tok.value;
return;

@@ -1098,5 +1098,2 @@ }

let output = value;
if (next === "<" && !utils.supportsLookbehinds()) {
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
}
if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {

@@ -1540,20 +1537,12 @@ output = `\\${value}`;

"use strict";
var os = __require("os");
var pico = require_picomatch();
var isWindows = os.platform() === "win32";
var utils = require_utils();
function picomatch(glob, options, returnState = false) {
if (options && (options.windows === null || options.windows === void 0)) {
options = { ...options, windows: isWindows };
options = { ...options, windows: utils.isWindows() };
}
return pico(glob, options, returnState);
}
Object.assign(picomatch, pico);
module.exports = picomatch;
module.exports.test = pico.test;
module.exports.matchBase = pico.matchBase;
module.exports.isMatch = pico.isMatch;
module.exports.parse = pico.parse;
module.exports.scan = pico.scan;
module.exports.compileRe = pico.compileRe;
module.exports.toRegex = pico.toRegex;
module.exports.makeRe = pico.makeRe;
}

@@ -1560,0 +1549,0 @@ });

@@ -121,2 +121,3 @@ import type { Context } from '@netlify/edge-functions'

let redirect = res.headers.get('location')
let nextRedirect = res.headers.get('x-nextjs-redirect')

@@ -126,3 +127,3 @@ // Data requests (i.e. requests for /_next/data ) need special handling

// Data requests need to be normalized to the route path
if (isDataReq && !redirect && !rewrite) {
if (isDataReq && !redirect && !rewrite && !nextRedirect) {
const requestUrl = new URL(request.url)

@@ -214,3 +215,3 @@ const normalizedDataUrl = normalizeDataUrl(requestUrl.pathname)

const nextRedirect = res.headers.get('x-nextjs-redirect')
nextRedirect = res.headers.get('x-nextjs-redirect')

@@ -217,0 +218,0 @@ if (nextRedirect && isDataReq) {

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

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

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

Sorry, the diff of this file is not supported yet

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