We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43bd9a6 commit 7e523f6Copy full SHA for 7e523f6
index.js
@@ -286,8 +286,9 @@ class SocketSdk {
286
287
try {
288
const client = await this.#getClient()
289
- const data = await client.get(`orgs/${orgSlugParam}/full-scans/${fullScanIdParam}`).json()
290
- return { success: true, status: 200, data }
+ const readStream = await client.stream(`orgs/${orgSlugParam}/full-scans/${fullScanIdParam}`).pipe(process.stdout)
+
291
+ return { success: true, status: 200, data: readStream }
292
} catch (err) {
293
return /** @type {SocketSdkErrorType<'getOrgFullScan'>} */ (this.#handleApiError(err))
294
}
0 commit comments