Skip to content

Commit 4730a39

Browse files
authored
Merge pull request #451 from arduino/dependabot/npm_and_yarn/undici-5.28.5
Bump undici from 5.28.4 to 5.28.5
2 parents 73354f8 + 5a52ae9 commit 4730a39

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.licenses/npm/undici.dep.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: undici
3-
version: 5.28.4
3+
version: 5.28.5
44
type: npm
55
summary: An HTTP/1.1 client, written from scratch for Node.js
66
homepage: https://undici.nodejs.org

dist/index.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -18391,6 +18391,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
1839118391
const { File: UndiciFile } = __nccwpck_require__(3041)
1839218392
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
1839318393

18394+
let random
18395+
try {
18396+
const crypto = __nccwpck_require__(7598)
18397+
random = (max) => crypto.randomInt(0, max)
18398+
} catch {
18399+
random = (max) => Math.floor(Math.random(max))
18400+
}
18401+
1839418402
let ReadableStream = globalThis.ReadableStream
1839518403

1839618404
/** @type {globalThis['File']} */
@@ -18476,7 +18484,7 @@ function extractBody (object, keepalive = false) {
1847618484
// Set source to a copy of the bytes held by object.
1847718485
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
1847818486
} else if (util.isFormDataLike(object)) {
18479-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
18487+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
1848018488
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
1848118489

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

3259632604
/***/ }),
3259732605

32606+
/***/ 7598:
32607+
/***/ ((module) => {
32608+
32609+
"use strict";
32610+
module.exports = require("node:crypto");
32611+
32612+
/***/ }),
32613+
3259832614
/***/ 8474:
3259932615
/***/ ((module) => {
3260032616

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)