color-parse
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -164,3 +164,3 @@ /** | ||
//array | ||
else if (Array.isArray(cstr) || ArrayBuffer.isView(cstr)) { | ||
else if (Array.isArray(cstr) || global.ArrayBuffer && ArrayBuffer.isView && ArrayBuffer.isView(cstr)) { | ||
parts = [cstr[0], cstr[1], cstr[2]]; | ||
@@ -167,0 +167,0 @@ space = 'rgb' |
{ | ||
"name": "color-parse", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Color string parser", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "node test" | ||
}, | ||
@@ -34,4 +34,4 @@ "repository": { | ||
"devDependencies": { | ||
"mocha": "^3.0.2" | ||
"tape": "^4.7.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# color-parse [![Build Status](https://travis-ci.org/dfcreative/color-parse.svg?branch=master)](https://travis-ci.org/dfcreative/color-parse) [![Code Climate](https://codeclimate.com/github/dfcreative/color-parse/badges/gpa.svg)](https://codeclimate.com/github/dfcreative/color-parse) | ||
# color-parse [![Build Status](https://travis-ci.org/colorjs/color-parse.svg?branch=master)](https://travis-ci.org/colorjs/color-parse) | ||
@@ -15,2 +15,3 @@ Fast and tiny color string parser. | ||
* [x] `red`, see [color-name](https://github.com/colorjs/color-name) | ||
* [x] `rgb(10, 20, 30)`, `rgba(10, 20, 30, .3)` | ||
@@ -42,3 +43,3 @@ * [x] `hsl()`, `hsla()` inc. [named hues](http://dev.w3.org/csswg/css-color/#simple-hues) | ||
* [x] `yellowblue` returns null | ||
* [x] `'yellowblue'` returns `null` | ||
@@ -45,0 +46,0 @@ ## Related |
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
58
7768