appium-android-driver 12.6.6 → 12.7.0
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/CHANGELOG.md +12 -0
- package/build/lib/commands/app-management.d.ts +10 -0
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +21 -4
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/bidi/models.d.ts.map +1 -1
- package/build/lib/commands/bidi/models.js.map +1 -1
- package/build/lib/commands/bidi/types.js +0 -1
- package/build/lib/commands/bidi/types.js.map +1 -1
- package/build/lib/commands/bluetooth.d.ts +1 -1
- package/build/lib/commands/bluetooth.d.ts.map +1 -1
- package/build/lib/commands/bluetooth.js.map +1 -1
- package/build/lib/commands/context/exports.d.ts.map +1 -1
- package/build/lib/commands/context/exports.js.map +1 -1
- package/build/lib/commands/context/helpers.d.ts.map +1 -1
- package/build/lib/commands/context/helpers.js +1 -2
- package/build/lib/commands/context/helpers.js.map +1 -1
- package/build/lib/commands/device/common.d.ts.map +1 -1
- package/build/lib/commands/device/common.js +2 -3
- package/build/lib/commands/device/common.js.map +1 -1
- package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-actions.js.map +1 -1
- package/build/lib/commands/device/utils.d.ts.map +1 -1
- package/build/lib/commands/device/utils.js +2 -2
- package/build/lib/commands/device/utils.js.map +1 -1
- package/build/lib/commands/deviceidle.d.ts +1 -1
- package/build/lib/commands/deviceidle.d.ts.map +1 -1
- package/build/lib/commands/deviceidle.js.map +1 -1
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +1 -1
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +1 -2
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/image-injection.d.ts.map +1 -1
- package/build/lib/commands/image-injection.js.map +1 -1
- package/build/lib/commands/ime.d.ts.map +1 -1
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +2 -8
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/legacy.d.ts.map +1 -1
- package/build/lib/commands/legacy.js.map +1 -1
- package/build/lib/commands/lock/exports.d.ts.map +1 -1
- package/build/lib/commands/lock/exports.js.map +1 -1
- package/build/lib/commands/lock/helpers.d.ts.map +1 -1
- package/build/lib/commands/lock/helpers.js.map +1 -1
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +5 -3
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +1 -1
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/nfc.d.ts.map +1 -1
- package/build/lib/commands/nfc.js.map +1 -1
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +4 -4
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +1 -3
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/resources.js +3 -4
- package/build/lib/commands/resources.js.map +1 -1
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +4 -4
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/time.d.ts.map +1 -1
- package/build/lib/commands/time.js.map +1 -1
- package/build/lib/constraints.js +2 -2
- package/build/lib/driver.d.ts +8 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +1 -0
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +6 -0
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +38 -64
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/method-map.js +54 -54
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js.map +1 -1
- package/lib/commands/app-management.ts +54 -30
- package/lib/commands/appearance.ts +1 -4
- package/lib/commands/bidi/models.ts +12 -10
- package/lib/commands/bidi/types.ts +1 -1
- package/lib/commands/bluetooth.ts +3 -7
- package/lib/commands/context/cache.ts +0 -1
- package/lib/commands/context/exports.ts +3 -14
- package/lib/commands/context/helpers.ts +7 -8
- package/lib/commands/device/common.ts +51 -52
- package/lib/commands/device/emulator-actions.ts +15 -34
- package/lib/commands/device/emulator-console.ts +0 -1
- package/lib/commands/device/utils.ts +4 -3
- package/lib/commands/deviceidle.ts +1 -2
- package/lib/commands/element.ts +10 -38
- package/lib/commands/execute.ts +3 -5
- package/lib/commands/file-actions.ts +4 -17
- package/lib/commands/geolocation.ts +21 -39
- package/lib/commands/gestures.ts +1 -5
- package/lib/commands/image-injection.ts +9 -8
- package/lib/commands/ime.ts +5 -17
- package/lib/commands/intent.ts +58 -57
- package/lib/commands/keyboard.ts +6 -21
- package/lib/commands/legacy.ts +4 -11
- package/lib/commands/lock/exports.ts +4 -2
- package/lib/commands/lock/helpers.ts +4 -1
- package/lib/commands/log.ts +15 -25
- package/lib/commands/media-projection.ts +0 -1
- package/lib/commands/memory.ts +0 -1
- package/lib/commands/misc.ts +6 -20
- package/lib/commands/network.ts +9 -28
- package/lib/commands/nfc.ts +2 -6
- package/lib/commands/performance.ts +2 -8
- package/lib/commands/permissions.ts +10 -9
- package/lib/commands/recordscreen.ts +16 -18
- package/lib/commands/resources.ts +6 -7
- package/lib/commands/shell.ts +1 -1
- package/lib/commands/streamscreen.ts +2 -7
- package/lib/commands/system-bars.ts +32 -38
- package/lib/commands/time.ts +3 -10
- package/lib/constraints.ts +2 -2
- package/lib/doctor/checks.ts +0 -1
- package/lib/doctor/utils.ts +0 -1
- package/lib/driver.ts +9 -20
- package/lib/execute-method-map.ts +38 -64
- package/lib/method-map.ts +56 -57
- package/lib/utils.ts +5 -6
- package/package.json +4 -3
package/lib/method-map.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type {MethodMap} from '@appium/types';
|
|
2
|
+
import type {AndroidDriver} from './driver';
|
|
3
3
|
|
|
4
4
|
export const newMethodMap = {
|
|
5
5
|
'/session/:sessionId/timeouts/implicit_wait': {
|
|
6
6
|
POST: {
|
|
7
7
|
command: 'implicitWait',
|
|
8
8
|
payloadParams: {required: ['ms']},
|
|
9
|
-
deprecated: true
|
|
9
|
+
deprecated: true,
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
'/session/:sessionId/ime/available_engines': {GET: {command: 'availableIMEEngines'}},
|
|
@@ -22,52 +22,52 @@ export const newMethodMap = {
|
|
|
22
22
|
'/session/:sessionId/window/:windowhandle/size': {
|
|
23
23
|
GET: {
|
|
24
24
|
command: 'getWindowSize',
|
|
25
|
-
deprecated: true
|
|
26
|
-
}
|
|
25
|
+
deprecated: true,
|
|
26
|
+
},
|
|
27
27
|
},
|
|
28
28
|
'/session/:sessionId/keys': {
|
|
29
29
|
POST: {
|
|
30
30
|
command: 'keys',
|
|
31
31
|
payloadParams: {required: ['value']},
|
|
32
|
-
deprecated: true
|
|
32
|
+
deprecated: true,
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
'/session/:sessionId/element/:elementId/location': {
|
|
36
36
|
GET: {
|
|
37
37
|
command: 'getLocation',
|
|
38
|
-
deprecated: true
|
|
39
|
-
}
|
|
38
|
+
deprecated: true,
|
|
39
|
+
},
|
|
40
40
|
},
|
|
41
41
|
'/session/:sessionId/element/:elementId/location_in_view': {
|
|
42
42
|
GET: {
|
|
43
43
|
command: 'getLocationInView',
|
|
44
|
-
deprecated: true
|
|
45
|
-
}
|
|
44
|
+
deprecated: true,
|
|
45
|
+
},
|
|
46
46
|
},
|
|
47
47
|
'/session/:sessionId/element/:elementId/size': {
|
|
48
48
|
GET: {
|
|
49
49
|
command: 'getSize',
|
|
50
|
-
deprecated: true
|
|
51
|
-
}
|
|
50
|
+
deprecated: true,
|
|
51
|
+
},
|
|
52
52
|
},
|
|
53
53
|
'/session/:sessionId/appium/device/lock': {
|
|
54
54
|
POST: {
|
|
55
55
|
command: 'lock',
|
|
56
56
|
payloadParams: {optional: ['seconds']},
|
|
57
|
-
deprecated: true
|
|
57
|
+
deprecated: true,
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
'/session/:sessionId/appium/device/unlock': {
|
|
61
61
|
POST: {
|
|
62
62
|
command: 'unlock',
|
|
63
|
-
deprecated: true
|
|
64
|
-
}
|
|
63
|
+
deprecated: true,
|
|
64
|
+
},
|
|
65
65
|
},
|
|
66
66
|
'/session/:sessionId/appium/device/is_locked': {
|
|
67
67
|
POST: {
|
|
68
68
|
command: 'isLocked',
|
|
69
|
-
deprecated: true
|
|
70
|
-
}
|
|
69
|
+
deprecated: true,
|
|
70
|
+
},
|
|
71
71
|
},
|
|
72
72
|
'/session/:sessionId/appium/start_recording_screen': {
|
|
73
73
|
POST: {
|
|
@@ -84,8 +84,8 @@ export const newMethodMap = {
|
|
|
84
84
|
'/session/:sessionId/appium/performanceData/types': {
|
|
85
85
|
POST: {
|
|
86
86
|
command: 'getPerformanceDataTypes',
|
|
87
|
-
deprecated: true
|
|
88
|
-
}
|
|
87
|
+
deprecated: true,
|
|
88
|
+
},
|
|
89
89
|
},
|
|
90
90
|
'/session/:sessionId/appium/getPerformanceData': {
|
|
91
91
|
POST: {
|
|
@@ -94,134 +94,134 @@ export const newMethodMap = {
|
|
|
94
94
|
required: ['packageName', 'dataType'],
|
|
95
95
|
optional: ['dataReadTimeout'],
|
|
96
96
|
},
|
|
97
|
-
deprecated: true
|
|
97
|
+
deprecated: true,
|
|
98
98
|
},
|
|
99
99
|
},
|
|
100
100
|
'/session/:sessionId/appium/device/press_keycode': {
|
|
101
101
|
POST: {
|
|
102
102
|
command: 'pressKeyCode',
|
|
103
103
|
payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']},
|
|
104
|
-
deprecated: true
|
|
104
|
+
deprecated: true,
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
'/session/:sessionId/appium/device/long_press_keycode': {
|
|
108
108
|
POST: {
|
|
109
109
|
command: 'longPressKeyCode',
|
|
110
110
|
payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']},
|
|
111
|
-
deprecated: true
|
|
111
|
+
deprecated: true,
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
114
|
'/session/:sessionId/appium/device/finger_print': {
|
|
115
115
|
POST: {
|
|
116
116
|
command: 'fingerprint',
|
|
117
117
|
payloadParams: {required: ['fingerprintId']},
|
|
118
|
-
deprecated: true
|
|
118
|
+
deprecated: true,
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
'/session/:sessionId/appium/device/send_sms': {
|
|
122
122
|
POST: {
|
|
123
123
|
command: 'sendSMS',
|
|
124
124
|
payloadParams: {required: ['phoneNumber', 'message']},
|
|
125
|
-
deprecated: true
|
|
125
|
+
deprecated: true,
|
|
126
126
|
},
|
|
127
127
|
},
|
|
128
128
|
'/session/:sessionId/appium/device/gsm_call': {
|
|
129
129
|
POST: {
|
|
130
130
|
command: 'gsmCall',
|
|
131
131
|
payloadParams: {required: ['phoneNumber', 'action']},
|
|
132
|
-
deprecated: true
|
|
132
|
+
deprecated: true,
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
135
|
'/session/:sessionId/appium/device/gsm_signal': {
|
|
136
136
|
POST: {
|
|
137
137
|
command: 'gsmSignal',
|
|
138
138
|
payloadParams: {required: ['signalStrength']},
|
|
139
|
-
deprecated: true
|
|
139
|
+
deprecated: true,
|
|
140
140
|
},
|
|
141
141
|
},
|
|
142
142
|
'/session/:sessionId/appium/device/gsm_voice': {
|
|
143
143
|
POST: {
|
|
144
144
|
command: 'gsmVoice',
|
|
145
145
|
payloadParams: {required: ['state']},
|
|
146
|
-
deprecated: true
|
|
146
|
+
deprecated: true,
|
|
147
147
|
},
|
|
148
148
|
},
|
|
149
149
|
'/session/:sessionId/appium/device/power_capacity': {
|
|
150
150
|
POST: {
|
|
151
151
|
command: 'powerCapacity',
|
|
152
152
|
payloadParams: {required: ['percent']},
|
|
153
|
-
deprecated: true
|
|
153
|
+
deprecated: true,
|
|
154
154
|
},
|
|
155
155
|
},
|
|
156
156
|
'/session/:sessionId/appium/device/power_ac': {
|
|
157
157
|
POST: {
|
|
158
158
|
command: 'powerAC',
|
|
159
159
|
payloadParams: {required: ['state']},
|
|
160
|
-
deprecated: true
|
|
160
|
+
deprecated: true,
|
|
161
161
|
},
|
|
162
162
|
},
|
|
163
163
|
'/session/:sessionId/appium/device/network_speed': {
|
|
164
164
|
POST: {
|
|
165
165
|
command: 'networkSpeed',
|
|
166
166
|
payloadParams: {required: ['netspeed']},
|
|
167
|
-
deprecated: true
|
|
167
|
+
deprecated: true,
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
170
|
'/session/:sessionId/appium/device/keyevent': {
|
|
171
171
|
POST: {
|
|
172
172
|
command: 'keyevent',
|
|
173
173
|
payloadParams: {required: ['keycode'], optional: ['metastate']},
|
|
174
|
-
deprecated: true
|
|
174
|
+
deprecated: true,
|
|
175
175
|
},
|
|
176
176
|
},
|
|
177
177
|
'/session/:sessionId/appium/device/current_activity': {
|
|
178
178
|
GET: {
|
|
179
179
|
command: 'getCurrentActivity',
|
|
180
|
-
deprecated: true
|
|
181
|
-
}
|
|
180
|
+
deprecated: true,
|
|
181
|
+
},
|
|
182
182
|
},
|
|
183
183
|
'/session/:sessionId/appium/device/current_package': {
|
|
184
184
|
GET: {
|
|
185
185
|
command: 'getCurrentPackage',
|
|
186
|
-
deprecated: true
|
|
187
|
-
}
|
|
186
|
+
deprecated: true,
|
|
187
|
+
},
|
|
188
188
|
},
|
|
189
189
|
'/session/:sessionId/appium/device/app_state': {
|
|
190
190
|
POST: {
|
|
191
191
|
command: 'queryAppState',
|
|
192
192
|
payloadParams: {required: [['appId'], ['bundleId']]},
|
|
193
|
-
deprecated: true
|
|
193
|
+
deprecated: true,
|
|
194
194
|
},
|
|
195
195
|
},
|
|
196
196
|
'/session/:sessionId/appium/device/toggle_airplane_mode': {
|
|
197
197
|
POST: {
|
|
198
198
|
command: 'toggleFlightMode',
|
|
199
|
-
deprecated: true
|
|
200
|
-
}
|
|
199
|
+
deprecated: true,
|
|
200
|
+
},
|
|
201
201
|
},
|
|
202
202
|
'/session/:sessionId/appium/device/toggle_data': {
|
|
203
203
|
POST: {
|
|
204
204
|
command: 'toggleData',
|
|
205
|
-
deprecated: true
|
|
206
|
-
}
|
|
205
|
+
deprecated: true,
|
|
206
|
+
},
|
|
207
207
|
},
|
|
208
208
|
'/session/:sessionId/appium/device/toggle_wifi': {
|
|
209
209
|
POST: {
|
|
210
210
|
command: 'toggleWiFi',
|
|
211
|
-
deprecated: true
|
|
212
|
-
}
|
|
211
|
+
deprecated: true,
|
|
212
|
+
},
|
|
213
213
|
},
|
|
214
214
|
'/session/:sessionId/appium/device/toggle_location_services': {
|
|
215
215
|
POST: {
|
|
216
216
|
command: 'toggleLocationServices',
|
|
217
|
-
deprecated: true
|
|
217
|
+
deprecated: true,
|
|
218
218
|
},
|
|
219
219
|
},
|
|
220
220
|
'/session/:sessionId/appium/device/open_notifications': {
|
|
221
221
|
POST: {
|
|
222
222
|
command: 'openNotifications',
|
|
223
|
-
deprecated: true
|
|
224
|
-
}
|
|
223
|
+
deprecated: true,
|
|
224
|
+
},
|
|
225
225
|
},
|
|
226
226
|
'/session/:sessionId/appium/device/start_activity': {
|
|
227
227
|
POST: {
|
|
@@ -238,58 +238,58 @@ export const newMethodMap = {
|
|
|
238
238
|
'dontStopAppOnReset',
|
|
239
239
|
],
|
|
240
240
|
},
|
|
241
|
-
deprecated: true
|
|
241
|
+
deprecated: true,
|
|
242
242
|
},
|
|
243
243
|
},
|
|
244
244
|
'/session/:sessionId/appium/device/system_bars': {
|
|
245
245
|
GET: {
|
|
246
246
|
command: 'getSystemBars',
|
|
247
|
-
deprecated: true
|
|
248
|
-
}
|
|
247
|
+
deprecated: true,
|
|
248
|
+
},
|
|
249
249
|
},
|
|
250
250
|
'/session/:sessionId/appium/device/display_density': {
|
|
251
251
|
GET: {
|
|
252
252
|
command: 'getDisplayDensity',
|
|
253
|
-
deprecated: true
|
|
254
|
-
}
|
|
253
|
+
deprecated: true,
|
|
254
|
+
},
|
|
255
255
|
},
|
|
256
256
|
'/session/:sessionId/appium/app/background': {
|
|
257
257
|
POST: {
|
|
258
258
|
command: 'background',
|
|
259
259
|
payloadParams: {required: ['seconds']},
|
|
260
|
-
deprecated: true
|
|
260
|
+
deprecated: true,
|
|
261
261
|
},
|
|
262
262
|
},
|
|
263
263
|
'/session/:sessionId/appium/app/strings': {
|
|
264
264
|
POST: {
|
|
265
265
|
command: 'getStrings',
|
|
266
266
|
payloadParams: {optional: ['language', 'stringFile']},
|
|
267
|
-
deprecated: true
|
|
267
|
+
deprecated: true,
|
|
268
268
|
},
|
|
269
269
|
},
|
|
270
270
|
'/session/:sessionId/appium/element/:elementId/value': {
|
|
271
271
|
POST: {
|
|
272
272
|
command: 'setValueImmediate',
|
|
273
273
|
payloadParams: {required: ['text']},
|
|
274
|
-
deprecated: true
|
|
274
|
+
deprecated: true,
|
|
275
275
|
},
|
|
276
276
|
},
|
|
277
277
|
'/session/:sessionId/appium/element/:elementId/replace_value': {
|
|
278
278
|
POST: {
|
|
279
279
|
command: 'replaceValue',
|
|
280
280
|
payloadParams: {required: ['text']},
|
|
281
|
-
deprecated: true
|
|
281
|
+
deprecated: true,
|
|
282
282
|
},
|
|
283
283
|
},
|
|
284
284
|
'/session/:sessionId/network_connection': {
|
|
285
285
|
GET: {
|
|
286
286
|
command: 'getNetworkConnection',
|
|
287
|
-
deprecated: true
|
|
287
|
+
deprecated: true,
|
|
288
288
|
},
|
|
289
289
|
POST: {
|
|
290
290
|
command: 'setNetworkConnection',
|
|
291
291
|
payloadParams: {unwrap: 'parameters', required: ['type']},
|
|
292
|
-
deprecated: true
|
|
292
|
+
deprecated: true,
|
|
293
293
|
},
|
|
294
294
|
},
|
|
295
295
|
'/session/:sessionId/location': {
|
|
@@ -304,4 +304,3 @@ export const newMethodMap = {
|
|
|
304
304
|
},
|
|
305
305
|
},
|
|
306
306
|
} as const satisfies MethodMap<AndroidDriver>;
|
|
307
|
-
|
package/lib/utils.ts
CHANGED
|
@@ -17,7 +17,10 @@ const COLOR_CODE_PATTERN = /\u001b\[(\d+(;\d+)*)?m/g; // eslint-disable-line no-
|
|
|
17
17
|
* @param opts the object to check
|
|
18
18
|
* @returns the same given object
|
|
19
19
|
*/
|
|
20
|
-
export function requireArgs(
|
|
20
|
+
export function requireArgs(
|
|
21
|
+
argNames: string | string[],
|
|
22
|
+
opts: Record<string, any>,
|
|
23
|
+
): Record<string, any> {
|
|
21
24
|
for (const argName of _.isArray(argNames) ? argNames : [argNames]) {
|
|
22
25
|
if (!_.has(opts, argName)) {
|
|
23
26
|
throw new errors.InvalidArgumentError(`'${argName}' argument must be provided`);
|
|
@@ -75,10 +78,7 @@ interface LogEntryWithPrefix {
|
|
|
75
78
|
*/
|
|
76
79
|
export function nativeLogEntryToSeleniumEntry(x: LogEntryWithPrefix): LogEntry {
|
|
77
80
|
const msg = _.isEmpty(x.prefix) ? x.message : `[${x.prefix}] ${x.message}`;
|
|
78
|
-
return toLogRecord(
|
|
79
|
-
x.timestamp ?? Date.now(),
|
|
80
|
-
_.replace(msg, COLOR_CODE_PATTERN, '')
|
|
81
|
-
);
|
|
81
|
+
return toLogRecord(x.timestamp ?? Date.now(), _.replace(msg, COLOR_CODE_PATTERN, ''));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -96,4 +96,3 @@ export function toLogRecord(timestamp: number, message: string, level: string =
|
|
|
96
96
|
message,
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-android-driver",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.7.0",
|
|
4
4
|
"description": "Android UiAutomator and Chrome support for Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"appium",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"lint:fix": "npm run lint -- --fix",
|
|
40
40
|
"prepare": "npm run rebuild",
|
|
41
41
|
"rebuild": "npm run clean; npm run build",
|
|
42
|
-
"format": "prettier -w ./lib",
|
|
42
|
+
"format": "prettier -w ./lib ./test",
|
|
43
|
+
"format:check": "prettier --check ./lib ./test",
|
|
43
44
|
"test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.ts\""
|
|
44
45
|
},
|
|
45
46
|
"prettier": {
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"@appium/support": "^7.0.0-rc.1",
|
|
52
53
|
"@colors/colors": "^1.6.0",
|
|
53
|
-
"appium-adb": "^14.
|
|
54
|
+
"appium-adb": "^14.3.0",
|
|
54
55
|
"appium-chromedriver": "^8.0.18",
|
|
55
56
|
"asyncbox": "^6.1.0",
|
|
56
57
|
"axios": "^1.x",
|