Skip to content

Commit 4d8d065

Browse files
author
GitHub Actions
committed
Update dist
1 parent b1b0af6 commit 4d8d065

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

dist/index.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130183,6 +130183,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
130183130183
const { File: UndiciFile } = __nccwpck_require__(8511)
130184130184
const { 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+
130186130194
let 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

0 commit comments

Comments
 (0)