Skip to content

Commit

Permalink
fix: don't require deno to run build-deno (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Nov 4, 2024
1 parent 461e300 commit 21fa500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 21fa500

Please sign in to comment.