mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-01 12:29:24 -06:00
fix(deps): update dependency parse-domain to version 2.3.4 🌟 (#5726)
* fix(deps): update parse-domain to 2.3.4 🌟 * update details now that s3.amazonaws.com is a public suffix * bump max size Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Zach Bloomquist <github@chary.us>
This commit is contained in:
committed by
Zach Bloomquist
parent
b03b25c258
commit
6bb3a483f9
@@ -39,10 +39,10 @@ checkZipSize = (zipPath) ->
|
||||
stats = fs.statSync(zipPath)
|
||||
zipSize = filesize(stats.size, {round: 0})
|
||||
console.log("zip file size #{zipSize}")
|
||||
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 245 else 150
|
||||
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 245 else 160
|
||||
MAX_ZIP_FILE_SIZE = megaBytes(MAX_ALLOWED_SIZE_MB)
|
||||
if stats.size > MAX_ZIP_FILE_SIZE
|
||||
throw new Error("Zip file is too large: #{zipSize} exceeds #{MAX_ZIP_FILE_SIZE}")
|
||||
throw new Error("Zip file is too large: #{zipSize} (#{stats.size} bytes) exceeds #{MAX_ZIP_FILE_SIZE} bytes")
|
||||
|
||||
# resolves with zipped filename
|
||||
linuxZip = (src, dest) ->
|
||||
|
||||
Reference in New Issue
Block a user