Skip to content

Commit b9ec55a

Browse files
author
David Echelberger
authored
Merge pull request #68 from kaleido-io/readable
Use Readable for return type of getDataBlob
2 parents 7287aba + e4f7643 commit b9ec55a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/firefly.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Stream, Readable } from 'stream';
1+
import { Readable } from 'stream';
22
import * as http from 'http';
33
import * as FormData from 'form-data';
44
import * as WebSocket from 'ws';
@@ -225,9 +225,9 @@ export default class FireFly extends HttpBase {
225225
return this.getMany<FireFlyDataResponse[]>(`/data`, filter, options);
226226
}
227227

228-
async getDataBlob(id: string, options?: FireFlyGetOptions): Promise<Stream> {
228+
async getDataBlob(id: string, options?: FireFlyGetOptions): Promise<Readable> {
229229
const response = await this.wrapError(
230-
this.http.get<Stream>(`/data/${id}/blob`, {
230+
this.http.get<Readable>(`/data/${id}/blob`, {
231231
...mapConfig(options),
232232
responseType: 'stream',
233233
}),

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hyperledger/firefly-sdk",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"description": "Client SDK for Hyperledger FireFly",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -45,4 +45,4 @@
4545
"form-data": "^4.0.0",
4646
"ws": "^8.5.0"
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)