Skip to content

Commit

Permalink
chore: re-export File
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala authored and MichaelDeBoey committed Aug 29, 2023
1 parent d50944a commit 8f923a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/fetch/src/lib.js
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

4 changes: 2 additions & 2 deletions packages/fetch/src/lib.node.js
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.

0 comments on commit 8f923a6

Please sign in to comment.