colors-convert
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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
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
3951116