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

madge

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

madge - npm Package Compare versions

Comparing version 3.10.0 to 3.11.0

14

bin/cli.js

@@ -251,2 +251,9 @@ #!/usr/bin/env node

if (program.dot) {
return res.dot(program.circular).then((output) => {
process.stdout.write(output);
return res;
});
}
if (program.circular) {

@@ -265,9 +272,2 @@ const circular = res.circular();

}
if (program.dot) {
return res.dot().then((output) => {
process.stdout.write(output);
return res;
});
}
}
# CHANGELOG
## v3.11.0 (Oct 1, 2020)
* Add support for combining `--circular` and `--dot` (Thanks to @SaeedZhiany)
## v3.10.0 (Sep 14, 2020)

@@ -4,0 +8,0 @@

@@ -161,6 +161,11 @@ 'use strict';

* @api public
* @param {Boolean} circularOnly
* @return {Promise}
*/
dot() {
return graph.dot(this.obj(), this.circular(), this.config);
dot(circularOnly) {
return graph.dot(
circularOnly ? this.circularGraph() : this.obj(),
this.circular(),
this.config
);
}

@@ -167,0 +172,0 @@

{
"name": "madge",
"version": "3.10.0",
"version": "3.11.0",
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>",

@@ -5,0 +5,0 @@ "repository": "git://github.com/pahen/madge",

@@ -178,5 +178,5 @@ <p align="center">

#### .dot()
#### .dot([circularOnly: boolean])
> Returns a `Promise` resolved with a DOT representation of the module dependency graph.
> Returns a `Promise` resolved with a DOT representation of the module dependency graph. Set `circularOnly` to only include circular dependencies.

@@ -183,0 +183,0 @@ ```javascript

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