@applitools/driver 1.10.1 → 1.10.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.
Files changed (2) hide show
  1. package/dist/driver.js +5 -3
  2. package/package.json +1 -1
package/dist/driver.js CHANGED
@@ -120,8 +120,8 @@ class Driver {
120
120
  return (_b = (!this.isWebView && ((_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.isNative))) !== null && _b !== void 0 ? _b : false;
121
121
  }
122
122
  get isWebView() {
123
- var _a, _b;
124
- return (_b = (_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.isWebView) !== null && _b !== void 0 ? _b : false;
123
+ var _a, _b, _c;
124
+ return (_c = (((_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.isNative) && ((_b = this._driverInfo) === null || _b === void 0 ? void 0 : _b.isWebView))) !== null && _c !== void 0 ? _c : false;
125
125
  }
126
126
  get isWeb() {
127
127
  return this.isWebView || !this.isNative;
@@ -347,13 +347,15 @@ class Driver {
347
347
  return;
348
348
  const [origin, next] = await this.getWorlds();
349
349
  const currentWorld = await ((_b = (_a = this._spec).getCurrentWorld) === null || _b === void 0 ? void 0 : _b.call(_a, this.target));
350
- return {
350
+ const result = {
351
351
  id: currentWorld,
352
352
  home: origin,
353
353
  next,
354
354
  isNative: currentWorld === origin,
355
355
  isWebView: currentWorld !== origin,
356
356
  };
357
+ this._logger.log('current world', result);
358
+ return result;
357
359
  }
358
360
  // end world
359
361
  async refreshContexts() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.10.1",
3
+ "version": "1.10.3",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",