make-fetch 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -67,7 +67,9 @@ class FakeResponse {
67
67
 
68
68
  async arrayBuffer () {
69
69
  const buffer = await collectBuffers(this.body)
70
- return buffer.buffer
70
+ const {byteOffset, length} = buffer
71
+ const end = byteOffset + length
72
+ return buffer.buffer.slice(buffer.byteOffset, end)
71
73
  }
72
74
 
73
75
  async text () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-fetch",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Implement your own `fetch()` with node.js streams",
5
5
  "main": "index.js",
6
6
  "scripts": {