regressify 1.8.1 → 1.8.3

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.
@@ -33,12 +33,18 @@ module.exports = async (page, scenario) => {
33
33
  cookie.expirationDate = Date.now() / 1000 + 31536000; // 1 year from now
34
34
  }
35
35
 
36
+ cookie.domain = undefined;
36
37
  delete cookie.domain;
37
38
 
38
39
  parsedCookies.push(cookie);
39
40
  });
40
41
  });
41
42
 
43
+ if (process.env.DEBUG_COOKIES === 'true') {
44
+ console.log('Restoring cookies from:', cookiePath);
45
+ console.log(JSON.stringify(parsedCookies, null, 2));
46
+ }
47
+
42
48
  // SET COOKIES
43
49
  const setCookies = async () => {
44
50
  return Promise.all(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regressify",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "Visual regression tests support",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",