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

shave

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shave - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

4

dist/shave.js

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

// If already short enough, we're done
if (el.offsetHeight < maxHeight) break;
if (el.offsetHeight < maxHeight) continue;

@@ -39,3 +39,3 @@ var fullText = el.textContent;

// If 0 or 1 words, we're done
if (words.length < 2) break;
if (words.length < 2) continue;

@@ -42,0 +42,0 @@ // Binary search for number of words which can fit in allotted height

{
"name": "shave",
"version": "0.1.5",
"version": "0.1.6",
"description": "Shave is a javascript plugin that truncates multi-line text within a html element based on set max height",

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

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