Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,5 @@ | ||
# 1.1.2 | ||
* Improved performance of `isKeyword` (thanks to @maxnordlund & @ljharb). | ||
# 1.1.1 | ||
@@ -2,0 +6,0 @@ |
@@ -6,2 +6,6 @@ 'use strict'; | ||
var _has = require('has'); | ||
var _has2 = _interopRequireDefault(_has); | ||
var _colourNames = require('./colourNames'); | ||
@@ -31,3 +35,3 @@ | ||
var isKeyword = exports.isKeyword = function isKeyword(colour) { | ||
return ~Object.keys(_colourNames2.default).indexOf(colour.toLowerCase()); | ||
return (0, _has2.default)(_colourNames2.default, colour.toLowerCase()); | ||
}; |
{ | ||
"name": "colormin", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Turn a CSS color into its smallest representation.", | ||
@@ -32,6 +32,7 @@ "main": "dist/index.js", | ||
"color": "^0.11.0", | ||
"css-color-names": "0.0.4" | ||
"css-color-names": "0.0.4", | ||
"has": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.15.0", | ||
"ava": "^0.16.0", | ||
"babel-cli": "^6.3.17", | ||
@@ -38,0 +39,0 @@ "babel-core": "^6.3.26", |
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
9575
123
3
+ Addedhas@^1.0.1
+ Addedhas@1.0.4(transitive)