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

viewprt

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viewprt - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

dist/viewprt.js

@@ -105,3 +105,3 @@ (function (global, factory) {

var rect = element.getBoundingClientRect();
return rect.bottom > 0 - offset && rect.right > 0 - offset && rect.left < viewportWidth + offset && rect.top < viewportHeight + offset;
return !!(rect.width && rect.height) && rect.bottom > 0 - offset && rect.right > 0 - offset && rect.left < viewportWidth + offset && rect.top < viewportHeight + offset;
}

@@ -108,0 +108,0 @@ return false;

@@ -6,3 +6,4 @@ import ViewportObserver from './viewport-observer'

const rect = element.getBoundingClientRect()
return rect.bottom > 0 - offset &&
return !!(rect.width && rect.height) &&
rect.bottom > 0 - offset &&
rect.right > 0 - offset &&

@@ -9,0 +10,0 @@ rect.left < viewportWidth + offset &&

{
"name": "viewprt",
"version": "0.1.1",
"version": "0.1.2",
"description": "viewport observation tool",

@@ -5,0 +5,0 @@ "author": "Garth Poitras <garth22@gmail.com>",

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