File tree Expand file tree Collapse file tree 4 files changed +3
-8
lines changed
Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ Nathan Walters <nwalters512@gmail.com>
4141Nicolas Dermine <nicolas.dermine@gmail.com>
4242Offir Baron <ofir@panoply.io>
4343Olexandr Sydorchuk <olexandr.syd@gmail.com>
44+ outslept <webeugene@proton.me>
4445Pavel Djundik <xPaw@users.noreply.github.com>
4546pokutuna <mail@pokutuna.com>
4647Rafael Pinto <raprp@posteo.de>
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const tty = require('tty');
99const { version } = require ( '../package.json' ) ;
1010const { ArgumentParser } = require ( 'argparse' ) ;
1111const { promisify } = require ( 'util' ) ;
12- const getStdin = require ( 'get-stdin ' ) ;
12+ const { text } = require ( 'node:stream/consumers ' ) ;
1313
1414class SqlFormatterCli {
1515 constructor ( ) {
@@ -117,7 +117,7 @@ class SqlFormatterCli {
117117 if ( this . args . file ) {
118118 return await this . readFile ( infile ) ;
119119 } else {
120- return await getStdin ( ) ;
120+ return await text ( process . stdin ) ;
121121 }
122122 }
123123
Original file line number Diff line number Diff line change 7878 },
7979 "dependencies" : {
8080 "argparse" : " ^2.0.1" ,
81- "get-stdin" : " =8.0.0" ,
8281 "nearley" : " ^2.20.1"
8382 },
8483 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -3541,11 +3541,6 @@ get-package-type@^0.1.0:
35413541 resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz"
35423542 integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==
35433543
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-
35493544get-stream@^6.0.0, get-stream@^6.0.1 :
35503545 version "6.0.1"
35513546 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