@mablhq/mabl-cli 2.8.25 → 2.12.7

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 (37) hide show
  1. package/api/mablApiClient.js +24 -0
  2. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +2 -2
  3. package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +0 -3
  4. package/commands/environments/environments_cmds/create.js +3 -2
  5. package/commands/environments/environments_cmds/update.js +1 -1
  6. package/commands/tests/testsUtil.js +2 -0
  7. package/core/execution/newman-types.js +2 -1
  8. package/execution/index.js +9 -9
  9. package/execution/index.js.LICENSE.txt +60 -0
  10. package/execution/runAppiumServer.js +16 -4
  11. package/index.d.ts +2 -0
  12. package/mablApi/index.js +1 -1
  13. package/mablscript/importer.js +6 -0
  14. package/mablscript/mobile/steps/EnterTextStep.js +3 -0
  15. package/mablscript/mobile/steps/InstallAppStep.js +22 -0
  16. package/mablscript/mobile/steps/PrepareSessionStep.js +19 -0
  17. package/mablscript/mobile/steps/ScrollStep.js +52 -8
  18. package/mablscript/mobile/steps/UninstallAppStep.js +22 -0
  19. package/mablscript/mobile/steps/stepUtil.js +51 -12
  20. package/mablscript/mobile/tests/TestMobileFindDescriptors.js +72 -1
  21. package/mablscript/mobile/tests/steps/GeneralHumanization.mobiletest.js +144 -7
  22. package/mablscript/mobile/tests/steps/InstallAppStep.mobiletest.js +20 -0
  23. package/mablscript/mobile/tests/steps/ScrollStep.mobiletest.js +289 -78
  24. package/mablscript/mobile/tests/steps/UninstallAppStep.mobiletest.js +20 -0
  25. package/mablscript/steps/AwaitTabStep.js +36 -8
  26. package/mablscript/types/mobile/InstallAppStepDescriptor.js +2 -0
  27. package/mablscript/types/mobile/PrepareSessionStepDescriptor.js +2 -0
  28. package/mablscript/types/mobile/ScrollStepDescriptor.js +14 -0
  29. package/mablscript/types/mobile/UninstallAppStepDescriptor.js +2 -0
  30. package/mablscriptFind/index.js +1 -1
  31. package/package.json +2 -6
  32. package/resources/mablFind.js +1 -1
  33. package/resources/pdf-viewer/embeddedPdfDetection.js +22 -6
  34. package/socketTunnel/index.js +2 -0
  35. package/socketTunnel/index.js.LICENSE.txt +66 -0
  36. package/upload/index.js +1 -1
  37. package/util/downloadUtil.js +1 -1
@@ -1,3 +1,9 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
1
7
  /*!
2
8
  * Copyright (c) 2015, Salesforce.com, Inc.
3
9
  * All rights reserved.
@@ -75,6 +81,17 @@
75
81
  * MIT Licensed
76
82
  */
77
83
 
84
+ /*!
85
+ * accepts
86
+ * Copyright(c) 2014 Jonathan Ong
87
+ * Copyright(c) 2015 Douglas Christopher Wilson
88
+ * MIT Licensed
89
+ */
90
+
91
+ /*!
92
+ * base64id v0.1.0
93
+ */
94
+
78
95
  /*!
79
96
  * bytes
80
97
  * Copyright(c) 2012-2014 TJ Holowaychuk
@@ -88,12 +105,26 @@
88
105
  * MIT Licensed
89
106
  */
90
107
 
108
+ /*!
109
+ * cookie
110
+ * Copyright(c) 2012-2014 Roman Shtylman
111
+ * Copyright(c) 2015 Douglas Christopher Wilson
112
+ * MIT Licensed
113
+ */
114
+
91
115
  /*!
92
116
  * encodeurl
93
117
  * Copyright(c) 2016 Douglas Christopher Wilson
94
118
  * MIT Licensed
95
119
  */
96
120
 
121
+ /*!
122
+ * mime-db
123
+ * Copyright(c) 2014 Jonathan Ong
124
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
125
+ * MIT Licensed
126
+ */
127
+
97
128
  /*!
98
129
  * mime-db
99
130
  * Copyright(c) 2014 Jonathan Ong
@@ -107,6 +138,14 @@
107
138
  * MIT Licensed
108
139
  */
109
140
 
