@percy/core 1.29.4-beta.3 → 1.29.4-beta.4

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/discovery.js CHANGED
@@ -67,10 +67,16 @@ function parseCookies(cookiesStr) {
67
67
  if (process.env.PERCY_DO_NOT_USE_CAPTURED_COOKIES === 'true' || !(typeof cookiesStr === 'string' && cookiesStr !== '')) return null;
68
68
  return cookiesStr.split('; ').map(c => {
69
69
  const eqIdx = c.indexOf('=');
70
- return {
71
- name: c.substring(0, eqIdx),
72
- value: c.substring(eqIdx + 1)
70
+ const name = c.substring(0, eqIdx);
71
+ const value = c.substring(eqIdx + 1);
72
+ const cookieObj = {
73
+ name,
74
+ value
73
75
  };
76
+ if (name.startsWith('__Secure')) {
77
+ cookieObj.secure = true;
78
+ }
79
+ return cookieObj;
74
80
  });
75
81
  }
76
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.29.4-beta.3",
3
+ "version": "1.29.4-beta.4",
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.29.4-beta.3",
47
- "@percy/config": "1.29.4-beta.3",
48
- "@percy/dom": "1.29.4-beta.3",
49
- "@percy/logger": "1.29.4-beta.3",
50
- "@percy/webdriver-utils": "1.29.4-beta.3",
46
+ "@percy/client": "1.29.4-beta.4",
47
+ "@percy/config": "1.29.4-beta.4",
48
+ "@percy/dom": "1.29.4-beta.4",
49
+ "@percy/logger": "1.29.4-beta.4",
50
+ "@percy/webdriver-utils": "1.29.4-beta.4",
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": "8c61c0ad7a8a1b61f199a2a011ac296764cdc2eb"
63
+ "gitHead": "373606636f133996307a33529e6f45632d18bdd9"
64
64
  }