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

next-server

Package Overview
Dependencies
Maintainers
19
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 7.0.2-canary.26 to 7.0.2-canary.27

15

dist/lib/router/router.js

@@ -34,4 +34,2 @@ "use strict";

var _pQueue = _interopRequireDefault(require("../p-queue"));
var _utils = require("../utils");

@@ -120,5 +118,2 @@

this.pageLoader = pageLoader;
this.prefetchQueue = new _pQueue.default({
concurrency: 2
});
this.ErrorComponent = ErrorComponent;

@@ -616,4 +611,2 @@ this.pathname = _pathname;

_regenerator.default.mark(function _callee4(url) {
var _this2 = this;
var _parse3, pathname, route;

@@ -635,5 +628,3 @@

route = toRoute(pathname);
return _context4.abrupt("return", this.prefetchQueue.add(function () {
return _this2.fetchRoute(route);
}));
return _context4.abrupt("return", this.pageLoader.prefetch(route));

@@ -806,7 +797,7 @@ case 5:

value: function subscribe(fn) {
var _this3 = this;
var _this2 = this;
this.subscriptions.add(fn);
return function () {
return _this3.subscriptions.delete(fn);
return _this2.subscriptions.delete(fn);
};

@@ -813,0 +804,0 @@ }

1

dist/server/config.js

@@ -43,3 +43,2 @@ "use strict";

if (path && path.length) {
// $FlowFixMe
var userConfigModule = require(path);

@@ -46,0 +45,0 @@

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

if (this.nextConfig.poweredByHeader) {
res.setHeader('X-Powered-By', "Next.js 7.0.2-canary.26");
res.setHeader('X-Powered-By', "Next.js 7.0.2-canary.27");
}

@@ -664,7 +664,3 @@

var buildIdPath = (0, _path.join)(this.distDir, _constants.BUILD_ID_FILE);
var buildId = _fs.default.readFileSync(buildIdPath, 'utf8');
return buildId.trim();
return _fs.default.readFileSync((0, _path.join)(this.distDir, _constants.BUILD_ID_FILE), 'utf8').trim();
}

@@ -671,0 +667,0 @@ }]);

{
"name": "next-server",
"version": "7.0.2-canary.26",
"version": "7.0.2-canary.27",
"main": "./index.js",

@@ -57,3 +57,6 @@ "license": "MIT",

},
"gitHead": "76202f2fb2354c4af34d4a2fb4130dc6744156ee"
"engines": {
"node": ">= 8.0.0"
},
"gitHead": "9f03fad5e9385424ad95b9f5164036d4975039de"
}
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