Skip to content

Commit bd42e6c

Browse files
authored
Merge pull request #1488 from baevm/replace-get-stdin
refactor: replace get-stdin with native stream/consumers module
2 parents bdccecb + 70413f4 commit bd42e6c

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
"@babel/traverse": "7.16.7",
102102
"@types/async-retry": "^1.4.1",
103103
"@types/debug": "0.0.30",
104-
"@types/get-stdin": "^5.0.1",
105104
"@types/ini": "^4.1.1",
106105
"@types/jest": "^28.0.0",
107106
"@types/json5": "^2.2.0",
@@ -153,7 +152,6 @@
153152
"core-js": "^3.8.2",
154153
"debug": "^4.1.1",
155154
"fast-json-patch": "^3.0.0-1",
156-
"get-stdin": "^6.0.0",
157155
"http-proxy-agent": "^5.0.0",
158156
"https-proxy-agent": "^5.0.1",
159157
"hyperlinker": "^1.0.0",

source/commands/danger-runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import nodeCleanup from "node-cleanup"
55

66
import program from "commander"
77
import { debug } from "../debug"
8-
import getSTDIN from "get-stdin"
8+
import streamConsumers from "node:stream/consumers"
99
import chalk from "chalk"
1010

1111
import inline from "../runner/runners/inline"
@@ -95,4 +95,4 @@ const missingDSLTimeout = setTimeout(() => {
9595
}, 10000)
9696

9797
// Start waiting on STDIN for the DSL
98-
getSTDIN().then(run(program as any))
98+
streamConsumers.text(process.stdin).then(run(program as any))

yarn.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,13 +1764,6 @@
17641764
dependencies:
17651765
"@types/node" "*"
17661766

1767-
"@types/get-stdin@^5.0.1":
1768-
version "5.0.1"
1769-
resolved "https://registry.yarnpkg.com/@types/get-stdin/-/get-stdin-5.0.1.tgz#46afbcaf09e94fe025afa07ae994ac3168adbdf3"
1770-
integrity sha512-hkShVHsKPKK4OulBjeYi15m5RQRR2ZV7ItFEa3C+QEay81MenD5ZfcTxzlo3ZaUTkbCbpw5XIW/NWKQNWq+Q/A==
1771-
dependencies:
1772-
"@types/node" "*"
1773-
17741767
"@types/graceful-fs@^4.1.3":
17751768
version "4.1.9"
17761769
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.9.tgz#2a06bc0f68a20ab37b3e36aa238be6abdf49e8b4"

0 commit comments

Comments
 (0)