@nuxt/server
Advanced tools
Comparing version 2.10.2 to 2.11.0
/*! | ||
* @nuxt/server v2.10.2 (c) 2016-2019 | ||
* @nuxt/server v2.11.0 (c) 2016-2019 | ||
@@ -254,5 +254,5 @@ * - All the amazing contributors | ||
const joinedHashes = cspScriptSrcHashes.join(' '); | ||
const baseCspStr = `script-src 'self'${isDev ? ` 'unsafe-eval'` : ''} ${joinedHashes}`; | ||
const baseCspStr = `script-src 'self'${isDev ? ' \'unsafe-eval\'' : ''} ${joinedHashes}`; | ||
if (Array.isArray(allowedSources)) { | ||
if (Array.isArray(allowedSources) && allowedSources.length) { | ||
return `${baseCspStr} ${allowedSources.join(' ')}` | ||
@@ -278,3 +278,3 @@ } | ||
// Self is always needed for inline-scripts, so add it, no matter if the user specified script-src himself. | ||
const hashAndPolicyList = cspScriptSrcHashes.concat(`'self'`, additionalPolicies); | ||
const hashAndPolicyList = cspScriptSrcHashes.concat('\'self\'', additionalPolicies); | ||
@@ -281,0 +281,0 @@ return { ...policies, 'script-src': hashAndPolicyList } |
{ | ||
"name": "@nuxt/server", | ||
"version": "2.10.2", | ||
"version": "2.11.0", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -11,4 +11,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@nuxt/config": "2.10.2", | ||
"@nuxt/utils": "2.10.2", | ||
"@nuxt/config": "2.11.0", | ||
"@nuxt/utils": "2.11.0", | ||
"@nuxtjs/youch": "^4.2.3", | ||
@@ -18,3 +18,3 @@ "chalk": "^2.4.2", | ||
"connect": "^3.7.0", | ||
"consola": "^2.10.1", | ||
"consola": "^2.11.1", | ||
"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
24536
+ Added@nuxt/config@2.11.0(transitive)
+ Added@nuxt/utils@2.11.0(transitive)
+ Addedsemver@7.6.3(transitive)
- Removed@nuxt/config@2.10.2(transitive)
- Removed@nuxt/utils@2.10.2(transitive)
- Removedsemver@6.3.1(transitive)
Updated@nuxt/config@2.11.0
Updated@nuxt/utils@2.11.0
Updatedconsola@^2.11.1