@applitools/driver 1.16.2 → 1.16.5

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,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.16.5](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.16.4...js/driver@1.16.5) (2024-03-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * trigger js release again ([1695f3d](https://github.com/Applitools-Dev/sdk/commit/1695f3d9967c7ab7b5d8c8637e86faa935a9047f))
9
+
10
+ ## [1.16.4](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.16.3...js/driver@1.16.4) (2024-03-18)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * trigger js release ([dbc9bf8](https://github.com/Applitools-Dev/sdk/commit/dbc9bf8da3ab5d93e570881ba2c61efa47a1b342))
16
+
17
+ ## [1.16.3](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.16.2...js/driver@1.16.3) (2024-03-17)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * 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))
23
+ * trigger build ([acb9c88](https://github.com/Applitools-Dev/sdk/commit/acb9c88161cf55e8b1e409425b5571d69a2e1d5c))
24
+
3
25
  ## [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
26
 
5
27
 
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.5",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",