@mablhq/mabl-cli 2.52.6 → 2.53.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.
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isStepWithFindAction = exports.MablStepWithFindAction = void 0;
4
+ const MablStep_1 = require("./MablStep");
5
+ class MablStepWithFindAction extends MablStep_1.MablStep {
6
+ }
7
+ exports.MablStepWithFindAction = MablStepWithFindAction;
8
+ function isStepWithFindAction(step) {
9
+ return step instanceof MablStepWithFindAction || 'findAction' in step;
10
+ }
11
+ exports.isStepWithFindAction = isStepWithFindAction;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClickAndHoldStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
5
  const domUtil_1 = require("../../domUtil");
7
6
  const ActionsUtils_1 = require("./ActionsUtils");
8
- class ClickAndHoldStep extends MablStep_1.MablStep {
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
+ class ClickAndHoldStep extends MablStepWithFindAction_1.MablStepWithFindAction {
9
9
  constructor(name, args, actions) {
10
10
  var _a;
11
11
  super(name, args, actions, 'click_and_hold');
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClickStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
5
  const domUtil_1 = require("../../domUtil");
7
6
  const ActionsUtils_1 = require("./ActionsUtils");
8
- class ClickStep extends MablStep_1.MablStep {
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
+ class ClickStep extends MablStepWithFindAction_1.MablStepWithFindAction {
9
9
  constructor(name, args, actions) {
10
10
  super(name, args, actions, 'click');
11
11
  this.findAction = ActionsUtils_1.ActionsUtils.validateSingleFindAction(this.actions);
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DoubleClickStep = void 0;
4
- const MablStep_1 = require("../MablStep");
5
4
  const FindAction_1 = require("../actions/FindAction");
6
5
  const domUtil_1 = require("../../domUtil");
7
- class DoubleClickStep extends MablStep_1.MablStep {
6
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
7
+ class DoubleClickStep extends MablStepWithFindAction_1.MablStepWithFindAction {
8
8
  constructor(name, args, actions) {
9
9
  super(name, args, actions, 'double_click');
10
10
  this.validate();
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnterAuthCodeStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
5
  const domUtil_1 = require("../../domUtil");
7
6
  const ActionsUtils_1 = require("./ActionsUtils");
8
- class EnterAuthCodeStep extends MablStep_1.MablStep {
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
+ class EnterAuthCodeStep extends MablStepWithFindAction_1.MablStepWithFindAction {
9
9
  constructor(name, args, actions) {
10
10
  super(name, args, actions, EnterAuthCodeStep.stepName);
11
11
  this.findAction = ActionsUtils_1.ActionsUtils.validateSingleFindAction(this.actions);
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnterTextStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
5
  const MablAction_1 = require("../MablAction");
6
- const MablStep_1 = require("../MablStep");
7
6
  const domUtil_1 = require("../../domUtil");
8
- class EnterTextStep extends MablStep_1.MablStep {
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
+ class EnterTextStep extends MablStepWithFindAction_1.MablStepWithFindAction {
9
9
  constructor(name, args, actions) {
10
10
  super(name, args, actions, 'enter_text');
11
11
  const arg = this.getActionArgs()[0];
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HoverStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
5
  const domUtil_1 = require("../../domUtil");
7
- class HoverStep extends MablStep_1.MablStep {
6
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
7
+ class HoverStep extends MablStepWithFindAction_1.MablStepWithFindAction {
8
8
  constructor(name, args, actions) {
9
9
  super(name, args, actions, 'hover');
10
10
  this.validate();
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenEmailStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
- class OpenEmailStep extends MablStep_1.MablStep {
5
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
6
+ class OpenEmailStep extends MablStepWithFindAction_1.MablStepWithFindAction {
7
7
  constructor(name, args, actions) {
8
8
  super(name, args, actions, OpenEmailStep.stepName);
9
9
  this.tabUuid = this.getActionArgs()[0] || {};
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReleaseStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
5
  const MablAction_1 = require("../MablAction");
7
6
  const domUtil_1 = require("../../domUtil");
8
7
  const ActionsUtils_1 = require("./ActionsUtils");
9
8
  const ReleaseStepDescriptor_1 = require("../types/ReleaseStepDescriptor");
10
- class ReleaseStep extends MablStep_1.MablStep {
9
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
10
+ class ReleaseStep extends MablStepWithFindAction_1.MablStepWithFindAction {
11
11
  constructor(name, args, actions) {
12
12
  var _a;
13
13
  super(name, args, actions, 'release');
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RightClickStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
5
  const domUtil_1 = require("../../domUtil");
7
6
  const ActionsUtils_1 = require("./ActionsUtils");
8
- class RightClickStep extends MablStep_1.MablStep {
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
+ class RightClickStep extends MablStepWithFindAction_1.MablStepWithFindAction {
9
9
  constructor(name, args, actions) {
10
10
  super(name, args, actions, 'right_click');
11
11
  this.findAction = ActionsUtils_1.ActionsUtils.validateSingleFindAction(this.actions);
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SelectStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
5
  const MablAction_1 = require("../MablAction");
6
- const MablStep_1 = require("../MablStep");
7
6
  const domUtil_1 = require("../../domUtil");
8
- class SelectStep extends MablStep_1.MablStep {
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
+ class SelectStep extends MablStepWithFindAction_1.MablStepWithFindAction {
9
9
  constructor(name, args, actions) {
10
10
  super(name, args, actions, 'select');
11
11
  this.selectOptions = this.getActionArgs()[0];
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SendKeyStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
- const MablStep_1 = require("../MablStep");
6
5
  const domUtil_1 = require("../../domUtil");
7
6
  const SendKeyStepDescriptor_1 = require("../types/SendKeyStepDescriptor");
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
8
  const STEP_NAME = 'SendKeys';
9
- class SendKeyStep extends MablStep_1.MablStep {
9
+ class SendKeyStep extends MablStepWithFindAction_1.MablStepWithFindAction {
10
10
  constructor(name, args, actions) {
11
11
  super(name, args, actions, 'send_keys');
12
12
  if (this.actions.length !== 1 && !(this.actions[0] instanceof FindAction_1.FindAction)) {
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SetFilesStep = void 0;
4
4
  const FindAction_1 = require("../actions/FindAction");
5
5
  const MablAction_1 = require("../MablAction");
6
- const MablStep_1 = require("../MablStep");
7
6
  const domUtil_1 = require("../../domUtil");
8
- class SetFilesStep extends MablStep_1.MablStep {
7
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
8
+ class SetFilesStep extends MablStepWithFindAction_1.MablStepWithFindAction {
9
9
  constructor(name, args, actions) {
10
10
  super(name, args, actions, 'set_files');
11
11
  this.files = this.getActionArgs();
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WaitUntilStep = void 0;
4
- const MablStep_1 = require("../MablStep");
5
4
  const domUtil_1 = require("../../domUtil");
6
- class WaitUntilStep extends MablStep_1.MablStep {
5
+ const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
6
+ class WaitUntilStep extends MablStepWithFindAction_1.MablStepWithFindAction {
7
7
  constructor(name, args, actions) {
8
8
  super(name, args, actions, 'wait_until');
9
9
  if ((0, domUtil_1.isFindElementType)(this.actions[0].getActionName())) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/mabl-cli",
3
- "version": "2.52.6",
3
+ "version": "2.53.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The official mabl command line interface tool",
6
6
  "main": "index.js",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/crc32c": "5.1.0",
24
24
  "@google-cloud/storage": "7.9.0",
25
- "@mablhq/newman-reporter-mabl-console": "0.4.0",
25
+ "@mablhq/newman-reporter-mabl-console": "0.4.2",
26
26
  "@plist/common": "1.1.0",
27
27
  "@plist/parse": "1.1.0",
28
28
  "@types/adm-zip": "0.5.5",
@@ -56,7 +56,7 @@
56
56
  "fastest-levenshtein": "1.0.12",
57
57
  "fs-extra": "8.1.0",
58
58
  "git-repo-info": "2.1.1",
59
- "glob": "7.1.6",
59
+ "glob": "11.0.1",
60
60
  "hpagent": "1.2.0",
61
61
  "humanize-duration": "3.23.0",
62
62
  "inquirer": "8.2.5",
@@ -142,7 +142,7 @@ class CliConfigProvider {
142
142
  }
143
143
  static async getProxyType() {
144
144
  const proxyType = await this.getConfigProperty(configKeys_1.configKeys.proxyType);
145
- return (0, configKeys_1.isValidProxyType)(proxyType) ? proxyType : 'legacy';
145
+ return (0, types_2.isValidProxyType)(proxyType) ? proxyType : 'legacy';
146
146
  }
147
147
  static getConfigProperty(key) {
148
148
  return getValue(propertyKeyToStoredKey(key));