File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ) ]
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments