Comparing version 2.0.5 to 2.0.6
{ | ||
"name": "vue-color", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Color of Vue Components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,3 +8,11 @@ import tinycolor from 'tinycolor2' | ||
var color = data.hex ? tinycolor(data.hex) : tinycolor(data) | ||
data.a = data.a || 1 | ||
var color | ||
if (data.hex) { | ||
color = tinycolor(data.hex) | ||
color.setAlpha(data.a) | ||
} else { | ||
color = tinycolor(data) | ||
} | ||
var hsl = color.toHsl() | ||
@@ -11,0 +19,0 @@ var hsv = color.toHsv() |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
5639
1030550