Skip to content

Commit 0a82a01

Browse files
authored
Merge pull request #105 from ryancyq/dependabot/npm_and_yarn/undici-5.28.5
chore(deps): bump undici from 5.28.4 to 5.28.5
2 parents 43cbb17 + fc17d85 commit 0a82a01

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

dist/index.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -15684,6 +15684,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
1568415684
const { File: UndiciFile } = __nccwpck_require__(3041)
1568515685
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
1568615686

15687+
let random
15688+
try {
15689+
const crypto = __nccwpck_require__(7598)
15690+
random = (max) => crypto.randomInt(0, max)
15691+
} catch {
15692+
random = (max) => Math.floor(Math.random(max))
15693+
}
15694+
1568715695
let ReadableStream = globalThis.ReadableStream
1568815696

1568915697
/** @type {globalThis['File']} */
@@ -15769,7 +15777,7 @@ function extractBody (object, keepalive = false) {
1576915777
// Set source to a copy of the bytes held by object.
1577015778
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
1577115779
} else if (util.isFormDataLike(object)) {
15772-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
15780+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
1577315781
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
1577415782

1577515783
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -30741,6 +30749,13 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer"
3074130749

3074230750
/***/ }),
3074330751

30752+
/***/ 7598:
30753+
/***/ ((module) => {
30754+
30755+
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto");
30756+
30757+
/***/ }),
30758+
3074430759
/***/ 8474:
3074530760
/***/ ((module) => {
3074630761

package-lock.json

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

0 commit comments

Comments
 (0)