@appium/images-plugin 2.0.7 → 2.0.9

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 CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright JS Foundation and other contributors, https://js.foundation
189
+ Copyright OpenJS Foundation and other contributors, https://openjsf.org/
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  export type OccurrenceResult = import('@appium/opencv').OccurrenceResult;
2
- export function compareImages(next: import("@appium/types").NextPluginCallback, driver: [string, string, string, any], ...args: Promise<import("@appium/opencv").OccurrenceResult>): Promise<any>;
2
+ export function compareImages(next: import("@appium/types").NextPluginCallback<unknown>, driver: [string, string, string, any], ...args: Promise<import("@appium/opencv").OccurrenceResult>): Promise<unknown>;
3
3
  export const DEFAULT_MATCH_THRESHOLD: 0.4;
4
4
  export const MATCH_TEMPLATE_MODE: "matchTemplate";
5
5
  export const MATCH_FEATURES_MODE: "matchFeatures";
@@ -1 +1 @@
1
- {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../lib/compare.js"],"names":[],"mappings":"+BA+Fa,OAAO,gBAAgB,EAAE,gBAAgB;AATrD,kMAGqB;AAjFtB,0CAAoC;AAFpC,kDAA4C;AAF5C,kDAA4C;AAC5C,kDAA4C"}
1
+ {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../lib/compare.js"],"names":[],"mappings":"+BA+Fa,OAAO,gBAAgB,EAAE,gBAAgB;AAEghC,+MAAsF;AAzF5pC,0CAAoC;AAFpC,kDAA4C;AAF5C,kDAA4C;AAC5C,kDAA4C"}
@@ -23,7 +23,7 @@ export default class ImageElement {
23
23
  *
24
24
  * @returns {object} - the result of running a command
25
25
  */
26
- static execute(driver: import('appium/driver').BaseDriver, imgEl: any, cmd: string, ...args: string[]): object;
26
+ static execute(driver: import("appium/driver").BaseDriver<any, import("@appium/types").StringRecord<any>, import("@appium/types").StringRecord<any>>, imgEl: any, cmd: string, ...args: string[]): object;
27
27
  /**
28
28
  * @param {string} b64Template - the base64-encoded image which was used to
29
29
  * find this ImageElement
@@ -1 +1 @@
1
- {"version":3,"file":"image-element.d.ts","sourceRoot":"","sources":["../../lib/image-element.js"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH;;;;GAIG;AAEH;;;GAGG;AACH;IAsLE;;;;;;;;;OASG;IACH,uBAPW,OAAO,eAAe,EAAE,UAAU,mBAClC,MAAM,WAEN,MAAM,EAAE,GAEN,MAAM,CA8BlB;IA3ND;;;;;;;;;OASG;IACH,yBATW,MAAM,QAEN,IAAI,SACJ,MAAM,cAEN,MAAM,kBAEN,OAAO,UAAU,EAAE,OAAO,SASpC;IANC,iBAA2B;IAC3B,mCAAgB;IAChB,WAAmD;IACnD,+BAAgC;IAChC,cAAkB;IAClB,0CAAoB;IAGtB;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,uBAKC;IAED;;OAEG;IACH,kCAEC;IAED;;;;;OAKG;IACH,uBALW,MAAM,GAGJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,cALW,YAAY,GAEV,OAAO,CAUnB;IAED;;;;;OAKG;IACH,wCAkGC;CAyCF;;;;;WA3Oa,MAAM;;;;YACN,MAAM;;;;;;OAKN,MAAM;;;;OACN,MAAM;;mBA+OP,OAAO,eAAe,EAAE,IAAI;sBAC5B,OAAO,eAAe,EAAE,OAAO;AA7P5C,2DAAqD;AADrD,qDAA+C;AAG/C,6CAAyC;AALzC,2DAAqD"}
1
+ {"version":3,"file":"image-element.d.ts","sourceRoot":"","sources":["../../lib/image-element.js"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH;;;;GAIG;AAEH;;;GAGG;AACH;IAsLE;;;;;;;;;OASG;IACH,uKANW,MAAM,WAEN,MAAM,EAAE,GAEN,MAAM,CA8BlB;IA3ND;;;;;;;;;OASG;IACH,yBATW,MAAM,QAEN,IAAI,SACJ,MAAM,cAEN,MAAM,kBAEN,OAAO,UAAU,EAAE,OAAO,SASpC;IANC,iBAA2B;IAC3B,mCAAgB;IAChB,WAAmD;IACnD,+BAAgC;IAChC,cAAkB;IAClB,0CAAoB;IAGtB;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,uBAKC;IAED;;OAEG;IACH,kCAEC;IAED;;;;;OAKG;IACH,uBALW,MAAM,GAGJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,cALW,YAAY,GAEV,OAAO,CAUnB;IAED;;;;;OAKG;IACH,wCAkGC;CAyCF;;;;;WA3Oa,MAAM;;;;YACN,MAAM;;;;;;OAKN,MAAM;;;;OACN,MAAM;;mBA+OP,OAAO,eAAe,EAAE,IAAI;sBAC5B,OAAO,eAAe,EAAE,OAAO;AA7P5C,2DAAqD;AADrD,qDAA+C;AAG/C,6CAAyC;AALzC,2DAAqD"}
@@ -13,7 +13,7 @@ export default class ImageElementPlugin {
13
13
  };
14
14
  constructor(pluginName: any);
15
15
  finder: ImageElementFinder;
16
- compareImages(next: any, driver: any, ...args: any[]): Promise<any>;
16
+ compareImages(next: any, driver: any, ...args: any[]): Promise<unknown>;
17
17
  findElement(next: any, driver: any, ...args: any[]): Promise<any>;
18
18
  findElements(next: any, driver: any, ...args: any[]): Promise<any>;
19
19
  _find(multiple: any, next: any, driver: any, ...args: any[]): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../lib/plugin.js"],"names":[],"mappings":"AAmBA;IAOE;;;;;;;;;;;MAWG;IAjBH,6BAGC;IADC,2BAAsC;IAiBxC,oEAEC;IAED,kEAEC;IAED,mEAEC;IAED,2EAUC;IAED,2EAcC;CACF;;AAnED,gEAMC;AARD,sCAAgC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../lib/plugin.js"],"names":[],"mappings":"AAmBA;IAOE;;;;;;;;;;;MAWG;IAjBH,6BAGC;IADC,2BAAsC;IAiBxC,wEAEC;IAED,kEAEC;IAED,mEAEC;IAED,2EAUC;IAED,2EAcC;CACF;;AAnED,gEAMC;AARD,sCAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appium/images-plugin",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "Plugin for working with images and image elements in Appium",
5
5
  "keywords": [
6
6
  "automation",
@@ -39,9 +39,9 @@
39
39
  "test:unit": "mocha \"./test/unit/**/*.spec.js\""
40
40
  },
41
41
  "dependencies": {
42
- "@appium/opencv": "^2.0.7",
42
+ "@appium/opencv": "^2.0.9",
43
43
  "lodash": "4.17.21",
44
- "lru-cache": "7.17.0",
44
+ "lru-cache": "7.18.3",
45
45
  "source-map-support": "0.5.21"
46
46
  },
47
47
  "peerDependencies": {
@@ -58,7 +58,7 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "7b4935632222123a4fa7422461f6312f1f0dfbe4",
61
+ "gitHead": "a11a6ede3320c0a58aad82fd7fc4c8b8ba75ae95",
62
62
  "typedoc": {
63
63
  "entryPoint": "./lib/plugin.js"
64
64
  }