Comparing version 0.10.1 to 0.11.0
@@ -118,2 +118,6 @@ /* MIT license */ | ||
hue: function(val) { | ||
if (val) { | ||
val = val % 360; | ||
val = val < 0 ? 360 + val : val; | ||
} | ||
return this.setChannel("hsl", 0, val); | ||
@@ -426,2 +430,5 @@ }, | ||
return this.values[space][index]; | ||
} else if (val === this.values[space][index]) { | ||
// color.red(color.red()) | ||
return this; | ||
} | ||
@@ -428,0 +435,0 @@ // color.red(100) |
{ | ||
"name": "color", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "Color conversion and manipulation with CSS string support", | ||
@@ -12,3 +12,4 @@ "keywords": [ | ||
"Heather Arthur <fayearthur@gmail.com>", | ||
"Maxime Thirouin" | ||
"Maxime Thirouin", | ||
"Josh Junon" | ||
], | ||
@@ -18,3 +19,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "http://github.com/harthur/color.git" | ||
"url": "http://github.com/MoOx/color.git" | ||
}, | ||
@@ -21,0 +22,0 @@ "files": [ |
@@ -1,2 +0,2 @@ | ||
# color [![Build Status](https://travis-ci.org/harthur/color.svg?branch=master)](https://travis-ci.org/harthur/color) | ||
# color [![Build Status](https://travis-ci.org/MoOx/color.svg?branch=master)](https://travis-ci.org/MoOx/color) | ||
@@ -3,0 +3,0 @@ > JavaScript library for color conversion and manipulation with support for CSS color strings. |
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
17664
398
1