@applitools/dom-snapshot 4.7.12 → 4.7.13

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/index.js CHANGED
@@ -1,12 +1,12 @@
1
- 'use strict';
1
+ 'use strict'
2
2
 
3
- const makeGetScript = require('./src/getScript');
4
- const getProcessPage = makeGetScript('processPage');
5
- const getProcessPagePoll = makeGetScript('processPagePoll');
6
- const getPollResult = makeGetScript('pollResult');
7
- const getProcessPageForIE = makeGetScript('processPageForIE');
8
- const getProcessPagePollForIE = makeGetScript('processPagePollForIE');
9
- const getPollResultForIE = makeGetScript('pollResultForIE');
3
+ const makeGetScript = require('./src/getScript')
4
+ const getProcessPage = makeGetScript('processPage')
5
+ const getProcessPagePoll = makeGetScript('processPagePoll')
6
+ const getPollResult = makeGetScript('pollResult')
7
+ const getProcessPageForIE = makeGetScript('processPageForIE')
8
+ const getProcessPagePollForIE = makeGetScript('processPagePollForIE')
9
+ const getPollResultForIE = makeGetScript('pollResultForIE')
10
10
 
11
11
  module.exports = {
12
12
  getProcessPage,
@@ -23,4 +23,4 @@ module.exports = {
23
23
  processPagePoll: require('./dist/processPagePollCjs'),
24
24
  //eslint-disable-next-line
25
25
  pollResult: require('./dist/pollResultCjs'),
26
- };
26
+ }
package/package.json CHANGED
@@ -1,82 +1,68 @@
1
1
  {
2
2
  "name": "@applitools/dom-snapshot",
3
- "version": "4.7.12",
4
- "main": "index.js",
3
+ "version": "4.7.13",
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
- "test:mocha": "mocha --no-timeouts test/**/*.test.js",
8
- "test:testcafe": "testcafe chrome:headless test/testcafe/*.testcafe.js",
9
- "test": "yarn test:mocha && yarn test:testcafe",
10
- "eslint:node": "eslint '**/*.js' --ignore-pattern 'src/browser'",
11
- "eslint:browser": "eslint -c 'src/browser/.eslintrc.json' 'src/browser/**/*.js'",
12
- "lint": "yarn eslint:node && yarn eslint:browser",
16
+ "lint": "run --top-level eslint '**/*.js'",
13
17
  "build": "APPLITOOLS_BUILD_MODE=all rollup -c src/build/rollup.config.js",
14
18
  "build:short": "APPLITOOLS_BUILD_MODE=short rollup -c src/build/rollup.config.js",
15
19
  "build:pretty": "APPLITOOLS_BUILD_MODE=pretty rollup -c src/build/rollup.config.js",
16
20
  "build:watch": "yarn build:short --watch",
17
- "surge": "surge test/fixtures applitools-dom-snapshot.surge.sh",
18
- "preversion": "bongo preversion && yarn build && yarn test",
19
- "version": "yarn build && bongo version",
20
- "postversion": "bongo postversion --skip-release-notification"
21
- },
22
- "engines": {
23
- "node": ">=8.9.0"
21
+ "test": "run test:mocha && run test:testcafe",
22
+ "test:mocha": "run --top-level mocha './test/**/*.test.js'",
23
+ "test:testcafe": "testcafe chrome:headless test/testcafe/*.testcafe.js",
24
+ "surge": "surge test/fixtures applitools-dom-snapshot.surge.sh"
24
25
  },
25
- "files": [
26
- "dist",
27
- "src/getScript.js"
28
- ],
29
- "repository": {
30
- "type": "git",
31
- "url": "git://github.com/applitools/eyes.sdk.javascript1.git"
26
+ "dependencies": {
27
+ "@applitools/dom-shared": "1.0.11",
28
+ "@applitools/functional-commons": "1.6.0",
29
+ "css-tree": "2.3.1",
30
+ "pako": "1.0.11"
32
31
  },
33
32
  "devDependencies": {
34
- "@applitools/eslint-plugin-compat": "^0.7.0",
35
33
  "@applitools/monitoring-commons": "^1.0.19",
36
- "@applitools/sdk-release-kit": "1.2.1",
37
- "@applitools/test-server": "^1.1.28",
38
- "@babel/core": "^7.11.0",
39
- "@babel/preset-env": "^7.8.3",
40
- "@rollup/plugin-babel": "^5.2.2",
41
- "@rollup/plugin-commonjs": "^17.0.0",
42
- "@rollup/plugin-json": "^4.1.0",
43
- "@rollup/plugin-node-resolve": "^11.0.0",
44
- "@rollup/plugin-replace": "^2.3.4",
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",
45
44
  "abort-controller": "^3.0.0",
46
- "canvas": "^2.6.1",
45
+ "canvas": "^2.11.2",
47
46
  "chai": "^4.2.0",
48
47
  "core-js": "^3.6.4",
49
48
  "cors": "^2.8.5",
50
49
  "cssom": "^0.4.4",
51
- "eslint": "^6.8.0",
52
- "eslint-plugin-mocha-no-only": "1.0.0",
53
- "eslint-plugin-node": "^11.1.0",
54
- "eslint-plugin-prettier": "^3.1.4",
55
50
  "express": "^4.17.1",
56
- "husky": "^4.3.7",
57
- "jsdom": "^16.3.0",
58
- "mocha": "^8.1.0",
51
+ "jsdom": "^22.1.0",
59
52
  "node-fetch": "^2.6.0",
60
- "prettier": "^1.19.1",
61
53
  "puppeteer": "20.9.0",
62
- "rollup": "^2.34.2",
63
- "rollup-plugin-filesize": "^9.1.0",
64
- "rollup-plugin-ignore": "^1.0.5",
65
- "rollup-plugin-polyfill": "^3.0.0",
66
- "rollup-plugin-terser": "^6.1.0",
54
+ "rollup": "^4.1.4",
55
+ "rollup-plugin-filesize": "^10.0.0",
56
+ "rollup-plugin-ignore": "^1.0.10",
57
+ "rollup-plugin-polyfill": "^4.2.0",
67
58
  "selenium-webdriver": "^4.0.0-alpha.5",
68
59
  "testcafe": "^1.18.1",
69
60
  "whatwg-fetch": "^3.0.0"
70
61
  },
71
- "dependencies": {
72
- "@applitools/dom-shared": "1.0.10",
73
- "@applitools/functional-commons": "1.6.0",
74
- "css-tree": "2.3.1",
75
- "pako": "1.0.11"
62
+ "engines": {
63
+ "node": ">=12.13.0"
76
64
  },
77
- "husky": {
78
- "hooks": {
79
- "pre-push": "yarn bongo lint"
80
- }
65
+ "publishConfig": {
66
+ "access": "public"
81
67
  }
82
- }
68
+ }
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
@@ -1,2 +0,0 @@
1
- *
2
- !.gitignore