Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/firefly.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stream, Readable } from 'stream';
import { Readable } from 'stream';
import * as http from 'http';
import * as FormData from 'form-data';
import * as WebSocket from 'ws';
Expand Down Expand Up @@ -225,9 +225,9 @@ export default class FireFly extends HttpBase {
return this.getMany<FireFlyDataResponse[]>(`/data`, filter, options);
}

async getDataBlob(id: string, options?: FireFlyGetOptions): Promise<Stream> {
async getDataBlob(id: string, options?: FireFlyGetOptions): Promise<Readable> {
const response = await this.wrapError(
this.http.get<Stream>(`/data/${id}/blob`, {
this.http.get<Readable>(`/data/${id}/blob`, {
...mapConfig(options),
responseType: 'stream',
}),
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperledger/firefly-sdk",
"version": "1.2.8",
"version": "1.2.9",
"description": "Client SDK for Hyperledger FireFly",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -45,4 +45,4 @@
"form-data": "^4.0.0",
"ws": "^8.5.0"
}
}
}