@appium/types 0.9.1 → 0.10.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 +1 -1
- package/build/lib/action.d.ts +21 -17
- package/build/lib/action.d.ts.map +1 -1
- package/build/lib/action.js +1 -1
- package/build/lib/action.js.map +1 -1
- package/build/lib/appium-config.d.ts +27 -27
- package/build/lib/appium-config.d.ts.map +1 -1
- package/build/lib/capabilities.d.ts +16 -16
- package/build/lib/capabilities.d.ts.map +1 -1
- package/build/lib/command.d.ts +98 -0
- package/build/lib/command.d.ts.map +1 -0
- package/build/lib/{logger.js → command.js} +1 -1
- package/build/lib/command.js.map +1 -0
- package/build/lib/config.d.ts +10 -10
- package/build/lib/config.d.ts.map +1 -1
- package/build/lib/constraints.d.ts +20 -20
- package/build/lib/constraints.js +1 -1
- package/build/lib/constraints.js.map +1 -1
- package/build/lib/driver.d.ts +39 -32
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/index.d.ts +12 -64
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +1 -0
- package/build/lib/index.js.map +1 -1
- package/build/lib/plugin.d.ts +5 -4
- package/build/lib/plugin.d.ts.map +1 -1
- package/build/lib/standard-caps.d.ts +3 -3
- package/build/lib/standard-caps.d.ts.map +1 -1
- package/lib/action.ts +10 -13
- package/lib/command.ts +119 -0
- package/lib/constraints.js +1 -1
- package/lib/driver.ts +33 -35
- package/lib/index.ts +3 -73
- package/lib/plugin.ts +2 -1
- package/package.json +4 -4
- package/build/lib/extension.d.ts +0 -71
- package/build/lib/extension.d.ts.map +0 -1
- package/build/lib/extension.js +0 -3
- package/build/lib/extension.js.map +0 -1
- package/build/lib/logger.d.ts +0 -39
- package/build/lib/logger.d.ts.map +0 -1
- package/build/lib/logger.js.map +0 -1
- package/build/lib/server.d.ts +0 -21
- package/build/lib/server.d.ts.map +0 -1
- package/build/lib/server.js +0 -3
- package/build/lib/server.js.map +0 -1
- package/build/lib/util.d.ts +0 -16
- package/build/lib/util.d.ts.map +0 -1
- package/build/lib/util.js +0 -3
- package/build/lib/util.js.map +0 -1
package/build/lib/logger.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Logger } from 'npmlog';
|
|
2
|
-
/**
|
|
3
|
-
* A log prefix for {@linkcode AppiumLogger}
|
|
4
|
-
*
|
|
5
|
-
* If a function, the function will return the prefix. Log messages will be prefixed with this value.
|
|
6
|
-
*/
|
|
7
|
-
export declare type AppiumLoggerPrefix = string | (() => string);
|
|
8
|
-
/**
|
|
9
|
-
* Possible "log levels" for {@linkcode AppiumLogger}.
|
|
10
|
-
*
|
|
11
|
-
* Extracted from `npmlog`.
|
|
12
|
-
*/
|
|
13
|
-
export declare type AppiumLoggerLevel = 'silly' | 'verbose' | 'debug' | 'info' | 'http' | 'warn' | 'error';
|
|
14
|
-
/**
|
|
15
|
-
* Describes the `npmlog`-based internal logger.
|
|
16
|
-
*
|
|
17
|
-
* @see https://npm.im/npmlog
|
|
18
|
-
*/
|
|
19
|
-
export interface AppiumLogger {
|
|
20
|
-
/**
|
|
21
|
-
* Returns the underlying `npmlog` {@link Logger}.
|
|
22
|
-
*/
|
|
23
|
-
unwrap(): Logger;
|
|
24
|
-
level: AppiumLoggerLevel;
|
|
25
|
-
levels: AppiumLoggerLevel[];
|
|
26
|
-
/**
|
|
27
|
-
* Log prefix, if applicable.
|
|
28
|
-
*/
|
|
29
|
-
prefix?: AppiumLoggerPrefix;
|
|
30
|
-
debug(...args: any[]): void;
|
|
31
|
-
info(...args: any[]): void;
|
|
32
|
-
warn(...args: any[]): void;
|
|
33
|
-
error(...args: any[]): void;
|
|
34
|
-
verbose(...args: any[]): void;
|
|
35
|
-
silly(...args: any[]): void;
|
|
36
|
-
http(...args: any[]): void;
|
|
37
|
-
errorAndThrow(...args: any[]): never;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../lib/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAE9B;;;;GAIG;AACH,oBAAY,kBAAkB,GAAG,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;AAEzD;;;;GAIG;AACH,oBAAY,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnG;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC;IACjB,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;CACtC"}
|
package/build/lib/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../lib/logger.ts"],"names":[],"mappings":""}
|
package/build/lib/server.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import type { Server } from 'node:http';
|
|
4
|
-
import type { Socket } from 'node:net';
|
|
5
|
-
import type { Server as WSServer } from 'ws';
|
|
6
|
-
/**
|
|
7
|
-
* Appium's slightly-modified {@linkcode Server http.Server}.
|
|
8
|
-
*/
|
|
9
|
-
export declare type AppiumServer = Omit<Server, 'close'> & AppiumServerExtension;
|
|
10
|
-
export interface AppiumServerExtension {
|
|
11
|
-
close(): Promise<void>;
|
|
12
|
-
addWebSocketHandler(handlerPathname: string, handlerServer: WSServer): Promise<void>;
|
|
13
|
-
removeWebSocketHandler(handlerPathname: string): Promise<boolean>;
|
|
14
|
-
removeAllWebSocketHandlers(): Promise<boolean>;
|
|
15
|
-
getWebSocketHandlers(keysFilter: string | null | undefined): Promise<Record<string, WSServer>>;
|
|
16
|
-
webSocketsMapping: Record<string, WSServer>;
|
|
17
|
-
}
|
|
18
|
-
export interface AppiumServerSocket extends Socket {
|
|
19
|
-
_openReqCount: number;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../lib/server.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAC,MAAM,IAAI,QAAQ,EAAC,MAAM,IAAI,CAAC;AAE3C;;GAEG;AAEH,oBAAY,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,qBAAqB,CAAC;AAEzE,MAAM,WAAW,qBAAqB;IACpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,mBAAmB,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrF,sBAAsB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC/F,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
package/build/lib/server.js
DELETED
package/build/lib/server.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../lib/server.ts"],"names":[],"mappings":""}
|
package/build/lib/util.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Class as _Class } from 'type-fest';
|
|
2
|
-
/**
|
|
3
|
-
* Utility type for a object with string-only props
|
|
4
|
-
*/
|
|
5
|
-
export declare type StringRecord<T = any> = Record<string, T>;
|
|
6
|
-
/**
|
|
7
|
-
* Wraps {@linkcode _Class `type-fest`'s `Class`} to include static members.
|
|
8
|
-
*/
|
|
9
|
-
export declare type Class<Proto, StaticMembers extends object = {}, Args extends unknown[] = any[]> = _Class<Proto, Args> & StaticMembers;
|
|
10
|
-
/**
|
|
11
|
-
* Possible HTTP methods, as stolen from `axios`.
|
|
12
|
-
*
|
|
13
|
-
* @see https://npm.im/axios
|
|
14
|
-
*/
|
|
15
|
-
export declare type HTTPMethod = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
16
|
-
//# sourceMappingURL=util.d.ts.map
|
package/build/lib/util.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../lib/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,IAAI,MAAM,EAAC,MAAM,WAAW,CAAC;AAE/C;;GAEG;AAEH,oBAAY,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AACtD;;GAEG;AACH,oBAAY,KAAK,CACf,KAAK,EACL,aAAa,SAAS,MAAM,GAAG,EAAE,EACjC,IAAI,SAAS,OAAO,EAAE,GAAG,GAAG,EAAE,IAC5B,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,aAAa,CAAC;AAExC;;;;GAIG;AACH,oBAAY,UAAU,GAClB,KAAK,GACL,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC"}
|
package/build/lib/util.js
DELETED
package/build/lib/util.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../lib/util.ts"],"names":[],"mappings":""}
|