-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9609d5c
commit 040aadd
Showing
4 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ if (isDeno) { | |
|
||
// === Export system-specific operations | ||
// Turn an AsyncIterable<Uint8Array> into a stream | ||
export { readableStreamFromIterable as itrToStream } from "https://deno.land/[email protected]/streams/readable_stream_from_iterable.ts"; | ||
export const itrToStream = (itr: AsyncIterable<Uint8Array>) => | ||
ReadableStream.from(itr); | ||
|
||
// === Base configuration for `fetch` calls | ||
export const baseFetchConfig = (_apiRoot: string) => ({}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ export { d as debug }; | |
|
||
// === Export system-specific operations | ||
// Turn an AsyncIterable<Uint8Array> into a stream | ||
export { readableStreamFromIterable as itrToStream } from "https://deno.land/[email protected]/streams/readable_stream_from_iterable.ts"; | ||
export const itrToStream = (itr: AsyncIterable<Uint8Array>) => | ||
ReadableStream.from(itr); | ||
|
||
// === Base configuration for `fetch` calls | ||
export const baseFetchConfig = (_apiRoot: string) => ({}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters