Skip to content

Commit 539cd1f

Browse files
authored
Merge pull request #37 from brave-intl/dependabot/npm_and_yarn/undici-5.28.5
chore(deps): bump undici from 5.28.4 to 5.28.5
2 parents 7eb4e50 + 98a5aea commit 539cd1f

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

dist/index.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49651,6 +49651,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
4965149651
const { File: UndiciFile } = __nccwpck_require__(8511)
4965249652
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
4965349653

49654+
let random
49655+
try {
49656+
const crypto = __nccwpck_require__(6005)
49657+
random = (max) => crypto.randomInt(0, max)
49658+
} catch {
49659+
random = (max) => Math.floor(Math.random(max))
49660+
}
49661+
4965449662
let ReadableStream = globalThis.ReadableStream
4965549663

4965649664
/** @type {globalThis['File']} */
@@ -49736,7 +49744,7 @@ function extractBody (object, keepalive = false) {
4973649744
// Set source to a copy of the bytes held by object.
4973749745
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
4973849746
} else if (util.isFormDataLike(object)) {
49739-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
49747+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
4974049748
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
4974149749

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

6589965907
/***/ }),
6590065908

65909+
/***/ 6005:
65910+
/***/ ((module) => {
65911+
65912+
"use strict";
65913+
module.exports = require("node:crypto");
65914+
65915+
/***/ }),
65916+
6590165917
/***/ 5673:
6590265918
/***/ ((module) => {
6590365919

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)