File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -493,14 +493,16 @@ class SocketSdk {
493
493
}
494
494
495
495
/**
496
- * @param {{[key: string]: boolean } } queryParams
496
+ * @param {{[key: string]: string } } queryParams
497
497
* @param {{components: {purl: string}[] } } components
498
498
* @returns {Promise<SocketSdkResultType<'batchPackageFetch'>> }
499
499
*/
500
500
async batchPackageFetch ( queryParams , components ) {
501
+ const formattedQueryParam = new URLSearchParams ( queryParams )
502
+
501
503
try {
502
504
const client = await this . #getClient( )
503
- const data = await client . post ( `purl?${ queryParams } ` , { json : components } ) . json ( )
505
+ const data = await client . post ( `purl?${ formattedQueryParam } ` , { json : components } ) . json ( )
504
506
return { success : true , status : 200 , data }
505
507
} catch ( err ) {
506
508
return /** @type {SocketSdkErrorType<'batchPackageFetch'> } */ ( this . #handleApiError( err ) )
You can’t perform that action at this time.
0 commit comments