Skip to content

Commit

Permalink
Remove stream-to-array dep
Browse files Browse the repository at this point in the history
  • Loading branch information
vikingair committed May 30, 2024
1 parent 09f4e51 commit 02fa558
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
3 changes: 1 addition & 2 deletions lib/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const path = require('path');
const {promisify} = require('util');
const gv = require('ts-graphviz');
const adapter = require('ts-graphviz/adapter');
const toArray = require('stream-to-array');
const exec = promisify(require('child_process').execFile);
const writeFile = promisify(require('fs').writeFile);

Expand Down Expand Up @@ -109,7 +108,7 @@ function createGraph(modules, circular, config, options) {
const dot = gv.toDot(g);
return adapter
.toStream(dot, options)
.then(toArray)
.then((s) => s.toArray())
.then(Buffer.concat);
}

Expand Down
18 changes: 5 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"pluralize": "^8.0.0",
"pretty-ms": "^7.0.1",
"rc": "^1.2.8",
"stream-to-array": "^2.3.0",
"ts-graphviz": "^1.8.1",
"walkdir": "^0.4.1"
},
Expand Down

0 comments on commit 02fa558

Please sign in to comment.