@applitools/spec-driver-puppeteer 1.1.64 → 1.1.66
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/CHANGELOG.md +20 -0
- package/dist/spec-driver.js +8 -1
- package/package.json +15 -24
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.1.66](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer@1.1.65...js/spec-driver-puppeteer@1.1.66) (2023-06-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/driver bumped from 1.12.2 to 1.12.3
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [1.1.65](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer-v1.1.64...js/spec-driver-puppeteer@1.1.65) (2023-06-13)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Dependencies
|
|
15
|
+
|
|
16
|
+
* update some dependencies
|
|
17
|
+
* The following workspace dependencies were updated
|
|
18
|
+
* dependencies
|
|
19
|
+
* @applitools/driver bumped from 1.12.1 to 1.12.2
|
|
20
|
+
* @applitools/utils bumped from 1.3.37 to 1.4.0
|
package/dist/spec-driver.js
CHANGED
|
@@ -265,7 +265,14 @@ const browserNames = ['chrome', 'firefox'];
|
|
|
265
265
|
* installed in the SDK, then this function will error.
|
|
266
266
|
*/
|
|
267
267
|
async function build(env) {
|
|
268
|
-
|
|
268
|
+
let frameworkPath;
|
|
269
|
+
try {
|
|
270
|
+
frameworkPath = require.resolve('puppeteer', { paths: [`${process.cwd()}/node_modules`] });
|
|
271
|
+
}
|
|
272
|
+
catch {
|
|
273
|
+
frameworkPath = 'puppeteer';
|
|
274
|
+
}
|
|
275
|
+
const puppeteer = require(frameworkPath);
|
|
269
276
|
const parseEnv = require('@applitools/test-utils/src/parse-env');
|
|
270
277
|
const { browser, attach, proxy, args = [], headless } = parseEnv(env, 'cdp');
|
|
271
278
|
if (!browserNames.includes(browser))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-puppeteer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.66",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"puppeteer",
|
|
6
6
|
"chrome devtools protocol",
|
|
@@ -25,10 +25,6 @@
|
|
|
25
25
|
"name": "Applitools Team",
|
|
26
26
|
"email": "team@applitools.com"
|
|
27
27
|
},
|
|
28
|
-
"aliases": [
|
|
29
|
-
"spec-puppeteer",
|
|
30
|
-
"spec-pptr"
|
|
31
|
-
],
|
|
32
28
|
"main": "./dist/index.js",
|
|
33
29
|
"types": "./types/index.d.ts",
|
|
34
30
|
"files": [
|
|
@@ -36,35 +32,30 @@
|
|
|
36
32
|
"types"
|
|
37
33
|
],
|
|
38
34
|
"scripts": {
|
|
39
|
-
"lint": "
|
|
40
|
-
"build": "
|
|
41
|
-
"test": "
|
|
42
|
-
"test:sanity": "yarn test",
|
|
35
|
+
"lint": "run --top-level eslint '**/*.ts'",
|
|
36
|
+
"build": "run --top-level tspc --project ./tsconfig.build.json",
|
|
37
|
+
"test": "run --top-level mocha './test/**/*.spec.ts' --exit",
|
|
43
38
|
"setup": "yarn puppeteer:setup",
|
|
44
|
-
"puppeteer:setup": "PUPPETEER_PRODUCT=firefox node
|
|
45
|
-
"
|
|
46
|
-
"deps": "bongo deps",
|
|
47
|
-
"gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='spec-puppeteer' -f links='types utils test-utils",
|
|
48
|
-
"gh:publish": "gh workflow run publish-spec-puppeteer.yml --ref $(git rev-parse --abbrev-ref HEAD)",
|
|
49
|
-
"preversion": "bongo preversion",
|
|
50
|
-
"version": "bongo version",
|
|
51
|
-
"postversion": "bongo postversion"
|
|
39
|
+
"puppeteer:setup": "PUPPETEER_PRODUCT=firefox node --require puppeteer/install.js --eval null",
|
|
40
|
+
"up:framework": "run --top-level add-silent puppeteer"
|
|
52
41
|
},
|
|
53
42
|
"dependencies": {
|
|
54
|
-
"@applitools/driver": "1.12.
|
|
55
|
-
"@applitools/utils": "1.
|
|
43
|
+
"@applitools/driver": "1.12.3",
|
|
44
|
+
"@applitools/utils": "1.4.0"
|
|
56
45
|
},
|
|
57
46
|
"devDependencies": {
|
|
58
|
-
"@applitools/api-extractor": "1.2.21",
|
|
59
|
-
"@applitools/
|
|
60
|
-
"@applitools/test-utils": "1.5.17",
|
|
47
|
+
"@applitools/api-extractor": "^1.2.21",
|
|
48
|
+
"@applitools/test-utils": "^1.5.17",
|
|
61
49
|
"@types/node": "^12.20.55",
|
|
62
|
-
"puppeteer": "^
|
|
50
|
+
"puppeteer": "^19.11.1"
|
|
63
51
|
},
|
|
64
52
|
"peerDependencies": {
|
|
65
53
|
"puppeteer": ">=5.3.0"
|
|
66
54
|
},
|
|
67
55
|
"engines": {
|
|
68
56
|
"node": ">=12.13.0"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
69
60
|
}
|
|
70
|
-
}
|
|
61
|
+
}
|