@applitools/driver 1.16.2 → 1.16.6

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,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.16.6](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.16.5...js/driver@1.16.6) (2024-04-15)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.7.1
9
+ #### Bug Fixes
10
+
11
+ * region intersection algorithm ([#2290](https://github.com/Applitools-Dev/sdk/issues/2290)) ([aaa8d0c](https://github.com/Applitools-Dev/sdk/commit/aaa8d0cbcb0e39d23d652c2caf9d27bfaed0d2eb))
12
+ * @applitools/logger bumped to 2.0.15
13
+
14
+
15
+ ## [1.16.5](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.16.4...js/driver@1.16.5) (2024-03-18)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * trigger js release again ([1695f3d](https://github.com/Applitools-Dev/sdk/commit/1695f3d9967c7ab7b5d8c8637e86faa935a9047f))
21
+
22
+ ## [1.16.4](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.16.3...js/driver@1.16.4) (2024-03-18)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * trigger js release ([dbc9bf8](https://github.com/Applitools-Dev/sdk/commit/dbc9bf8da3ab5d93e570881ba2c61efa47a1b342))
28
+
29
+ ## [1.16.3](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.16.2...js/driver@1.16.3) (2024-03-17)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * skip execution of getCurrentWorld and getWorlds when env var is set ([#2234](https://github.com/Applitools-Dev/sdk/issues/2234)) ([3a88602](https://github.com/Applitools-Dev/sdk/commit/3a886028b0437b73dae0474408d9bb74ba940dec))
35
+ * trigger build ([acb9c88](https://github.com/Applitools-Dev/sdk/commit/acb9c88161cf55e8b1e409425b5571d69a2e1d5c))
36
+
3
37
  ## [1.16.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/driver@1.16.1...js/driver@1.16.2) (2024-01-30)
4
38
 
5
39
 
package/dist/driver.js CHANGED
@@ -195,11 +195,10 @@ class Driver {
195
195
  return this._driverInfo;
196
196
  }
197
197
  async getCapabilities({ force } = {}) {
198
- var _a, _b, _c, _d, _e, _f, _g;
198
+ var _a, _b, _c, _d, _e;
199
199
  if (((_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.capabilities) === undefined || force) {
200
200
  (_b = this._driverInfo) !== null && _b !== void 0 ? _b : (this._driverInfo = {});
201
- await ((_d = (_c = this._spec).getCapabilities) === null || _d === void 0 ? void 0 : _d.call(_c, this.target));
202
- this._driverInfo.capabilities = (_g = (await ((_f = (_e = this._spec).getCapabilities) === null || _f === void 0 ? void 0 : _f.call(_e, this.target)))) !== null && _g !== void 0 ? _g : null;
201
+ this._driverInfo.capabilities = (_e = (await ((_d = (_c = this._spec).getCapabilities) === null || _d === void 0 ? void 0 : _d.call(_c, this.target)))) !== null && _e !== void 0 ? _e : null;
203
202
  this._logger.log('Extracted driver capabilities', this._driverInfo.capabilities);
204
203
  }
205
204
  return this._driverInfo.capabilities;
@@ -494,7 +493,7 @@ class Driver {
494
493
  }
495
494
  }
496
495
  async getWorlds() {
497
- if (!this._spec.getWorlds)
496
+ if (!this._spec.getWorlds || utils.general.getEnvValue('SKIP_DEPRECATED_JWP_COMMANDS', 'boolean'))
498
497
  return null;
499
498
  this._logger.log('Extracting worlds');
500
499
  try {
@@ -513,7 +512,7 @@ class Driver {
513
512
  }
514
513
  }
515
514
  async getCurrentWorld() {
516
- if (!this._spec.getCurrentWorld)
515
+ if (!this._spec.getCurrentWorld || utils.general.getEnvValue('SKIP_DEPRECATED_JWP_COMMANDS', 'boolean'))
517
516
  return null;
518
517
  try {
519
518
  this._logger.log('Extracting current world');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.16.2",
3
+ "version": "1.16.6",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",
@@ -73,9 +73,9 @@
73
73
  "test": "run --top-level mocha './test/**/*.spec.ts'"
74
74
  },
75
75
  "dependencies": {
76
- "@applitools/logger": "2.0.14",
76
+ "@applitools/logger": "2.0.15",
77
77
  "@applitools/snippets": "2.4.25",
78
- "@applitools/utils": "1.7.0",
78
+ "@applitools/utils": "1.7.1",
79
79
  "semver": "7.5.4"
80
80
  },
81
81
  "devDependencies": {