File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -15684,6 +15684,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
1568415684const { File: UndiciFile } = __nccwpck_require__(3041)
1568515685const { 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+
1568715695let 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
You can’t perform that action at this time.
0 commit comments