Skip to content

Commit 3951f0d

Browse files
Bump undici from 5.28.4 to 5.28.5 (#596)
* Bump undici from 5.28.4 to 5.28.5 Bumps [undici](https://github.com/nodejs/undici) from 5.28.4 to 5.28.5. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.28.4...v5.28.5) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix for the check failures * fix for licensed check failure --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <[email protected]>
1 parent 4849e73 commit 3951f0d

File tree

5 files changed

+68
-21
lines changed

5 files changed

+68
-21
lines changed

.licenses/npm/@fastify/busboy.dep.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/undici.dep.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cache-save/index.js

+28-6
Original file line numberDiff line numberDiff line change
@@ -70284,6 +70284,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
7028470284
const { File: UndiciFile } = __nccwpck_require__(8511)
7028570285
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
7028670286

70287+
let random
70288+
try {
70289+
const crypto = __nccwpck_require__(6005)
70290+
random = (max) => crypto.randomInt(0, max)
70291+
} catch {
70292+
random = (max) => Math.floor(Math.random(max))
70293+
}
70294+
7028770295
let ReadableStream = globalThis.ReadableStream
7028870296

7028970297
/** @type {globalThis['File']} */
@@ -70369,7 +70377,7 @@ function extractBody (object, keepalive = false) {
7036970377
// Set source to a copy of the bytes held by object.
7037070378
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
7037170379
} else if (util.isFormDataLike(object)) {
70372-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
70380+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
7037370381
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
7037470382

7037570383
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -89743,6 +89751,14 @@ module.exports = require("net");
8974389751

8974489752
/***/ }),
8974589753

89754+
/***/ 6005:
89755+
/***/ ((module) => {
89756+
89757+
"use strict";
89758+
module.exports = require("node:crypto");
89759+
89760+
/***/ }),
89761+
8974689762
/***/ 5673:
8974789763
/***/ ((module) => {
8974889764

@@ -89979,7 +89995,7 @@ Dicer.prototype._write = function (data, encoding, cb) {
8997989995
if (this._headerFirst && this._isPreamble) {
8998089996
if (!this._part) {
8998189997
this._part = new PartStream(this._partOpts)
89982-
if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() }
89998+
if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() }
8998389999
}
8998490000
const r = this._hparser.push(data)
8998590001
if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
@@ -90036,7 +90052,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
9003690052
}
9003790053
}
9003890054
if (this._dashes === 2) {
90039-
if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) }
90055+
if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) }
9004090056
this.reset()
9004190057
this._finished = true
9004290058
// no more parts will be added
@@ -90054,7 +90070,13 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
9005490070
this._part._read = function (n) {
9005590071
self._unpause()
9005690072
}
90057-
if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() }
90073+
if (this._isPreamble && this.listenerCount('preamble') !== 0) {
90074+
this.emit('preamble', this._part)
90075+
} else if (this._isPreamble !== true && this.listenerCount('part') !== 0) {
90076+
this.emit('part', this._part)
90077+
} else {
90078+
this._ignore()
90079+
}
9005890080
if (!this._isPreamble) { this._inHeader = true }
9005990081
}
9006090082
if (data && start < end && !this._ignoreData) {
@@ -90737,7 +90759,7 @@ function Multipart (boy, cfg) {
9073790759

9073890760
++nfiles
9073990761

90740-
if (!boy._events.file) {
90762+
if (boy.listenerCount('file') === 0) {
9074190763
self.parser._ignore()
9074290764
return
9074390765
}
@@ -91266,7 +91288,7 @@ const decoders = {
9126691288
if (textDecoders.has(this.toString())) {
9126791289
try {
9126891290
return textDecoders.get(this).decode(data)
91269-
} catch (e) { }
91291+
} catch {}
9127091292
}
9127191293
return typeof data === 'string'
9127291294
? data

dist/setup/index.js

+28-6
Original file line numberDiff line numberDiff line change
@@ -82502,6 +82502,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
8250282502
const { File: UndiciFile } = __nccwpck_require__(8511)
8250382503
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
8250482504

82505+
let random
82506+
try {
82507+
const crypto = __nccwpck_require__(6005)
82508+
random = (max) => crypto.randomInt(0, max)
82509+
} catch {
82510+
random = (max) => Math.floor(Math.random(max))
82511+
}
82512+
8250582513
let ReadableStream = globalThis.ReadableStream
8250682514

8250782515
/** @type {globalThis['File']} */
@@ -82587,7 +82595,7 @@ function extractBody (object, keepalive = false) {
8258782595
// Set source to a copy of the bytes held by object.
8258882596
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
8258982597
} else if (util.isFormDataLike(object)) {
82590-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
82598+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
8259182599
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
8259282600

8259382601
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -102705,6 +102713,14 @@ module.exports = require("net");
102705102713

102706102714
/***/ }),
102707102715

102716+
/***/ 6005:
102717+
/***/ ((module) => {
102718+
102719+
"use strict";
102720+
module.exports = require("node:crypto");
102721+
102722+
/***/ }),
102723+
102708102724
/***/ 5673:
102709102725
/***/ ((module) => {
102710102726

@@ -102949,7 +102965,7 @@ Dicer.prototype._write = function (data, encoding, cb) {
102949102965
if (this._headerFirst && this._isPreamble) {
102950102966
if (!this._part) {
102951102967
this._part = new PartStream(this._partOpts)
102952-
if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() }
102968+
if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() }
102953102969
}
102954102970
const r = this._hparser.push(data)
102955102971
if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
@@ -103006,7 +103022,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
103006103022
}
103007103023
}
103008103024
if (this._dashes === 2) {
103009-
if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) }
103025+
if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) }
103010103026
this.reset()
103011103027
this._finished = true
103012103028
// no more parts will be added
@@ -103024,7 +103040,13 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
103024103040
this._part._read = function (n) {
103025103041
self._unpause()
103026103042
}
103027-
if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() }
103043+
if (this._isPreamble && this.listenerCount('preamble') !== 0) {
103044+
this.emit('preamble', this._part)
103045+
} else if (this._isPreamble !== true && this.listenerCount('part') !== 0) {
103046+
this.emit('part', this._part)
103047+
} else {
103048+
this._ignore()
103049+
}
103028103050
if (!this._isPreamble) { this._inHeader = true }
103029103051
}
103030103052
if (data && start < end && !this._ignoreData) {
@@ -103707,7 +103729,7 @@ function Multipart (boy, cfg) {
103707103729

103708103730
++nfiles
103709103731

103710-
if (!boy._events.file) {
103732+
if (boy.listenerCount('file') === 0) {
103711103733
self.parser._ignore()
103712103734
return
103713103735
}
@@ -104236,7 +104258,7 @@ const decoders = {
104236104258
if (textDecoders.has(this.toString())) {
104237104259
try {
104238104260
return textDecoders.get(this).decode(data)
104239-
} catch (e) { }
104261+
} catch {}
104240104262
}
104241104263
return typeof data === 'string'
104242104264
? data

package-lock.json

+10-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)