Skip to content

Commit

Permalink
fix(fetch): import Buffer from 'buffer' (#90)
Browse files Browse the repository at this point in the history
* refactor: import buffer

* chore: fix changeset

---------

Co-authored-by: Amour1688 <[email protected]>
  • Loading branch information
MichaelDeBoey and Amour1688 authored Aug 29, 2023
1 parent 5fde362 commit 29d8936
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/refactor-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@web-std/fetch": patch
---

Import `Buffer` from `'buffer'`
1 change: 1 addition & 0 deletions packages/fetch/src/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import zlib from 'zlib';
import fs from 'fs';
import * as mime from 'mrmime'
import dataUriToBuffer from 'data-uri-to-buffer';
import {Buffer} from 'buffer';

import {writeToStream, fromAsyncIterable} from './body.js';
import Response from './response.js';
Expand Down

0 comments on commit 29d8936

Please sign in to comment.