@percy/core
Advanced tools
Comparing version 1.0.0-beta.9 to 1.0.0-beta.10
@@ -129,9 +129,3 @@ "use strict"; | ||
apiAddress() { | ||
var _this$server, _address; | ||
let { | ||
address | ||
} = ((_this$server = this.server) === null || _this$server === void 0 ? void 0 : _this$server.address()) || {}; | ||
address = ((_address = address) === null || _address === void 0 ? void 0 : _address.includes(':')) ? `[${address}]` : address; | ||
return address && `http://${address}:${this.port}/percy`; | ||
return `http://localhost:${this.port}/percy`; | ||
} // Returns a boolean indicating if this instance is running. | ||
@@ -174,7 +168,7 @@ | ||
} catch (error) { | ||
var _this$server2; | ||
var _this$server; | ||
// on error, close any running browser or server | ||
await this.discoverer.close(); | ||
(_this$server2 = this.server) === null || _this$server2 === void 0 ? void 0 : _this$server2.close(); // throw an easier-to understand error when the port is taken | ||
(_this$server = this.server) === null || _this$server === void 0 ? void 0 : _this$server.close(); // throw an easier-to understand error when the port is taken | ||
@@ -194,3 +188,3 @@ if (error.code === 'EADDRINUSE') { | ||
if (this.isRunning() && !_classPrivateFieldGet(this, _stopping)) { | ||
var _this$server3; | ||
var _this$server2; | ||
@@ -218,3 +212,3 @@ _classPrivateFieldSet(this, _stopping, true); | ||
(_this$server3 = this.server) === null || _this$server3 === void 0 ? void 0 : _this$server3.close(); | ||
(_this$server2 = this.server) === null || _this$server2 === void 0 ? void 0 : _this$server2.close(); | ||
await this.discoverer.close(); | ||
@@ -221,0 +215,0 @@ |
{ | ||
"name": "@percy/core", | ||
"version": "1.0.0-beta.9", | ||
"version": "1.0.0-beta.10", | ||
"license": "MIT", | ||
@@ -27,5 +27,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@percy/client": "^1.0.0-beta.9", | ||
"@percy/dom": "^1.0.0-beta.9", | ||
"@percy/logger": "^1.0.0-beta.9", | ||
"@percy/client": "^1.0.0-beta.10", | ||
"@percy/dom": "^1.0.0-beta.10", | ||
"@percy/logger": "^1.0.0-beta.10", | ||
"body-parser": "^1.19.0", | ||
@@ -42,3 +42,3 @@ "cors": "^2.8.5", | ||
}, | ||
"gitHead": "57a2eeb90c7f5cdf8827c78be1e5c12df581f4b5" | ||
"gitHead": "6b60e6ec0ae2064776bf737b876be608bfcf1ecf" | ||
} |
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
53761
1148
Updated@percy/client@^1.0.0-beta.10
Updated@percy/dom@^1.0.0-beta.10
Updated@percy/logger@^1.0.0-beta.10