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

@sproutsocial/seeds-utils

Package Overview
Dependencies
Maintainers
44
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sproutsocial/seeds-utils - npm Package Compare versions

Comparing version 0.2.6 to 1.1.0

string.js

9

getlineheight.js
const mround = require('mround');
function getLineHeight(prop) {
const {gridSize, lineHeightBase, value, name} = prop;
const lineHeightBase = 1.5;
const gridSize = 8;
const multiplier = parseInt(name.replace('size', ''), 10) / 100 - 3;
function getLineHeight(name, value) {
const multiplier = parseInt(name, 10) / 100 - 3;
// Get the proportional line height based on the multiplier and the grid size
const proportionalLineHeight = (1 - lineHeightBase) / gridSize * multiplier + lineHeightBase;
const proportionalLineHeight = ((1 - lineHeightBase) / gridSize) * multiplier + lineHeightBase;

@@ -11,0 +12,0 @@ // Get the pixel height of three lines of text at the proportional line height,

{
"name": "@sproutsocial/seeds-utils",
"version": "0.2.6",
"description": "SEEDS shared utility functions for generating tokens and documentation.",
"version": "1.1.0",
"description": "Seeds utility functions for generating tokens",
"seeds_ignore": true,

@@ -11,3 +11,4 @@ "main": "package.json",

},
"author": "Sprout Social"
"author": "Sprout Social",
"gitHead": "10a73c208d1b134ae66cbc86d0f8d223e064f8b6"
}
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