@appium/base-driver 10.2.0 → 10.2.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/LICENSE +201 -0
- package/build/lib/basedriver/capabilities.js +7 -7
- package/build/lib/basedriver/capabilities.js.map +1 -1
- package/build/lib/basedriver/commands/event.d.ts +1 -1
- package/build/lib/basedriver/commands/event.d.ts.map +1 -1
- package/build/lib/basedriver/commands/execute.d.ts +1 -1
- package/build/lib/basedriver/commands/execute.d.ts.map +1 -1
- package/build/lib/basedriver/commands/find.d.ts +1 -1
- package/build/lib/basedriver/commands/find.d.ts.map +1 -1
- package/build/lib/basedriver/commands/mixin.d.ts +1 -1
- package/build/lib/basedriver/commands/mixin.d.ts.map +1 -1
- package/build/lib/basedriver/commands/timeout.d.ts +1 -1
- package/build/lib/basedriver/commands/timeout.d.ts.map +1 -1
- package/build/lib/basedriver/device-settings.d.ts +14 -23
- package/build/lib/basedriver/device-settings.d.ts.map +1 -1
- package/build/lib/basedriver/device-settings.js +11 -26
- package/build/lib/basedriver/device-settings.js.map +1 -1
- package/build/lib/basedriver/helpers.d.ts +36 -57
- package/build/lib/basedriver/helpers.d.ts.map +1 -1
- package/build/lib/basedriver/helpers.js +148 -239
- package/build/lib/basedriver/helpers.js.map +1 -1
- package/build/lib/basedriver/logger.d.ts +1 -2
- package/build/lib/basedriver/logger.d.ts.map +1 -1
- package/build/lib/basedriver/logger.js +2 -2
- package/build/lib/basedriver/logger.js.map +1 -1
- package/build/lib/basedriver/validation.d.ts.map +1 -1
- package/build/lib/basedriver/validation.js +3 -3
- package/build/lib/basedriver/validation.js.map +1 -1
- package/build/lib/constants.d.ts +1 -1
- package/build/lib/constants.d.ts.map +1 -1
- package/build/lib/express/crash.d.ts +8 -2
- package/build/lib/express/crash.d.ts.map +1 -1
- package/build/lib/express/crash.js +6 -0
- package/build/lib/express/crash.js.map +1 -1
- package/build/lib/express/express-logging.d.ts +12 -2
- package/build/lib/express/express-logging.d.ts.map +1 -1
- package/build/lib/express/express-logging.js +34 -26
- package/build/lib/express/express-logging.js.map +1 -1
- package/build/lib/express/idempotency.d.ts +4 -10
- package/build/lib/express/idempotency.d.ts.map +1 -1
- package/build/lib/express/idempotency.js +69 -73
- package/build/lib/express/idempotency.js.map +1 -1
- package/build/lib/express/logger.d.ts +1 -2
- package/build/lib/express/logger.d.ts.map +1 -1
- package/build/lib/express/logger.js +2 -2
- package/build/lib/express/logger.js.map +1 -1
- package/build/lib/express/middleware.d.ts +37 -41
- package/build/lib/express/middleware.d.ts.map +1 -1
- package/build/lib/express/middleware.js +48 -60
- package/build/lib/express/middleware.js.map +1 -1
- package/build/lib/express/server.d.ts +57 -101
- package/build/lib/express/server.d.ts.map +1 -1
- package/build/lib/express/server.js +51 -128
- package/build/lib/express/server.js.map +1 -1
- package/build/lib/express/static.d.ts +10 -5
- package/build/lib/express/static.d.ts.map +1 -1
- package/build/lib/express/static.js +32 -42
- package/build/lib/express/static.js.map +1 -1
- package/build/lib/express/websocket.d.ts +22 -6
- package/build/lib/express/websocket.d.ts.map +1 -1
- package/build/lib/express/websocket.js +10 -15
- package/build/lib/express/websocket.js.map +1 -1
- package/build/lib/helpers/capabilities.d.ts +4 -16
- package/build/lib/helpers/capabilities.d.ts.map +1 -1
- package/build/lib/helpers/capabilities.js +36 -48
- package/build/lib/helpers/capabilities.js.map +1 -1
- package/build/lib/jsonwp-status/status.d.ts +113 -158
- package/build/lib/jsonwp-status/status.d.ts.map +1 -1
- package/build/lib/jsonwp-status/status.js +10 -14
- package/build/lib/jsonwp-status/status.js.map +1 -1
- package/build/lib/protocol/bidi-commands.d.ts +31 -36
- package/build/lib/protocol/bidi-commands.d.ts.map +1 -1
- package/build/lib/protocol/bidi-commands.js +5 -5
- package/build/lib/protocol/bidi-commands.js.map +1 -1
- package/build/lib/protocol/errors.d.ts.map +1 -1
- package/build/lib/protocol/helpers.d.ts +7 -11
- package/build/lib/protocol/helpers.d.ts.map +1 -1
- package/build/lib/protocol/helpers.js +5 -9
- package/build/lib/protocol/helpers.js.map +1 -1
- package/build/lib/protocol/index.d.ts +4 -21
- package/build/lib/protocol/index.d.ts.map +1 -1
- package/build/lib/protocol/index.js.map +1 -1
- package/build/lib/protocol/protocol.d.ts +15 -1
- package/build/lib/protocol/protocol.d.ts.map +1 -1
- package/build/lib/protocol/protocol.js +50 -20
- package/build/lib/protocol/protocol.js.map +1 -1
- package/build/lib/protocol/routes.d.ts +8 -15
- package/build/lib/protocol/routes.d.ts.map +1 -1
- package/build/lib/protocol/routes.js +18 -33
- package/build/lib/protocol/routes.js.map +1 -1
- package/lib/basedriver/capabilities.ts +1 -1
- package/lib/basedriver/commands/event.ts +2 -2
- package/lib/basedriver/commands/execute.ts +2 -2
- package/lib/basedriver/commands/find.ts +2 -2
- package/lib/basedriver/commands/mixin.ts +1 -1
- package/lib/basedriver/commands/timeout.ts +2 -2
- package/lib/basedriver/{device-settings.js → device-settings.ts} +24 -35
- package/lib/basedriver/{helpers.js → helpers.ts} +208 -266
- package/lib/basedriver/logger.ts +3 -0
- package/lib/basedriver/validation.ts +2 -2
- package/lib/constants.ts +1 -1
- package/lib/express/crash.ts +15 -0
- package/lib/express/express-logging.ts +84 -0
- package/lib/express/{idempotency.js → idempotency.ts} +105 -89
- package/lib/express/logger.ts +3 -0
- package/lib/express/middleware.ts +187 -0
- package/lib/express/{server.js → server.ts} +175 -167
- package/lib/express/static.ts +77 -0
- package/lib/express/websocket.ts +81 -0
- package/lib/helpers/capabilities.ts +83 -0
- package/lib/jsonwp-status/{status.js → status.ts} +12 -15
- package/lib/protocol/{bidi-commands.js → bidi-commands.ts} +7 -5
- package/lib/protocol/errors.ts +1 -1
- package/lib/protocol/{helpers.js → helpers.ts} +8 -11
- package/lib/protocol/protocol.ts +57 -26
- package/lib/protocol/{routes.js → routes.ts} +29 -40
- package/package.json +11 -11
- package/tsconfig.json +3 -1
- package/lib/basedriver/logger.js +0 -4
- package/lib/express/crash.js +0 -11
- package/lib/express/express-logging.js +0 -60
- package/lib/express/logger.js +0 -4
- package/lib/express/middleware.js +0 -171
- package/lib/express/static.js +0 -76
- package/lib/express/websocket.js +0 -79
- package/lib/helpers/capabilities.js +0 -93
- /package/lib/protocol/{index.js → index.ts} +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -16,7 +16,7 @@ exports.promoteAppiumOptions = promoteAppiumOptions;
|
|
|
16
16
|
const lodash_1 = __importDefault(require("lodash"));
|
|
17
17
|
const validation_1 = require("./validation");
|
|
18
18
|
const support_1 = require("@appium/support");
|
|
19
|
-
const logger_1 =
|
|
19
|
+
const logger_1 = require("./logger");
|
|
20
20
|
const errors_1 = require("../protocol/errors");
|
|
21
21
|
exports.APPIUM_VENDOR_PREFIX = 'appium:';
|
|
22
22
|
exports.PREFIXED_APPIUM_OPTS_CAP = `${exports.APPIUM_VENDOR_PREFIX}options`;
|
|
@@ -114,7 +114,7 @@ function stripAppiumPrefixes(caps) {
|
|
|
114
114
|
strippedCaps[strippedCapName] = caps[prefixedCap];
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
|
-
logger_1.
|
|
117
|
+
logger_1.log.warn(`Ignoring capability '${prefixedCap}=${caps[prefixedCap]}' and ` +
|
|
118
118
|
`using capability '${strippedCapName}=${strippedCaps[strippedCapName]}'`);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -124,7 +124,7 @@ function stripAppiumPrefixes(caps) {
|
|
|
124
124
|
}
|
|
125
125
|
// If we found standard caps that were incorrectly prefixed, throw an exception (e.g.: don't accept 'appium:platformName', only accept just 'platformName')
|
|
126
126
|
if (badPrefixedCaps.length > 0) {
|
|
127
|
-
logger_1.
|
|
127
|
+
logger_1.log.warn(`The capabilities ${JSON.stringify(badPrefixedCaps)} are standard capabilities and do not require "appium:" prefix`);
|
|
128
128
|
}
|
|
129
129
|
return strippedCaps;
|
|
130
130
|
}
|
|
@@ -161,7 +161,7 @@ function parseCaps(caps, constraints = {}, shouldValidateCaps = true) {
|
|
|
161
161
|
// If an empty array as provided, we'll be forgiving and make it an array of one empty object
|
|
162
162
|
// In the future, reject 'firstMatch' argument if its array did not have one or more entries (#3.2)
|
|
163
163
|
if (allFirstMatchCaps.length === 0) {
|
|
164
|
-
logger_1.
|
|
164
|
+
logger_1.log.warn(`The firstMatch array in the given capabilities has no entries. Adding an empty entry for now, ` +
|
|
165
165
|
`but it will require one or more entries as W3C spec.`);
|
|
166
166
|
allFirstMatchCaps.push({});
|
|
167
167
|
}
|
|
@@ -208,7 +208,7 @@ function parseCaps(caps, constraints = {}, shouldValidateCaps = true) {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
catch (err) {
|
|
211
|
-
logger_1.
|
|
211
|
+
logger_1.log.warn(err.message);
|
|
212
212
|
validationErrors.push(err.message);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
@@ -254,7 +254,7 @@ function promoteAppiumOptionsForObject(obj) {
|
|
|
254
254
|
if (lodash_1.default.isEmpty(appiumOptions)) {
|
|
255
255
|
return obj;
|
|
256
256
|
}
|
|
257
|
-
logger_1.
|
|
257
|
+
logger_1.log.debug(`Found ${exports.PREFIXED_APPIUM_OPTS_CAP} capability present; will promote items inside to caps`);
|
|
258
258
|
/**
|
|
259
259
|
* @param {string} capName
|
|
260
260
|
*/
|
|
@@ -275,7 +275,7 @@ function promoteAppiumOptionsForObject(obj) {
|
|
|
275
275
|
// warn if we are going to overwrite any keys on the base caps object
|
|
276
276
|
const overwrittenKeys = lodash_1.default.intersection(Object.keys(obj), Object.keys(preprocessedOptions));
|
|
277
277
|
if (overwrittenKeys.length > 0) {
|
|
278
|
-
logger_1.
|
|
278
|
+
logger_1.log.warn(`Found capabilities inside ${exports.PREFIXED_APPIUM_OPTS_CAP} that will overwrite ` +
|
|
279
279
|
`capabilities at the top level: ${JSON.stringify(overwrittenKeys)}`);
|
|
280
280
|
}
|
|
281
281
|
return lodash_1.default.cloneDeep({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../lib/basedriver/capabilities.ts"],"names":[],"mappings":";;;;;;AAqCA,8BA0BC;AAKD,oCA0CC;AA2BD,sCAEC;AAOD,kDAwCC;AAKD,kDAgBC;AAMD,8BAkGC;AAKD,kDA0BC;AAMD,sEAoDC;AAMD,oDAcC;AAzZD,oDAAuB;AACvB,6CAAuC;AACvC,6CAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../lib/basedriver/capabilities.ts"],"names":[],"mappings":";;;;;;AAqCA,8BA0BC;AAKD,oCA0CC;AA2BD,sCAEC;AAOD,kDAwCC;AAKD,kDAgBC;AAMD,8BAkGC;AAKD,kDA0BC;AAMD,sEAoDC;AAMD,oDAcC;AAzZD,oDAAuB;AACvB,6CAAuC;AACvC,6CAAqC;AACrC,qCAA6B;AAC7B,+CAA0C;AAE7B,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,wBAAwB,GAAG,GAAG,4BAAoB,SAAS,CAAC;AAczE;;;;GAIG;AACH,SAAgB,SAAS,CAMvB,UAA+B,EAAa,EAC5C,YAAmC,EAAe;IAElD,MAAM,MAAM,GAAG,CAAC;QACd,GAAG,OAAO;KACX,CAAuC,CAAC;IAEzC,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;QACtD,kGAAkG;QAClG,IAAI,CAAC,gBAAC,CAAC,WAAW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,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAK/D,OAAO,QAAQ,WAAW,CAAC;IAEzB,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,cAAc;KAAG;CACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/execute.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/execute.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EAIX,gBAAgB,EAEjB,MAAM,eAAe,CAAC;AAKvB,OAAO,QAAQ,WAAW,CAAC;IAEzB,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,gBAAgB;KAAG;CACxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/find.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/find.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;AAKvE,OAAO,QAAQ,WAAW,CAAC;IAEzB,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,aAAa;KAAG;CACrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixin.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mixin.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAE7F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/timeout.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/timeout.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAGjE,OAAO,QAAQ,WAAW,CAAC;IAEzB,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,gBAAgB;KAAG;CACxE"}
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
+
import type { StringRecord, IDeviceSettings, SettingsUpdateListener } from '@appium/types';
|
|
1
2
|
/**
|
|
2
|
-
* Maximum size (in bytes) of a given driver's settings object (which is internal to {@linkcode
|
|
3
|
+
* Maximum size (in bytes) of a given driver's settings object (which is internal to {@linkcode DeviceSettings}).
|
|
3
4
|
*/
|
|
4
|
-
export const MAX_SETTINGS_SIZE: number;
|
|
5
|
+
export declare const MAX_SETTINGS_SIZE: number;
|
|
5
6
|
/**
|
|
6
|
-
* @template
|
|
7
|
-
* @implements {IDeviceSettings<T>}
|
|
7
|
+
* @template T - Settings object shape (string-keyed record)
|
|
8
8
|
*/
|
|
9
|
-
export class DeviceSettings<T extends StringRecord> implements IDeviceSettings<T> {
|
|
10
|
-
/**
|
|
11
|
-
* Creates a _shallow copy_ of the `defaultSettings` parameter!
|
|
12
|
-
* @param {T} [defaultSettings]
|
|
13
|
-
* @param {import('@appium/types').SettingsUpdateListener<T>} [onSettingsUpdate]
|
|
14
|
-
*/
|
|
15
|
-
constructor(defaultSettings?: T, onSettingsUpdate?: import("@appium/types").SettingsUpdateListener<T>);
|
|
16
|
-
/**
|
|
17
|
-
* @protected
|
|
18
|
-
* @type {T}
|
|
19
|
-
*/
|
|
9
|
+
export declare class DeviceSettings<T extends StringRecord = StringRecord> implements IDeviceSettings<T> {
|
|
20
10
|
protected _settings: T;
|
|
11
|
+
protected _onSettingsUpdate: SettingsUpdateListener<T>;
|
|
21
12
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
13
|
+
* Creates a _shallow copy_ of the `defaultSettings` parameter!
|
|
14
|
+
*
|
|
15
|
+
* @param defaultSettings - Initial settings (shallow-copied).
|
|
16
|
+
* @param onSettingsUpdate - Called when a setting is changed; receives (prop, newValue, curValue).
|
|
24
17
|
*/
|
|
25
|
-
|
|
18
|
+
constructor(defaultSettings?: T, onSettingsUpdate?: SettingsUpdateListener<T>);
|
|
26
19
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
20
|
+
* Calls updateSettings from implementing driver every time a setting is changed.
|
|
21
|
+
*
|
|
22
|
+
* @param newSettings - New settings to merge (must be plain object; total size remains bounded).
|
|
29
23
|
*/
|
|
30
24
|
update(newSettings: T): Promise<void>;
|
|
31
25
|
getSettings(): T;
|
|
32
26
|
}
|
|
33
|
-
export default DeviceSettings;
|
|
34
|
-
export type StringRecord = import("@appium/types").StringRecord;
|
|
35
|
-
export type IDeviceSettings<T extends StringRecord = StringRecord> = import("@appium/types").IDeviceSettings<T>;
|
|
36
27
|
//# sourceMappingURL=device-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-settings.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.
|
|
1
|
+
{"version":3,"file":"device-settings.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAmB,CAAC;AAElD;;GAEG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAAE,YAAW,eAAe,CAAC,CAAC,CAAC;IAC9F,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC;IACvB,SAAS,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAEvD;;;;;OAKG;gBAED,eAAe,GAAE,CAAW,EAC5B,gBAAgB,GAAE,sBAAsB,CAAC,CAAC,CAAkB;IAM9D;;;;OAIG;IACG,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA+B3C,WAAW,IAAI,CAAC;CAGjB"}
|
|
@@ -5,40 +5,33 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DeviceSettings = exports.MAX_SETTINGS_SIZE = void 0;
|
|
7
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
-
const logger_1 =
|
|
8
|
+
const logger_1 = require("./logger");
|
|
9
9
|
const support_1 = require("@appium/support");
|
|
10
10
|
const errors_1 = require("../protocol/errors");
|
|
11
11
|
/**
|
|
12
|
-
* Maximum size (in bytes) of a given driver's settings object (which is internal to {@linkcode
|
|
12
|
+
* Maximum size (in bytes) of a given driver's settings object (which is internal to {@linkcode DeviceSettings}).
|
|
13
13
|
*/
|
|
14
14
|
exports.MAX_SETTINGS_SIZE = 20 * 1024 * 1024; // 20 MB
|
|
15
15
|
/**
|
|
16
|
-
* @template
|
|
17
|
-
* @implements {IDeviceSettings<T>}
|
|
16
|
+
* @template T - Settings object shape (string-keyed record)
|
|
18
17
|
*/
|
|
19
18
|
class DeviceSettings {
|
|
20
|
-
/**
|
|
21
|
-
* @protected
|
|
22
|
-
* @type {T}
|
|
23
|
-
*/
|
|
24
19
|
_settings;
|
|
25
|
-
/**
|
|
26
|
-
* @protected
|
|
27
|
-
* @type {import('@appium/types').SettingsUpdateListener<T>}
|
|
28
|
-
*/
|
|
29
20
|
_onSettingsUpdate;
|
|
30
21
|
/**
|
|
31
22
|
* Creates a _shallow copy_ of the `defaultSettings` parameter!
|
|
32
|
-
*
|
|
33
|
-
* @param
|
|
23
|
+
*
|
|
24
|
+
* @param defaultSettings - Initial settings (shallow-copied).
|
|
25
|
+
* @param onSettingsUpdate - Called when a setting is changed; receives (prop, newValue, curValue).
|
|
34
26
|
*/
|
|
35
|
-
constructor(defaultSettings =
|
|
27
|
+
constructor(defaultSettings = {}, onSettingsUpdate = async () => { }) {
|
|
36
28
|
this._settings = { ...defaultSettings };
|
|
37
29
|
this._onSettingsUpdate = onSettingsUpdate;
|
|
38
30
|
}
|
|
39
31
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
32
|
+
* Calls updateSettings from implementing driver every time a setting is changed.
|
|
33
|
+
*
|
|
34
|
+
* @param newSettings - New settings to merge (must be plain object; total size remains bounded).
|
|
42
35
|
*/
|
|
43
36
|
async update(newSettings) {
|
|
44
37
|
if (!lodash_1.default.isPlainObject(newSettings)) {
|
|
@@ -52,7 +45,7 @@ class DeviceSettings {
|
|
|
52
45
|
for (const prop in newSettings) {
|
|
53
46
|
if (!lodash_1.default.isUndefined(this._settings[prop])) {
|
|
54
47
|
if (this._settings[prop] === newSettings[prop]) {
|
|
55
|
-
logger_1.
|
|
48
|
+
logger_1.log.debug(`The value of '${prop}' setting did not change. Skipping the update for it`);
|
|
56
49
|
continue;
|
|
57
50
|
}
|
|
58
51
|
}
|
|
@@ -65,12 +58,4 @@ class DeviceSettings {
|
|
|
65
58
|
}
|
|
66
59
|
}
|
|
67
60
|
exports.DeviceSettings = DeviceSettings;
|
|
68
|
-
exports.default = DeviceSettings;
|
|
69
|
-
/**
|
|
70
|
-
* @typedef {import('@appium/types').StringRecord} StringRecord
|
|
71
|
-
*/
|
|
72
|
-
/**
|
|
73
|
-
* @template {StringRecord} [T=StringRecord]
|
|
74
|
-
* @typedef {import('@appium/types').IDeviceSettings<T>} IDeviceSettings
|
|
75
|
-
*/
|
|
76
61
|
//# sourceMappingURL=device-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-settings.js","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.
|
|
1
|
+
{"version":3,"file":"device-settings.js","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,qCAA6B;AAC7B,6CAA2C;AAC3C,+CAA0C;AAG1C;;GAEG;AACU,QAAA,iBAAiB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,QAAQ;AAE3D;;GAEG;AACH,MAAa,cAAc;IACf,SAAS,CAAI;IACb,iBAAiB,CAA4B;IAEvD;;;;;OAKG;IACH,YACE,kBAAqB,EAAO,EAC5B,mBAA8C,KAAK,IAAI,EAAE,GAAE,CAAC;QAE5D,IAAI,CAAC,SAAS,GAAG,EAAC,GAAG,eAAe,EAAC,CAAC;QACtC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED;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
+
export declare const BASEDRIVER_VER: string;
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
+
* Performs initial application package configuration so the app is ready for driver use.
|
|
5
|
+
* Resolves local paths, downloads remote apps (http/https) with optional caching, and
|
|
6
|
+
* runs optional post-process or custom download hooks.
|
|
4
7
|
*
|
|
5
|
-
* -
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
11
|
-
* @param {string|string[]|import('@appium/types').ConfigureAppOptions} options
|
|
12
|
-
* @returns {Promise<string>}
|
|
8
|
+
* @param app - Path to a local app or URL of a downloadable app (http/https).
|
|
9
|
+
* @param options - Supported extensions and optional hooks. Either a single extension
|
|
10
|
+
* string, an array of extension strings, or {@link ConfigureAppOptions} (e.g.
|
|
11
|
+
* `supportedExtensions`, `onPostProcess`, `onDownload`).
|
|
12
|
+
* @returns Resolved path to the application (local path or path to downloaded/cached app).
|
|
13
|
+
* @throws {Error} If supported extensions are missing, the app path/URL is invalid, or download fails.
|
|
13
14
|
*/
|
|
14
|
-
export function configureApp(app: string, options?: string | string[] |
|
|
15
|
+
export declare function configureApp(app: string, options?: string | string[] | ConfigureAppOptions): Promise<string>;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
17
|
+
* Returns whether the given string looks like a package or bundle identifier
|
|
18
|
+
* (e.g. `com.example.app` or `org.company.AnotherApp`).
|
|
19
|
+
*
|
|
20
|
+
* @param app - Value to check (e.g. app path or bundle id).
|
|
21
|
+
* @returns `true` if the value matches a dot-separated identifier pattern.
|
|
18
22
|
*/
|
|
19
|
-
export function isPackageOrBundle(app: string): boolean;
|
|
23
|
+
export declare function isPackageOrBundle(app: string): boolean;
|
|
20
24
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
25
|
+
* Recursively ensures both keys exist with the same value in objects and arrays.
|
|
26
|
+
* For each object, if `firstKey` exists its value is also set at `secondKey`, and vice versa.
|
|
23
27
|
*
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
28
|
-
* @param {String} secondKey The second key to duplicate
|
|
28
|
+
* @param input - Object, array, or primitive to process (arrays/objects traversed recursively).
|
|
29
|
+
* @param firstKey - First key name to mirror.
|
|
30
|
+
* @param secondKey - Second key name to mirror.
|
|
31
|
+
* @returns A deep copy of `input` with both keys present where objects had either key.
|
|
29
32
|
*/
|
|
30
|
-
export function duplicateKeys(input:
|
|
33
|
+
export declare function duplicateKeys<T>(input: T, firstKey: string, secondKey: string): T;
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
35
|
+
* Normalizes a capability value to a string array. If already an array, returns it;
|
|
36
|
+
* if a string, parses as JSON array when possible, otherwise returns a single-element array.
|
|
34
37
|
*
|
|
35
|
-
* @param
|
|
36
|
-
* @returns
|
|
38
|
+
* @param capValue - Capability value: string (including JSON array like `"[\"a\",\"b\"]"`) or string[].
|
|
39
|
+
* @returns Array of strings.
|
|
40
|
+
* @throws {TypeError} If value is not a string/array or JSON parsing fails for array-like input.
|
|
37
41
|
*/
|
|
38
|
-
export function parseCapsArray(capValue: string | string[]): string[];
|
|
42
|
+
export declare function parseCapsArray(capValue: string | string[]): string[];
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* Builds a short log prefix for a driver instance (e.g. `UiAutomator2@a1b2`).
|
|
41
45
|
*
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
*
|
|
45
|
-
* @returns {string}
|
|
46
|
+
* @param obj - Driver or other object; its constructor name and a short id are used.
|
|
47
|
+
* @param _sessionId - Deprecated and unused; kept for {@link DriverHelpers} interface compatibility.
|
|
48
|
+
* @returns Prefix string like `DriverName@xxxx`, or `UnknownDriver@????` if `obj` is null.
|
|
46
49
|
*/
|
|
47
|
-
export function generateDriverLogPrefix(obj: object,
|
|
48
|
-
export const BASEDRIVER_VER: string;
|
|
50
|
+
export declare function generateDriverLogPrefix(obj: object | null, _sessionId?: string | null): string;
|
|
49
51
|
declare const _default: {
|
|
50
52
|
configureApp: typeof configureApp;
|
|
51
53
|
isPackageOrBundle: typeof isPackageOrBundle;
|
|
@@ -54,27 +56,4 @@ declare const _default: {
|
|
|
54
56
|
generateDriverLogPrefix: typeof generateDriverLogPrefix;
|
|
55
57
|
};
|
|
56
58
|
export default _default;
|
|
57
|
-
export type RemoteAppProps = {
|
|
58
|
-
lastModified: Date | null;
|
|
59
|
-
immutable: boolean;
|
|
60
|
-
maxAge: number | null;
|
|
61
|
-
etag: string | null;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Properties of the remote application (e.g. GET HTTP response) to be downloaded.
|
|
65
|
-
*/
|
|
66
|
-
export type RemoteAppData = {
|
|
67
|
-
/**
|
|
68
|
-
* The HTTP status of the response
|
|
69
|
-
*/
|
|
70
|
-
status: number;
|
|
71
|
-
/**
|
|
72
|
-
* The HTTP response body represented as readable stream
|
|
73
|
-
*/
|
|
74
|
-
stream: import("stream").Readable;
|
|
75
|
-
/**
|
|
76
|
-
* HTTP response headers
|
|
77
|
-
*/
|
|
78
|
-
headers: import("axios").RawAxiosResponseHeaders | import("axios").AxiosResponseHeaders;
|
|
79
|
-
};
|
|
80
59
|
//# sourceMappingURL=helpers.d.ts.map
|