@applitools/screenshoter
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -7,3 +7,3 @@ { | ||
"version": "file:../dry-run.tgz", | ||
"integrity": "sha512-Pm9UGoQuJvx6JXX40GG+jqgaEfFR7BV3eGnRihrvT7giHKf0gv/1CbZegSrGfzkZdvpY2hdjpCVZGmKX1OsBFQ==", | ||
"integrity": "sha512-a7TAf8+j+sOOxN6VkMmghnahtQyQT3N+oagOvt9Lyi7sjSqXoXN8t7Kn2VJoHFoVCLLjQFAwUHgnRhg48kAGGg==", | ||
"requires": { | ||
@@ -505,5 +505,5 @@ "@applitools/utils": "1.0.0", | ||
"tar-stream": { | ||
"version": "2.1.4", | ||
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.1.4.tgz", | ||
"integrity": "sha512-o3pS2zlG4gxr67GmFYBLlq+dM8gyRGUOvsrHclSkvtVtQbjV0s/+ZE8OpICbaj8clrX3tjeHngYGP7rweaBnuw==", | ||
"version": "2.2.0", | ||
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", | ||
"integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", | ||
"requires": { | ||
@@ -510,0 +510,0 @@ "bl": "^4.0.3", |
@@ -7,6 +7,9 @@ | ||
## 2.0.0 - 2021/1/7 | ||
- return image location relative to viewport | ||
- return image location relative to viewport | ||
## 1.0.2 - 2020/12/29 | ||
- fix saveScreenshot | ||
- fix saveScreenshot | ||
## 1.0.1 - 2020/12/1 | ||
@@ -13,0 +16,0 @@ |
{ | ||
"name": "@applitools/screenshoter", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "Applitools universal screenshoter for web and native applications", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"@applitools/driver": "1.0.2", | ||
"@applitools/sdk-release-kit": "0.10.6", | ||
"@applitools/sdk-release-kit": "0.10.9", | ||
"eslint": "^7.9.0", | ||
@@ -40,0 +40,0 @@ "eslint-plugin-mocha-no-only": "^1.1.1", |
@@ -48,7 +48,5 @@ const utils = require('@applitools/utils') | ||
try { | ||
const image = isFully | ||
return isFully | ||
? await takeStitchedScreenshot({...area, logger, rotate, crop, scale, wait, overlap, debug}) | ||
: await takeViewportScreenshot({...area, logger, rotate, crop, scale, debug}) | ||
return {image, region: area.region || (await area.scroller.getClientRect())} | ||
} finally { | ||
@@ -55,0 +53,0 @@ if (hideCaret && activeElement) await targetContext.focusElement(activeElement) |
@@ -127,5 +127,5 @@ const utils = require('@applitools/utils') | ||
await saveScreenshot(composition, {path: debug.path, name: 'stitched', logger}) | ||
return composition | ||
return {image: composition, region: cropRegion} | ||
} | ||
module.exports = takeStitchedImage |
@@ -32,7 +32,8 @@ const utils = require('@applitools/utils') | ||
await saveScreenshot(image, {path: debug.path, suffix: 'region', logger}) | ||
return {image, region: cropRegion} | ||
} else { | ||
return {image, region: {x: 0, y: 0, width: image.width, height: image.height}} | ||
} | ||
return image | ||
} | ||
module.exports = takeViewportScreenshot |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10312222
1897
1