@percy/client
Advanced tools
Comparing version 1.22.0-alpha.0 to 1.22.0
@@ -12,2 +12,4 @@ import fs from 'fs'; | ||
const pkg = getPackageJSON(import.meta.url); | ||
// minimum polling interval milliseconds | ||
const MIN_POLLING_INTERVAL = 1_000; | ||
@@ -190,4 +192,8 @@ // Validate ID arguments | ||
timeout = 10 * 60 * 1000, | ||
interval = 1000 | ||
interval = 10_000 | ||
}, onProgress) { | ||
if (interval < MIN_POLLING_INTERVAL) { | ||
this.log.warn(`Ignoring interval since it cannot be less than ${MIN_POLLING_INTERVAL}ms.`); | ||
interval = MIN_POLLING_INTERVAL; | ||
} | ||
if (!project && commit) { | ||
@@ -194,0 +200,0 @@ throw new Error('Missing project path for commit'); |
{ | ||
"name": "@percy/client", | ||
"version": "1.22.0-alpha.0", | ||
"version": "1.22.0", | ||
"license": "MIT", | ||
@@ -34,6 +34,6 @@ "repository": { | ||
"dependencies": { | ||
"@percy/env": "1.22.0-alpha.0", | ||
"@percy/logger": "1.22.0-alpha.0" | ||
"@percy/env": "1.22.0", | ||
"@percy/logger": "1.22.0" | ||
}, | ||
"gitHead": "5928e586c401ac10840d1ec6219875526e45d100" | ||
"gitHead": "473ae8925585bc77f584bbcaa7058fc967bd3c61" | ||
} |
@@ -167,2 +167,2 @@ # @percy/client | ||
- `timeout` — Timeout in milliseconds to wait with no updates (**default** `10 * 60 * 1000`) | ||
- `interval` — Interval in miliseconds to check for updates (**default** `1000`) | ||
- `interval` — Interval in miliseconds to check for updates (**default** `10000`) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
42639
974
1
+ Added@percy/env@1.22.0(transitive)
+ Added@percy/logger@1.22.0(transitive)
- Removed@percy/env@1.22.0-alpha.0(transitive)
- Removed@percy/logger@1.22.0-alpha.0(transitive)
Updated@percy/env@1.22.0
Updated@percy/logger@1.22.0