File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 2929 "chalk" : " ^5.3.0" ,
3030 "cli-cursor" : " ^4.0.0" ,
3131 "configstore" : " ^7.0.0" ,
32+ "data-uri-to-buffer" : " ^4.0.0" ,
3233 "default-browser" : " ^5.2.1" ,
3334 "default-browser-id" : " ^5.0.0" ,
3435 "define-lazy-prop" : " ^3.0.0" ,
3536 "dot-prop" : " ^9.0.0" ,
3637 "escape-goat" : " ^4.0.0" ,
3738 "execa" : " ^9.3.0" ,
39+ "fetch-blob" : " ^3.1.2" ,
3840 "figures" : " ^6.1.0" ,
3941 "get-east-asian-width" : " ^1.0.0" ,
4042 "get-stream" : " ^9.0.0" ,
5658 "latest-version" : " ^9.0.0" ,
5759 "log-symbols" : " ^6.0.0" ,
5860 "meow" : " ^13.2.0" ,
61+ "node-fetch" : " 3.3.2" ,
5962 "npm-run-path" : " ^5.2.0" ,
6063 "open" : " ^10.1.0" ,
6164 "ora" : " ^8.0.1" ,
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ export const get: CliSubcommand = {
2424 const name = `${ parentName } get`
2525 const input = setupCommand ( name , get . description , argv , importMeta )
2626 if ( input ) {
27- // const apiKey = getDefaultKey()
28- // if(!apiKey){
29- // throw new AuthError("User must be authenticated to run this command. To log in, run the command `socket login` and enter your API key.")
30- // }
31- // const spinnerText = 'Getting diff scan... \n'
32- // const spinner = ora(spinnerText).start()
33- // await getDiffScan(input.before, input.after, spinner, apiKey)
27+ const apiKey = getDefaultKey ( )
28+ if ( ! apiKey ) {
29+ throw new AuthError ( "User must be authenticated to run this command. To log in, run the command `socket login` and enter your API key." )
30+ }
31+ const spinnerText = 'Getting diff scan... \n'
32+ const spinner = ora ( spinnerText ) . start ( )
33+ await getDiffScan ( input . before , input . after , spinner , apiKey )
3434 }
3535 }
3636}
You can’t perform that action at this time.
0 commit comments