@argos-ci/webdriverio 0.5.10 → 0.6.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/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,6 @@ type ArgosScreenshotOptions = {
|
|
|
30
30
|
* Specify the color of the overlay box for masked elements, in CSS color format.
|
|
31
31
|
* Default color is pink #FF00FF.
|
|
32
32
|
*/
|
|
33
|
-
declare function argosScreenshot(browser: WebdriverIO.Browser, name: string, { mask, maskColor }?: ArgosScreenshotOptions): Promise<Buffer<
|
|
33
|
+
declare function argosScreenshot(browser: WebdriverIO.Browser, name: string, { mask, maskColor }?: ArgosScreenshotOptions): Promise<Buffer<ArrayBufferLike>>;
|
|
34
34
|
|
|
35
35
|
export { type ArgosScreenshotOptions, argosScreenshot };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import sharp from "sharp";
|
|
3
|
-
import { resolve } from "
|
|
4
|
-
import { mkdir } from "
|
|
3
|
+
import { resolve } from "path";
|
|
4
|
+
import { mkdir } from "fs/promises";
|
|
5
5
|
async function createMask(dimensions, areas, maskColor) {
|
|
6
6
|
let mask = sharp({
|
|
7
7
|
create: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/webdriverio",
|
|
3
3
|
"description": "WebdriverIO SDK for visual testing with Argos.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -37,24 +37,24 @@
|
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
40
|
+
"node": ">=20.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"webdriverio": "^6 || ^7 || ^8 || ^9"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"sharp": "^0.
|
|
46
|
+
"sharp": "^0.34.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@argos-ci/cli": "
|
|
50
|
-
"@wdio/cli": "^9.
|
|
49
|
+
"@argos-ci/cli": "3.0.0",
|
|
50
|
+
"@wdio/cli": "^9.18.4",
|
|
51
51
|
"@wdio/globals": "^9.17.0",
|
|
52
|
-
"@wdio/local-runner": "^9.
|
|
53
|
-
"@wdio/mocha-framework": "^9.
|
|
54
|
-
"@wdio/spec-reporter": "^9.
|
|
52
|
+
"@wdio/local-runner": "^9.18.4",
|
|
53
|
+
"@wdio/mocha-framework": "^9.18.0",
|
|
54
|
+
"@wdio/spec-reporter": "^9.18.0",
|
|
55
55
|
"@wdio/types": "^9.16.2",
|
|
56
|
-
"tsx": "^4.
|
|
57
|
-
"webdriverio": "^9.
|
|
56
|
+
"tsx": "^4.20.3",
|
|
57
|
+
"webdriverio": "^9.18.4"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsup && cp ./src/index.cjs ./dist",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
|
|
66
66
|
"lint": "eslint ."
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "807e4a9f3c4bfddd4197ed7394b032a39bc1c58e"
|
|
69
69
|
}
|