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

colors-convert

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colors-convert - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

dist/lib/color.js

@@ -21,3 +21,3 @@ import { isHex, isRgb, isRgba, isCmyk, isHsl, isColor } from '../types/isType';

else if (isHsl(color)) {
return color.h + "\u00B0, " + color.s + "%, " + color.l + "%";
return color.h + ", " + color.s + "%, " + color.l + "%";
}

@@ -46,3 +46,3 @@ else {

else if (isHsl(color)) {
return "hsl(" + color.h + "\u00B0, " + color.s + "%, " + color.l + "%)";
return "hsl(" + color.h + ", " + color.s + "%, " + color.l + "%)";
}

@@ -49,0 +49,0 @@ else {

@@ -10,3 +10,3 @@ import { color2string, color2cssString } from '../index';

expect(color2string({ c: 0, m: 0, y: 0, k: 0 })).toBe('0%, 0%, 0%, 0%');
expect(color2string({ h: 0, s: 0, l: 0 })).toBe('0°, 0%, 0%');
expect(color2string({ h: 0, s: 0, l: 0 })).toBe('0, 0%, 0%');
});

@@ -21,4 +21,4 @@ ////////////////////////////////////////////////////////

expect(color2cssString({ c: 0, m: 0, y: 0, k: 0 })).toBe('cmyk(0%, 0%, 0%, 0%)');
expect(color2cssString({ h: 0, s: 0, l: 0 })).toBe('hsl(0°, 0%, 0%)');
expect(color2cssString({ h: 0, s: 0, l: 0 })).toBe('hsl(0, 0%, 0%)');
});
//# sourceMappingURL=color.test.js.map
{
"name": "colors-convert",
"version": "1.2.0",
"version": "1.2.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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