File tree 3 files changed +2
-8
lines changed
3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const tty = require('tty');
9
9
const { version } = require ( '../package.json' ) ;
10
10
const { ArgumentParser } = require ( 'argparse' ) ;
11
11
const { promisify } = require ( 'util' ) ;
12
- const getStdin = require ( 'get-stdin ' ) ;
12
+ const { text } = require ( 'node:stream/consumers ' ) ;
13
13
14
14
class SqlFormatterCli {
15
15
constructor ( ) {
@@ -117,7 +117,7 @@ class SqlFormatterCli {
117
117
if ( this . args . file ) {
118
118
return await this . readFile ( infile ) ;
119
119
} else {
120
- return await getStdin ( ) ;
120
+ return await text ( process . stdin ) ;
121
121
}
122
122
}
123
123
Original file line number Diff line number Diff line change 78
78
},
79
79
"dependencies" : {
80
80
"argparse" : " ^2.0.1" ,
81
- "get-stdin" : " =8.0.0" ,
82
81
"nearley" : " ^2.20.1"
83
82
},
84
83
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -3541,11 +3541,6 @@ get-package-type@^0.1.0:
3541
3541
resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz"
3542
3542
integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==
3543
3543
3544
- get-stdin@=8.0.0 :
3545
- version "8.0.0"
3546
- resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz"
3547
- integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==
3548
-
3549
3544
get-stream@^6.0.0, get-stream@^6.0.1 :
3550
3545
version "6.0.1"
3551
3546
resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz"
You can’t perform that action at this time.
0 commit comments