@nxtedition/nxt-undici 1.3.0 → 1.4.0

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/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -255,6 +255,7 @@ async function request(url, opts) {
255
255
  upgrade: opts.upgrade,
256
256
  follow: opts.follow ?? 8,
257
257
  logger: opts.logger,
258
+ highWaterMark: opts.highWaterMark ?? 128 * 1024,
258
259
  },
259
260
  {
260
261
  resolve,
@@ -289,7 +290,7 @@ async function request(url, opts) {
289
290
  this.body = new Readable({
290
291
  resume,
291
292
  abort: this.abort,
292
- highWaterMark: 128 * 1024,
293
+ highWaterMark: this.highWaterMark,
293
294
  statusCode,
294
295
  statusMessage,
295
296
  headers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",