From 21fa50056c08043ed4b7f700087da805627426a8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 19:24:16 +0000 Subject: [PATCH] fix: don't require deno to run build-deno (#586) --- scripts/build | 2 +- src/streaming.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build b/scripts/build index fdce1f01..ed2b9941 100755 --- a/scripts/build +++ b/scripts/build @@ -50,7 +50,7 @@ node scripts/utils/postprocess-files.cjs (cd dist && node -e 'require("@anthropic-ai/sdk")') (cd dist && node -e 'import("@anthropic-ai/sdk")' --input-type=module) -if command -v deno &> /dev/null && [ -e ./scripts/build-deno ] +if [ -e ./scripts/build-deno ] then ./scripts/build-deno fi diff --git a/src/streaming.ts b/src/streaming.ts index ad7b171b..2eff6ef9 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -2,8 +2,8 @@ import { ReadableStream, type Response } from './_shims/index'; import { AnthropicError } from './error'; import { LineDecoder } from './internal/decoders/line'; -import { createResponseHeaders } from '@anthropic-ai/sdk/core'; -import { APIError } from '@anthropic-ai/sdk/error'; +import { createResponseHeaders } from './core'; +import { APIError } from './error'; type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;