141
+ /*!
142
+ * negotiator
143
+ * Copyright(c) 2012 Federico Romero
144
+ * Copyright(c) 2012-2014 Isaac Z. Schlueter
145
+ * Copyright(c) 2015 Douglas Christopher Wilson
146
+ * MIT Licensed
147
+ */
148
+
110
149
  /*!
111
150
  * range-parser
112
151
  * Copyright(c) 2012-2014 TJ Holowaychuk
@@ -114,6 +153,12 @@
114
153
  * MIT Licensed
115
154
  */
116
155
 
156
+ /*!
157
+ * vary
158
+ * Copyright(c) 2014-2017 Douglas Christopher Wilson
159
+ * MIT Licensed
160
+ */
161
+
117
162
  /*! *****************************************************************************
118
163
  Copyright (c) Microsoft Corporation.
119
164
 
@@ -141,6 +186,8 @@ PERFORMANCE OF THIS SOFTWARE.
141
186
  * code.
142
187
  */
143
188
 
189
+ /*! https://mths.be/utf8js v2.1.2 by @mathias */
190
+
144
191
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
145
192
 
146
193
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -187,6 +234,19 @@ PERFORMANCE OF THIS SOFTWARE.
187
234
  * Dual licensed under the MIT or GPL Version 2 licenses.
188
235
  **/
189
236
 
237
+ /**
238
+ * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
239
+ *
240
+ * This can be used with JS designed for browsers to improve reuse of code and
241
+ * allow the use of existing libraries.
242
+ *
243
+ * Usage: include("XMLHttpRequest.js") and use XMLHttpRequest per W3C specs.
244
+ *
245
+ * @author Dan DeFelippi <dan@driverdan.com>
246
+ * @contributor David Ellis <d.f.ellis@ieee.org>
247
+ * @license MIT
248
+ */
249
+
190
250
  /** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
191
251
 
192
252
  //! moment.js
@@ -38,7 +38,7 @@ appium
38
38
  .main({...appiumConfig, logHandler: logHandlerFunc})
39
39
  .then((serverInstance) => {
40
40
  server = serverInstance;
41
- process.send({type: APPIUM_SERVER_READY});
41
+ sendMessageToParentProcess({type: APPIUM_SERVER_READY});
42
42
  lastKnownCheckInTime = Date.now();
43
43
  intervalCheckIn = global.setInterval(
44
44
  checkInOnParent,
@@ -68,7 +68,7 @@ process.on('message', (message) => {
68
68
 
69
69
 
70
70
  function logHandlerFunc(logLevel, log) {
71
- process.send({
71
+ sendMessageToParentProcess({
72
72
  type: APPIUM_SERVER_LOG,
73
73
  payload: {
74
74
  logLevel,
@@ -92,7 +92,7 @@ process.exit = (code) => {
92
92
  }
93
93
  if (code && code > 0) {
94
94
  const stack = new Error().stack;
95
- process.send({
95
+ sendMessageToParentProcess({
96
96
  type: APPIUM_SERVER_LOG,
97
97
  payload: {
98
98
  logLevel: 'error',
@@ -114,7 +114,7 @@ process.on('disconnect', () => {
114
114
 
115
115
  function checkInOnParent() {
116
116
  try {
117
- process.send({type: APPIUM_SERVER_CHECK_IN});
117
+ sendMessageToParentProcess({type: APPIUM_SERVER_CHECK_IN});
118
118
  const currentTime = Date.now();
119
119
  const timeSinceLastCheckIn = currentTime - lastKnownCheckInTime;
120
120
  if (timeSinceLastCheckIn > CHECK_IN_FAIL_LIMIT_MILLIS) {
@@ -131,3 +131,15 @@ function checkInOnParent() {
131
131
  }
132
132
  return;
133
133
  }
134
+
135
+
136
+ function sendMessageToParentProcess(message) {
137
+ if (appiumConfig.runningAsUtilityProcess) {
138
+
139
+
140
+ process.parentPort.postMessage(message);
141
+ } else {
142
+ process.send(message);
143
+ }
144
+ return;
145
+ }
package/index.d.ts CHANGED
@@ -126,7 +126,9 @@ export declare function editTest(
126
126
  ): Promise<void>;
127
127
 
128
128
  export interface MobileConfig {
129
+ appiumAddress?: string;
129
130
  appiumHome?: string;
131
+ appiumPort?: string;
130
132
  avdName?: string;
131
133
  isRealDevice?: boolean;
132
134
  mobileAppFileId?: string;