appium-safari-driver 3.5.21 → 3.5.23

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.
@@ -1,8 +1,12 @@
1
- const commands = {};
2
1
 
3
- commands.deleteCookies = async function deleteCookies () {
2
+ /**
3
+ * @this {SafariDriver}
4
+ * @returns {Promise<any>}
5
+ */
6
+ export async function deleteCookies () {
4
7
  return await this.safari.proxy.command('/cookie', 'DELETE');
5
- };
8
+ }
6
9
 
7
- export { commands };
8
- export default commands;
10
+ /**
11
+ * @typedef {import('../driver').SafariDriver} SafariDriver
12
+ */
@@ -1,19 +1,23 @@
1
1
  import { util } from 'appium/support';
2
2
 
3
-
4
- const commands = {};
5
-
6
3
  // This is needed to make lookup by image working
7
- commands.findElOrEls = async function findElOrEls (strategy, selector, mult, context) {
8
- context = util.unwrapElement(context);
9
- const endpoint = `/element${context ? `/${context}/element` : ''}${mult ? 's' : ''}`;
10
-
4
+ /**
5
+ *
6
+ * @this {SafariDriver}
7
+ * @param {string} strategy
8
+ * @param {string} selector
9
+ * @param {boolean} mult
10
+ * @param {string} [context]
11
+ * @returns {Promise<any>}
12
+ */
13
+ export async function findElOrEls (strategy, selector, mult, context) {
14
+ const endpoint = `/element${context ? `/${util.unwrapElement(context)}/element` : ''}${mult ? 's' : ''}`;
11
15
  return await this.safari.proxy.command(endpoint, 'POST', {
12
16
  using: strategy,
13
17
  value: selector,
14
18
  });
15
- };
16
-
19
+ }
17
20
 
18
- export { commands };
19
- export default commands;
21
+ /**
22
+ * @typedef {import('../driver').SafariDriver} SafariDriver
23
+ */
@@ -3,9 +3,6 @@ import { util, fs, net, tempDir } from 'appium/support';
3
3
  import { waitForCondition } from 'asyncbox';
4
4
  import { Simctl } from 'node-simctl';
5
5
 
6
-
7
- const commands = {};
8
-
9
6
  const STARTUP_INTERVAL_MS = 300;
10
7
  const STARTUP_TIMEOUT_MS = 10 * 1000;
11
8
  const DEFAULT_TIME_LIMIT_MS = 60 * 10 * 1000; // 10 minutes
