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

detect-element-overflow

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-element-overflow - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

19

package.json
{
"name": "detect-element-overflow",
"version": "1.4.1",
"version": "1.4.2",
"description": "A function that tells you whether a given element is overflowing its container or not. Useful for creating dropdowns and tooltips.",

@@ -16,5 +16,6 @@ "type": "module",

"scripts": {
"build": "yarn build-esm && yarn build-cjs",
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext",
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs && echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package",
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false",
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"clean": "rimraf dist",

@@ -39,9 +40,13 @@ "lint": "eslint .",

"eslint": "^8.26.0",
"eslint-config-wojtekmaj": "^0.8.4",
"eslint-config-wojtekmaj": "^0.9.0",
"husky": "^8.0.0",
"prettier": "^2.7.0",
"pretty-quick": "^3.1.0",
"lint-staged": "^14.0.0",
"prettier": "^3.0.0",
"rimraf": "^3.0.0",
"typescript": "^5.0.0"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"files": [

@@ -48,0 +53,0 @@ "dist",

@@ -12,3 +12,3 @@ [![npm](https://img.shields.io/npm/v/detect-element-overflow.svg)](https://www.npmjs.com/package/detect-element-overflow) ![downloads](https://img.shields.io/npm/dt/detect-element-overflow.svg) [![CI](https://github.com/wojtekmaj/detect-element-overflow/workflows/CI/badge.svg)](https://github.com/wojtekmaj/detect-element-overflow/actions)

- Do stuff with it!
```js
```ts
const collisions = detectElementOverflow(child, parent);

@@ -40,11 +40,9 @@ ```

<tr>
<td>
<img src="https://github.com/wojtekmaj.png?s=100" width="100">
<td >
<img src="https://avatars.githubusercontent.com/u/5426427?v=4&s=128" width="64" height="64" alt="Wojciech Maj">
</td>
<td>
Wojciech Maj<br />
<a href="mailto:kontakt@wojtekmaj.pl">kontakt@wojtekmaj.pl</a><br />
<a href="https://wojtekmaj.pl">https://wojtekmaj.pl</a>
<a href="https://github.com/wojtekmaj">Wojciech Maj</a>
</td>
</tr>
</table>
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