forked from web-std/io
-
Notifications
You must be signed in to change notification settings - Fork 24
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
d50944a
commit 8f923a6
Showing
2 changed files
with
3 additions
and
3 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
|
||
// On the web we just export native fetch implementation | ||
export { ReadableStream, Blob, FormData } from './package.js'; | ||
export { ReadableStream, Blob, FormData, File } from './package.js'; | ||
export const { Headers, Request, Response } = globalThis; | ||
export default globalThis.fetch | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export { default, fetch, Headers, Request, Response } from "./fetch.js"; | ||
|
||
export { ReadableStream, Blob, FormData } from './package.js'; | ||
export { ReadableStream, Blob, FormData, File } from './package.js'; | ||
// Node 18+ introduces fetch API globally and it doesn't support our use-cases yet. | ||
// For now we always use the polyfill. | ||
// For now we always use the polyfill. |