Skip to content

Commit

Permalink
Merge pull request #25 from flipgroup/dependabot/npm_and_yarn/undici-…
Browse files Browse the repository at this point in the history
…5.28.5

Bump undici from 5.28.4 to 5.28.5
  • Loading branch information
magnetikonline authored Jan 29, 2025
2 parents cefbc93 + f5dea0d commit 3055097
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 8 additions & 1 deletion dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5736,6 +5736,13 @@ var require_body = __commonJS({
var { isUint8Array, isArrayBuffer } = require("util/types");
var { File: UndiciFile } = require_file();
var { parseMIMEType, serializeAMimeType } = require_dataURL();
var random;
try {
const crypto4 = require("node:crypto");
random = (max) => crypto4.randomInt(0, max);
} catch {
random = (max) => Math.floor(Math.random(max));
}
var ReadableStream = globalThis.ReadableStream;
var File = NativeFile ?? UndiciFile;
var textEncoder = new TextEncoder();
Expand Down Expand Up @@ -5778,7 +5785,7 @@ var require_body = __commonJS({
} else if (ArrayBuffer.isView(object)) {
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
} else if (util.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
Content-Disposition: form-data`;
const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3055097

Please sign in to comment.