Socket
Socket
Sign inDemoInstall

rollup-plugin-visualizer

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-visualizer - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

11

package.json
{
"name": "rollup-plugin-visualizer",
"version": "0.8.1",
"version": "0.9.0",
"main": "plugin.js",

@@ -22,2 +22,3 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>",

"mkdirp": "^0.5.1",
"opn": "^5.3.0",
"source-map": "^0.7.3"

@@ -28,9 +29,9 @@ },

"d3-hierarchy": "^1.1.6",
"d3-scale": "^2.0.0",
"d3-scale": "^2.1.0",
"d3-selection": "^1.3.0",
"d3-shape": "^1.0.3",
"eslint": "^4.19.1",
"prettier": "^1.13.4",
"rollup": "^0.60.1",
"rollup-plugin-commonjs": "^9.1.3",
"prettier": "^1.14.2",
"rollup": "^0.64.1",
"rollup-plugin-commonjs": "^9.1.5",
"rollup-plugin-node-resolve": "^3.3.0",

@@ -37,0 +38,0 @@ "rollup-plugin-uglify": "^4.0.0"

@@ -7,2 +7,3 @@ "use strict";

const util = require("util");
const opn = require("opn");
const SourceMapConsumer = require("source-map").SourceMapConsumer;

@@ -13,4 +14,10 @@

const cssString = fs.readFileSync(path.join(__dirname, "lib", "./style.css"), "utf8");
const jsString = fs.readFileSync(path.join(__dirname, "lib", "./pluginmain.js"), "utf8");
const cssString = fs.readFileSync(
path.join(__dirname, "lib", "./style.css"),
"utf8"
);
const jsString = fs.readFileSync(
path.join(__dirname, "lib", "./pluginmain.js"),
"utf8"
);

@@ -24,2 +31,4 @@ const PLUGIN_PREFIX = "\u0000";

const useSourceMap = !!opts.sourcemap;
const open = !!opts.open;
const openOptions = opts.openOptions || {}

@@ -47,2 +56,7 @@ return {

return writeFile(filename, html);
})
.then(() => {
if (open) {
return opn(filename, openOptions);
}
});

@@ -96,3 +110,5 @@ }

function writeFile(filename, contents) {
return mkdirpAsync(path.dirname(filename)).then(() => writeFileAsync(filename, contents));
return mkdirpAsync(path.dirname(filename)).then(() =>
writeFileAsync(filename, contents)
);
}

@@ -99,0 +115,0 @@

@@ -66,4 +66,6 @@ # Rollup Plugin Visualizer

You can use option `open` like `{ open: true }` to open generated file in default browser.
## Acknowledgements
Initially this plugin was based on [webpack-visualizer](http://chrisbateman.github.io/webpack-visualizer/), but in the end used only styles and layout. Thanks to the tons of people around internet for great examples of d3 usage.

Sorry, the diff of this file is too big to display

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