@appium/base-plugin 3.1.1 → 3.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/build/lib/plugin.d.ts +4 -3
- package/build/lib/plugin.d.ts.map +1 -1
- package/build/lib/plugin.js +2 -2
- package/build/lib/plugin.js.map +1 -1
- package/lib/plugin.ts +6 -4
- package/package.json +5 -5
- package/tsconfig.json +1 -0
package/build/lib/plugin.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { ExtensionCore } from '@appium/base-driver';
|
|
2
|
-
import type { AppiumLogger, Constraints, Driver, ExecuteMethodMap, MethodMap, NextPluginCallback, Plugin, StringRecord } from '@appium/types';
|
|
2
|
+
import type { AppiumLogger, Constraints, Driver, ExecuteMethodMap, MethodMap, NextPluginCallback, Plugin, PluginCommand, StringRecord } from '@appium/types';
|
|
3
|
+
type BasePluginMapType = Plugin & Record<string, PluginCommand>;
|
|
3
4
|
/**
|
|
4
5
|
* Base plugin class for Appium plugins.
|
|
5
6
|
* Subclasses should use type `import('@appium/types').MethodMap<SubclassName>` for
|
|
6
7
|
* `newMethodMap` and `ExecuteMethodMap<SubclassName>` for `executeMethodMap`.
|
|
7
8
|
*/
|
|
8
9
|
export declare class BasePlugin extends ExtensionCore implements Plugin {
|
|
10
|
+
static newMethodMap: MethodMap<BasePluginMapType>;
|
|
11
|
+
static executeMethodMap: ExecuteMethodMap<BasePluginMapType>;
|
|
9
12
|
name: string;
|
|
10
13
|
cliArgs: Record<string, unknown>;
|
|
11
14
|
/**
|
|
12
15
|
* @deprecated Use this.log instead of this.logger
|
|
13
16
|
*/
|
|
14
17
|
logger: AppiumLogger;
|
|
15
|
-
static newMethodMap: MethodMap<BasePlugin>;
|
|
16
|
-
static executeMethodMap: ExecuteMethodMap<BasePlugin>;
|
|
17
18
|
constructor(name: string, cliArgs?: Record<string, unknown>, driverId?: string | null);
|
|
18
19
|
/**
|
|
19
20
|
* A convenience method for plugins that implement their own `executeMethodMap`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../lib/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,MAAM,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../lib/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,MAAM,EACN,aAAa,EACb,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,KAAK,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEhE;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,aAAc,YAAW,MAAM;IAC7D,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAM;IAEvD,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAM;IAElE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC;;OAEG;IACK,MAAM,EAAE,YAAY,CAAC;gBAG3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACrC,QAAQ,GAAE,MAAM,GAAG,IAAW;IAWhC;;;OAGG;IACG,aAAa,CAAC,CAAC,SAAS,WAAW,EACvC,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EACjB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,OAAO,EAAE,GAC/D,OAAO,CAAC,OAAO,CAAC;CAoBpB;AAED,eAAe,UAAU,CAAC"}
|
package/build/lib/plugin.js
CHANGED
|
@@ -8,10 +8,10 @@ const base_driver_1 = require("@appium/base-driver");
|
|
|
8
8
|
* `newMethodMap` and `ExecuteMethodMap<SubclassName>` for `executeMethodMap`.
|
|
9
9
|
*/
|
|
10
10
|
class BasePlugin extends base_driver_1.ExtensionCore {
|
|
11
|
-
name;
|
|
12
|
-
cliArgs;
|
|
13
11
|
static newMethodMap = {};
|
|
14
12
|
static executeMethodMap = {};
|
|
13
|
+
name;
|
|
14
|
+
cliArgs;
|
|
15
15
|
constructor(name, cliArgs = {}, driverId = null) {
|
|
16
16
|
super();
|
|
17
17
|
if (driverId) {
|
package/build/lib/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../lib/plugin.ts"],"names":[],"mappings":";;;AAAA,qDAI6B;
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../lib/plugin.ts"],"names":[],"mappings":";;;AAAA,qDAI6B;AAe7B;;;;GAIG;AACH,MAAa,UAAW,SAAQ,2BAAa;IAC3C,MAAM,CAAC,YAAY,GAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,gBAAgB,GAAwC,EAAE,CAAC;IAElE,IAAI,CAAS;IACb,OAAO,CAA0B;IAOjC,YACE,IAAY,EACZ,UAAmC,EAAE,EACrC,WAA0B,IAAI;QAE9B,KAAK,EAAE,CAAC;QACR,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,CAAC,eAAe,CAAC,GAAG,IAAA,qCAAuB,EAAC,IAAI,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC;QACzE,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CACjB,IAAwB,EACxB,MAAiB,EACjB,MAAc,EACd,SAAgE;QAEhE,MAAM,WAAW,GAAG,IAAI,CAAC,WAAgC,CAAC;QAC1D,MAAM,eAAe,GAAG,EAAC,GAAG,WAAW,CAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,EAAC,CAAC;QAEpE,IAAI,CAAC,eAAe,CAAC,OAAO,IAAI,CAAC,CAAC,eAAe,CAAC,OAAO,IAAI,IAAI,CAAC,EAAE,CAAC;YACnE,IAAI,CAAC,GAAG,CAAC,IAAI,CACX,6CAA6C,MAAM,4BAA4B,CAChF,CAAC;YACF,OAAO,MAAM,IAAI,EAAE,CAAC;QACtB,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAClB,eAAe,CAAC,OAAqB,CACV,CAAC;QAC9B,MAAM,IAAI,GAAG,IAAA,yCAA2B,EACtC,SAAsB,EACtB,eAAe,CAAC,MAAM,CACvB,CAAC;QACF,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IACzD,CAAC;;AAvDH,gCAwDC;AAED,kBAAe,UAAU,CAAC"}
|
package/lib/plugin.ts
CHANGED
|
@@ -15,12 +15,18 @@ import type {
|
|
|
15
15
|
StringRecord,
|
|
16
16
|
} from '@appium/types';
|
|
17
17
|
|
|
18
|
+
type BasePluginMapType = Plugin & Record<string, PluginCommand>;
|
|
19
|
+
|
|
18
20
|
/**
|
|
19
21
|
* Base plugin class for Appium plugins.
|
|
20
22
|
* Subclasses should use type `import('@appium/types').MethodMap<SubclassName>` for
|
|
21
23
|
* `newMethodMap` and `ExecuteMethodMap<SubclassName>` for `executeMethodMap`.
|
|
22
24
|
*/
|
|
23
25
|
export class BasePlugin extends ExtensionCore implements Plugin {
|
|
26
|
+
static newMethodMap: MethodMap<BasePluginMapType> = {};
|
|
27
|
+
|
|
28
|
+
static executeMethodMap: ExecuteMethodMap<BasePluginMapType> = {};
|
|
29
|
+
|
|
24
30
|
name: string;
|
|
25
31
|
cliArgs: Record<string, unknown>;
|
|
26
32
|
|
|
@@ -29,10 +35,6 @@ export class BasePlugin extends ExtensionCore implements Plugin {
|
|
|
29
35
|
*/
|
|
30
36
|
declare logger: AppiumLogger;
|
|
31
37
|
|
|
32
|
-
static newMethodMap: MethodMap<BasePlugin> = {};
|
|
33
|
-
|
|
34
|
-
static executeMethodMap: ExecuteMethodMap<BasePlugin> = {};
|
|
35
|
-
|
|
36
38
|
constructor(
|
|
37
39
|
name: string,
|
|
38
40
|
cliArgs: Record<string, unknown> = {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/base-plugin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "The base plugin used to create Appium plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"test:unit": "mocha \"./test/unit/**/*.spec.*ts\""
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@appium/base-driver": "
|
|
44
|
-
"@appium/support": "
|
|
45
|
-
"@appium/types": "
|
|
43
|
+
"@appium/base-driver": "10.4.0",
|
|
44
|
+
"@appium/support": "7.1.1",
|
|
45
|
+
"@appium/types": "1.3.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "17f84265d10944fec06ae7684ae8ad77d1224b50",
|
|
55
55
|
"tags": [
|
|
56
56
|
"appium"
|
|
57
57
|
]
|