@@ -333,20 +333,18 @@ class SocketSdk {
333
333
/**
334
334
* @param {string } orgSlug
335
335
* @param {{[key: string]: any } } queryParams
336
- * @param {{} } bodyContent
337
336
* @param {string[] } filePaths
338
337
* @param {string } pathsRelativeTo
339
- * @param {{ [key: string]: boolean } } [issueRules]
340
338
* @returns {Promise<SocketSdkResultType<'CreateOrgFullScan'>> }
341
339
*/
342
- async createOrgFullScan ( orgSlug , queryParams , bodyContent , filePaths , pathsRelativeTo = '.' , issueRules ) {
340
+ async createOrgFullScan ( orgSlug , queryParams , filePaths , pathsRelativeTo = '.' ) {
343
341
const basePath = path . resolve ( process . cwd ( ) , pathsRelativeTo )
344
342
const absoluteFilePaths = filePaths . map ( filePath => path . resolve ( basePath , filePath ) )
345
343
const orgSlugParam = encodeURIComponent ( orgSlug )
346
344
const formattedQueryParams = new URLSearchParams ( queryParams )
347
345
348
346
const [
349
- { FormData, Blob } ,
347
+ { FormData } ,
350
348
{ fileFromPath } ,
351
349
client
352
350
] = await Promise . all ( [
@@ -357,11 +355,6 @@ class SocketSdk {
357
355
358
356
const body = new FormData ( )
359
357
360
- if ( issueRules ) {
361
- const issueRulesBlob = new Blob ( [ JSON . stringify ( issueRules ) ] , { type : 'application/json' } )
362
- body . set ( 'issueRules' , issueRulesBlob , 'issueRules' )
363
- }
364
-
365
358
const files = await Promise . all ( absoluteFilePaths . map ( absoluteFilePath => fileFromPath ( absoluteFilePath ) ) )
366
359
367
360
for ( let i = 0 , length = files . length ; i < length ; i ++ ) {
0 commit comments