@nuxt/utils
Advanced tools
Comparing version 2.13.1 to 2.13.2
/*! | ||
* @nuxt/utils v2.13.1 (c) 2016-2020 | ||
* @nuxt/utils v2.13.2 (c) 2016-2020 | ||
@@ -521,6 +521,5 @@ * - All the amazing contributors | ||
const wChunk = function wChunk (p = '') { | ||
if (isWindows) { | ||
return p.replace(/\//g, '_') | ||
} | ||
return p | ||
// workaround for SplitChunksPlugin that generate names starting from . for catchAll pages _.vue | ||
// consider using https://webpack.js.org/configuration/output/#outputfilename for more robust control over filename generation | ||
return p.replace('_', '[_]') | ||
}; | ||
@@ -1533,10 +1532,15 @@ | ||
} | ||
return flatRoutes(r.children, fileName + r.path + '/', routes) | ||
} | ||
fileName = fileName.replace(/\/+/g, '/'); | ||
routes.push( | ||
(r.path === '' && fileName[fileName.length - 1] === '/' | ||
? fileName.slice(0, -1) | ||
: fileName) + r.path | ||
); | ||
// if child path is already absolute, do not make any concatenations | ||
if (r.path && r.path.startsWith('/')) { | ||
routes.push(r.path); | ||
} else if (r.path === '' && fileName[fileName.length - 1] === '/') { | ||
routes.push(fileName.slice(0, -1) + r.path); | ||
} else { | ||
routes.push(fileName + r.path); | ||
} | ||
}); | ||
@@ -1543,0 +1547,0 @@ return routes |
{ | ||
"name": "@nuxt/utils", | ||
"version": "2.13.1", | ||
"version": "2.13.2", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -11,3 +11,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"consola": "^2.13.0", | ||
"consola": "^2.14.0", | ||
"fs-extra": "^8.1.0", | ||
@@ -14,0 +14,0 @@ "hash-sum": "^2.0.0", |
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
54154
1819
Updatedconsola@^2.14.0