color-rgba
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -16,2 +16,4 @@ /** @module color-rgba */ | ||
if (Array.isArray(color)) return color; | ||
var values = parsed.values, i, l = values.length; | ||
@@ -18,0 +20,0 @@ for (i = 0; i < l; i++) { |
{ | ||
"name": "color-rgba", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Convert color string to rgba array", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,4 +12,5 @@ const assert = require('assert') | ||
assert.deepEqual(rgba('rgba(-300,-300,-300,-1)'), [0,0,0,0]) | ||
assert.deepEqual(rgba([0,0,0,0]), [0,0,0,0]) | ||
assert.equal(rgba('xyz'), null) | ||
// console.log(rgba('hsla(170, 50%, 45%, 1)')) |
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
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
4147
81