@appium/base-plugin 3.1.0 → 3.2.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/build/lib/plugin.d.ts +4 -3
- package/build/lib/plugin.d.ts.map +1 -1
- package/build/lib/plugin.js.map +1 -1
- package/lib/plugin.ts +4 -2
- package/package.json +5 -5
package/build/lib/plugin.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
|
|
@@ -12,8 +13,8 @@ export declare class BasePlugin extends ExtensionCore implements Plugin {
|
|
|
12
13
|
* @deprecated Use this.log instead of this.logger
|
|
13
14
|
*/
|
|
14
15
|
logger: AppiumLogger;
|
|
15
|
-
static newMethodMap: MethodMap<
|
|
16
|
-
static executeMethodMap: ExecuteMethodMap<
|
|
16
|
+
static newMethodMap: MethodMap<BasePluginMapType>;
|
|
17
|
+
static executeMethodMap: ExecuteMethodMap<BasePluginMapType>;
|
|
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,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
|
-
{"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,IAAI,CAAS;IACb,OAAO,CAA0B;IAOjC,MAAM,CAAC,YAAY,GAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,gBAAgB,GAAwC,EAAE,CAAC;IAElE,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,6 +15,8 @@ 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
|
|
@@ -29,9 +31,9 @@ export class BasePlugin extends ExtensionCore implements Plugin {
|
|
|
29
31
|
*/
|
|
30
32
|
declare logger: AppiumLogger;
|
|
31
33
|
|
|
32
|
-
static newMethodMap: MethodMap<
|
|
34
|
+
static newMethodMap: MethodMap<BasePluginMapType> = {};
|
|
33
35
|
|
|
34
|
-
static executeMethodMap: ExecuteMethodMap<
|
|
36
|
+
static executeMethodMap: ExecuteMethodMap<BasePluginMapType> = {};
|
|
35
37
|
|
|
36
38
|
constructor(
|
|
37
39
|
name: string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/base-plugin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
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.3.0",
|
|
44
|
+
"@appium/support": "7.1.0",
|
|
45
|
+
"@appium/types": "1.3.0"
|
|
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": "7a8965f5c30ffec2ad04ce75903b3960537cef06",
|
|
55
55
|
"tags": [
|
|
56
56
|
"appium"
|
|
57
57
|
]
|