Skip to content

Commit 433264a

Browse files
authored
fix(deps): update undici to 5.28.5 (#1348)
1 parent 61a39d7 commit 433264a

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

dist/index.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -83494,6 +83494,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
8349483494
const { File: UndiciFile } = __nccwpck_require__(8511)
8349583495
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
8349683496

83497+
let random
83498+
try {
83499+
const crypto = __nccwpck_require__(6005)
83500+
random = (max) => crypto.randomInt(0, max)
83501+
} catch {
83502+
random = (max) => Math.floor(Math.random(max))
83503+
}
83504+
8349783505
let ReadableStream = globalThis.ReadableStream
8349883506

8349983507
/** @type {globalThis['File']} */
@@ -83579,7 +83587,7 @@ function extractBody (object, keepalive = false) {
8357983587
// Set source to a copy of the bytes held by object.
8358083588
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
8358183589
} else if (util.isFormDataLike(object)) {
83582-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
83590+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
8358383591
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
8358483592

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

104836104844
/***/ }),
104837104845

104846+
/***/ 6005:
104847+
/***/ ((module) => {
104848+
104849+
"use strict";
104850+
module.exports = require("node:crypto");
104851+
104852+
/***/ }),
104853+
104838104854
/***/ 5673:
104839104855
/***/ ((module) => {
104840104856

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)