@appium/base-driver 9.3.14 → 9.3.16

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 (66) hide show
  1. package/build/lib/basedriver/commands/index.d.ts +0 -1
  2. package/build/lib/basedriver/commands/index.d.ts.map +1 -1
  3. package/build/lib/basedriver/commands/index.js +0 -1
  4. package/build/lib/basedriver/commands/index.js.map +1 -1
  5. package/build/lib/basedriver/commands/log.d.ts +1 -1
  6. package/build/lib/basedriver/commands/log.d.ts.map +1 -1
  7. package/build/lib/basedriver/commands/log.js.map +1 -1
  8. package/build/lib/basedriver/core.d.ts +35 -111
  9. package/build/lib/basedriver/core.d.ts.map +1 -1
  10. package/build/lib/basedriver/core.js +21 -75
  11. package/build/lib/basedriver/core.js.map +1 -1
  12. package/build/lib/basedriver/desired-caps.d.ts +2 -2
  13. package/build/lib/basedriver/desired-caps.d.ts.map +1 -1
  14. package/build/lib/basedriver/device-settings.d.ts +4 -3
  15. package/build/lib/basedriver/device-settings.d.ts.map +1 -1
  16. package/build/lib/basedriver/device-settings.js +5 -2
  17. package/build/lib/basedriver/device-settings.js.map +1 -1
  18. package/build/lib/basedriver/driver.d.ts +8 -7
  19. package/build/lib/basedriver/driver.d.ts.map +1 -1
  20. package/build/lib/basedriver/driver.js +22 -10
  21. package/build/lib/basedriver/driver.js.map +1 -1
  22. package/build/lib/basedriver/helpers.d.ts +1 -1
  23. package/build/lib/basedriver/helpers.d.ts.map +1 -1
  24. package/build/lib/basedriver/helpers.js +8 -5
  25. package/build/lib/basedriver/helpers.js.map +1 -1
  26. package/build/lib/constants.d.ts +9 -8
  27. package/build/lib/constants.d.ts.map +1 -1
  28. package/build/lib/constants.js.map +1 -1
  29. package/build/lib/express/middleware.d.ts +1 -1
  30. package/build/lib/express/middleware.d.ts.map +1 -1
  31. package/build/lib/express/server.d.ts +3 -3
  32. package/build/lib/index.d.ts +2 -2
  33. package/build/lib/index.d.ts.map +1 -1
  34. package/build/lib/index.js +2 -1
  35. package/build/lib/index.js.map +1 -1
  36. package/build/lib/jsonwp-proxy/proxy.d.ts +6 -5
  37. package/build/lib/jsonwp-proxy/proxy.d.ts.map +1 -1
  38. package/build/lib/jsonwp-proxy/proxy.js +1 -0
  39. package/build/lib/jsonwp-proxy/proxy.js.map +1 -1
  40. package/build/lib/protocol/errors.d.ts +2 -2
  41. package/build/lib/protocol/errors.d.ts.map +1 -1
  42. package/build/lib/protocol/errors.js +1 -0
  43. package/build/lib/protocol/errors.js.map +1 -1
  44. package/build/lib/protocol/helpers.d.ts +2 -2
  45. package/build/lib/protocol/helpers.d.ts.map +1 -1
  46. package/build/lib/protocol/index.d.ts +17 -17
  47. package/build/lib/protocol/index.d.ts.map +1 -1
  48. package/build/lib/protocol/protocol.d.ts +2 -2
  49. package/build/lib/protocol/protocol.d.ts.map +1 -1
  50. package/build/lib/protocol/routes.d.ts +1 -1
  51. package/lib/basedriver/commands/index.ts +0 -1
  52. package/lib/basedriver/commands/log.ts +3 -3
  53. package/lib/basedriver/{core.js → core.ts} +74 -149
  54. package/lib/basedriver/device-settings.js +6 -2
  55. package/lib/basedriver/driver.ts +45 -28
  56. package/lib/basedriver/helpers.js +8 -9
  57. package/lib/{constants.js → constants.ts} +2 -1
  58. package/lib/index.js +1 -1
  59. package/lib/jsonwp-proxy/proxy.js +1 -0
  60. package/lib/protocol/errors.js +1 -0
  61. package/package.json +6 -6
  62. package/build/lib/basedriver/commands/settings.d.ts +0 -6
  63. package/build/lib/basedriver/commands/settings.d.ts.map +0 -1
  64. package/build/lib/basedriver/commands/settings.js +0 -19
  65. package/build/lib/basedriver/commands/settings.js.map +0 -1
  66. package/lib/basedriver/commands/settings.ts +0 -26
@@ -1,7 +1,6 @@
1
1
  import './event';
2
2
  import './find';
3
3
  import './log';
