From 0fcfba29734fc86cd53dc928dac8608e8ccdcff0 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 21 Feb 2020 23:06:47 +0000 Subject: [PATCH] fix(core): update --- test/test.ts | 1 + ts/smartbucket.classes.bucket.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/test/test.ts b/test/test.ts index 6cbb350..d73f5aa 100644 --- a/test/test.ts +++ b/test/test.ts @@ -38,6 +38,7 @@ tap.test('should store data in bucket fast', async () => { tap.test('should get data in bucket', async () => { const fileString = await myBucket.fastGet('hithere/socool.txt'); + const fileStringStream = await myBucket.fastGetStream('hithere/socool.txt'); console.log(fileString); }); diff --git a/ts/smartbucket.classes.bucket.ts b/ts/smartbucket.classes.bucket.ts index 9d4ba5e..7442665 100644 --- a/ts/smartbucket.classes.bucket.ts +++ b/ts/smartbucket.classes.bucket.ts @@ -94,6 +94,7 @@ export class Bucket { return chunk; }, async cb => { + console.log('stream ended'); replaySubject.complete(); return Buffer.from(''); }