Skip to content

Commit a65e88a

Browse files
build(deps): bump undici from 5.28.4 to 5.28.5 (#1201)
* build(deps): 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 check failures --------- 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 d4df79c commit a65e88a

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.licenses/npm/undici.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76525,6 +76525,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
7652576525
const { File: UndiciFile } = __nccwpck_require__(8511)
7652676526
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
7652776527

76528+
let random
76529+
try {
76530+
const crypto = __nccwpck_require__(6005)
76531+
random = (max) => crypto.randomInt(0, max)
76532+
} catch {
76533+
random = (max) => Math.floor(Math.random(max))
76534+
}
76535+
7652876536
let ReadableStream = globalThis.ReadableStream
7652976537

7653076538
/** @type {globalThis['File']} */
@@ -76610,7 +76618,7 @@ function extractBody (object, keepalive = false) {
7661076618
// Set source to a copy of the bytes held by object.
7661176619
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
7661276620
} else if (util.isFormDataLike(object)) {
76613-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
76621+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
7661476622
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
7661576623

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

9777297780
/***/ }),
9777397781

97782+
/***/ 6005:
97783+
/***/ ((module) => {
97784+
97785+
"use strict";
97786+
module.exports = require("node:crypto");
97787+
97788+
/***/ }),
97789+
9777497790
/***/ 5673:
9777597791
/***/ ((module) => {
9777697792

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)