Skip to content

Commit d0b4fc4

Browse files
Bump undici from 5.28.4 to 5.28.5 (#1012)
* 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] <support@github.com> * fix for chec-dist and license check failures --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
1 parent e3dfaac commit d0b4fc4

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

.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

+17-1
Original file line numberDiff line numberDiff line change
@@ -68310,6 +68310,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
6831068310
const { File: UndiciFile } = __nccwpck_require__(8511)
6831168311
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
6831268312

68313+
let random
68314+
try {
68315+
const crypto = __nccwpck_require__(6005)
68316+
random = (max) => crypto.randomInt(0, max)
68317+
} catch {
68318+
random = (max) => Math.floor(Math.random(max))
68319+
}
68320+
6831368321
let ReadableStream = globalThis.ReadableStream
6831468322

6831568323
/** @type {globalThis['File']} */
@@ -68395,7 +68403,7 @@ function extractBody (object, keepalive = false) {
6839568403
// Set source to a copy of the bytes held by object.
6839668404
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
6839768405
} else if (util.isFormDataLike(object)) {
68398-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
68406+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
6839968407
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
6840068408

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

8972089728
/***/ }),
8972189729

89730+
/***/ 6005:
89731+
/***/ ((module) => {
89732+
89733+
"use strict";
89734+
module.exports = require("node:crypto");
89735+
89736+
/***/ }),
89737+
8972289738
/***/ 5673:
8972389739
/***/ ((module) => {
8972489740

dist/setup/index.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -77512,6 +77512,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
7751277512
const { File: UndiciFile } = __nccwpck_require__(8511)
7751377513
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
7751477514

77515+
let random
77516+
try {
77517+
const crypto = __nccwpck_require__(6005)
77518+
random = (max) => crypto.randomInt(0, max)
77519+
} catch {
77520+
random = (max) => Math.floor(Math.random(max))
77521+
}
77522+
7751577523
let ReadableStream = globalThis.ReadableStream
7751677524

7751777525
/** @type {globalThis['File']} */
@@ -77597,7 +77605,7 @@ function extractBody (object, keepalive = false) {
7759777605
// Set source to a copy of the bytes held by object.
7759877606
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
7759977607
} else if (util.isFormDataLike(object)) {
77600-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
77608+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
7760177609
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
7760277610

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

100824100832
/***/ }),
100825100833

100834+
/***/ 6005:
100835+
/***/ ((module) => {
100836+
100837+
"use strict";
100838+
module.exports = require("node:crypto");
100839+
100840+
/***/ }),
100841+
100826100842
/***/ 5673:
100827100843
/***/ ((module) => {
100828100844

package-lock.json

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

0 commit comments

Comments
 (0)