From 8ef59d060a819ef6124204fe4f8932c2407ccdf1 Mon Sep 17 00:00:00 2001 From: Billy Trend Date: Tue, 11 Jun 2024 14:56:41 +0100 Subject: [PATCH] Fixes --- src/Client.ts | 2 +- src/core/form-data-utils/FormDataWrapper.ts | 2 +- src/core/streaming-fetcher/Stream.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index a1d2813..4f5eb14 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -7,7 +7,7 @@ import * as core from "./core"; import * as Cohere from "./api/index"; import * as serializers from "./serialization/index"; import urlJoin from "url-join"; -import * as stream from "stream"; +import * as stream from "readable-stream"; import * as errors from "./errors/index"; import { EmbedJobs } from "./api/resources/embedJobs/client/Client"; import { Datasets } from "./api/resources/datasets/client/Client"; diff --git a/src/core/form-data-utils/FormDataWrapper.ts b/src/core/form-data-utils/FormDataWrapper.ts index 056e344..db2579b 100644 --- a/src/core/form-data-utils/FormDataWrapper.ts +++ b/src/core/form-data-utils/FormDataWrapper.ts @@ -1,4 +1,4 @@ -import { Readable } from "stream"; +import { Readable } from "readable-stream"; import { RUNTIME } from "../runtime"; interface CrossPlatformFormData { diff --git a/src/core/streaming-fetcher/Stream.ts b/src/core/streaming-fetcher/Stream.ts index 5fcb496..59e4a2d 100644 --- a/src/core/streaming-fetcher/Stream.ts +++ b/src/core/streaming-fetcher/Stream.ts @@ -1,4 +1,4 @@ -import { Readable } from "stream"; +import { Readable } from "readable-stream"; import { RUNTIME } from "../runtime"; export declare namespace Stream {