Skip to content

Commit

Permalink
chore: use readable-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Feb 8, 2023
1 parent 9fa496b commit aeaeb73
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 52 deletions.
22 changes: 0 additions & 22 deletions lib/internal/streams/end-of-stream.js

This file was deleted.

24 changes: 0 additions & 24 deletions lib/internal/streams/operators.js

This file was deleted.

3 changes: 0 additions & 3 deletions lib/internal/streams/readable.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const {
ERR_TEST_FAILURE
}
} = require('#internal/errors')
const { toArray } = require('#internal/streams/operators').promiseReturningOperators
const { toArray } = require('readable-stream/lib/internal/streams/operators').promiseReturningOperators
const { validateArray } = require('#internal/validators')
const { getInspectPort, isUsingInspector, isInspectorMessage } = require('#internal/util/inspector')
const { kEmptyObject } = require('#internal/util')
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/test_runner/tap_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {
RegExpPrototypeSymbolReplace
} = require('#internal/per_context/primordials')
const { inspectWithNoCustomRetry } = require('#internal/errors')
const Readable = require('#internal/streams/readable')
const { Readable } = require('readable-stream')
const { isError, kEmptyObject } = require('#internal/util')
const kFrameStartRegExp = /^ {4}at /
const kLineBreakRegExp = /\n|\r\n/
Expand Down
164 changes: 164 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"dependencies": {
"minimist": "^1.2.6",
"readable-stream": "^4.3.0",
"string.prototype.replaceall": "^1.0.6"
}
}
2 changes: 1 addition & 1 deletion test/parallel/test-runner-tap-parser-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const common = require('../common')
const assert = require('node:assert')
const { TapParser } = require('#internal/test_runner/tap_parser')
const { TapChecker } = require('#internal/test_runner/tap_checker')
const { toArray } = require('#internal/streams/operators').promiseReturningOperators
const { toArray } = require('readable-stream/lib/internal/streams/operators').promiseReturningOperators

const cases = [
{
Expand Down

0 comments on commit aeaeb73

Please sign in to comment.