Skip to content

Commit 79dcc13

Browse files
Bump undici from 5.28.4 to 5.28.5 (#45)
* 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 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: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com>
1 parent ca6c5d9 commit 79dcc13

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
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/index.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -15178,6 +15178,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
1517815178
const { File: UndiciFile } = __nccwpck_require__(8511)
1517915179
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
1518015180

15181+
let random
15182+
try {
15183+
const crypto = __nccwpck_require__(6005)
15184+
random = (max) => crypto.randomInt(0, max)
15185+
} catch {
15186+
random = (max) => Math.floor(Math.random(max))
15187+
}
15188+
1518115189
let ReadableStream = globalThis.ReadableStream
1518215190

1518315191
/** @type {globalThis['File']} */
@@ -15263,7 +15271,7 @@ function extractBody (object, keepalive = false) {
1526315271
// Set source to a copy of the bytes held by object.
1526415272
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
1526515273
} else if (util.isFormDataLike(object)) {
15266-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
15274+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
1526715275
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
1526815276

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

3008730095
/***/ }),
3008830096

30097+
/***/ 6005:
30098+
/***/ ((module) => {
30099+
30100+
"use strict";
30101+
module.exports = require("node:crypto");
30102+
30103+
/***/ }),
30104+
3008930105
/***/ 5673:
3009030106
/***/ ((module) => {
3009130107

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)