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 6.2.1 to 7.0.0

4

dist/index.js

@@ -89,2 +89,6 @@ 'use strict';

}).filter(function (currentBundle) {
if (currentBundle.hasOwnProperty("type")) {
return currentBundle.type !== "asset";
}
return !currentBundle.isAsset;

@@ -91,0 +95,0 @@ }).forEach(function (currentBundle) {

2

package.json
{
"name": "rollup-plugin-filesize",
"version": "6.2.1",
"version": "7.0.0",
"description": "A rollup plugin to show filesize in the cli",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -18,5 +18,5 @@ import fileSize from "filesize";

const values = [
...(outputOptions.file ?
[`${title("Destination: ")}${value(outputOptions.file)}`] :
(info.fileName ? [`${title("Bundle Name: ")} ${value(info.fileName)}`] : [])),
...(outputOptions.file ?
[`${title("Destination: ")}${value(outputOptions.file)}`] :
(info.fileName ? [`${title("Bundle Name: ")} ${value(info.fileName)}`] : [])),
...[`${title("Bundle Size: ")} ${value(info.bundleSize)}`],

@@ -47,6 +47,6 @@ ...(info.minSize ? [`${title("Minified Size: ")} ${value(info.minSize)}`] : []),

const getData = function(outputOptions, bundle) {
const { code, fileName } = bundle;
const info = {};
const { code, fileName } = bundle;
const info = {};
info.fileName = fileName;
info.fileName = fileName;

@@ -81,3 +81,8 @@ info.bundleSize = fileSize(Buffer.byteLength(code), opts.format);

.map(fileName => bundle[fileName])
.filter(currentBundle => !currentBundle.isAsset)
.filter(currentBundle => {
if (currentBundle.hasOwnProperty("type")) {
return currentBundle.type !== "asset";
}
return !currentBundle.isAsset;
})
.forEach((currentBundle) => {

@@ -84,0 +89,0 @@ console.log(getData(outputOptions, currentBundle))

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