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

get-window-offset

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-window-offset - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

7

build/src/getWindowOffset.js

@@ -40,2 +40,5 @@ 'use strict';

distance.left = Math.abs(domInfo.left - scrollInfo.left);
} else {
console.error('Dom is not in screen', { domInfo: domInfo, scrollInfo: scrollInfo });
return false;
}

@@ -45,6 +48,2 @@ var distanceFlip = (_distanceFlip = {}, _defineProperty(_distanceFlip, distance.top, 't'), _defineProperty(_distanceFlip, distance.right, 'r'), _defineProperty(_distanceFlip, distance.bottom, 'b'), _defineProperty(_distanceFlip, distance.left, 'l'), _distanceFlip);

var firstKey = distanceFlip[maxDistance];
if (!firstKey) {
console.error('Get maxDistance fail', { maxDistance: maxDistance, distanceFlip: distanceFlip, domInfo: domInfo, scrollInfo: scrollInfo });
return false;
}
var secondKey = void 0;

@@ -51,0 +50,0 @@ var locs = [firstKey + 'c'];

{
"name": "get-window-offset",
"version": "0.0.8",
"version": "0.0.9",
"description": "Get dom info in window",

@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism",

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