File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -196,11 +196,11 @@ export async function getAlertsMapFromArborist(
196196 options_ ?: GetAlertsMapFromArboristOptions | undefined
197197) : Promise < AlertsByPkgId > {
198198 const options = {
199- __proto__ : null ,
200- consolidate : false ,
201- nothrow : false ,
202- ...options_
203- } as GetAlertsMapFromArboristOptions
199+ __proto__ : null ,
200+ consolidate : false ,
201+ nothrow : false ,
202+ ...options_
203+ } as GetAlertsMapFromArboristOptions
204204
205205 const include = {
206206 __proto__ : null ,
@@ -274,7 +274,9 @@ export async function getAlertsMapFromArborist(
274274 } else if ( ! options . nothrow ) {
275275 const statusCode = batchResult . status ?? 'unknown'
276276 const statusMessage = batchResult . error ?? 'No status message'
277- throw new Error ( `Socket API server error (${ statusCode } ): ${ statusMessage } ` )
277+ throw new Error (
278+ `Socket API server error (${ statusCode } ): ${ statusMessage } `
279+ )
278280 }
279281 remaining -= 1
280282 if ( spinner && remaining > 0 ) {
Original file line number Diff line number Diff line change @@ -79,7 +79,9 @@ export async function getAlertsMapFromPnpmLockfile(
7979 } else if ( ! options . nothrow ) {
8080 const statusCode = batchResult . status ?? 'unknown'
8181 const statusMessage = batchResult . error ?? 'No status message'
82- throw new Error ( `Socket API server error (${ statusCode } ): ${ statusMessage } ` )
82+ throw new Error (
83+ `Socket API server error (${ statusCode } ): ${ statusMessage } `
84+ )
8385 }
8486 remaining -= 1
8587 if ( spinner && remaining > 0 ) {
You can’t perform that action at this time.
0 commit comments