Skip to content

Commit c2d20fa

Browse files
authored
Merge pull request #59 from git-for-windows/dependabot/npm_and_yarn/npm_and_yarn-2c579f9325
build(deps): bump undici from 5.28.4 to 5.28.5 in the npm_and_yarn group
2 parents c18fd89 + 5150bab commit c2d20fa

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

dist/index.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -18286,6 +18286,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
1828618286
const { File: UndiciFile } = __nccwpck_require__(3041)
1828718287
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
1828818288

18289+
let random
18290+
try {
18291+
const crypto = __nccwpck_require__(7598)
18292+
random = (max) => crypto.randomInt(0, max)
18293+
} catch {
18294+
random = (max) => Math.floor(Math.random(max))
18295+
}
18296+
1828918297
let ReadableStream = globalThis.ReadableStream
1829018298

1829118299
/** @type {globalThis['File']} */
@@ -18371,7 +18379,7 @@ function extractBody (object, keepalive = false) {
1837118379
// Set source to a copy of the bytes held by object.
1837218380
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
1837318381
} else if (util.isFormDataLike(object)) {
18374-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
18382+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
1837518383
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
1837618384

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

3756437572
/***/ }),
3756537573

37574+
/***/ 7598:
37575+
/***/ ((module) => {
37576+
37577+
"use strict";
37578+
module.exports = require("node:crypto");
37579+
37580+
/***/ }),
37581+
3756637582
/***/ 8474:
3756737583
/***/ ((module) => {
3756837584

dist/index.js.map

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

package-lock.json

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

0 commit comments

Comments
 (0)