Skip to content

Commit d38dff2

Browse files
committed
Fixed CLI Python upload
1 parent 728432e commit d38dff2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/utils/path-resolve.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ export async function mapGlobResultToFiles (entries) {
7878
// TODO: setupSdk(getDefaultKey() || FREE_API_KEY) after #46 merged
7979
const sdk = await setupSdk()
8080
const supportedFiles = await sdk.getReportSupportedFiles()
81+
if (!supportedFiles.success) {
82+
throw new TypeError('failed to find supported files')
83+
}
8184
const packageFiles = await Promise.all(
82-
entries.map(entry => mapGlobEntryToFiles(entry, supportedFiles))
85+
entries.map(entry => mapGlobEntryToFiles(entry, supportedFiles.data))
8386
)
8487

8588
const uniquePackageFiles = [...new Set(packageFiles.flat())]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"dependencies": {
8686
"@apideck/better-ajv-errors": "^0.3.6",
8787
"@socketsecurity/config": "^2.0.0",
88-
"@socketsecurity/sdk": "^0.5.4",
88+
"@socketsecurity/sdk": "^0.6.0",
8989
"chalk": "^5.1.2",
9090
"globby": "^13.1.3",
9191
"hpagent": "^1.2.0",

0 commit comments

Comments
 (0)