Skip to content

Commit

Permalink
build(release): compile new build 4.1.10 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Jan 21, 2025
1 parent 33ae8c0 commit b67d5fb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import require$$0$3 from 'node:events';
import require$$0$5 from 'worker_threads';
import require$$2 from 'perf_hooks';
import require$$4$1 from 'util/types';
import require$$10 from 'node:crypto';
import require$$3 from 'http2';
import require$$2$1 from 'async_hooks';
import require$$1$1 from 'console';
Expand Down Expand Up @@ -6376,6 +6377,14 @@ const { isUint8Array, isArrayBuffer } = require$$4$1;
const { File: UndiciFile } = file;
const { parseMIMEType: parseMIMEType$1, serializeAMimeType: serializeAMimeType$2 } = dataURL;

let random;
try {
const crypto = require$$10;
random = (max) => crypto.randomInt(0, max);
} catch {
random = (max) => Math.floor(Math.random(max));
}

let ReadableStream$2 = globalThis.ReadableStream;

/** @type {globalThis['File']} */
Expand Down Expand Up @@ -6461,7 +6470,7 @@ function extractBody$3 (object, keepalive = false) {
// Set source to a copy of the bytes held by object.
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
} else if (util$7.isFormDataLike(object)) {
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`;
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`;
const prefix = `--${boundary}\r\nContent-Disposition: form-data`;

/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
Expand Down

0 comments on commit b67d5fb

Please sign in to comment.