File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -20875,6 +20875,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
20875
20875
const { File: UndiciFile } = __nccwpck_require__(3041)
20876
20876
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
20877
20877
20878
+ let random
20879
+ try {
20880
+ const crypto = __nccwpck_require__(7598)
20881
+ random = (max) => crypto.randomInt(0, max)
20882
+ } catch {
20883
+ random = (max) => Math.floor(Math.random(max))
20884
+ }
20885
+
20878
20886
let ReadableStream = globalThis.ReadableStream
20879
20887
20880
20888
/** @type {globalThis['File']} */
@@ -20960,7 +20968,7 @@ function extractBody (object, keepalive = false) {
20960
20968
// Set source to a copy of the bytes held by object.
20961
20969
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
20962
20970
} else if (util.isFormDataLike(object)) {
20963
- const boundary = `----formdata-undici-0${`${Math.floor(Math. random() * 1e11)}`.padStart(11, '0')}`
20971
+ const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
20964
20972
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
20965
20973
20966
20974
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -35153,6 +35161,14 @@ module.exports = require("net");
35153
35161
35154
35162
/***/ }),
35155
35163
35164
+ /***/ 7598:
35165
+ /***/ ((module) => {
35166
+
35167
+ "use strict";
35168
+ module.exports = require("node:crypto");
35169
+
35170
+ /***/ }),
35171
+
35156
35172
/***/ 8474:
35157
35173
/***/ ((module) => {
35158
35174
You can’t perform that action at this time.
0 commit comments