New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

next-server

Package Overview
Dependencies
Maintainers
37
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-server - npm Package Compare versions

Comparing version 8.0.2-canary.5 to 8.0.2-canary.6

8

dist/lib/router/router.js

@@ -25,3 +25,3 @@ "use strict";

const { pathname, query } = this;
this.changeState('replaceState', url_1.format({ pathname, query }), utils_1.getURL());
this.changeState('replaceState', utils_1.formatWithValidation({ pathname, query }), utils_1.getURL());
return;

@@ -66,3 +66,3 @@ }

// we have to register the initial route upon initialization
this.changeState('replaceState', url_1.format({ pathname, query }), as);
this.changeState('replaceState', utils_1.formatWithValidation({ pathname, query }), as);
window.addEventListener('popstate', this.onPopState);

@@ -139,4 +139,4 @@ }

// we'll format them into the string version here.
const url = typeof _url === 'object' ? url_1.format(_url) : _url;
let as = typeof _as === 'object' ? url_1.format(_as) : _as;
const url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
// Add the ending slash to the paths. So, we can serve the

@@ -143,0 +143,0 @@ // "<page>/index.html" directly for the SSR page.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const url_1 = require("url");
function execOnce(fn) {

@@ -55,1 +56,15 @@ let used = false;

exports.loadGetInitialProps = loadGetInitialProps;
exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
function formatWithValidation(url, options) {
if (process.env.NODE_ENV === 'development') {
if (url !== null && typeof url === 'object') {
Object.keys(url).forEach((key) => {
if (!exports.urlObjectKeys.includes(key)) {
console.warn(`Unknown key passed via urlObject into url.format: ${key}`);
}
});
}
}
return url_1.format(url, options);
}
exports.formatWithValidation = formatWithValidation;

@@ -198,3 +198,3 @@ "use strict";

if (this.nextConfig.poweredByHeader) {
res.setHeader('X-Powered-By', 'Next.js ' + "8.0.2-canary.5");
res.setHeader('X-Powered-By', 'Next.js ' + "8.0.2-canary.6");
}

@@ -201,0 +201,0 @@ return this.sendHTML(req, res, html);

{
"name": "next-server",
"version": "8.0.2-canary.5",
"version": "8.0.2-canary.6",
"main": "./index.js",

@@ -45,4 +45,4 @@ "license": "MIT",

"@taskr/watch": "1.1.0",
"@types/react": "16.7.13",
"@types/react-dom": "16.0.11",
"@types/react": "16.8.4",
"@types/react-dom": "16.8.2",
"@types/react-is": "16.5.0",

@@ -56,3 +56,3 @@ "@types/send": "0.14.4",

},
"gitHead": "0bf5041ef41f2e28d01e51e2838d615482ada8c1"
"gitHead": "faf69b45c2c8a12c8599d180ed7a4fc2d6b9ce9e"
}
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