Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colormin

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colormin - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

CHANGELOG.md

@@ -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());
};

7

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc