Socket
Socket
Sign inDemoInstall

linear-gradient-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "linear-gradient-parser",
"version": "1.1.0",
"version": "1.1.1",
"description": "Parses a SVG linear gradient string / parsed JSON into css background image property",

@@ -5,0 +5,0 @@ "author": "Oded Goldglas <odedglas@gmail.com>",

@@ -6,3 +6,3 @@ /**

*/
const formatPosition = (pos) => Number(pos.trim().endsWith('%') ?
const formatPosition = (pos) => Number(`${pos}`.trim().endsWith('%') ?
pos.trim().replace('%', '') : pos);

@@ -9,0 +9,0 @@

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