Socket
Socket
Sign inDemoInstall

detect-element-overflow

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

4

build/entry.js

@@ -6,3 +6,3 @@ "use strict";

});
var detectCollisions = function detectCollisions(element, container) {
var detectElementOverflow = function detectElementOverflow(element, container) {
return {

@@ -36,2 +36,2 @@ get collidedTop() {

exports.default = detectCollisions;
exports.default = detectElementOverflow;
{
"name": "detect-element-overflow",
"version": "1.0.0",
"version": "1.1.0",
"description": "A function that tells you whether a given element is overflowing its container or not. Useful for creating dropdowns and tooltips.",
"main": "src/entry.js",
"main": "build/entry.js",
"es6": "src/entry.js",

@@ -7,0 +7,0 @@ "scripts": {

@@ -1,2 +0,2 @@

const detectCollisions = (element, container) => ({
const detectElementOverflow = (element, container) => ({
get collidedTop() {

@@ -28,2 +28,2 @@ return element.getBoundingClientRect().top < container.getBoundingClientRect().top;

export default detectCollisions;
export default detectElementOverflow;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc