@nuxt/utils
Advanced tools
Comparing version 2.10.2 to 2.11.0
/*! | ||
* @nuxt/utils v2.10.2 (c) 2016-2019 | ||
* @nuxt/utils v2.11.0 (c) 2016-2019 | ||
@@ -1518,3 +1518,3 @@ * - All the amazing contributors | ||
} | ||
fileName = fileName.replace(/^\/+$/, '/'); | ||
fileName = fileName.replace(/\/+/g, '/'); | ||
routes.push( | ||
@@ -1795,6 +1795,6 @@ (r.path === '' && fileName[fileName.length - 1] === '/' | ||
.replace(`${func.name || 'function'}(`, 'function (') | ||
.replace(`function function`, `function`) | ||
.replace('function function', 'function') | ||
} | ||
serializeFunction.internalFunctionRE = /^(\s*)(?!(?:if)|(?:for)|(?:while)|(?:switch))(\w+)\s*\((.*?)\)\s*\{/gm; | ||
serializeFunction.internalFunctionRE = /^(\s*)(?!(?:if)|(?:for)|(?:while)|(?:switch)|(?:catch))(\w+)\s*\((.*?)\)\s*\{/gm; | ||
serializeFunction.assignmentRE = /^(\s*):(\w+)\(/gm; | ||
@@ -1999,3 +1999,3 @@ | ||
// https://gist.github.com/samthor/64b114e4a4f539915a95b91ffd340acc | ||
const safariNoModuleFix = `!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();`; | ||
const safariNoModuleFix = '!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();'; | ||
@@ -2002,0 +2002,0 @@ exports.ModernBrowsers = ModernBrowsers; |
{ | ||
"name": "@nuxt/utils", | ||
"version": "2.10.2", | ||
"version": "2.11.0", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -11,8 +11,8 @@ "license": "MIT", | ||
"dependencies": { | ||
"consola": "^2.10.1", | ||
"consola": "^2.11.1", | ||
"fs-extra": "^8.1.0", | ||
"hash-sum": "^2.0.0", | ||
"proper-lockfile": "^4.1.1", | ||
"semver": "^6.3.0", | ||
"serialize-javascript": "^2.1.0", | ||
"semver": "^7.1.0", | ||
"serialize-javascript": "^2.1.2", | ||
"signal-exit": "^3.0.2", | ||
@@ -19,0 +19,0 @@ "ua-parser-js": "^0.7.20" |
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
52799
+ Addedsemver@7.6.3(transitive)
- Removedsemver@6.3.1(transitive)
Updatedconsola@^2.11.1
Updatedsemver@^7.1.0
Updatedserialize-javascript@^2.1.2