Socket
Socket
Sign inDemoInstall

@jiaminghi/color

Package Overview
Dependencies
3
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 0.0.6-alpha (2019-06-13)
### Bug Fixes
- **getOpacity:** Fix the exception caused by the decimal in the rgba color (Like 'rgba(123.3333, 111, 111, 0.323)').
# 0.0.5-alpha (2019-06-06)

@@ -2,0 +8,0 @@

2

lib/index.js

@@ -144,3 +144,3 @@ "use strict";

if (!isRgba) return 1;
return Number(color.replace(/^(rgba\()|(\s*\d+\s*,){3}|(\))/g, ''));
return Number(color.split(',').slice(-1)[0].replace(/[)|\s]/g, ''));
}

@@ -147,0 +147,0 @@ /**

{
"name": "@jiaminghi/color",
"version": "0.0.5",
"version": "0.0.6",
"author": "JiaMing <743192023@qq.com>",

@@ -5,0 +5,0 @@ "description": "Color extension",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc