From 29d8936fb489cee1fa132167da69bee8202bace8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Tue, 29 Aug 2023 03:14:34 +0200 Subject: [PATCH] fix(fetch): import `Buffer` from `'buffer'` (#90) * refactor: import buffer * chore: fix changeset --------- Co-authored-by: Amour1688 --- .changeset/refactor-fetch.md | 5 +++++ packages/fetch/src/fetch.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/refactor-fetch.md diff --git a/.changeset/refactor-fetch.md b/.changeset/refactor-fetch.md new file mode 100644 index 0000000..b1ac61f --- /dev/null +++ b/.changeset/refactor-fetch.md @@ -0,0 +1,5 @@ +--- +"@web-std/fetch": patch +--- + +Import `Buffer` from `'buffer'` diff --git a/packages/fetch/src/fetch.js b/packages/fetch/src/fetch.js index ffd38ca..6a76542 100644 --- a/packages/fetch/src/fetch.js +++ b/packages/fetch/src/fetch.js @@ -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';