@percy/core 1.30.2-alpha.0 → 1.30.2-alpha.1

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.
Files changed (2) hide show
  1. package/dist/network.js +11 -0
  2. package/package.json +7 -7
package/dist/network.js CHANGED
@@ -449,7 +449,18 @@ async function makeDirectRequest(network, request, session) {
449
449
  urls: [request.url]
450
450
  });
451
451
  let headers = {
452
+ // add default browser
453
+ accept: '*/*',
454
+ 'sec-fetch-site': 'same-origin',
455
+ 'sec-fetch-mode': 'cors',
456
+ 'sec-fetch-dest': 'font',
457
+ 'sec-ch-ua': '"Chromium";v="123", "Google Chrome";v="123", "Not?A_Brand";v="99"',
458
+ 'sec-ch-ua-mobile': '?0',
459
+ 'sec-ch-ua-platform': '"macOS"',
460
+ 'sec-fetch-user': '?1',
461
+ // add request fetched headers
452
462
  ...request.headers,
463
+ // add applicable cookies
453
464
  cookie: cookies.map(cookie => `${cookie.name}=${cookie.value}`).join('; ')
454
465
  };
455
466
  if ((_network$authorizatio = network.authorization) !== null && _network$authorizatio !== void 0 && _network$authorizatio.username) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.30.2-alpha.0",
3
+ "version": "1.30.2-alpha.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,11 +43,11 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.30.2-alpha.0",
47
- "@percy/config": "1.30.2-alpha.0",
48
- "@percy/dom": "1.30.2-alpha.0",
49
- "@percy/logger": "1.30.2-alpha.0",
50
- "@percy/webdriver-utils": "1.30.2-alpha.0",
46
+ "@percy/client": "1.30.2-alpha.1",
47
+ "@percy/config": "1.30.2-alpha.1",
48
+ "@percy/dom": "1.30.2-alpha.1",
49
+ "@percy/logger": "1.30.2-alpha.1",
50
+ "@percy/webdriver-utils": "1.30.2-alpha.1",
51
51
  "content-disposition": "^0.5.4",
52
52
  "cross-spawn": "^7.0.3",
53
53
  "extract-zip": "^2.0.1",
@@ -60,5 +60,5 @@
60
60
  "ws": "^8.17.1",
61
61
  "yaml": "^2.4.1"
62
62
  },
63
- "gitHead": "5cf337161a28fe90a670b009f2d2149663734047"
63
+ "gitHead": "49e55e3851ae4b0fd489327cd980e352a440aa19"
64
64
  }