@cypress/github-action 6.7.9 → 6.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +17 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -83494,6 +83494,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
83494
83494
  const { File: UndiciFile } = __nccwpck_require__(8511)
83495
83495
  const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
83496
83496
 
83497
+ let random
83498
+ try {
83499
+ const crypto = __nccwpck_require__(6005)
83500
+ random = (max) => crypto.randomInt(0, max)
83501
+ } catch {
83502
+ random = (max) => Math.floor(Math.random(max))
83503
+ }
83504
+
83497
83505
  let ReadableStream = globalThis.ReadableStream
83498
83506
 
83499
83507
  /** @type {globalThis['File']} */
@@ -83579,7 +83587,7 @@ function extractBody (object, keepalive = false) {
83579
83587
  // Set source to a copy of the bytes held by object.
83580
83588
  source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
83581
83589
  } else if (util.isFormDataLike(object)) {
83582
- const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
83590
+ const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
83583
83591
  const prefix = `--${boundary}\r\nContent-Disposition: form-data`
83584
83592
 
83585
83593
  /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -104835,6 +104843,14 @@ module.exports = require("net");
104835
104843
 
104836
104844
  /***/ }),
104837
104845
 
104846
+ /***/ 6005:
104847
+ /***/ ((module) => {
104848
+
104849
+ "use strict";
104850
+ module.exports = require("node:crypto");
104851
+
104852
+ /***/ }),
104853
+
104838
104854
  /***/ 5673:
104839
104855
  /***/ ((module) => {
104840
104856
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/github-action",
3
- "version": "6.7.9",
3
+ "version": "6.7.10",
4
4
  "description": "GitHub Action for running Cypress end-to-end and component tests",
5
5
  "private": false,
6
6
  "main": "dist/index.js",