next-server
Advanced tools
Comparing version 7.0.2-canary.26 to 7.0.2-canary.27
@@ -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 @@ } |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135882
34
3348