New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@builder.io/sdk

Package Overview
Dependencies
Maintainers
1
Versions
700
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/sdk - npm Package Compare versions

Comparing version 0.0.137 to 0.0.138

.rpt2_cache/9b191877eb846466cc90bc370c2c06d0a884fed5/code/cache/99a22c00125f97810ea5c04effc04348c7eb1ee3

6

dist/index.cjs.js

@@ -639,5 +639,7 @@ 'use strict';

var rect = elem.getBoundingClientRect();
var windowHeight = window.innerHeight;
var thresholdPrecent = 0.2;
var threshold = thresholdPrecent * windowHeight;
// TODO: partial in view? or what if element is larger than screen itself
return ((rect.top > 0 && rect.bottom < window.innerHeight) || // element fits within the screen and is fully on screen (not hanging off at all)
(rect.top < 0 && rect.bottom > window.innerHeight) // element is larger than the screen and hangs over the top and bottom
return (rect.bottom > threshold && rect.top < windowHeight - threshold // Element is peeking top or bottom
);

@@ -644,0 +646,0 @@ }

@@ -633,5 +633,7 @@ import uniqueSelector from 'unique-selector';

var rect = elem.getBoundingClientRect();
var windowHeight = window.innerHeight;
var thresholdPrecent = 0.2;
var threshold = thresholdPrecent * windowHeight;
// TODO: partial in view? or what if element is larger than screen itself
return ((rect.top > 0 && rect.bottom < window.innerHeight) || // element fits within the screen and is fully on screen (not hanging off at all)
(rect.top < 0 && rect.bottom > window.innerHeight) // element is larger than the screen and hangs over the top and bottom
return (rect.bottom > threshold && rect.top < windowHeight - threshold // Element is peeking top or bottom
);

@@ -638,0 +640,0 @@ }

{
"name": "@builder.io/sdk",
"version": "0.0.137",
"version": "0.0.138",
"browser": "./dist/index.umd.min.js",

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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