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

color-forge

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-forge - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

14

index.js

@@ -185,11 +185,17 @@ 'use strict';

amount = amountMode;
mode = 'rgb';
} else {
amount = 0.5;
} else if (typeof amountMode === 'string') {
mode = amountMode;
}
} if (amountMode === undefined) {
} else {
amount = amountMode;
}
if (amount === undefined) {
amount = 0.5;
}
if (mode === undefined) {
mode = 'rgb';
}
var thisValues = this.convert(mode).values;

@@ -196,0 +202,0 @@ var otherValues = other.convert(mode).values;

{
"name": "color-forge",
"version": "1.0.10",
"version": "1.0.11",
"description": "A simple color system based on the work of https://github.com/dfcreative/color-space",

@@ -5,0 +5,0 @@ "url": "https://github.com/jacobp100/color-forge",

@@ -85,2 +85,3 @@ /* eslint-env node, mocha */

assert.about(Color.hex('#f00').mix(Color.hex('#0f0'), 'lab').convert('rgb'), Color.hex('#c9ab00'));
assert.about(Color.hex('#f00').mix(Color.hex('#0f0'), 'lchab').convert('rgb'), Color.hex('#d7a700'));
});

@@ -87,0 +88,0 @@ // Conformance with http://sassmeister.com (where 25 on there is 0.25 here)

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