From 08c6d773f019e41a854ec1f4625c78febab077f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Mon, 25 Nov 2019 11:52:47 -0300 Subject: [PATCH] fix: change implementation of streams in RN --- packages/api-bzz-react-native/src/index.ts | 2 +- packages/api-bzz-react-native/types/index.d.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/api-bzz-react-native/src/index.ts b/packages/api-bzz-react-native/src/index.ts index 5f931c9..0328bea 100644 --- a/packages/api-bzz-react-native/src/index.ts +++ b/packages/api-bzz-react-native/src/index.ts @@ -1,5 +1,5 @@ /* eslint-env browser */ -import * as stream from 'stream' +import * as stream from 'readable-stream' // @ts-ignore import { URL } from 'universal-url' import { diff --git a/packages/api-bzz-react-native/types/index.d.ts b/packages/api-bzz-react-native/types/index.d.ts index e2730dd..5da2424 100644 --- a/packages/api-bzz-react-native/types/index.d.ts +++ b/packages/api-bzz-react-native/types/index.d.ts @@ -1,5 +1,4 @@ -/// -import * as stream from 'stream'; +import * as stream from 'readable-stream'; import { BaseBzz, BzzConfig, DirectoryData, UploadOptions } from '@erebos/api-bzz-base'; import { hexValue } from '@erebos/hex'; export * from '@erebos/api-bzz-base';