Socket
Socket
Sign inDemoInstall

rollup-plugin-filesize

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-filesize - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

7

dist/index.js

@@ -15,7 +15,7 @@ 'use strict';

return boxen((bundle.dest ? colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n' : '') + colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + ', ' + colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip$$1), { padding: 1 });
return boxen('' + (bundle.dest ? colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n' : '') + colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + (opt.showGzippedSize ? ', ' + colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip$$1) : ''), { padding: 1 });
}
function filesize() {
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

@@ -26,3 +26,4 @@

theme: 'dark',
render: render
render: render,
showGzippedSize: true
};

@@ -29,0 +30,0 @@

{
"name": "rollup-plugin-filesize",
"version": "1.3.2",
"version": "1.4.0",
"description": "A rollup plugin to show filesize in the cli",

@@ -32,14 +32,14 @@ "main": "dist/index.js",

"dependencies": {
"boxen": "^0.2.0",
"boxen": "^1.1.0",
"colors": "^1.1.2",
"deep-assign": "^2.0.0",
"filesize": "^3.5.6",
"gzip-size": "^3.0.0",
"starring": "0.2.1"
"gzip-size": "^3.0.0"
},
"devDependencies": {
"ava": "^0.13.0",
"ava": "^0.19.1",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-rollup": "^1.1.1",
"babel-preset-es2015-rollup": "^3.0.0",
"babel-register": "^6.7.2",
"rollup": "^0.43.0",
"rollup-plugin-babel": "^2.3.9"

@@ -46,0 +46,0 @@ },

@@ -29,2 +29,8 @@ # rollup-plugin-filesize

#### showGzippedSize
type: `boolean`
default: true
Whether to show Gzipped size or not
#### format

@@ -31,0 +37,0 @@ type : `object`

@@ -12,5 +12,4 @@ import fileSize from 'filesize';

return boxen(
(bundle.dest ? (colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n') : '') +
colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + ', ' +
colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip), { padding: 1 }
`${bundle.dest ? (colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n') : ''}${colors[primaryColor].bold('Bundle size: ')}${colors[secondaryColor](size)}${opt.showGzippedSize ? (', ' +
colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip)) : ''}`, { padding: 1 }
)

@@ -24,3 +23,4 @@ }

theme: 'dark',
render: render
render: render,
showGzippedSize: true
};

@@ -27,0 +27,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