@snapvisor/puppeteer 6.0.24 → 7.0.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.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { ElementHandle, Page, ScreenshotOptions } from "puppeteer";
|
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
/**
|
|
6
|
-
* Accepts all Puppeteer screenshot options and adds
|
|
6
|
+
* Accepts all Puppeteer screenshot options and adds Snapvisor-specific options.
|
|
7
7
|
*/
|
|
8
8
|
type ArgosScreenshotOptions = Omit<ScreenshotOptions, "encoding" | "type" | "omitBackground" | "path"> & {
|
|
9
9
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { getScreenshotName, readVersionFromPackage, validateThreshold, writeMeta
|
|
|
6
6
|
//#region src/index.ts
|
|
7
7
|
const require = createRequire(import.meta.url);
|
|
8
8
|
/**
|
|
9
|
-
* Inject
|
|
9
|
+
* Inject Snapvisor script into the page.
|
|
10
10
|
*/
|
|
11
11
|
async function injectArgos(page) {
|
|
12
12
|
if (await page.evaluate(() => typeof window.__ARGOS__ !== "undefined")) return;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapvisor/puppeteer",
|
|
3
|
-
"description": "Puppeteer SDK for visual testing with
|
|
4
|
-
"version": "
|
|
3
|
+
"description": "Puppeteer SDK for visual testing with Snapvisor.",
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "git+https://github.com/DevinoSolutions/snapvisor-js.git",
|
|
10
10
|
"directory": "packages/puppeteer"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://snapvisor.io/docs",
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/argos-ci/argos-javascript/issues"
|
|
15
15
|
},
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"puppeteer": ">=1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@snapvisor/browser": "
|
|
46
|
-
"@snapvisor/util": "
|
|
45
|
+
"@snapvisor/browser": "7.0.0",
|
|
46
|
+
"@snapvisor/util": "5.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@snapvisor/cli": "
|
|
49
|
+
"@snapvisor/cli": "7.0.0",
|
|
50
50
|
"@types/jest": "^30.0.0",
|
|
51
51
|
"@types/node": "catalog:",
|
|
52
52
|
"expect-puppeteer": "^11.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
|
|
67
67
|
"lint": "eslint ."
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "b27308a53667724cc3c4f3e5eb7811bce3321f15"
|
|
70
70
|
}
|