Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/screenshoter

Package Overview
Dependencies
Maintainers
21
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/screenshoter - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

.bongo/dry-run/package-lock.json

@@ -7,3 +7,3 @@ {

"version": "file:../dry-run.tgz",
"integrity": "sha512-Z253MY90q2T362XJaATxQmZ+FJTo4AqfNqiMlAOXIXtPrxt7Zye281IxaLryI3WAsK9Il73MTsUj74xIRI3PAA==",
"integrity": "sha512-UbLMh7r2XVnToo2cXO7uWRC0T630TVvUZ/aEroQnnMMcVivsoJ0A94TKlOgiAINKEuvCrlwvWO51OBP6cspv+g==",
"requires": {

@@ -10,0 +10,0 @@ "@applitools/utils": "1.0.0",

## 1.0.0 - 2020/12/1
- Provide functionality to take screenshots (viewport and full) using Applitools driver wrapped
# Change Log
## Unreleased
## 1.0.1 - 2020/12/1
- round coordinate and size before image operations
## 1.0.0 - 2020/12/1
- Provide functionality to take screenshots (viewport and full) using Applitools driver wrapper
{
"name": "@applitools/screenshoter",
"version": "1.0.0",
"version": "1.0.1",
"description": "Applitools universal screenshoter for web and native applications",

@@ -5,0 +5,0 @@ "keywords": [

@@ -127,3 +127,5 @@ const utils = require('@applitools/utils')

return sharp(image1.data, {raw: image1.info})
.composite([{input: image2.data, raw: image2.info, left: offset.x, top: offset.y}])
.composite([
{input: image2.data, raw: image2.info, left: Math.round(offset.x), top: Math.round(offset.y)},
])
.raw()

@@ -130,0 +132,0 @@ .toBuffer({resolveWithObject: true})

@@ -46,2 +46,11 @@ const utils = require('@applitools/utils')

if (hideCaret && activeElement) await targetContext.focusElement(activeElement)
for (const prevContext of targetContext.path.reverse()) {
const scrollingElement = await prevContext.getScrollRootElement()
if (hideScrollbars) await scrollingElement.restoreScrollbars()
const scrollingState = scrollingStates.shift()
await defaultScroller.restoreState(scrollingState, scrollingElement)
}
await originalContext.focus()
}

@@ -72,3 +81,3 @@ }

element: scrollingElement,
scrollingMode: isScrollable && scrollingMode === 'css' ? 'mixed' : 'scroll',
scrollingMode: isScrollable && scrollingMode === 'css' ? 'mixed' : scrollingMode,
}),

@@ -75,0 +84,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc