@applitools/screenshoter 3.6.1 → 3.6.3

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.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "Applitools universal screenshoter for web and native applications",
5
5
  "keywords": [
6
6
  "applitools",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@applitools/image": "1.0.2",
76
- "@applitools/logger": "1.1.25",
76
+ "@applitools/logger": "1.1.26",
77
77
  "@applitools/snippets": "2.4.5",
78
78
  "@applitools/utils": "1.3.12",
79
79
  "jpeg-js": "0.4.4",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "devDependencies": {
83
83
  "@applitools/bongo": "^2.2.0",
84
- "@applitools/driver": "^1.10.4",
84
+ "@applitools/driver": "^1.10.5",
85
85
  "@applitools/scripts": "^1.2.0",
86
86
  "@applitools/spec-driver-webdriverio": "^1.3.1",
87
87
  "@applitools/test-utils": "^1.5.1",
@@ -99,7 +99,7 @@ function makeTakeMarkedScreenshot({driver, stabilization = {}, debug, logger}) {
99
99
  else image.scale(1 / driver.pixelRatio / driver.viewportScale)
100
100
 
101
101
  if (stabilization.rotate) image.rotate(stabilization.rotate)
102
- else if (driver.orientation?.startsWith('landscape') && image.width < image.height) image.rotate(-90)
102
+ else if (driver.orientation.startsWith('landscape') && image.width < image.height) image.rotate(-90)
103
103
 
104
104
  if (stabilization.crop) image.crop(stabilization.crop)
105
105
  else {
@@ -126,7 +126,7 @@ function makeTakeMarkedScreenshot({driver, stabilization = {}, debug, logger}) {
126
126
  const image = makeImage(await driver.takeScreenshot())
127
127
 
128
128
  if (stabilization.rotate) image.rotate(stabilization.rotate)
129
- else if (driver.orientation?.startsWith('landscape') && image.width < image.height) image.rotate(-90)
129
+ else if (driver.orientation.startsWith('landscape') && image.width < image.height) image.rotate(-90)
130
130
 
131
131
  await image.debug({...debug, name: 'marker'})
132
132