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

adaptable-text

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adaptable-text - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

2

lib/adaptable-text.js

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

value: function setWidth() {
this.width = this.element.getBoundingClientRect().width || this.options.width;
this.width = this.options.width || this.element.getBoundingClientRect().width;
}

@@ -76,0 +76,0 @@ }, {

@@ -67,3 +67,3 @@ import clamp from 'clamp';

value: function setWidth() {
this.width = this.element.getBoundingClientRect().width || this.options.width;
this.width = this.options.width || this.element.getBoundingClientRect().width;
}

@@ -70,0 +70,0 @@ }, {

{
"name": "adaptable-text",
"version": "2.0.1",
"version": "2.1.0",
"description": "Adapt font size to a specified width.",

@@ -5,0 +5,0 @@ "main": "lib/adaptable-text.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