Socket
Socket
Sign inDemoInstall

webpack-bundle-size-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-bundle-size-analyzer - npm Package Compare versions

Comparing version 2.0.2 to 2.2.0

build/src/cli.js

8

build/cli.js

@@ -1,2 +0,2 @@

/// <reference path="typings/typings.d.ts" />
"use strict";
var commander = require('commander');

@@ -18,5 +18,5 @@ var fs = require('fs');

else if (!process.stdin.isTTY) {
var json = '';
process.stdin.on('data', function (chunk) { return json += chunk.toString(); });
process.stdin.on('end', function () { return printStats(json); });
var json_1 = '';
process.stdin.on('data', function (chunk) { return json_1 += chunk.toString(); });
process.stdin.on('end', function () { return printStats(json_1); });
}

@@ -23,0 +23,0 @@ else {

@@ -1,2 +0,2 @@

/// <reference path="typings/typings.d.ts" />
"use strict";
var filesize = require('filesize');

@@ -32,4 +32,4 @@ var path = require('path');

}
for (var _i = 0; _i < childrenBySize.length; _i++) {
var child = childrenBySize[_i];
for (var _i = 0, childrenBySize_1 = childrenBySize; _i < childrenBySize_1.length; _i++) {
var child = childrenBySize_1[_i];
++includedCount;

@@ -36,0 +36,0 @@ var percentage = ((child.size / totalSize) * 100).toPrecision(3);

@@ -1,6 +0,6 @@

/// <reference path="../typings/typings.d.ts" />
"use strict";
var chai_1 = require('chai');
var fs = require('fs');
var path = require('path');
var size_tree = require('../size_tree');
var size_tree = require('../src/size_tree');
describe('printDependencySizeTree()', function () {

@@ -7,0 +7,0 @@ it('should print the size tree', function () {

@@ -0,1 +1,2 @@

"use strict";
function isMultiCompilation(stats) {

@@ -2,0 +3,0 @@ return !stats.hasOwnProperty('modules');

@@ -0,1 +1,6 @@

## 2.2.0
- Added `--json` command-line argument which outputs the package size
tree in JSON format (#20).
## 2.0.2

@@ -2,0 +7,0 @@

{
"name": "webpack-bundle-size-analyzer",
"version": "2.0.2",
"version": "2.2.0",
"description": "A utility to find how your dependencies are contributing to the size of your Webpack bundles",

@@ -32,7 +32,10 @@ "main": "build/size_tree.js",

"devDependencies": {
"@types/chai": "^3.4.30",
"@types/commander": "^2.3.29",
"@types/mocha": "^2.2.29",
"@types/node": "^6.0.33",
"chai": "^2.2.0",
"mocha": "^2.2.1",
"tsd": "^0.6.0-beta.5",
"typescript": "^1.6.2"
"typescript": "^2.0.0"
}
}

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