@@ -235,11 +232,12 @@ async function extractSimulatorUdid (caps) {
235
232
  * This method uses `xcrun simctl io recordVideo` helper under the hood.
236
233
  * Check the output of `xcrun simctl io` command for more details.
237
234
  *
235
+ * @this {SafariDriver}
238
236
  * @param {StartRecordingOptions} options - The available options.
239
237
  * @this {import('../driver').SafariDriver}
240
238
  * @throws {Error} If screen recording has failed to start or is not supported for the destination device.
241
239
  */
242
- commands.startRecordingScreen = async function startRecordingScreen (options) {
240
+ export async function startRecordingScreen (options) {
243
241
  const {
244
242
  timeLimit,
245
243
  codec,
@@ -280,7 +278,7 @@ commands.startRecordingScreen = async function startRecordingScreen (options) {
280
278
  this._screenRecorder = null;
281
279
  throw e;
282
280
  }
283
- };
281
+ }
284
282
 
285
283
  /**
286
284
  * @typedef {Object} StopRecordingOptions
@@ -304,6 +302,7 @@ commands.startRecordingScreen = async function startRecordingScreen (options) {
304
302
  * Stop recording the screen.
305
303
  * If no screen recording has been started before then the method returns an empty string.
306
304
  *
305
+ * @this {SafariDriver}
307
306
  * @param {StopRecordingOptions} options - The available options.
308
307
  * @returns {Promise<string>} Base64-encoded content of the recorded media file if 'remotePath'
309
308
  * parameter is falsy or an empty string.
@@ -312,7 +311,7 @@ commands.startRecordingScreen = async function startRecordingScreen (options) {
312
311
  * or the file content cannot be uploaded to the remote location
313
312
  * or screen recording is not supported on the device under test.
314
313
  */
315
- commands.stopRecordingScreen = async function stopRecordingScreen (options) {
314
+ export async function stopRecordingScreen (options) {
316
315
  if (!this._screenRecorder) {
317
316
  this.log.info('No screen recording has been started. Doing nothing');
318
317
  return '';
@@ -329,6 +328,8 @@ commands.stopRecordingScreen = async function stopRecordingScreen (options) {
329
328
  this.log.debug(`The size of the resulting screen recording is ${util.toReadableSizeString(size)}`);
330
329
  }
331
330
  return await uploadRecordedMedia(videoPath, options?.remotePath, options);
332
- };
331
+ }
333
332
 
334
- export default commands;
333
+ /**
334
+ * @typedef {import('../driver').SafariDriver} SafariDriver
335
+ */
package/lib/driver.js CHANGED
@@ -1,8 +1,9 @@
1
- import _ from 'lodash';
2
1
  import { BaseDriver } from 'appium/driver';
3
- import SafariDriverServer from './safari';
2
+ import { SafariDriverServer } from './safari';
4
3
  import { desiredCapConstraints } from './desired-caps';
5
- import { commands } from './commands/index';
4
+ import * as cookieCommands from './commands/cookies';
5
+ import * as findCommands from './commands/find';
6
+ import * as recordScreenCommands from './commands/record-screen';
6
7
  import { formatCapsForServer } from './utils';
7
8
  import { newMethodMap } from './method-map';
8
9
 
@@ -20,6 +21,9 @@ export class SafariDriver extends BaseDriver {
20
21
  /** @type {boolean} */
21
22
  isProxyActive;
22
23
 
24
+ /** @type {SafariDriverServer} */
25
+ safari;
26
+
23
27
  static newMethodMap = newMethodMap;
24
28
 
25
29
  constructor (opts = {}) {
@@ -37,13 +41,10 @@ export class SafariDriver extends BaseDriver {
37
41
  'name',
38
42
  ];
39
43
  this.resetState();
40
-
41
- for (const [cmd, fn] of _.toPairs(commands)) {
42
- SafariDriver.prototype[cmd] = fn;
43
- }
44
44
  }
45
45
 
46
46
  resetState () {
47
+ // @ts-ignore That's ok
47
48
  this.safari = null;
48
49
  this.proxyReqRes = null;
49
50
  this.isProxyActive = false;
@@ -68,7 +69,9 @@ export class SafariDriver extends BaseDriver {
68
69
  const [sessionId, caps] = await super.createSession(...args);
69
70
  this.safari = new SafariDriverServer(this.log);
70
71
  try {
71
- await this.safari.start(formatCapsForServer(caps));
72
+ await this.safari.start(formatCapsForServer(caps), {
73
+ reqBasePath: this.basePath,
74
+ });
72
75
  } catch (e) {
73
76
  await this.deleteSession();
74
77
  throw e;
@@ -86,6 +89,13 @@ export class SafariDriver extends BaseDriver {
86
89
 
87
90
  await super.deleteSession();
88
91
  }
92
+
93
+ deleteCookies = cookieCommands.deleteCookies;
94
+
95
+ findElOrEls = findCommands.findElOrEls;
96
+
97
+ startRecordingScreen = recordScreenCommands.startRecordingScreen;
98
+ stopRecordingScreen = recordScreenCommands.stopRecordingScreen;
89
99
  }
90
100
 
91
101
  export default SafariDriver;
package/lib/safari.js CHANGED
@@ -98,9 +98,16 @@ process.once('exit', () => {
98
98
  }
99
99
  });
100
100
 
101
- class SafariDriverServer {
101
+ export class SafariDriverServer {
102
+ /** @type {SafariProxy} */
103
+ proxy;
104
+
105
+ /**
106
+ * @param {import('@appium/types').AppiumLogger} log
107
+ */
102
108
  constructor (log) {
103
109
  this.log = log;
110
+ // @ts-ignore That's ok
104
111
  this.proxy = null;
105
112
  }
106
113
 
@@ -108,16 +115,25 @@ class SafariDriverServer {
108
115
  return !!(SAFARI_DRIVER_PROCESS.isRunning);
109
116
  }
110
117
 
111
- async start (caps) {
118
+ /**
119
+ *
120
+ * @param {import('@appium/types').StringRecord} caps
121
+ * @param {SessionOptions} [opts={}]
122
+ */
123
+ async start (caps, opts = {}) {
112
124
  await SAFARI_DRIVER_PROCESS.init();
113
125
 
114
- this.proxy = new SafariProxy({
126
+ const proxyOptions = {
115
127
  server: '127.0.0.1',
116
128
  port: SAFARI_DRIVER_PROCESS.port,
117
129
  base: '',
118
130
  log: this.log,
119
131
  keepAlive: true,
120
- });
132
+ };
133
+ if (opts.reqBasePath) {
134
+ proxyOptions.reqBasePath = opts.reqBasePath;
135
+ }
136
+ this.proxy = new SafariProxy(proxyOptions);
121
137
  this.proxy.didProcessExit = false;
122
138
  SAFARI_DRIVER_PROCESS.proc?.on('exit', () => {
123
139
  if (this.proxy) {
@@ -178,3 +194,8 @@ class SafariDriverServer {
178
194
  }
179
195
 
180
196
  export default SafariDriverServer;
197
+
198
+ /**
199
+ * @typedef {Object} SessionOptions
200
+ * @property {string} [reqBasePath]
201
+ */
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appium-safari-driver",
3
- "version": "3.5.21",
3
+ "version": "3.5.23",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-safari-driver",
9
- "version": "3.5.21",
9
+ "version": "3.5.23",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "asyncbox": "^3.0.0",
@@ -63,12 +63,11 @@
63
63
  }
64
64
  },
65
65
  "node_modules/@appium/schema": {
66
- "version": "0.7.1",
67
- "resolved": "https://registry.npmjs.org/@appium/schema/-/schema-0.7.1.tgz",
68
- "integrity": "sha512-HCK0FqYOe96gYw7xb3mlZf9uIqgUwbrMJUedJnLfynvlrRsUe2/uXhYuBPENMn89mkeoZMThgAEEVarDH0sCaQ==",
66
+ "version": "0.8.1",
67
+ "resolved": "https://registry.npmjs.org/@appium/schema/-/schema-0.8.1.tgz",
68
+ "integrity": "sha512-3yzfQ/K7RMGnfYDgFG7JdCPsjjN3eS33n2SBeGJtd28mDtgO7EzcmtiUBQjbkxyu0Q7h8KOexiqndvgTCgHeGQ==",
69
69
  "license": "Apache-2.0",
70
70
  "dependencies": {
71
- "@types/json-schema": "7.0.15",
72
71
  "json-schema": "0.4.0",
73
72
  "source-map-support": "0.5.21"
74
73
  },
@@ -78,9 +77,9 @@
78
77
  }
79
78
  },
80
79
  "node_modules/@appium/tsconfig": {
81
- "version": "0.3.3",
82
- "resolved": "https://registry.npmjs.org/@appium/tsconfig/-/tsconfig-0.3.3.tgz",
83
- "integrity": "sha512-Lk2M2NWVY2M8SIE1PTDVvj1NEuV4lze8yzPDSmklhkJSPDPrOCx7PkDziyjIycQBXy0ficd5CNwNDvdOD1Ym2w==",
80
+ "version": "0.3.4",
81
+ "resolved": "https://registry.npmjs.org/@appium/tsconfig/-/tsconfig-0.3.4.tgz",
82
+ "integrity": "sha512-tX719/ekarAWmJb+AaG6//8+3qQITshTgTZor0EbdEwA2KG3bGPwMIoCp10np6/qFr+sMZC0CbuKJruHSCDhhw==",
84
83
  "license": "Apache-2.0",
85
84
  "dependencies": {
86
85
  "@tsconfig/node14": "14.1.2"
@@ -91,17 +90,15 @@
91
90
  }
92
91
  },
93
92
  "node_modules/@appium/types": {
94
- "version": "0.24.0",
95
- "resolved": "https://registry.npmjs.org/@appium/types/-/types-0.24.0.tgz",
96
- "integrity": "sha512-1OkU1Gzi6rmt3P2KabYKMBsTazbnrV14nNoSw1vVGxK1qJ7pRo8OlcR+6eEDsxTD/+6uY9qzOdkYdEPZAksrKA==",
93
+ "version": "0.25.1",
94
+ "resolved": "https://registry.npmjs.org/@appium/types/-/types-0.25.1.tgz",
95
+ "integrity": "sha512-2Lu5qwFNQa+iPw98XdB5/7tXKO7dugZHXfAsF050wgJkJJ4kDemVFJ4yr1YqM7DYmgqZnt+k0EfzshLODCHXTA==",
97
96
  "license": "Apache-2.0",
98
97
  "dependencies": {
99
98
  "@appium/logger": "^1.6.1",
100
- "@appium/schema": "^0.7.1",
101
- "@appium/tsconfig": "^0.3.3",
102
- "@types/express": "5.0.0",
103
- "@types/ws": "8.5.13",
104
- "type-fest": "4.31.0"
99
+ "@appium/schema": "^0.8.1",
100
+ "@appium/tsconfig": "^0.3.4",
101
+ "type-fest": "4.35.0"
105
102
  },
106
103
  "engines": {
107
104
  "node": "^14.17.0 || ^16.13.0 || >=18.0.0",
@@ -195,82 +192,6 @@
195
192
  "integrity": "sha512-1vncsbfCZ3TBLPxesRYz02Rn7SNJfbLoDVkcZ7F/ixOV6nwxwgdhD1mdPcc5YQ413qBJ8CvMxXMFfJ7oawjo7Q==",
196
193
  "license": "MIT"
197
194
  },
198
- "node_modules/@types/bluebird": {
199
- "version": "3.5.42",
200
- "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.42.tgz",
201
- "integrity": "sha512-Jhy+MWRlro6UjVi578V/4ZGNfeCOcNCp0YaFNIUGFKlImowqwb1O/22wDVk3FDGMLqxdpOV3qQHD5fPEH4hK6A==",
202
- "license": "MIT"
203
- },
204
- "node_modules/@types/body-parser": {
205
- "version": "1.19.5",
206
- "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz",
207
- "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==",
208
- "license": "MIT",
209
- "dependencies": {
210
- "@types/connect": "*",
211
- "@types/node": "*"
212
- }
213
- },
214
- "node_modules/@types/connect": {
215
- "version": "3.4.38",
216
- "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
217
- "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",
218
- "license": "MIT",
219
- "dependencies": {
220
- "@types/node": "*"
221
- }
222
- },
223
- "node_modules/@types/express": {
224
- "version": "5.0.0",
225
- "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.0.tgz",
226
- "integrity": "sha512-DvZriSMehGHL1ZNLzi6MidnsDhUZM/x2pRdDIKdwbUNqqwHxMlRdkxtn6/EPKyqKpHqTl/4nRZsRNLpZxZRpPQ==",
227
- "license": "MIT",
228
- "dependencies": {
229
- "@types/body-parser": "*",
230
- "@types/express-serve-static-core": "^5.0.0",
231
- "@types/qs": "*",
232
- "@types/serve-static": "*"
233
- }
234
- },
235
- "node_modules/@types/express-serve-static-core": {
236
- "version": "5.0.6",
237
- "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.6.tgz",
238
- "integrity": "sha512-3xhRnjJPkULekpSzgtoNYYcTWgEZkp4myc+Saevii5JPnHNvHMRlBSHDbs7Bh1iPPoVTERHEZXyhyLbMEsExsA==",
239
- "license": "MIT",
240
- "dependencies": {
241
- "@types/node": "*",
242
- "@types/qs": "*",
243
- "@types/range-parser": "*",
244
- "@types/send": "*"
245
- }
246
- },
247
- "node_modules/@types/http-errors": {
248
- "version": "2.0.4",
249
- "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz",
250
- "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==",
251
- "license": "MIT"
252
- },
253
- "node_modules/@types/json-schema": {
254
- "version": "7.0.15",
255
- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
256
- "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
257
- "license": "MIT"
258
- },
259
- "node_modules/@types/mime": {
260
- "version": "1.3.5",
261
- "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz",
262
- "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==",
263
- "license": "MIT"
264
- },
265
- "node_modules/@types/node": {
266
- "version": "22.12.0",
267
- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz",
268
- "integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
269
- "license": "MIT",
270
- "dependencies": {
271
- "undici-types": "~6.20.0"
272
- }
273
- },
274
195
  "node_modules/@types/normalize-package-data": {
275
196
  "version": "2.4.4",
276
197
  "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
@@ -278,64 +199,6 @@
278
199
  "extraneous": true,
279
200
  "license": "MIT"
280
201
  },
281
- "node_modules/@types/qs": {
282
- "version": "6.9.18",
283
- "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz",
284
- "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==",
285
- "license": "MIT"
286
- },
287
- "node_modules/@types/range-parser": {
288
- "version": "1.2.7",
289
- "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",
290
- "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",
291
- "license": "MIT"
292
- },
293
- "node_modules/@types/semver": {
294
- "version": "7.5.8",
295
- "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
296
- "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",
297
- "extraneous": true,
298
- "license": "MIT"
299
- },
300
- "node_modules/@types/send": {
301
- "version": "0.17.4",
302
- "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz",
303
- "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==",
304
- "license": "MIT",
305
- "dependencies": {
306
- "@types/mime": "^1",
307
- "@types/node": "*"
308
- }
309
- },
310
- "node_modules/@types/serve-static": {
311
- "version": "1.15.7",
312
- "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz",
313
- "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==",
314
- "license": "MIT",
315
- "dependencies": {
316
- "@types/http-errors": "*",
317
- "@types/node": "*",
318
- "@types/send": "*"
319
- }
320
- },
321
- "node_modules/@types/teen_process": {
322
- "version": "2.0.4",
323
- "resolved": "https://registry.npmjs.org/@types/teen_process/-/teen_process-2.0.4.tgz",
324
- "integrity": "sha512-AJT0syZovEDa4j17szoRJX5BE2RxD3FVp6SownH43mF16TPnsV0zhtsvFGlgs5QkgsNpoooNnF+HjMow7Jd3jA==",
325
- "license": "MIT",
326
- "dependencies": {
327
- "@types/node": "*"
328
- }
329
- },
330
- "node_modules/@types/ws": {
331
- "version": "8.5.13",
332
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz",
333
- "integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==",
334
- "license": "MIT",
335
- "dependencies": {
336
- "@types/node": "*"
337
- }
338
- },
339
202
  "node_modules/abort-controller": {
340
203
  "version": "3.0.0",
341
204
  "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
@@ -507,31 +370,6 @@
507
370
  "concat-map": "0.0.1"
508
371
  }
509
372
  },
510
- "node_modules/buffer": {
511
- "version": "5.7.1",
512
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
513
- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
514
- "extraneous": true,
515
- "funding": [
516
- {
517
- "type": "github",
518
- "url": "https://github.com/sponsors/feross"
519
- },
520
- {
521
- "type": "patreon",
522
- "url": "https://www.patreon.com/feross"
523
- },
524
- {
525
- "type": "consulting",
526
- "url": "https://feross.org/support"
527
- }
528
- ],
529
- "license": "MIT",
530
- "dependencies": {
531
- "base64-js": "^1.3.1",
532
- "ieee754": "^1.1.13"
533
- }
534
- },
535
373
  "node_modules/buffer-crc32": {
536
374
  "version": "1.0.0",
537
375
  "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz",
@@ -839,6 +677,16 @@
839
677
  "extraneous": true,
840
678
  "license": "MIT"
841
679
  },
680
+ "node_modules/fastest-levenshtein": {
681
+ "version": "1.0.16",
682
+ "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz",
683
+ "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==",
684
+ "extraneous": true,
685
+ "license": "MIT",
686
+ "engines": {
687
+ "node": ">= 4.9.1"
688
+ }
689
+ },
842
690
  "node_modules/find-up": {
843
691
  "version": "5.0.0",
844
692
  "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
@@ -1560,13 +1408,6 @@
1560
1408
  "extraneous": true,
1561
1409
  "license": "MIT"
1562
1410
  },
1563
- "node_modules/queue-tick": {
1564
- "version": "1.0.1",
1565
- "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz",
1566
- "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==",
1567
- "extraneous": true,
1568
- "license": "MIT"
1569
- },
1570
1411
  "node_modules/readable-stream": {
1571
1412
  "version": "4.7.0",
1572
1413
  "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz",
@@ -1727,9 +1568,9 @@
1727
1568
  "license": "MIT"
1728
1569
  },
1729
1570
  "node_modules/semver": {
1730
- "version": "7.6.3",
1731
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
1732
- "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
1571
+ "version": "7.7.1",
1572
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
1573
+ "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
1733
1574
  "license": "ISC",
1734
1575
  "bin": {
1735
1576
  "semver": "bin/semver.js"
@@ -1840,14 +1681,13 @@
1840
1681
  "license": "CC0-1.0"
1841
1682
  },
1842
1683
  "node_modules/streamx": {
1843
- "version": "2.21.1",
1844
- "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.21.1.tgz",
1845
- "integrity": "sha512-PhP9wUnFLa+91CPy3N6tiQsK+gnYyUNuk15S3YG/zjYE7RuPeCjJngqnzpC31ow0lzBHQ+QGO4cNJnd0djYUsw==",
1684
+ "version": "2.22.0",
1685
+ "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.0.tgz",
1686
+ "integrity": "sha512-sLh1evHOzBy/iWRiR6d1zRcLao4gGZr3C1kzNz4fopCOKJb6xD9ub8Mpi9Mr1R6id5o43S+d93fI48UC5uM9aw==",
1846
1687
  "extraneous": true,
1847
1688
  "license": "MIT",
1848
1689
  "dependencies": {
1849
1690
  "fast-fifo": "^1.3.2",
1850
- "queue-tick": "^1.0.1",
1851
1691
  "text-decoder": "^1.1.0"
1852
1692
  },
1853
1693
  "optionalDependencies": {
@@ -2027,13 +1867,6 @@
2027
1867
  "b4a": "^1.6.4"
2028
1868
  }
2029
1869
  },
2030
- "node_modules/through": {
2031
- "version": "2.3.8",
2032
- "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
2033
- "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
2034
- "extraneous": true,
2035
- "license": "MIT"
2036
- },
2037
1870
  "node_modules/tslib": {
2038
1871
  "version": "2.8.1",
2039
1872
  "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
@@ -2042,9 +1875,9 @@
2042
1875
  "license": "0BSD"
2043
1876
  },
2044
1877
  "node_modules/type-fest": {
2045
- "version": "4.31.0",
2046
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.31.0.tgz",
2047
- "integrity": "sha512-yCxltHW07Nkhv/1F6wWBr8kz+5BGMfP+RbRSYFnegVb0qV/UMT0G0ElBloPVerqn4M2ZV80Ir1FtCcYv1cT6vQ==",
1878
+ "version": "4.35.0",
1879
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.35.0.tgz",
1880
+ "integrity": "sha512-2/AwEFQDFEy30iOLjrvHDIH7e4HEWH+f1Yl1bI5XMqzuoCUqwYCdxachgsgv0og/JdVZUhbfjcJAoHj5L1753A==",
2048
1881
  "license": "(MIT OR CC0-1.0)",
2049
1882
  "engines": {
2050
1883
  "node": ">=16"
@@ -2066,12 +1899,6 @@
2066
1899
  "node": ">=14.17"
2067
1900
  }
2068
1901
  },
2069
- "node_modules/undici-types": {
2070
- "version": "6.20.0",
2071
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
2072
- "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
2073
- "license": "MIT"
2074
- },
2075
1902
  "node_modules/util-deprecate": {
2076
1903
  "version": "1.0.2",
2077
1904
  "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
@@ -2080,9 +1907,9 @@
2080
1907
  "license": "MIT"
2081
1908
  },
2082
1909
  "node_modules/uuid": {
2083
- "version": "11.0.4",
2084
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.4.tgz",
2085
- "integrity": "sha512-IzL6VtTTYcAhA/oghbFJ1Dkmqev+FpQWnCBaKq/gUluLxliWvO8DPFWfIviRmYbtaavtSQe4WBL++rFjdcGWEg==",
1910
+ "version": "11.1.0",
1911
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz",
1912
+ "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",
2086
1913
  "funding": [
2087
1914
  "https://github.com/sponsors/broofa",
2088
1915
  "https://github.com/sponsors/ctavan"
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "appium",
6
6
  "safari"
7
7
  ],
8
- "version": "3.5.21",
8
+ "version": "3.5.23",
9
9
  "author": "Appium Contributors",
10
10
  "license": "Apache-2.0",
11
11
  "repository": {
@@ -1,3 +0,0 @@
1
- export default commands;
2
- export const commands: {};
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.js"],"names":[],"mappings":";AAIA,0BAAoB"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.commands = void 0;
7
- const find_1 = __importDefault(require("./find"));
8
- const cookies_1 = __importDefault(require("./cookies"));
9
- const record_screen_1 = __importDefault(require("./record-screen"));
10
- const commands = {};
11
- exports.commands = commands;
12
- Object.assign(commands, find_1.default, cookies_1.default, record_screen_1.default);
13
- exports.default = commands;
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.js"],"names":[],"mappings":";;;;;;AAAA,kDAA8B;AAC9B,wDAAmC;AACnC,oEAAmD;AAEnD,MAAM,QAAQ,GAAG,EAAE,CAAC;AASX,4BAAQ;AARjB,MAAM,CAAC,MAAM,CACX,QAAQ,EACR,cAAQ,EACR,iBAAU,EACV,uBAAoB,CAErB,CAAC;AAGF,kBAAe,QAAQ,CAAC"}
@@ -1,15 +0,0 @@
1
- import findCmds from './find';
2
- import cookieCmds from './cookies';
3
- import recordScreenCommands from './record-screen';
4
-
5
- const commands = {};
6
- Object.assign(
7
- commands,
8
- findCmds,
9
- cookieCmds,
10
- recordScreenCommands,
11
- // add other command types here
12
- );
13
-
14
- export { commands };
15
- export default commands;