@nxtedition/nxt-undici 2.0.26 → 2.0.28

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/lib/readable.js +0 -5
  2. package/package.json +1 -1
package/lib/readable.js CHANGED
@@ -7,8 +7,6 @@ import {
7
7
  AbortError,
8
8
  } from './errors.js'
9
9
 
10
- let Blob
11
-
12
10
  const kConsume = Symbol('kConsume')
13
11
  const kReading = Symbol('kReading')
14
12
  const kBody = Symbol('kBody')
@@ -301,9 +299,6 @@ function consumeEnd(consume) {
301
299
 
302
300
  resolve(dst.buffer)
303
301
  } else if (type === 'blob') {
304
- if (!Blob) {
305
- Blob = require('buffer').Blob
306
- }
307
302
  resolve(new Blob(body, { type: stream[kContentType] }))
308
303
  }
309
304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "2.0.26",
3
+ "version": "2.0.28",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",