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.
fix(fetch): fix
toFormData
imports (#46)
- Loading branch information
1 parent
208877b
commit d3a1ffd
Showing
8 changed files
with
14 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/web-fetch": patch | ||
--- | ||
|
||
fix `toFormData` imports |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// 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.bind(globalThis) |
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. |
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,6 @@ | ||
|
||
export { Blob, ReadableStream } from '@remix-run/web-blob' | ||
export { File } from '@remix-run/web-file' | ||
export { FormData } from '@remix-run/web-form-data' | ||
|
||
|
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,4 +1,4 @@ | ||
export const { FormData, Blob } = globalThis | ||
export const { FormData, Blob, File } = globalThis | ||
export { ReadableStream } from "@remix-run/web-stream" | ||
|
||
|
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