Skip to content

Commit 4ce3035

Browse files
deps: update babel and remove concat-stream
1 parent abb781a commit 4ce3035

File tree

3 files changed

+348
-238
lines changed

3 files changed

+348
-238
lines changed

Diff for: __tests__/utils.js

-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
import walk from '../src/walk.js';
22
import http from 'http';
3-
import concat from 'concat-stream';
4-
5-
export function get(url, callback) {
6-
return new Promise((resolve, reject) => {
7-
http.get(url, function (res) {
8-
res.pipe(
9-
concat(function (text) {
10-
if (res.statusCode >= 400) {
11-
return reject(res.statusCode);
12-
}
13-
resolve(text.toString());
14-
})
15-
);
16-
});
17-
});
18-
}
193

204
export function normalize(comments) {
215
return walk(comments, function (comment) {

0 commit comments

Comments
 (0)