@applitools/screenshoter 3.4.1 → 3.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/screenshoter",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Applitools universal screenshoter for web and native applications",
5
5
  "keywords": [
6
6
  "applitools",
@@ -25,6 +25,9 @@
25
25
  "name": "Applitools Team",
26
26
  "email": "team@applitools.com"
27
27
  },
28
+ "aliases": [
29
+ "screenshoter"
30
+ ],
28
31
  "exports": {
29
32
  ".": {
30
33
  "default": "./index.js"
@@ -67,18 +70,18 @@
67
70
  }
68
71
  },
69
72
  "dependencies": {
70
- "@applitools/logger": "1.1.10",
71
- "@applitools/snippets": "2.2.3",
72
- "@applitools/utils": "1.3.6",
73
+ "@applitools/logger": "1.1.11",
74
+ "@applitools/snippets": "2.4.1",
75
+ "@applitools/utils": "1.3.7",
73
76
  "jpeg-js": "0.4.3",
74
77
  "png-async": "0.9.4"
75
78
  },
76
79
  "devDependencies": {
77
- "@applitools/bongo": "^2.1.4",
78
- "@applitools/driver": "^1.9.2",
80
+ "@applitools/bongo": "^2.1.5",
81
+ "@applitools/driver": "^1.9.3",
79
82
  "@applitools/scripts": "1.1.0",
80
- "@applitools/spec-driver-webdriverio": "1.2.10",
81
- "@applitools/test-utils": "1.3.2",
83
+ "@applitools/spec-driver-webdriverio": "1.2.11",
84
+ "@applitools/test-utils": "1.3.3",
82
85
  "appium": "^1.22.3",
83
86
  "chromedriver": "^101.0.0",
84
87
  "eslint": "^8.16.0",
@@ -96,7 +96,11 @@ async function takeStitchedScreenshot({
96
96
  const partName = `${partRegion.x}_${partRegion.y}_${partRegion.width}x${partRegion.height}`
97
97
  logger.verbose(`Processing part ${partName}`)
98
98
 
99
- const compensateOffset = {x: 0, y: initialRegion.y !== partRegion.y ? overlap.top : 0}
99
+ // compensate scroller region being shifted and top overlap
100
+ const compensateOffset = {
101
+ x: scrollerRegionShift.x + 0,
102
+ y: scrollerRegionShift.y + (initialRegion.y !== partRegion.y ? overlap.top : 0),
103
+ }
100
104
  const requiredOffset = utils.geometry.offsetNegative(utils.geometry.location(partRegion), compensateOffset)
101
105
 
102
106
  logger.verbose('Move to', requiredOffset)