Skip to content

Commit 959031d

Browse files
committed
♻️ npm run build
2 parents 6434777 + 67caf0c commit 959031d

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/__check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@0.7.0
15+
- uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@0.8.0
1616

1717
- name: Build dist/ Directory
1818
id: build

dist/index.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11478,6 +11478,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
1147811478
const { File: UndiciFile } = __nccwpck_require__(3041)
1147911479
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
1148011480

11481+
let random
11482+
try {
11483+
const crypto = __nccwpck_require__(7598)
11484+
random = (max) => crypto.randomInt(0, max)
11485+
} catch {
11486+
random = (max) => Math.floor(Math.random(max))
11487+
}
11488+
1148111489
let ReadableStream = globalThis.ReadableStream
1148211490

1148311491
/** @type {globalThis['File']} */
@@ -11563,7 +11571,7 @@ function extractBody (object, keepalive = false) {
1156311571
// Set source to a copy of the bytes held by object.
1156411572
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
1156511573
} else if (util.isFormDataLike(object)) {
11566-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
11574+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
1156711575
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
1156811576

1156911577
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -25625,6 +25633,13 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("net");
2562525633

2562625634
/***/ }),
2562725635

25636+
/***/ 7598:
25637+
/***/ ((module) => {
25638+
25639+
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto");
25640+
25641+
/***/ }),
25642+
2562825643
/***/ 8474:
2562925644
/***/ ((module) => {
2563025645

0 commit comments

Comments
 (0)