@percy/core
Advanced tools
Comparing version 1.27.5-beta.2 to 1.27.5
@@ -160,2 +160,7 @@ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); } | ||
// return host bind address - defaults to 0.0.0.0 | ||
get host() { | ||
return process.env.PERCY_SERVER_HOST || '0.0.0.0'; | ||
} | ||
// return the listening port or any default port | ||
@@ -170,3 +175,7 @@ get port() { | ||
let port = this.port; | ||
let host = 'http://localhost'; | ||
// we need to specifically map 0.0.0.0 to localhost on windows as even though we | ||
// can listen to all interfaces using 0.0.0.0 we cant make a request on 0.0.0.0 as | ||
// its an invalid ip address as per spec, but unix systems allow request to it and | ||
// falls back to localhost | ||
let host = `http://${this.host === '0.0.0.0' ? 'localhost' : this.host}`; | ||
return port ? `${host}:${port}` : host; | ||
@@ -180,3 +189,3 @@ } | ||
let off = () => this.off('error', handle).off('listening', handle); | ||
super.listen(port, handle).once('error', handle); | ||
super.listen(port, this.host, handle).once('error', handle); | ||
}); | ||
@@ -183,0 +192,0 @@ } |
{ | ||
"name": "@percy/core", | ||
"version": "1.27.5-beta.2", | ||
"version": "1.27.5", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "beta" | ||
"tag": "latest" | ||
}, | ||
@@ -47,7 +47,7 @@ "engines": { | ||
"dependencies": { | ||
"@percy/client": "1.27.5-beta.2", | ||
"@percy/config": "1.27.5-beta.2", | ||
"@percy/dom": "1.27.5-beta.2", | ||
"@percy/logger": "1.27.5-beta.2", | ||
"@percy/webdriver-utils": "1.27.5-beta.2", | ||
"@percy/client": "1.27.5", | ||
"@percy/config": "1.27.5", | ||
"@percy/dom": "1.27.5", | ||
"@percy/logger": "1.27.5", | ||
"@percy/webdriver-utils": "1.27.5", | ||
"content-disposition": "^0.5.4", | ||
@@ -63,3 +63,3 @@ "cross-spawn": "^7.0.3", | ||
}, | ||
"gitHead": "9ea4b1f10c134e2c8135f7dddda764a9edafb336" | ||
"gitHead": "b28dc5d280584a19345ee45f745229e5f77993e6" | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
191125
4598
1
16
+ Added@percy/client@1.27.5(transitive)
+ Added@percy/config@1.27.5(transitive)
+ Added@percy/dom@1.27.5(transitive)
+ Added@percy/env@1.27.5(transitive)
+ Added@percy/logger@1.27.5(transitive)
+ Added@percy/sdk-utils@1.27.5(transitive)
+ Added@percy/webdriver-utils@1.27.5(transitive)
- Removed@percy/client@1.27.5-beta.2(transitive)
- Removed@percy/config@1.27.5-beta.2(transitive)
- Removed@percy/dom@1.27.5-beta.2(transitive)
- Removed@percy/env@1.27.5-beta.2(transitive)
- Removed@percy/logger@1.27.5-beta.2(transitive)
- Removed@percy/sdk-utils@1.27.5-beta.2(transitive)
- Removed@percy/webdriver-utils@1.27.5-beta.2(transitive)
Updated@percy/client@1.27.5
Updated@percy/config@1.27.5
Updated@percy/dom@1.27.5
Updated@percy/logger@1.27.5