@uiw/color-convert
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -287,3 +287,3 @@ "use strict"; | ||
b: b, | ||
a: a ? a / RGB_MAX : 1 | ||
a: (a !== null && a !== void 0 ? a : 255) / RGB_MAX | ||
}; | ||
@@ -290,0 +290,0 @@ }; |
@@ -211,3 +211,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
b, | ||
a: a ? a / RGB_MAX : 1 | ||
a: (a != null ? a : 255) / RGB_MAX | ||
}; | ||
@@ -214,0 +214,0 @@ }; |
{ | ||
"name": "@uiw/color-convert", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Color Convert", | ||
@@ -5,0 +5,0 @@ "author": "Kenny Wong <wowohoo@qq.com>", |
@@ -208,3 +208,3 @@ import { validHex } from './utils'; | ||
b, | ||
a: a ? a / RGB_MAX : 1, | ||
a: (a ?? 255) / RGB_MAX, | ||
}; | ||
@@ -211,0 +211,0 @@ }; |
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
49548