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

get-scroll-info

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-scroll-info - npm Package Compare versions

Comparing version 0.4.3 to 0.5.0

37

build/cjs/src/index.js

@@ -60,63 +60,63 @@ "use strict";

/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "top", void 0);
/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "right", void 0);
/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "bottom", void 0);
/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "left", void 0);
/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "scrollWidth", void 0);
/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "scrollHeight", void 0);
/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "scrollNodeWidth", void 0);
/**
* @type number
* @type number
*/
(0, _defineProperty2["default"])(this, "scrollNodeHeight", void 0);
/**
* @type boolean
* @type boolean
*/
(0, _defineProperty2["default"])(this, "atTop", void 0);
/**
* @type boolean
* @type boolean
*/
(0, _defineProperty2["default"])(this, "atRight", void 0);
/**
* @type boolean
* @type boolean
*/
(0, _defineProperty2["default"])(this, "atBottom", void 0);
/**
* @type boolean
* @type boolean
*/
(0, _defineProperty2["default"])(this, "atLeft", void 0);
/**
* @type boolean
* @type boolean
*/
(0, _defineProperty2["default"])(this, "isScrollUp", void 0);
/**
* @type boolean
* @type boolean
*/
(0, _defineProperty2["default"])(this, "isScrollRight", void 0);
/**
* @type boolean
* @type boolean
*/
(0, _defineProperty2["default"])(this, "isScrollDown", void 0);
/**
* @type boolean
* @type boolean
*/

@@ -156,4 +156,5 @@ (0, _defineProperty2["default"])(this, "isScrollLeft", void 0);

} else {
w = el.clientWidth;
h = el.clientHeight;
var _el$scrollWidth, _el$scrollHeight;
w = (_el$scrollWidth = el.scrollWidth) !== null && _el$scrollWidth !== void 0 ? _el$scrollWidth : el.clientWidth;
h = (_el$scrollHeight = el.scrollHeight) !== null && _el$scrollHeight !== void 0 ? _el$scrollHeight : el.clientHeight;
}

@@ -160,0 +161,0 @@ var scrollLeft = el.scrollLeft;

{
"version": "0.4.3",
"version": "0.5.0",
"name": "get-scroll-info",

@@ -38,2 +38,3 @@ "repository": {

"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'",
"test:report": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/es/**/__tests__/*.mjs'",
"test": "npm run build && npm run mocha",

@@ -40,0 +41,0 @@ "prepublishOnly": "npm run test"

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