Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 2.0.0 to 2.1.0

lib/main-circlepacking.js

42

lib/main-treemap.js

@@ -1057,2 +1057,23 @@ (function () {

function getAncestors(node) {
const parents = [];
while (node != null) {
parents.push(node);
node = node.parent;
}
return parents;
}
function color(node) {
if (node.children && node.children.length) {
const parents = getAncestors(node);
const hasNodeModules = !!parents.find(n => {
return n.data.name === "node_modules";
});
return hasNodeModules ? "#599e59" : "#487ea4";
} else {
return "#db7100";
}
}
function count$1(node) {

@@ -1556,23 +1577,2 @@ var sum = 0,

function getAncestors(node) {
const parents = [];
while (node != null) {
parents.push(node);
node = node.parent;
}
return parents;
}
function color(node) {
if (node.children && node.children.length) {
const parents = getAncestors(node);
const hasNodeModules = !!parents.find(n => {
return n.data.name === "node_modules";
});
return hasNodeModules ? "#599e59" : "#487ea4";
} else {
return "#db7100";
}
}
const format$1 = format_1;

@@ -1579,0 +1579,0 @@

{
"name": "rollup-plugin-visualizer",
"version": "2.0.0",
"version": "2.1.0",
"main": "plugin.js",

@@ -17,4 +17,4 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>",

"lint": "eslint .",
"build": "cp ./src/*.css ./lib/ && rollup -c rollup.config.js -i ./src/script-sunburst.js -o ./lib/main-sunburst.js && rollup -c rollup.config.js -i ./src/script-treemap.js -o ./lib/main-treemap.js",
"build:dev": "cp ./src/*.css ./lib/ && rollup -c rollup.config-dev.js -i ./src/script-sunburst.js -o ./lib/main-sunburst.js && rollup -c rollup.config-dev.js -i ./src/script-treemap.js -o ./lib/main-treemap.js",
"build": "cp ./src/*.css ./lib/ && rollup -c rollup.config.js -i ./src/script-sunburst.js -o ./lib/main-sunburst.js && rollup -c rollup.config.js -i ./src/script-treemap.js -o ./lib/main-treemap.js && rollup -c rollup.config.js -i ./src/script-circlepacking.js -o ./lib/main-circlepacking.js",
"build:dev": "cp ./src/*.css ./lib/ && rollup -c rollup.config-dev.js -i ./src/script-sunburst.js -o ./lib/main-sunburst.js && rollup -c rollup.config-dev.js -i ./src/script-treemap.js -o ./lib/main-treemap.js && rollup -c rollup.config-dev.js -i ./src/script-circlepacking.js -o ./lib/main-circlepacking.js",
"prepare": "yarn run build",

@@ -21,0 +21,0 @@ "test": "echo \"Error: no test specified\" && exit 0"

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