@percy/core 1.27.5 → 1.27.6-beta.0

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.
package/dist/network.js CHANGED
@@ -171,6 +171,7 @@ export class Network {
171
171
  this.#pending.delete(requestId);
172
172
 
173
173
  // guard against redirects with the same requestId
174
+ // eslint-disable-next-line babel/no-unused-expressions
174
175
  (pending === null || pending === void 0 ? void 0 : pending.request.url) === event.request.url && pending.request.method === event.request.method && (await this._handleRequest(session, {
175
176
  ...pending,
176
177
  resourceType,
package/dist/server.js CHANGED
@@ -157,9 +157,9 @@ export class Server extends http.Server {
157
157
  });
158
158
  }
159
159
 
160
- // return host bind address - defaults to 0.0.0.0
160
+ // return host bind address - defaults to "::"
161
161
  get host() {
162
- return process.env.PERCY_SERVER_HOST || '0.0.0.0';
162
+ return process.env.PERCY_SERVER_HOST || '::';
163
163
  }
164
164
 
165
165
  // return the listening port or any default port
@@ -171,11 +171,11 @@ export class Server extends http.Server {
171
171
  // return a string representation of the server address
172
172
  address() {
173
173
  let port = this.port;
174
- // we need to specifically map 0.0.0.0 to localhost on windows as even though we
175
- // can listen to all interfaces using 0.0.0.0 we cant make a request on 0.0.0.0 as
174
+ // we need to specifically map "::" to localhost on windows as even though we
175
+ // can listen to all interfaces using "::" we cant make a request on "::" as
176
176
  // its an invalid ip address as per spec, but unix systems allow request to it and
177
177
  // falls back to localhost
178
- let host = `http://${this.host === '0.0.0.0' ? 'localhost' : this.host}`;
178
+ let host = `http://${this.host === '::' ? 'localhost' : this.host}`;
179
179
  return port ? `${host}:${port}` : host;
180
180
  }
181
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.27.5",
3
+ "version": "1.27.6-beta.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public",
12
- "tag": "latest"
12
+ "tag": "beta"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -43,11 +43,11 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.27.5",
47
- "@percy/config": "1.27.5",
48
- "@percy/dom": "1.27.5",
49
- "@percy/logger": "1.27.5",
50
- "@percy/webdriver-utils": "1.27.5",
46
+ "@percy/client": "1.27.6-beta.0",
47
+ "@percy/config": "1.27.6-beta.0",
48
+ "@percy/dom": "1.27.6-beta.0",
49
+ "@percy/logger": "1.27.6-beta.0",
50
+ "@percy/webdriver-utils": "1.27.6-beta.0",
51
51
  "content-disposition": "^0.5.4",
52
52
  "cross-spawn": "^7.0.3",
53
53
  "extract-zip": "^2.0.1",
@@ -58,5 +58,5 @@
58
58
  "rimraf": "^3.0.2",
59
59
  "ws": "^8.0.0"
60
60
  },
61
- "gitHead": "b28dc5d280584a19345ee45f745229e5f77993e6"
61
+ "gitHead": "264fe038aa6a6ef6ed4d94b53f4f8905218c266e"
62
62
  }