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 29
29
"chalk" : " ^5.3.0" ,
30
30
"cli-cursor" : " ^4.0.0" ,
31
31
"configstore" : " ^7.0.0" ,
32
+ "data-uri-to-buffer" : " ^4.0.0" ,
32
33
"default-browser" : " ^5.2.1" ,
33
34
"default-browser-id" : " ^5.0.0" ,
34
35
"define-lazy-prop" : " ^3.0.0" ,
35
36
"dot-prop" : " ^9.0.0" ,
36
37
"escape-goat" : " ^4.0.0" ,
37
38
"execa" : " ^9.3.0" ,
39
+ "fetch-blob" : " ^3.1.2" ,
38
40
"figures" : " ^6.1.0" ,
39
41
"get-east-asian-width" : " ^1.0.0" ,
40
42
"get-stream" : " ^9.0.0" ,
56
58
"latest-version" : " ^9.0.0" ,
57
59
"log-symbols" : " ^6.0.0" ,
58
60
"meow" : " ^13.2.0" ,
61
+ "node-fetch" : " 3.3.2" ,
59
62
"npm-run-path" : " ^5.2.0" ,
60
63
"open" : " ^10.1.0" ,
61
64
"ora" : " ^8.0.1" ,
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ export const get: CliSubcommand = {
24
24
const name = `${ parentName } get`
25
25
const input = setupCommand ( name , get . description , argv , importMeta )
26
26
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 )
34
34
}
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments