Skip to content

Commit a882f84

Browse files
committed
test
1 parent 26a17d2 commit a882f84

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.dep-stats.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@
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",
@@ -56,6 +58,7 @@
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",

src/commands/diff-scan/get.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)