Skip to content

Commit f4cb706

Browse files
chore(release): build dist
1 parent 2a29441 commit f4cb706

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Diff for: run/dist/index.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -20875,6 +20875,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
2087520875
const { File: UndiciFile } = __nccwpck_require__(3041)
2087620876
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
2087720877

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+
2087820886
let ReadableStream = globalThis.ReadableStream
2087920887

2088020888
/** @type {globalThis['File']} */
@@ -20960,7 +20968,7 @@ function extractBody (object, keepalive = false) {
2096020968
// Set source to a copy of the bytes held by object.
2096120969
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
2096220970
} 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')}`
2096420972
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
2096520973

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

3515435162
/***/ }),
3515535163

35164+
/***/ 7598:
35165+
/***/ ((module) => {
35166+
35167+
"use strict";
35168+
module.exports = require("node:crypto");
35169+
35170+
/***/ }),
35171+
3515635172
/***/ 8474:
3515735173
/***/ ((module) => {
3515835174

0 commit comments

Comments
 (0)