@applitools/spec-driver-puppeteer 1.2.5 → 1.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer@1.3.0...js/spec-driver-puppeteer@1.3.1) (2023-12-05)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.7.0
9
+ #### Features
10
+
11
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
12
+ * @applitools/logger bumped to 2.0.14
13
+
14
+ * @applitools/driver bumped to 1.15.2
15
+
16
+
17
+ ## [1.3.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer@1.2.5...js/spec-driver-puppeteer@1.3.0) (2023-11-21)
18
+
19
+
20
+ ### Features
21
+
22
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * @applitools/utils bumped to 1.6.3
28
+ #### Bug Fixes
29
+
30
+ * don't throw error for missing configuration file ([#2034](https://github.com/applitools/eyes.sdk.javascript1/issues/2034)) ([d084e7b](https://github.com/applitools/eyes.sdk.javascript1/commit/d084e7bf6e1727e3969622b4e597881f18241eb3))
31
+ * @applitools/logger bumped to 2.0.13
32
+
33
+ * @applitools/driver bumped to 1.15.1
34
+
35
+
3
36
  ## [1.2.5](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer@1.2.4...js/spec-driver-puppeteer@1.2.5) (2023-11-07)
4
37
 
5
38
 
@@ -123,10 +123,11 @@ function isSelector(selector) {
123
123
  }
124
124
  exports.isSelector = isSelector;
125
125
  function isStaleElementError(err) {
126
- var _a, _b, _c;
126
+ var _a, _b, _c, _d;
127
127
  return (((_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.includes('Execution context was destroyed')) ||
128
128
  ((_b = err === null || err === void 0 ? void 0 : err.message) === null || _b === void 0 ? void 0 : _b.includes('Cannot find context with specified id')) ||
129
- ((_c = err === null || err === void 0 ? void 0 : err.message) === null || _c === void 0 ? void 0 : _c.includes('JSHandles can be evaluated only in the context they were created')));
129
+ ((_c = err === null || err === void 0 ? void 0 : err.message) === null || _c === void 0 ? void 0 : _c.includes('Could not find object with given id')) ||
130
+ ((_d = err === null || err === void 0 ? void 0 : err.message) === null || _d === void 0 ? void 0 : _d.includes('JSHandles can be evaluated only in the context they were created')));
130
131
  }
131
132
  exports.isStaleElementError = isStaleElementError;
132
133
  function toSelector(selector) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-puppeteer",
3
- "version": "1.2.5",
3
+ "version": "1.3.1",
4
4
  "keywords": [
5
5
  "puppeteer",
6
6
  "chrome devtools protocol",
@@ -36,18 +36,18 @@
36
36
  "build": "run --top-level tspc --project ./tsconfig.build.json",
37
37
  "test": "run --top-level mocha './test/**/*.spec.ts' --exit",
38
38
  "setup": "yarn puppeteer:setup",
39
- "puppeteer:setup": "PUPPETEER_PRODUCT=firefox node --require puppeteer/install.js --eval null",
39
+ "puppeteer:setup": "PUPPETEER_PRODUCT=firefox node --eval 'import(\"puppeteer/install.mjs\").catch(() => import(\"puppeteer/install.js\"))'",
40
40
  "up:framework": "echo \"$(jq '.devDependencies.puppeteer = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
41
41
  },
42
42
  "dependencies": {
43
- "@applitools/driver": "1.15.0",
44
- "@applitools/utils": "1.6.2"
43
+ "@applitools/driver": "1.15.2",
44
+ "@applitools/utils": "1.7.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@applitools/api-extractor": "^1.2.22",
48
48
  "@applitools/test-utils": "^1.5.17",
49
49
  "@types/node": "^12.20.55",
50
- "puppeteer": "^19.11.1"
50
+ "puppeteer": "^21.5.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "puppeteer": ">=5.3.0"