Socket
Socket
Sign inDemoInstall

rollup-plugin-filesize

Package Overview
Dependencies
8
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.2 to 9.0.0

2

dist/reporters/boxen.js

@@ -14,3 +14,3 @@ 'use strict';

const value = colors[secondaryColor];
const values = [...(outputOptions.file || outputOptions.dest ? [`${title("Destination: ")}${value(outputOptions.file || outputOptions.dest)}`] : info.fileName ? [`${title("Bundle Name: ")} ${value(info.fileName)}`] : []), ...(info.bundleSizeBefore ? [`${title("Bundle Size: ")} ${value(info.bundleSize)} (was ${value(info.bundleSizeBefore)} in version ${info.lastVersion})`] : [`${title("Bundle Size: ")} ${value(info.bundleSize)}`]), ...(info.minSize ? info.minSizeBefore ? [`${title("Minified Size: ")} ${value(info.minSize)} (was ${value(info.minSizeBefore)} in version ${info.lastVersion})`] : [`${title("Minified Size: ")} ${value(info.minSize)}`] : []), ...(info.gzipSize ? info.gzipSizeBefore ? [`${title("Gzipped Size: ")} ${value(info.gzipSize)} (was ${value(info.gzipSizeBefore)} in version ${info.lastVersion})`] : [`${title("Gzipped Size: ")} ${value(info.gzipSize)}`] : []), ...(info.brotliSize ? info.brotliSizeBefore ? [`${title("Brotli size: ")}${value(info.brotliSize)} (was ${value(info.brotliSizeBefore)} in version ${info.lastVersion})`] : [`${title("Brotli size: ")}${value(info.brotliSize)}`] : [])];
const values = [...(outputOptions.file || outputOptions.dest ? [`${title("Destination: ")}${value(outputOptions.file || outputOptions.dest)}`] : info.fileName ? [`${title("Bundle Name: ")} ${value(info.fileName)}`] : []), ...(info.bundleSizeBefore ? [`${title("Bundle Size: ")} ${value(info.bundleSize)} (was ${value(info.bundleSizeBefore)}${info.lastVersion ? ` in version ${info.lastVersion}` : " in last build"})`] : [`${title("Bundle Size: ")} ${value(info.bundleSize)}`]), ...(info.minSize ? info.minSizeBefore ? [`${title("Minified Size: ")} ${value(info.minSize)} (was ${value(info.minSizeBefore)}${info.lastVersion ? ` in version ${info.lastVersion}` : " in last build"})`] : [`${title("Minified Size: ")} ${value(info.minSize)}`] : []), ...(info.gzipSize ? info.gzipSizeBefore ? [`${title("Gzipped Size: ")} ${value(info.gzipSize)} (was ${value(info.gzipSizeBefore)}${info.lastVersion ? ` in version ${info.lastVersion}` : " in last build"})`] : [`${title("Gzipped Size: ")} ${value(info.gzipSize)}`] : []), ...(info.brotliSize ? info.brotliSizeBefore ? [`${title("Brotli size: ")}${value(info.brotliSize)} (was ${value(info.brotliSizeBefore)}${info.lastVersion ? ` in version ${info.lastVersion}` : " in last build"})`] : [`${title("Brotli size: ")}${value(info.brotliSize)}`] : [])];
return boxen(values.join("\n"), {

@@ -17,0 +17,0 @@ padding: 1

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

@@ -18,7 +18,7 @@ "main": "dist/index.js",

"remove-dist": "rimraf dist/*",
"pretest": "npm run remove-dist && rollup -c",
"prepare": "npm run test"
"pretest": "rollup -c",
"prepare": "npm run remove-dist && npm run test"
},
"engines": {
"node": ">=8.0.0"
"node": ">=10.0.0"
},

@@ -40,2 +40,3 @@ "repository": {

"dependencies": {
"@babel/runtime": "^7.9.6",
"boxen": "^4.2.0",

@@ -52,2 +53,3 @@ "brotli-size": "4.0.0",

"@babel/plugin-syntax-import-meta": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/preset-env": "^7.9.5",

@@ -54,0 +56,0 @@ "@babel/register": "^7.9.0",

@@ -25,3 +25,7 @@ const boxen = require("boxen");

info.bundleSizeBefore
)} in version ${info.lastVersion})`,
)}${
info.lastVersion
? ` in version ${info.lastVersion}`
: " in last build"
})`,
]

@@ -34,3 +38,7 @@ : [`${title("Bundle Size: ")} ${value(info.bundleSize)}`]),

info.minSizeBefore
)} in version ${info.lastVersion})`,
)}${
info.lastVersion
? ` in version ${info.lastVersion}`
: " in last build"
})`,
]

@@ -44,3 +52,7 @@ : [`${title("Minified Size: ")} ${value(info.minSize)}`]

info.gzipSizeBefore
)} in version ${info.lastVersion})`,
)}${
info.lastVersion
? ` in version ${info.lastVersion}`
: " in last build"
})`,
]

@@ -54,3 +66,7 @@ : [`${title("Gzipped Size: ")} ${value(info.gzipSize)}`]

info.brotliSizeBefore
)} in version ${info.lastVersion})`,
)}${
info.lastVersion
? ` in version ${info.lastVersion}`
: " in last build"
})`,
]

@@ -57,0 +73,0 @@ : [`${title("Brotli size: ")}${value(info.brotliSize)}`]

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc