File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -130183,6 +130183,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
130183130183const { File: UndiciFile } = __nccwpck_require__(8511)
130184130184const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
130185130185
130186+ let random
130187+ try {
130188+ const crypto = __nccwpck_require__(6005)
130189+ random = (max) => crypto.randomInt(0, max)
130190+ } catch {
130191+ random = (max) => Math.floor(Math.random(max))
130192+ }
130193+
130186130194let ReadableStream = globalThis.ReadableStream
130187130195
130188130196/** @type {globalThis['File']} */
@@ -130268,7 +130276,7 @@ function extractBody (object, keepalive = false) {
130268130276 // Set source to a copy of the bytes held by object.
130269130277 source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
130270130278 } else if (util.isFormDataLike(object)) {
130271- const boundary = `----formdata-undici-0${`${Math.floor(Math. random() * 1e11)}`.padStart(11, '0')}`
130279+ const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
130272130280 const prefix = `--${boundary}\r\nContent-Disposition: form-data`
130273130281
130274130282 /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -145423,6 +145431,14 @@ module.exports = require("net");
145423145431
145424145432/***/ }),
145425145433
145434+ /***/ 6005:
145435+ /***/ ((module) => {
145436+
145437+ "use strict";
145438+ module.exports = require("node:crypto");
145439+
145440+ /***/ }),
145441+
145426145442/***/ 5673:
145427145443/***/ ((module) => {
145428145444
You can’t perform that action at this time.
0 commit comments