@applitools/dom-capture 11.2.2 → 11.2.4
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 +19 -1
- package/dist/captureDom.js +3 -3
- package/dist/captureDomForIE.js +3 -4
- package/dist/captureDomPoll.js +3 -3
- package/dist/captureDomPollCjs.js +3 -3
- package/dist/captureDomPollForIE.js +3 -4
- package/dist/pollResult.js +2 -2
- package/dist/pollResultCjs.js +2 -2
- package/dist/pollResultForIE.js +2 -2
- package/index.js +3 -3
- package/package.json +42 -55
- package/src/getScript.js +8 -8
- package/test/custom-page-result/.gitignore +0 -2
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict'
|
|
2
2
|
|
|
3
|
-
const makeGetScript = require('./src/getScript')
|
|
3
|
+
const makeGetScript = require('./src/getScript')
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
getCaptureDom: makeGetScript('captureDom'),
|
|
@@ -13,4 +13,4 @@ module.exports = {
|
|
|
13
13
|
captureDomPoll: require('./dist/captureDomPollCjs'),
|
|
14
14
|
//eslint-disable-next-line
|
|
15
15
|
pollResult: require('./dist/pollResultCjs'),
|
|
16
|
-
}
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,79 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/dom-capture",
|
|
3
|
-
"version": "11.2.
|
|
4
|
-
"
|
|
3
|
+
"version": "11.2.4",
|
|
4
|
+
"homepage": "https://applitools.com",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Applitools Team",
|
|
8
|
+
"email": "team@applitools.com"
|
|
9
|
+
},
|
|
10
|
+
"main": "index.js",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"src/getScript.js"
|
|
14
|
+
],
|
|
6
15
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"test:mocha": "mocha --no-timeouts --parallel 'test/**/*.test.js' --colors",
|
|
9
|
-
"test:docker": "docker run -it --rm -e SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY -e SAUCE_USERNAME=$SAUCE_USERNAME -e APPLITOOLS_UPDATE_FIXTURES=$APPLITOOLS_UPDATE_FIXTURES -v $(pwd):/sandbox -v /sandbox/node_modules dom_capture_tests",
|
|
10
|
-
"docker:build": "docker build --rm -t dom_capture_tests .",
|
|
11
|
-
"docker:build_mac_m1": "docker build --rm -t dom_capture_tests . --platform=linux/amd64",
|
|
12
|
-
"lint:node": "eslint '**/*.js' --ignore-pattern 'src/browser'",
|
|
13
|
-
"lint:browser": "eslint -c 'src/browser/.eslintrc.json' 'src/browser/**/*.js'",
|
|
14
|
-
"lint": "yarn lint:node && yarn lint:browser",
|
|
16
|
+
"lint": "run --top-level eslint '**/*.js'",
|
|
15
17
|
"build": "APPLITOOLS_BUILD_MODE=all rollup -c src/build/rollup.config.js",
|
|
16
18
|
"build:short": "APPLITOOLS_BUILD_MODE=short rollup -c src/build/rollup.short.config.js",
|
|
17
19
|
"build:watch": "yarn build:short --watch",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
20
|
+
"test": "run --top-level mocha './test/**/*.test.js'",
|
|
21
|
+
"test:docker": "docker run -it --rm -e SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY -e SAUCE_USERNAME=$SAUCE_USERNAME -e APPLITOOLS_UPDATE_FIXTURES=$APPLITOOLS_UPDATE_FIXTURES -v $(pwd):/sandbox -v /sandbox/node_modules dom_capture_tests",
|
|
22
|
+
"setup": "yarn puppeteer:setup",
|
|
23
|
+
"puppeteer:setup": "PUPPETEER_PRODUCT=firefox node --require puppeteer/install.js --eval null",
|
|
24
|
+
"docker:build": "docker build --rm -t dom_capture_tests .",
|
|
25
|
+
"docker:build_mac_m1": "docker build --rm -t dom_capture_tests . --platform=linux/amd64",
|
|
26
|
+
"surge": "surge test/fixtures applitools-dom-capture-origin-1.surge.sh && surge test/fixtures applitools-dom-capture-origin-2.surge.sh"
|
|
23
27
|
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@applitools/dom-shared": "1.0.11",
|
|
30
|
+
"@applitools/functional-commons": "1.6.0"
|
|
26
31
|
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"src/getScript.js"
|
|
30
|
-
],
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@applitools/monitoring-commons": "^1.0.
|
|
33
|
-
"@applitools/
|
|
34
|
-
"@applitools/test-
|
|
35
|
-
"@babel/core": "^7.
|
|
36
|
-
"@babel/preset-env": "^7.
|
|
37
|
-
"@rollup/plugin-babel": "^
|
|
38
|
-
"@rollup/plugin-commonjs": "^
|
|
39
|
-
"@rollup/plugin-json": "^
|
|
40
|
-
"@rollup/plugin-node-resolve": "^
|
|
41
|
-
"@rollup/plugin-replace": "^
|
|
33
|
+
"@applitools/monitoring-commons": "^1.0.19",
|
|
34
|
+
"@applitools/test-server": "^1.2.2",
|
|
35
|
+
"@applitools/test-utils": "^1.5.17",
|
|
36
|
+
"@babel/core": "^7.23.2",
|
|
37
|
+
"@babel/preset-env": "^7.23.2",
|
|
38
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
39
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
40
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
41
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
42
|
+
"@rollup/plugin-replace": "^5.0.4",
|
|
43
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
42
44
|
"abortcontroller-polyfill": "^1.4.0",
|
|
43
45
|
"chai": "^4.2.0",
|
|
44
46
|
"core-js": "^3.6.1",
|
|
45
47
|
"cssom": "git+https://github.com/amitzur/CSSOM.git#925260ff2c8f8387cf76df4d5776a06044a644c8",
|
|
46
|
-
"eslint": "^6.8.0",
|
|
47
|
-
"eslint-plugin-mocha-no-only": "1.0.0",
|
|
48
|
-
"eslint-plugin-node": "^8.0.1",
|
|
49
|
-
"eslint-plugin-prettier": "3.0.0",
|
|
50
48
|
"express": "^4.17.1",
|
|
51
|
-
"
|
|
52
|
-
"jsdom": "^13.2.0",
|
|
53
|
-
"mocha": "^10.0.0",
|
|
49
|
+
"jsdom": "^22.1.0",
|
|
54
50
|
"node-fetch": "^2.6.0",
|
|
55
|
-
"prettier": "^1.19.1",
|
|
56
51
|
"puppeteer": "^20.1.0",
|
|
57
|
-
"rollup": "^
|
|
58
|
-
"rollup-plugin-filesize": "^
|
|
52
|
+
"rollup": "^4.1.4",
|
|
53
|
+
"rollup-plugin-filesize": "^10.0.0",
|
|
59
54
|
"rollup-plugin-ignore": "^1.0.10",
|
|
60
|
-
"rollup-plugin-polyfill": "^4.
|
|
61
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
55
|
+
"rollup-plugin-polyfill": "^4.2.0",
|
|
62
56
|
"selenium-webdriver": "^4.0.0-alpha.5",
|
|
63
57
|
"url-polyfill": "^1.1.12",
|
|
64
58
|
"whatwg-fetch": "^3.0.0"
|
|
65
59
|
},
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"@applitools/functional-commons": "1.6.0"
|
|
69
|
-
},
|
|
70
|
-
"repository": {
|
|
71
|
-
"type": "git",
|
|
72
|
-
"url": "git://github.com/applitools/eyes.sdk.javascript1.git"
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=12.13.0"
|
|
73
62
|
},
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"pre-push": "yarn bongo lint"
|
|
77
|
-
}
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
78
65
|
}
|
|
79
|
-
}
|
|
66
|
+
}
|
package/src/getScript.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
const fs = require('fs')
|
|
3
|
-
const {promisify: p} = require('util')
|
|
4
|
-
const {cacheFunctionAsync} = require('@applitools/functional-commons')
|
|
1
|
+
'use strict'
|
|
2
|
+
const fs = require('fs')
|
|
3
|
+
const {promisify: p} = require('util')
|
|
4
|
+
const {cacheFunctionAsync} = require('@applitools/functional-commons')
|
|
5
5
|
|
|
6
6
|
const makeGetScript = filename =>
|
|
7
|
-
cacheFunctionAsync(async function() {
|
|
8
|
-
return await p(fs.readFile)(__dirname + `/../dist/${filename}.js`, 'utf-8')
|
|
9
|
-
})
|
|
7
|
+
cacheFunctionAsync(async function () {
|
|
8
|
+
return await p(fs.readFile)(__dirname + `/../dist/${filename}.js`, 'utf-8')
|
|
9
|
+
})
|
|
10
10
|
|
|
11
|
-
module.exports = makeGetScript
|
|
11
|
+
module.exports = makeGetScript
|