@palett/convert
Advanced tools
Comparing version 0.8.9 to 0.8.10
@@ -167,3 +167,3 @@ 'use strict'; | ||
if (hi === 7) lo++, hi--; | ||
if (hi === 6) return hexAt(hex, lo++) << 8 | hexAt(hex, lo += 2) << 4 | hexAt(hex, lo += 2); | ||
if (hi === 6) return hexAt(hex, lo) << 8 | hexAt(hex, lo += 2) << 4 | hexAt(hex, lo + 2); | ||
if (hi === 4) lo++, hi--; | ||
@@ -170,0 +170,0 @@ if (hi === 3) return hexAt(hex, lo++) << 8 | hexAt(hex, lo++) << 4 | hexAt(hex, lo++); |
@@ -163,3 +163,3 @@ import { round } from '@aryth/math'; | ||
if (hi === 7) lo++, hi--; | ||
if (hi === 6) return hexAt(hex, lo++) << 8 | hexAt(hex, lo += 2) << 4 | hexAt(hex, lo += 2); | ||
if (hi === 6) return hexAt(hex, lo) << 8 | hexAt(hex, lo += 2) << 4 | hexAt(hex, lo + 2); | ||
if (hi === 4) lo++, hi--; | ||
@@ -166,0 +166,0 @@ if (hi === 3) return hexAt(hex, lo++) << 8 | hexAt(hex, lo++) << 4 | hexAt(hex, lo++); |
{ | ||
"name": "@palett/convert", | ||
"version": "0.8.9", | ||
"version": "0.8.10", | ||
"description": "A color converter among RGB, HEX and HSL.", | ||
@@ -44,3 +44,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/palett/rgb#readme", | ||
"gitHead": "7175f50132def2e559edbed00883d1e565be5d90" | ||
"gitHead": "23423f1e548d18e7eff091a2e016fd76659c2e5c" | ||
} |
14333