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

eyes.utils

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eyes.utils - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

package.json
{
"name": "eyes.utils",
"version": "0.0.11",
"version": "0.0.12",
"description": "General purpose Javascript utilities.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -37,3 +37,3 @@ /*

* @param {string} script - The code to execute on the given driver.
* @param {Object} - promiseFactory
* @param {Object} promiseFactory
* @param {number|undefined} stabilizationTimeMs (optional) The amount of time to wait after script execution to

@@ -62,3 +62,3 @@ * let the browser a chance to stabilize (e.g., finish rendering).

* @param {WebDriver} browser The driver which will execute the script to get the ratio.
* @param {Object} - promiseFactory
* @param {Object} promiseFactory
* @return {Promise} A promise which resolves to the device pixel ratio (float type).

@@ -78,3 +78,3 @@ */

* @param {WebDriver} browser The driver which will execute the script to get the scroll position.
* @param {Object} - promiseFactory
* @param {Object} promiseFactory
* @return {Promise} A promise which resolves to the current scroll position ({top: *, left: *}).

@@ -100,3 +100,3 @@ */

* @param {WebDriver} browser The driver which will execute the script to get the scroll position.
* @param {Object} - promiseFactory
* @param {Object} promiseFactory
* @return {Promise} A promise which resolves to the current transform value.

@@ -112,3 +112,3 @@ */

* @param {string} transformToSet The transform to set.
* @param {Object} - promiseFactory
* @param {Object} promiseFactory
*

@@ -131,4 +131,4 @@ * @return {Promise} A promise which resolves to the previous transform once the updated transform is set.

* @param {WebDriver} browser The driver which will execute the script to set the transform.
* @param {Object} Point - left; top;.
* @param {Object} - promiseFactory
* @param {Object} Point left; top;.
* @param {Object} promiseFactory
* @return {Promise} A promise which resolves to the previous transfrom when the scroll is executed.

@@ -144,4 +144,4 @@ */

* @param {WebDriver} browser - The driver which will execute the script to set the scroll position.
* @param {Object} - point to scroll to
* @param {Object} - promiseFactory
* @param {Object} point Point to scroll to
* @param {Object} promiseFactory
* @return {Promise} A promise which resolves after the action is perfromed and timeout passed.

@@ -159,3 +159,3 @@ */

* @param {WebDriver} browser The driver used to query the web page.
* @param {Object} - promiseFactory
* @param {Object} promiseFactory
* @return {Promise} A promise which resolves to an object containing the width/height of the page.

@@ -327,3 +327,6 @@ */

return parsedImage.setCoordinates(scrollPosition);
});
}, function () {
// Failed to get Scroll position, setting coordinates to default.
return parsedImage.setCoordinates({left: 0, top: 0});
});
}

@@ -360,2 +363,5 @@ })

entirePageSize = pageSize;
}, function () {
// Couldn't get entire page size, using viewport size as default.
entirePageSize = viewportSize;
})

@@ -367,2 +373,5 @@ .then(function() {

pixelRatio = ratio;
}, function (err) {
// Couldn't get pixel ratio, using 1 as default.
pixelRatio = 1;
});

@@ -369,0 +378,0 @@ })

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