Comparing version 3.10.0 to 3.11.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77975
1866