@nuxt/server
Advanced tools
Comparing version 2.6.1 to 2.6.2
/*! | ||
* @nuxt/server v2.6.1 (c) 2016-2019 | ||
* @nuxt/server v2.6.2 (c) 2016-2019 | ||
@@ -182,3 +182,3 @@ * - All the amazing contributors | ||
if (options.render.csp) { | ||
if (options.render.csp && cspScriptSrcHashes) { | ||
const { allowedSources, policies } = options.render.csp; | ||
@@ -382,3 +382,3 @@ const cspHeader = options.render.csp.reportOnly ? 'Content-Security-Policy-Report-Only' : 'Content-Security-Policy'; | ||
class Listener { | ||
constructor({ port, host, socket, https, app, dev }) { | ||
constructor({ port, host, socket, https, app, dev, baseURL }) { | ||
// Options | ||
@@ -391,2 +391,3 @@ this.port = port; | ||
this.dev = dev; | ||
this.baseURL = baseURL; | ||
@@ -424,3 +425,3 @@ // After listen | ||
this.port = address.port; | ||
this.url = `http${this.https ? 's' : ''}://${this.host}:${this.port}`; | ||
this.url = `http${this.https ? 's' : ''}://${this.host}:${this.port}${this.baseURL}`; | ||
return | ||
@@ -840,3 +841,4 @@ } | ||
app: this.app, | ||
dev: this.options.dev | ||
dev: this.options.dev, | ||
baseURL: this.options.router.base | ||
}); | ||
@@ -843,0 +845,0 @@ |
{ | ||
"name": "@nuxt/server", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -11,4 +11,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@nuxt/config": "2.6.1", | ||
"@nuxt/utils": "2.6.1", | ||
"@nuxt/config": "2.6.2", | ||
"@nuxt/utils": "2.6.2", | ||
"@nuxtjs/youch": "^4.2.3", | ||
@@ -18,3 +18,3 @@ "chalk": "^2.4.2", | ||
"connect": "^3.6.6", | ||
"consola": "^2.5.8", | ||
"consola": "^2.6.0", | ||
"etag": "^1.8.1", | ||
@@ -21,0 +21,0 @@ "fresh": "^0.5.2", |
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
730
25583
2
+ Added@nuxt/config@2.6.2(transitive)
+ Added@nuxt/utils@2.6.2(transitive)
- Removed@nuxt/config@2.6.1(transitive)
- Removed@nuxt/utils@2.6.1(transitive)
Updated@nuxt/config@2.6.2
Updated@nuxt/utils@2.6.2
Updatedconsola@^2.6.0