4
- import './settings';
5
4
  import './timeout';
6
5
  import './execute';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AACjB,OAAO,QAAQ,CAAC;AAChB,OAAO,OAAO,CAAC;AACf,OAAO,YAAY,CAAC;AACpB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AACjB,OAAO,QAAQ,CAAC;AAChB,OAAO,OAAO,CAAC;AACf,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC"}
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  require("./event");
4
4
  require("./find");
5
5
  require("./log");
6
- require("./settings");
7
6
  require("./timeout");
8
7
  require("./execute");
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/index.ts"],"names":[],"mappings":";;AAAA,mBAAiB;AACjB,kBAAgB;AAChB,iBAAe;AACf,sBAAoB;AACpB,qBAAmB;AACnB,qBAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/index.ts"],"names":[],"mappings":";;AAAA,mBAAiB;AACjB,kBAAgB;AAChB,iBAAe;AACf,qBAAmB;AACnB,qBAAmB"}
@@ -1,4 +1,4 @@
1
- import { Constraints, ILogCommands } from '@appium/types';
1
+ import type { Constraints, ILogCommands } from '@appium/types';
2
2
  declare module '../driver' {
3
3
  interface BaseDriver<C extends Constraints> extends ILogCommands {
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAU,YAAY,EAAe,MAAM,eAAe,CAAC;AAK9E,OAAO,QAAQ,WAAW,CAAC;IAEzB,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,YAAY;KAAG;CACpE"}
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAU,YAAY,EAAC,MAAM,eAAe,CAAC;AAKrE,OAAO,QAAQ,WAAW,CAAC;IAEzB,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,YAAY;KAAG;CACpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/log.ts"],"names":[],"mappings":";;;;;AACA,oDAAuB;AAEvB,mCAA8B;AAO9B,MAAM,WAAW,GAAiB;IAChC,iBAAiB,EAAgB,EAAE;IAEnC,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACjD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,MAAM,CAAyC,OAAe;QAClE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvD,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,EAAE;YACxC,MAAM,yBAAyB,GAAG,gBAAC,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;YACrF,MAAM,IAAI,KAAK,CACb,yBAAyB,MAAM,CAAC,OAAO,CAAC,KAAK;gBAC3C,oBAAoB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,EAAE,CAClE,CAAC;SACH;QAED,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;CACF,CAAC;AAEF,IAAA,aAAK,EAAC,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/log.ts"],"names":[],"mappings":";;;;;AACA,oDAAuB;AAEvB,mCAA8B;AAO9B,MAAM,WAAW,GAAiB;IAChC,iBAAiB,EAAE,EAAE;IAErB,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACjD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,MAAM,CAAyC,OAAe;QAClE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvD,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,EAAE;YACxC,MAAM,yBAAyB,GAAG,gBAAC,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;YACrF,MAAM,IAAI,KAAK,CACb,yBAAyB,MAAM,CAAC,OAAO,CAAC,KAAK;gBAC3C,oBAAoB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,EAAE,CAClE,CAAC;SACH;QAED,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;CACF,CAAC;AAEF,IAAA,aAAK,EAAC,WAAW,CAAC,CAAC"}
@@ -1,41 +1,18 @@
1
- export type Driver = import('@appium/types').Driver;
2
- export type Constraints = import('@appium/types').Constraints;
3
- export type ServerArgs = import('@appium/types').ServerArgs;
4
- export type EventHistory = import('@appium/types').EventHistory;
5
- export type AppiumLogger = import('@appium/types').AppiumLogger;
6
- export type StringRecord = import('@appium/types').StringRecord;
7
- export type BaseDriverCapConstraints = import('@appium/types').BaseDriverCapConstraints;
8
- export type Core<C extends import("@appium/types").Constraints, S extends StringRecord = StringRecord> = import('@appium/types').Core<C, S>;
9
- export type DriverOpts<C extends import("@appium/types").Constraints> = import('@appium/types').DriverOpts<C>;
10
- /**
11
- * @template {Constraints} C
12
- * @template {StringRecord} [Settings=StringRecord]
13
- * @implements {Core<C, Settings>}
14
- */
15
- export class DriverCore<C extends import("@appium/types").Constraints, Settings extends StringRecord = StringRecord> implements Core<C, Settings> {
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import type { AppiumLogger, Constraints, Core, Driver, DriverOpts, EventHistory, HTTPMethod, InitialOpts, Protocol, RouteMatcher, StringRecord } from '@appium/types';
4
+ import AsyncLock from 'async-lock';
5
+ import DeviceSettings from './device-settings';
6
+ import helpers from './helpers';
7
+ export declare class DriverCore<const C extends Constraints, Settings extends StringRecord = StringRecord> implements Core<C, Settings> {
16
8
  /**
17
9
  * Make the basedriver version available so for any driver which inherits from this package, we
18
10
  * know which version of basedriver it inherited from
19
11
  */
20
12
  static baseVersion: string;
21
- /**
22
- * @param {DriverOpts<C>} opts
23
- * @param {boolean} [shouldValidateCaps]
24
- */
25
- constructor(opts?: DriverOpts<C>, shouldValidateCaps?: boolean | undefined);
26
- /**
27
- * @type {string?}
28
- */
29
13
  sessionId: string | null;
30
- /**
31
- * @type {import('@appium/types').DriverOpts<C>}
32
- */
33
- opts: import('@appium/types').DriverOpts<C>;
34
- /**
35
- * @type {import('@appium/types').DriverOpts<C>}
36
- */
37
- initialOpts: import('@appium/types').DriverOpts<C>;
38
- /** @type {typeof helpers} */
14
+ opts: DriverOpts<C>;
15
+ initialOpts: InitialOpts;
39
16
  helpers: typeof helpers;
40
17
  /**
41
18
  * basePath is used for several purposes, for example in setting up
@@ -44,63 +21,42 @@ export class DriverCore<C extends import("@appium/types").Constraints, Settings
44
21
  * initially but it is automatically updated during any actual program
45
22
  * execution by the routeConfiguringFunction, which is necessarily run as
46
23
  * the entrypoint for any Appium server
47
- * @type {string}
48
24
  */
49
25
  basePath: string;
50
- /** @type {boolean} */
51
26
  relaxedSecurityEnabled: boolean;
52
- /** @type {string[]} */
53
27
  allowInsecure: string[];
54
- /** @type {string[]} */
55
28
  denyInsecure: string[];
56
- /** @type {number} */
57
29
  newCommandTimeoutMs: number;
58
- /** @type {number} */
59
30
  implicitWaitMs: number;
60
- /** @type {string[]} */
61
31
  locatorStrategies: string[];
62
- /** @type {string[]} */
63
32
  webLocatorStrategies: string[];
64
- /** @type {Driver[]} */
65
33
  managedDrivers: Driver[];
66
- /** @type {NodeJS.Timeout?} */
67
34
  noCommandTimer: NodeJS.Timeout | null;
68
- /** @type {EventHistory} */
69
- _eventHistory: EventHistory;
70
- /** @type {NodeJS.EventEmitter} */
35
+ protected _eventHistory: EventHistory;
71
36
  eventEmitter: NodeJS.EventEmitter;
72
37
  /**
73
- * @type {AppiumLogger}
74
- */
75
- _log: AppiumLogger;
76
- /**
77
- * @type {boolean}
38
+ * @privateRemarks XXX: unsure why this is wrapped in a getter when nothing else is
78
39
  */
40
+ protected _log: AppiumLogger;
79
41
  shutdownUnexpectedly: boolean;
80
- /**
81
- * @type {boolean}
82
- */
83
42
  shouldValidateCaps: boolean;
84
- /**
85
- * @protected
86
- * @type {AsyncLock}
87
- */
88
43
  protected commandsQueueGuard: AsyncLock;
89
44
  /**
90
45
  * settings should be instantiated by drivers which extend BaseDriver, but
91
46
  * we set it to an empty DeviceSettings instance here to make sure that the
92
47
  * default settings are applied even if an extending driver doesn't utilize
93
48
  * the settings functionality itself
94
- * @type {DeviceSettings<Settings>}
95
49
  */
96
50
  settings: DeviceSettings<Settings>;
97
- get log(): import("@appium/types").AppiumLogger;
51
+ protocol?: Protocol;
52
+ constructor(opts?: InitialOpts, shouldValidateCaps?: boolean);
53
+ get log(): AppiumLogger;
98
54
  /**
99
55
  * Set a callback handler if needed to execute a custom piece of code
100
56
  * when the driver is shut down unexpectedly. Multiple calls to this method
101
57
  * will cause the handler to be executed mutiple times
102
58
  *
103
- * @param {(...args: any[]) => void} handler The code to be executed on unexpected shutdown.
59
+ * @param handler The code to be executed on unexpected shutdown.
104
60
  * The function may accept one argument, which is the actual error instance, which
105
61
  * caused the driver to shut down.
106
62
  */
@@ -111,23 +67,22 @@ export class DriverCore<C extends import("@appium/types").Constraints, Settings
111
67
  * properties for driver instances running in parallel.
112
68
  * Override it in inherited driver classes if necessary.
113
69
  */
114
- get driverData(): import("@appium/types").DriverData;
70
+ get driverData(): {};
115
71
  /**
116
72
  * This property controls the way the `executeCommand` method
117
73
  * handles new driver commands received from the client.
118
74
  * Override it for inherited classes only in special cases.
119
75
  *
120
- * @return {boolean} If the returned value is true (default) then all the commands
76
+ * @return If the returned value is true (default) then all the commands
121
77
  * received by the particular driver instance are going to be put into the queue,
122
78
  * so each following command will not be executed until the previous command
123
79
  * execution is completed. False value disables that queue, so each driver command
124
80
  * is executed independently and does not wait for anything.
125
81
  */
126
82
  get isCommandsQueueEnabled(): boolean;
127
- get eventHistory(): import("@appium/types").EventHistory;
83
+ get eventHistory(): EventHistory;
128
84
  /**
129
85
  * API method for driver developers to log timings for important events
130
- * @param {string} eventName
131
86
  */
132
87
  logEvent(eventName: string): void;
133
88
  /**
@@ -138,35 +93,28 @@ export class DriverCore<C extends import("@appium/types").Constraints, Settings
138
93
  /**
139
94
  * method required by MJSONWP in order to determine whether it should
140
95
  * respond with an invalid session response
141
- * @param {string} [sessionId]
142
- * @returns {boolean}
143
96
  */
144
- sessionExists(sessionId?: string | undefined): boolean;
97
+ sessionExists(sessionId: string): boolean;
145
98
  /**
146
99
  * method required by MJSONWP in order to determine if the command should
147
100
  * be proxied directly to the driver
148
- * @param {string} sessionId
149
- * @returns {Core<C> | null}
150
101
  */
151
- driverForSession(sessionId: string): Core<C> | null;
102
+ driverForSession(sessionId: string): Core<Constraints> | null;
152
103
  isMjsonwpProtocol(): boolean;
153
104
  isW3CProtocol(): boolean;
154
105
  setProtocolMJSONWP(): void;
155
- protocol: string | undefined;
156
106
  setProtocolW3C(): void;
157
107
  /**
158
108
  * Check whether a given feature is enabled via its name
159
109
  *
160
- * @param {string} name - name of feature/command
161
- *
162
- * @returns {Boolean}
110
+ * @param name - name of feature/command
163
111
  */
164
112
  isFeatureEnabled(name: string): boolean;
165
113
  /**
166
114
  * Assert that a given feature is enabled and throw a helpful error if it's
167
115
  * not
168
116
  *
169
- * @param {string} name - name of feature/command
117
+ * @param name - name of feature/command
170
118
  * @deprecated
171
119
  */
172
120
  ensureFeatureEnabled(name: string): void;
@@ -174,57 +122,33 @@ export class DriverCore<C extends import("@appium/types").Constraints, Settings
174
122
  * Assert that a given feature is enabled and throw a helpful error if it's
175
123
  * not
176
124
  *
177
- * @param {string} name - name of feature/command
125
+ * @param name - name of feature/command
178
126
  */
179
127
  assertFeatureEnabled(name: string): void;
180
- /**
181
- *
182
- * @param {string} strategy
183
- * @param {boolean} [webContext]
184
- */
185
- validateLocatorStrategy(strategy: string, webContext?: boolean | undefined): void;
186
- /**
187
- *
188
- * @param {string} [sessionId]
189
- * @returns {boolean}
190
- */
191
- proxyActive(sessionId?: string | undefined): boolean;
192
- /**
193
- *
194
- * @param {string} sessionId
195
- * @returns {import('@appium/types').RouteMatcher[]}
196
- */
197
- getProxyAvoidList(sessionId: string): import('@appium/types').RouteMatcher[];
198
- /**
199
- *
200
- * @param {string} [sessionId]
201
- * @returns {boolean}
202
- */
203
- canProxy(sessionId?: string | undefined): boolean;
128
+ validateLocatorStrategy(strategy: string, webContext?: boolean): void;
129
+ proxyActive(sessionId: string): boolean;
130
+ getProxyAvoidList(sessionId: string): RouteMatcher[];
131
+ canProxy(sessionId: string): boolean;
204
132
  /**
205
133
  * Whether a given command route (expressed as method and url) should not be
206
134
  * proxied according to this driver
207
135
  *
208
- * @param {string} sessionId - the current sessionId (in case the driver runs
136
+ * @param sessionId - the current sessionId (in case the driver runs
209
137
  * multiple session ids and requires it). This is not used in this method but
210
138
  * should be made available to overridden methods.
211
- * @param {import('@appium/types').HTTPMethod} method - HTTP method of the route
212
- * @param {string} url - url of the route
213
- * @param {any} [body] - webdriver request body
139
+ * @param method - HTTP method of the route
140
+ * @param url - url of the route
141
+ * @param [body] - webdriver request body
214
142
  *
215
- * @returns {boolean} - whether the route should be avoided
143
+ * @returns whether the route should be avoided
216
144
  */
217
- proxyRouteIsAvoided(sessionId: string, method: import('@appium/types').HTTPMethod, url: string, body?: any): boolean;
145
+ proxyRouteIsAvoided(sessionId: string, method: HTTPMethod, url: string, body?: any): boolean;
218
146
  /**
219
147
  *
220
148
  * @param {Driver} driver
221
149
  */
222
150
  addManagedDriver(driver: Driver): void;
223
- getManagedDrivers(): import("@appium/types").Driver<import("@appium/types").Constraints, import("@appium/types").StringRecord<any>, import("@appium/types").StringRecord<any>, import("@appium/types").DefaultCreateSessionResult<import("@appium/types").Constraints>, void, import("@appium/types").StringRecord<any>>[];
151
+ getManagedDrivers(): Driver<Constraints, StringRecord, StringRecord, import("@appium/types").DefaultCreateSessionResult<Constraints>, void, StringRecord>[];
224
152
  clearNewCommandTimeout(): Promise<void>;
225
153
  }
226
- import helpers from "./helpers";
227
- import { EventEmitter } from "events";
228
- import AsyncLock from "async-lock";
229
- import DeviceSettings from "./device-settings";
230
154
  //# sourceMappingURL=core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/core.js"],"names":[],"mappings":"qBAoba,OAAO,eAAe,EAAE,MAAM;0BAC9B,OAAO,eAAe,EAAE,WAAW;yBACnC,OAAO,eAAe,EAAE,UAAU;2BAClC,OAAO,eAAe,EAAE,YAAY;2BACpC,OAAO,eAAe,EAAE,YAAY;2BACpC,OAAO,eAAe,EAAE,YAAY;uCACpC,OAAO,eAAe,EAAE,wBAAwB;yGAMhD,OAAO,eAAe,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;wEAKlC,OAAO,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC;AApblD;;;;GAIG;AACH,qIAFqB,CAAC,EAAE,QAAQ;IAG9B;;;OAGG;IACH,2BAAoC;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;;;OAGG;IACG,SAAS;IAIf;;;OAGG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAKzC;;;OAGG;IACH,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI;IAI7D,iBAAiB;IAIjB,aAAa;IAIb,kBAAkB;IAIlB,cAAc;IAId;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAqBvC;;;;;;OAMG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM;IAIjC;;;;;OAKG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM;IAYjC,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,UAAQ;IAe5D,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAIvC,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,EAAE;IAIpD,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAIpC;;;;;;;;;;;;OAYG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO;IAoB5F;;;OAGG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM;IAI/B,iBAAiB;IAIX,sBAAsB;CAM7B"}
@@ -31,32 +31,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
31
  exports.DriverCore = void 0;
32
32
  const support_1 = require("@appium/support");
33
33
  const async_lock_1 = __importDefault(require("async-lock"));
34
- const events_1 = require("events");
35
34
  const lodash_1 = __importDefault(require("lodash"));
36
- const os_1 = __importDefault(require("os"));
35
+ const node_events_1 = require("node:events");
36
+ const node_os_1 = __importDefault(require("node:os"));
37
37
  const constants_1 = require("../constants");
38
38
  const protocol_1 = require("../protocol");
39
39
  const device_settings_1 = __importDefault(require("./device-settings"));
40
40
  const helpers_1 = __importStar(require("./helpers"));
41
41
  const NEW_COMMAND_TIMEOUT_MS = 60 * 1000;
42
42
  const ON_UNEXPECTED_SHUTDOWN_EVENT = 'onUnexpectedShutdown';
43
- /**
44
- * @template {Constraints} C
45
- * @template {StringRecord} [Settings=StringRecord]
46
- * @implements {Core<C, Settings>}
47
- */
48
43
  class DriverCore {
49
- /**
50
- * @param {DriverOpts<C>} opts
51
- * @param {boolean} [shouldValidateCaps]
52
- */
53
- constructor(opts = /** @type {DriverOpts<C>} */ ({}), shouldValidateCaps = true) {
44
+ constructor(opts = {}, shouldValidateCaps = true) {
54
45
  this._log = support_1.logger.getLogger(helpers_1.default.generateDriverLogPrefix(this));
55
46
  // setup state
56
47
  this.opts = opts;
57
48
  // use a custom tmp dir to avoid losing data and app when computer is
58
49
  // restarted
59
- this.opts.tmpDir = this.opts.tmpDir || process.env.APPIUM_TMP_DIR || os_1.default.tmpdir();
50
+ this.opts.tmpDir = this.opts.tmpDir || process.env.APPIUM_TMP_DIR || node_os_1.default.tmpdir();
60
51
  // base-driver internals
61
52
  this.shouldValidateCaps = shouldValidateCaps;
62
53
  // keeping track of initial opts
@@ -74,7 +65,7 @@ class DriverCore {
74
65
  this.managedDrivers = [];
75
66
  this.noCommandTimer = null;
76
67
  this._eventHistory = { commands: [] };
77
- this.eventEmitter = new events_1.EventEmitter();
68
+ this.eventEmitter = new node_events_1.EventEmitter();
78
69
  this.shutdownUnexpectedly = false;
79
70
  this.commandsQueueGuard = new async_lock_1.default();
80
71
  this.settings = new device_settings_1.default();
@@ -87,7 +78,7 @@ class DriverCore {
87
78
  * when the driver is shut down unexpectedly. Multiple calls to this method
88
79
  * will cause the handler to be executed mutiple times
89
80
  *
90
- * @param {(...args: any[]) => void} handler The code to be executed on unexpected shutdown.
81
+ * @param handler The code to be executed on unexpected shutdown.
91
82
  * The function may accept one argument, which is the actual error instance, which
92
83
  * caused the driver to shut down.
93
84
  */
@@ -101,14 +92,14 @@ class DriverCore {
101
92
  * Override it in inherited driver classes if necessary.
102
93
  */
103
94
  get driverData() {
104
- return /** @type {import('@appium/types').DriverData} */ ({});
95
+ return {};
105
96
  }
106
97
  /**
107
98
  * This property controls the way the `executeCommand` method
108
99
  * handles new driver commands received from the client.
109
100
  * Override it for inherited classes only in special cases.
110
101
  *
111
- * @return {boolean} If the returned value is true (default) then all the commands
102
+ * @return If the returned value is true (default) then all the commands
112
103
  * received by the particular driver instance are going to be put into the queue,
113
104
  * so each following command will not be executed until the previous command
114
105
  * execution is completed. False value disables that queue, so each driver command
@@ -126,7 +117,6 @@ class DriverCore {
126
117
  }
127
118
  /**
128
119
  * API method for driver developers to log timings for important events
129
- * @param {string} eventName
130
120
  */
131
121
  logEvent(eventName) {
132
122
  if (eventName === 'commands') {
@@ -153,8 +143,6 @@ class DriverCore {
153
143
  /**
154
144
  * method required by MJSONWP in order to determine whether it should
155
145
  * respond with an invalid session response
156
- * @param {string} [sessionId]
157
- * @returns {boolean}
158
146
  */
159
147
  sessionExists(sessionId) {
160
148
  if (!sessionId)
@@ -164,11 +152,9 @@ class DriverCore {
164
152
  /**
165
153
  * method required by MJSONWP in order to determine if the command should
166
154
  * be proxied directly to the driver
167
- * @param {string} sessionId
168
- * @returns {Core<C> | null}
169
155
  */
170
156
  driverForSession(sessionId) {
171
- return /** @type {Core<C> | null} */ (this);
157
+ return this;
172
158
  }
173
159
  isMjsonwpProtocol() {
174
160
  return this.protocol === constants_1.PROTOCOLS.MJSONWP;
@@ -185,9 +171,7 @@ class DriverCore {
185
171
  /**
186
172
  * Check whether a given feature is enabled via its name
187
173
  *
188
- * @param {string} name - name of feature/command
189
- *
190
- * @returns {Boolean}
174
+ * @param name - name of feature/command
191
175
  */
192
176
  isFeatureEnabled(name) {
193
177
  // if we have explicitly denied this feature, return false immediately
@@ -210,7 +194,7 @@ class DriverCore {
210
194
  * Assert that a given feature is enabled and throw a helpful error if it's
211
195
  * not
212
196
  *
213
- * @param {string} name - name of feature/command
197
+ * @param name - name of feature/command
214
198
  * @deprecated
215
199
  */
216
200
  ensureFeatureEnabled(name) {
@@ -220,7 +204,7 @@ class DriverCore {
220
204
  * Assert that a given feature is enabled and throw a helpful error if it's
221
205
  * not
222
206
  *
223
- * @param {string} name - name of feature/command
207
+ * @param name - name of feature/command
224
208
  */
225
209
  assertFeatureEnabled(name) {
226
210
  if (!this.isFeatureEnabled(name)) {
@@ -231,11 +215,6 @@ class DriverCore {
231
215
  `/appium/blob/master/docs/en/writing-running-appium/security.md`);
232
216
  }
233
217
  }
234
- /**
235
- *
236
- * @param {string} strategy
237
- * @param {boolean} [webContext]
238
- */
239
218
  validateLocatorStrategy(strategy, webContext = false) {
240
219
  let validStrategies = this.locatorStrategies;
241
220
  this.log.debug(`Valid locator strategies for this request: ${validStrategies.join(', ')}`);
@@ -246,27 +225,12 @@ class DriverCore {
246
225
  throw new protocol_1.errors.InvalidSelectorError(`Locator Strategy '${strategy}' is not supported for this session`);
247
226
  }
248
227
  }
249
- /**
250
- *
251
- * @param {string} [sessionId]
252
- * @returns {boolean}
253
- */
254
228
  proxyActive(sessionId) {
255
229
  return false;
256
230
  }
257
- /**
258
- *
259
- * @param {string} sessionId
260
- * @returns {import('@appium/types').RouteMatcher[]}
261
- */
262
231
  getProxyAvoidList(sessionId) {
263
232
  return [];
264
233
  }
265
- /**
266
- *
267
- * @param {string} [sessionId]
268
- * @returns {boolean}
269
- */
270
234
  canProxy(sessionId) {
271
235
  return false;
272
236
  }
@@ -274,28 +238,28 @@ class DriverCore {
274
238
  * Whether a given command route (expressed as method and url) should not be
275
239
  * proxied according to this driver
276
240
  *
277
- * @param {string} sessionId - the current sessionId (in case the driver runs
241
+ * @param sessionId - the current sessionId (in case the driver runs
278
242
  * multiple session ids and requires it). This is not used in this method but
279
243
  * should be made available to overridden methods.
280
- * @param {import('@appium/types').HTTPMethod} method - HTTP method of the route
281
- * @param {string} url - url of the route
282
- * @param {any} [body] - webdriver request body
244
+ * @param method - HTTP method of the route
245
+ * @param url - url of the route
246
+ * @param [body] - webdriver request body
283
247
  *
284
- * @returns {boolean} - whether the route should be avoided
248
+ * @returns whether the route should be avoided
285
249
  */
286
250
  proxyRouteIsAvoided(sessionId, method, url, body) {
287
- for (let avoidSchema of this.getProxyAvoidList(sessionId)) {
251
+ for (const avoidSchema of this.getProxyAvoidList(sessionId)) {
288
252
  if (!lodash_1.default.isArray(avoidSchema) || avoidSchema.length !== 2) {
289
253
  throw new Error('Proxy avoidance must be a list of pairs');
290
254
  }
291
- let [avoidMethod, avoidPathRegex] = avoidSchema;
255
+ const [avoidMethod, avoidPathRegex] = avoidSchema;
292
256
  if (!lodash_1.default.includes(['GET', 'POST', 'DELETE'], avoidMethod)) {
293
257
  throw new Error(`Unrecognized proxy avoidance method '${avoidMethod}'`);
294
258
  }
295
259
  if (!lodash_1.default.isRegExp(avoidPathRegex)) {
296
260
  throw new Error('Proxy avoidance path must be a regular expression');
297
261
  }
298
- let normalizedUrl = url.replace(new RegExp(`^${lodash_1.default.escapeRegExp(this.basePath)}`), '');
262
+ const normalizedUrl = url.replace(new RegExp(`^${lodash_1.default.escapeRegExp(this.basePath)}`), '');
299
263
  if (avoidMethod === method && avoidPathRegex.test(normalizedUrl)) {
300
264
  return true;
301
265
  }
@@ -319,28 +283,10 @@ class DriverCore {
319
283
  }
320
284
  }
321
285
  }
322
- exports.DriverCore = DriverCore;
323
286
  /**
324
287
  * Make the basedriver version available so for any driver which inherits from this package, we
325
288
  * know which version of basedriver it inherited from
326
289
  */
327
290
  DriverCore.baseVersion = helpers_1.BASEDRIVER_VER;
328
- /**
329
- * @typedef {import('@appium/types').Driver} Driver
330
- * @typedef {import('@appium/types').Constraints} Constraints
331
- * @typedef {import('@appium/types').ServerArgs} ServerArgs
332
- * @typedef {import('@appium/types').EventHistory} EventHistory
333
- * @typedef {import('@appium/types').AppiumLogger} AppiumLogger
334
- * @typedef {import('@appium/types').StringRecord} StringRecord
335
- * @typedef {import('@appium/types').BaseDriverCapConstraints} BaseDriverCapConstraints
336
- */
337
- /**
338
- * @template {Constraints} C
339
- * @template {StringRecord} [S=StringRecord]
340
- * @typedef {import('@appium/types').Core<C, S>} Core
341
- */
342
- /**
343
- * @template {Constraints} C
344
- * @typedef {import('@appium/types').DriverOpts<C>} DriverOpts
345
- */
291
+ exports.DriverCore = DriverCore;
346
292
  //# sourceMappingURL=core.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../lib/basedriver/core.js"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElC,6CAAuC;AACvC,4DAAmC;AACnC,mCAAoC;AACpC,oDAAuB;AACvB,4CAAoB;AACpB,4CAA0D;AAC1D,0CAAmC;AACnC,wEAA+C;AAC/C,qDAAkD;AAElD,MAAM,sBAAsB,GAAG,EAAE,GAAG,IAAI,CAAC;AAEzC,MAAM,4BAA4B,GAAG,sBAAsB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,UAAU;IAoGd;;;OAGG;IACH,YAAY,IAAI,GAAG,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,kBAAkB,GAAG,IAAI;QAC7E,IAAI,CAAC,IAAI,GAAG,gBAAM,CAAC,SAAS,CAAC,iBAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC;QAEpE,cAAc;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,qEAAqE;QACrE,YAAY;QACZ,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,YAAE,CAAC,MAAM,EAAE,CAAC;QAEjF,wBAAwB;QACxB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAE7C,gCAAgC;QAChC,IAAI,CAAC,WAAW,GAAG,gBAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAErC,IAAI,CAAC,SAAS,GAAG,IAAI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AAM,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,WAAW,GAAG,CAAC,CAAC;aACzE;YACD,IAAI,CAAC,gBAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;gBAC/B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;aACtE;YACD,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,gBAAC,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACvF,IAAI,WAAW,KAAK,MAAM,IAAI,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;gBAChE,OAAO,IAAI,CAAC;aACb;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,MAAc;QAC7B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,sBAAsB;QAC1B,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;SAC5B;IACH,CAAC;;AAzVD;;;GAGG;AACI,sBAAW,GAAG,wBAAc,CAAC;AAPzB,gCAAU"}
@@ -1,6 +1,6 @@
1
1
  export const validator: _validator.ValidateJS & {
2
2
  promise: typeof B;
3
3
  };
4
- import _validator from "validate.js";
5
- import B from "bluebird";
4
+ import _validator from 'validate.js';
5
+ import B from 'bluebird';
6
6
  //# sourceMappingURL=desired-caps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"desired-caps.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/desired-caps.js"],"names":[],"mappings":"AAIA;;EAGI"}
1
+ {"version":3,"file":"desired-caps.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/desired-caps.js"],"names":[],"mappings":"AAIA;;EAGI;uBANmB,aAAa;cACtB,UAAU"}
@@ -3,10 +3,10 @@
3
3
  */
4
4
  export const MAX_SETTINGS_SIZE: number;
5
5
  /**
6
- * @template {import('@appium/types').StringRecord} T
6
+ * @template {StringRecord} T
7
7
  * @implements {IDeviceSettings<T>}
8
8
  */
9
- export class DeviceSettings<T extends import("@appium/types").StringRecord<any>> implements IDeviceSettings<T> {
9
+ export class DeviceSettings<T extends StringRecord> implements IDeviceSettings<T> {
10
10
  /**
11
11
  * Creates a _shallow copy_ of the `defaultSettings` parameter!
12
12
  * @param {T} [defaultSettings]
@@ -31,5 +31,6 @@ export class DeviceSettings<T extends import("@appium/types").StringRecord<any>>
31
31
  getSettings(): T;
32
32
  }
33
33
  export default DeviceSettings;
34
- export type IDeviceSettings<T extends import("@appium/types").StringRecord<any> = import("@appium/types").StringRecord<any>> = import('@appium/types').IDeviceSettings<T>;
34
+ export type StringRecord = import('@appium/types').StringRecord;
35
+ export type IDeviceSettings<T extends StringRecord = StringRecord> = import('@appium/types').IDeviceSettings<T>;
35
36
  //# sourceMappingURL=device-settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"device-settings.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.js"],"names":[],"mappings":"AAKA;;GAEG;AACH,uCAAkD;AAElD;;;GAGG;AACH,4GAFgC,CAAC;IAe/B;;;;OAIG;IACH,+HAGC;IApBD;;;OAGG;IACH,qBAFU,CAAC,CAED;IAEV;;;OAGG;IACH,6BAFU,OAAO,eAAe,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAEzC;IAYlB;;;OAGG;IACH,oBAFW,CAAC,iBA2BX;IAED,iBAEC;CACF;;+HAMY,OAAO,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"device-settings.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.js"],"names":[],"mappings":"AAKA;;GAEG;AACH,uCAAkD;AAElD;;;GAGG;AACH,+EAFgC,CAAC;IAe/B;;;;OAIG;IACH,+HAGC;IApBD;;;OAGG;IACH,qBAFU,CAAC,CAED;IAEV;;;OAGG;IACH,6BAFU,OAAO,eAAe,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAEzC;IAYlB;;;OAGG;IACH,oBAFW,CAAC,iBA2BX;IAED,iBAEC;CACF;;2BAKY,OAAO,eAAe,EAAE,YAAY;qEAKpC,OAAO,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC"}