Skip to content

Commit 65118ea

Browse files
check failures fix
1 parent 41c87c4 commit 65118ea

File tree

5 files changed

+176
-353
lines changed

5 files changed

+176
-353
lines changed

.licenses/npm/undici.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cleanup/index.js

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

77292+
let random
77293+
try {
77294+
const crypto = __nccwpck_require__(6005)
77295+
random = (max) => crypto.randomInt(0, max)
77296+
} catch {
77297+
random = (max) => Math.floor(Math.random(max))
77298+
}
77299+
7729277300
let ReadableStream = globalThis.ReadableStream
7729377301

7729477302
/** @type {globalThis['File']} */
@@ -77374,7 +77382,7 @@ function extractBody (object, keepalive = false) {
7737477382
// Set source to a copy of the bytes held by object.
7737577383
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
7737677384
} else if (util.isFormDataLike(object)) {
77377-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
77385+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
7737877386
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
7737977387

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

9724997257
/***/ }),
9725097258

97259+
/***/ 6005:
97260+
/***/ ((module) => {
97261+
97262+
"use strict";
97263+
module.exports = require("node:crypto");
97264+
97265+
/***/ }),
97266+
9725197267
/***/ 5673:
9725297268
/***/ ((module) => {
9725397269

dist/setup/index.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102143,6 +102143,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(29830)
102143102143
const { File: UndiciFile } = __nccwpck_require__(78511)
102144102144
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
102145102145

102146+
let random
102147+
try {
102148+
const crypto = __nccwpck_require__(6005)
102149+
random = (max) => crypto.randomInt(0, max)
102150+
} catch {
102151+
random = (max) => Math.floor(Math.random(max))
102152+
}
102153+
102146102154
let ReadableStream = globalThis.ReadableStream
102147102155

102148102156
/** @type {globalThis['File']} */
@@ -102228,7 +102236,7 @@ function extractBody (object, keepalive = false) {
102228102236
// Set source to a copy of the bytes held by object.
102229102237
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
102230102238
} else if (util.isFormDataLike(object)) {
102231-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
102239+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
102232102240
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
102233102241

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

135254135262
/***/ }),
135255135263

135264+
/***/ 6005:
135265+
/***/ ((module) => {
135266+
135267+
"use strict";
135268+
module.exports = require("node:crypto");
135269+
135270+
/***/ }),
135271+
135256135272
/***/ 15673:
135257135273
/***/ ((module) => {
135258135274

0 commit comments

Comments
 (0)