Socket
Socket
Sign inDemoInstall

color

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

3

color.js

@@ -73,4 +73,3 @@ /* MIT license */

var rgb = this.values.rgb;
rgb.push(this.values.alpha);
return rgb;
return rgb.concat([this.values.alpha]);
},

@@ -77,0 +76,0 @@ hslaArray: function() {

{
"name": "color",
"description": "Color conversion and manipulation with CSS string support",
"version": "0.4.2",
"version": "0.4.3",
"author": "Heather Arthur <fayearthur@gmail.com>",

@@ -6,0 +6,0 @@ "repository": {

@@ -53,2 +53,7 @@ var Color = require("../color"),

// Multiple times
var color = Color({r: 10, g: 20, b: 30});
assert.deepEqual(color.rgbaArray(), [10, 20, 30, 1]);
assert.deepEqual(color.rgbaArray(), [10, 20, 30, 1]);
// Channel getters/setters

@@ -55,0 +60,0 @@ assert.equal(Color({r: 10, g: 20, b: 30, a: 0.4}).alpha(), 0.4);

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