diff --git a/dist/index.js b/dist/index.js index 70f4347..eb951cc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -15741,6 +15741,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253) const { File: UndiciFile } = __nccwpck_require__(3041) const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322) +let random +try { + const crypto = __nccwpck_require__(7598) + random = (max) => crypto.randomInt(0, max) +} catch { + random = (max) => Math.floor(Math.random(max)) +} + let ReadableStream = globalThis.ReadableStream /** @type {globalThis['File']} */ @@ -15826,7 +15834,7 @@ function extractBody (object, keepalive = false) { // Set source to a copy of the bytes held by object. source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength)) } else if (util.isFormDataLike(object)) { - const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}` + const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}` const prefix = `--${boundary}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */ @@ -30011,6 +30019,14 @@ module.exports = require("net"); /***/ }), +/***/ 7598: +/***/ ((module) => { + +"use strict"; +module.exports = require("node:crypto"); + +/***/ }), + /***/ 8474: /***/ ((module) => { @@ -31907,7 +31923,9 @@ For each issue found: - Provide specific recommendations for fixes - Include code examples where helpful -If no issues are found in a particular area, explicitly state that. +- If no issues are found in a particular area, explicitly state that. +- If it's a dependency update, evaluate with strict scrutiny the implications of the change. +- No matter your findings, give a summary of the pull request. Here is the code diff to review: @@ -32022,6 +32040,7 @@ async function run() { } run(); + module.exports = __webpack_exports__; /******/ })() ; \ No newline at end of file