@mablhq/mabl-cli 1.53.5 → 1.55.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/README.md CHANGED
@@ -35,7 +35,7 @@ Complete help documentation available at
35
35
 
36
36
  ## Installation
37
37
 
38
- Note: **Node 14+ is required** to run the mabl CLI
38
+ Note: **Node 16+ is required** to run the mabl CLI
39
39
 
40
40
  Stable version:
41
41
 
@@ -350,10 +350,10 @@ mabl config delete http.sslVerify
350
350
 
351
351
  ## Installation Troubleshooting
352
352
 
353
- If you receive the following error message, you need to ensure you have Node 14+
353
+ If you receive the following error message, you need to ensure you have Node 16+
354
354
  installed.
355
355
 
356
356
  ```bash
357
- npm WARN notsup Unsupported engine for @mablhq/mabl-cli@0.1.13: wanted: {"node":">= 14.0.0"} (current: {"node":"8.15.1","npm":"6.13.4"})
358
- npm WARN notsup Not compatible with your version of node/npm: @mablhq/mabl-cli@0.1.13
357
+ npm WARN notsup Unsupported engine for @mablhq/mabl-cli@1.54.0: wanted: {"node":">= 16.0.0"} (current: {"node":"8.15.1","npm":"6.13.4"})
358
+ npm WARN notsup Not compatible with your version of node/npm: @mablhq/mabl-cli@1.54.0
359
359
  ```
@@ -2,8 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChromiumFrameDelegate = void 0;
4
4
  class ChromiumFrameDelegate {
5
- constructor(page) {
6
- this.page = page;
5
+ constructor(frame) {
6
+ this.frame = frame;
7
+ }
8
+ url() {
9
+ return Promise.resolve(this.frame.url());
7
10
  }
8
11
  addBindingToSecondaryWorld(_binding) {
9
12
  return Promise.resolve();
@@ -16,5 +16,12 @@ class FirefoxFrameDelegate extends nonChromiumAbstractFrameDelegate_1.NonChromiu
16
16
  }
17
17
  return;
18
18
  }
19
+ async url() {
20
+ let url = this.frame.url();
21
+ if (url === '') {
22
+ url = await this.frame.evaluate(() => window.location.href);
23
+ }
24
+ return url;
25
+ }
19
26
  }
20
27
  exports.FirefoxFrameDelegate = FirefoxFrameDelegate;
@@ -6,5 +6,8 @@ class NonChromiumAbstractFrameDelegate {
6
6
  this.parentPageDelegate = parentPageDelegate;
7
7
  this.frame = frame;
8
8
  }
9
+ url() {
10
+ return Promise.resolve(this.frame.url());
11
+ }
9
12
  }
10
13
  exports.NonChromiumAbstractFrameDelegate = NonChromiumAbstractFrameDelegate;
@@ -57,9 +57,9 @@ class PlaywrightJsHandle {
57
57
  return this.handle.jsonValue();
58
58
  }
59
59
  isContextDestroyed() {
60
- var _a, _b, _c;
60
+ var _a, _b;
61
61
  const elementImpl = playwright._toImpl(this.handle);
62
- return (_c = (_b = (_a = elementImpl._context) === null || _a === void 0 ? void 0 : _a._destroyedPromise) === null || _b === void 0 ? void 0 : _b._isDone) !== null && _c !== void 0 ? _c : true;
62
+ return !!((_b = (_a = elementImpl._context) === null || _a === void 0 ? void 0 : _a._contextDestroyedRace) === null || _b === void 0 ? void 0 : _b._terminateError);
63
63
  }
64
64
  static unwrapProperties(arg, addSecondaryWorldFlag = false) {
65
65
  if (arg === undefined) {
@@ -165,7 +165,7 @@ class PlaywrightFrame extends browserLauncher_1.Frame {
165
165
  return (0, utils_1.mapIfNotNull)(this.frame.parentFrame(), (frame) => this.parentPage.getOrCreateFrame(frame));
166
166
  }
167
167
  url() {
168
- return this.frame.url();
168
+ return this.delegate.url();
169
169
  }
170
170
  async waitForSelector(selector, options) {
171
171
  return (0, utils_1.mapIfNotNull)(await this.frame.waitForSelector(selector, options), (handle) => new playwrightDom_1.PlaywrightElementHandle(handle, this.parentPage, this.parentPage.delegate.createElementHandleDelegate(handle)));