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

bundle-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundle-analyzer - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "bundle-analyzer",
"version": "0.0.5",
"version": "0.0.6",
"repository": "lhorie/bundle-analyzer",

@@ -5,0 +5,0 @@ "bin": {

@@ -10,3 +10,3 @@ const util = require('util');

module.exports = async function(dir) {
const paths = await readDir(dir);
const paths = await readDir(dir).catch(() => []);
return (await Promise.all([

@@ -17,3 +17,5 @@ ...paths.map(async p => {

name: p,
children: normalize(groupByHierarchy(await getSizesByFile(dir, p))),
children: normalize(
groupByHierarchy(await getSizesByFile(dir, p).catch(() => []))
),
};

@@ -78,4 +80,5 @@ }

const keys = Object.keys(groups);
if (keys.length === 1) groups = groups[keys[0]];
else break;
if (keys.length === 1 && typeof groups[keys[0]] !== 'number') {
groups = groups[keys[0]];
} else break;
}

@@ -82,0 +85,0 @@ return groups;

Sorry, the diff of this file is not supported yet

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