Comparing version 2.2.1 to 2.2.2
{ | ||
"name": "vue-color", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Color of Vue Components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -16,3 +16,3 @@ import Compact from './components/Compact.vue' | ||
const VueColor = { | ||
version: '2.2.1', | ||
version: '2.2.2', | ||
Compact, | ||
@@ -19,0 +19,0 @@ Material, |
@@ -27,2 +27,15 @@ import tinycolor from 'tinycolor2' | ||
// when the hsv.v is less than 0.0164 (base on test) | ||
// because of possible loss of precision | ||
// the result of hue and saturation would be miscalculated | ||
if (hsv.v < 0.0164) { | ||
hsv.h = data.h || (data.hsv && data.hsv.h) || 0 | ||
hsv.s = data.s || (data.hsv && data.hsv.s) || 0 | ||
} | ||
if (hsl.l < 0.01) { | ||
hsl.h = data.h || (data.hsl && data.hsl.h) || 0 | ||
hsl.s = data.s || (data.hsl && data.hsl.s) || 0 | ||
} | ||
return { | ||
@@ -29,0 +42,0 @@ hsl: hsl, |
Sorry, the diff of this file is too big to display
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 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1244220
43
5528
2