@snyk/code-client
Advanced tools
Comparing version 4.22.2 to 4.22.3
@@ -22,3 +22,12 @@ "use strict"; | ||
const apiParams = { | ||
...lodash_pick_1.default(options, ['baseURL', 'sessionToken', 'source', 'extraHeaders', 'removedFiles', 'requestId', 'org']), | ||
...lodash_pick_1.default(options, [ | ||
'baseURL', | ||
'sessionToken', | ||
'source', | ||
'extraHeaders', | ||
'removedFiles', | ||
'requestId', | ||
'org', | ||
'orgId', | ||
]), | ||
files: chunkedFiles.reduce((d, f) => { | ||
@@ -65,2 +74,3 @@ // deepcode ignore PrototypePollution: FP this is an internal code | ||
'org', | ||
'orgId', | ||
'extraHeaders', | ||
@@ -96,3 +106,11 @@ ]); | ||
let { remoteBundle } = options; | ||
const connectionOptions = lodash_pick_1.default(options, ['baseURL', 'sessionToken', 'source', 'requestId', 'org', 'extraHeaders']); | ||
const connectionOptions = lodash_pick_1.default(options, [ | ||
'baseURL', | ||
'sessionToken', | ||
'source', | ||
'requestId', | ||
'org', | ||
'orgId', | ||
'extraHeaders', | ||
]); | ||
while (remoteBundle.missingFiles.length && attempts < (options.maxAttempts || constants_1.MAX_UPLOAD_ATTEMPTS)) { | ||
@@ -124,2 +142,3 @@ const missingFiles = await files_1.resolveBundleFiles(options.baseDir, remoteBundle.missingFiles); | ||
'org', | ||
'orgId', | ||
'extraHeaders', | ||
@@ -212,3 +231,3 @@ ]); | ||
const bundleOptions = { | ||
...lodash_pick_1.default(options, ['baseURL', 'sessionToken', 'source', 'requestId', 'org', 'extraHeaders']), | ||
...lodash_pick_1.default(options, ['baseURL', 'sessionToken', 'source', 'requestId', 'org', 'orgId', 'extraHeaders']), | ||
baseDir, | ||
@@ -215,0 +234,0 @@ files: bundleFiles, |
@@ -26,2 +26,3 @@ "use strict"; | ||
...(options.org ? { org: options.org } : {}), | ||
...(options.orgId ? { orgId: options.orgId } : {}), | ||
extraHeaders: headers, | ||
@@ -28,0 +29,0 @@ // requestId?: string; - not supported |
@@ -49,3 +49,3 @@ "use strict"; | ||
apiResponse = await getReportFunc({ | ||
...lodash_pick_1.default(options, ['baseURL', 'sessionToken', 'source', 'requestId', 'org']), | ||
...lodash_pick_1.default(options, ['baseURL', 'sessionToken', 'source', 'requestId', 'org', 'orgId']), | ||
pollId, | ||
@@ -52,0 +52,0 @@ }); |
@@ -94,3 +94,3 @@ { | ||
}, | ||
"version": "4.22.2" | ||
"version": "4.22.3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180130
2573