Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxt/utils

Package Overview
Dependencies
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/utils - npm Package Compare versions

Comparing version 2.13.1 to 2.13.2

24

dist/utils.js
/*!
* @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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc