@applitools/spec-driver-puppeteer 1.1.2 → 1.1.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.
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -186,7 +190,7 @@ async function getCookies(page) {
186
190
  const cdpSession = await page.target().createCDPSession();
187
191
  const { cookies } = await cdpSession.send('Network.getAllCookies');
188
192
  return cookies.map(cookie => {
189
- const copy = Object.assign(Object.assign({}, cookie), { expiry: cookie.expires });
193
+ const copy = { ...cookie, expiry: cookie.expires };
190
194
  delete copy.expires;
191
195
  delete copy.size;
192
196
  delete copy.priority;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-puppeteer",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "keywords": [
5
5
  "puppeteer",
6
6
  "chrome devtools protocol",
@@ -36,6 +36,7 @@
36
36
  "test": "mocha ./test/**/*.spec.ts --no-timeouts -r ts-node/register",
37
37
  "setup": "yarn puppeteer:setup",
38
38
  "puppeteer:setup": "PUPPETEER_PRODUCT=firefox node ./node_modules/puppeteer/install.js",
39
+ "upgrade:framework": "if [ ! -z $APPLITOOLS_PUPPETEER_VERSION ]; then packagejson=`cat package.json`; yarn upgrade --no-lockfile puppeteer@$APPLITOOLS_PUPPETEER_VERSION; echo \"$packagejson\" > package.json; fi",
39
40
  "deps": "bongo deps",
40
41
  "gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='spec-puppeteer' -f links='types utils test-utils",
41
42
  "gh:publish": "gh workflow run publish-spec-puppeteer.yml --ref $(git rev-parse --abbrev-ref HEAD)",
@@ -49,32 +50,35 @@
49
50
  }
50
51
  },
51
52
  "dependencies": {
52
- "@applitools/types": "1.4.3",
53
- "@applitools/utils": "1.3.0"
53
+ "@applitools/types": "1.4.4",
54
+ "@applitools/utils": "1.3.1"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@applitools/api-extractor": "1.2.7",
57
- "@applitools/bongo": "^2.1.0",
58
+ "@applitools/bongo": "^2.1.1",
58
59
  "@applitools/scripts": "1.1.0",
59
60
  "@applitools/test-utils": "1.3.2",
60
- "@types/mocha": "^9.0.0",
61
- "@types/node": "^16.10.2",
62
- "@typescript-eslint/eslint-plugin": "^4.15.1",
63
- "@typescript-eslint/parser": "^4.15.1",
64
- "eslint": "^7.9.0",
65
- "eslint-config-prettier": "^7.2.0",
61
+ "@types/mocha": "^9.1.1",
62
+ "@types/node": "12",
63
+ "@typescript-eslint/eslint-plugin": "^5.27.0",
64
+ "@typescript-eslint/parser": "^5.27.0",
65
+ "eslint": "^8.16.0",
66
+ "eslint-config-prettier": "^8.5.0",
66
67
  "eslint-plugin-mocha-no-only": "^1.1.1",
67
68
  "eslint-plugin-node": "^11.1.0",
68
- "eslint-plugin-prettier": "^3.3.1",
69
+ "eslint-plugin-prettier": "^4.0.0",
69
70
  "husky": "^4.3.7",
70
- "mocha": "^9.1.2",
71
- "prettier": "^2.4.1",
72
- "puppeteer": "^11.0.0",
73
- "ts-node": "^10.2.1",
74
- "ttypescript": "^1.5.12",
75
- "typescript": "^4.5.0-beta"
71
+ "mocha": "^9.2.2",
72
+ "prettier": "^2.6.2",
73
+ "puppeteer": "^14.1.2",
74
+ "ts-node": "^10.8.0",
75
+ "ttypescript": "^1.5.13",
76
+ "typescript": "^4.7.2"
76
77
  },
77
78
  "peerDependencies": {
78
79
  "puppeteer": ">=5.3.0"
80
+ },
81
+ "engines": {
82
+ "node": ">=12.13.0"
79
83
  }
80
84
  }