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

color-string

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-string - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

4

index.js

@@ -72,3 +72,3 @@ /* MIT license */

if (hexAlpha) {
rgb[3] = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;
rgb[3] = parseInt(hexAlpha, 16) / 255;
}

@@ -84,3 +84,3 @@ } else if (match = string.match(abbr)) {

if (hexAlpha) {
rgb[3] = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;
rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;
}

@@ -87,0 +87,0 @@ } else if (match = string.match(rgba)) {

{
"name": "color-string",
"description": "Parser and generator for CSS color strings",
"version": "1.5.3",
"version": "1.5.4",
"author": "Heather Arthur <fayearthur@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

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