🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@uiw/react-color-block

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-color-block - npm Package Compare versions

Comparing version

to
1.0.11

2

cjs/index.js

@@ -45,3 +45,3 @@ "use strict";

var handleHex = function handleHex(value, evn) {
if (typeof value === 'string' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.length))) {
if (typeof value === 'string' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) {
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.hexToHsva)(value)));

@@ -48,0 +48,0 @@ }

@@ -30,3 +30,3 @@ import _extends from "@babel/runtime/helpers/extends";

var handleHex = (value, evn) => {
if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {
if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) {
onChange && onChange(handleColor(hexToHsva(value)));

@@ -33,0 +33,0 @@ }

{
"name": "@uiw/react-color-block",
"version": "1.0.10",
"version": "1.0.11",
"description": "Color Block Picker",

@@ -14,2 +14,6 @@ "author": "Kenny Wong <wowohoo@qq.com>",

},
"scripts": {
"build": "tsbb build",
"watch": "tsbb watch"
},
"keywords": [

@@ -36,6 +40,6 @@ "react",

"@babel/runtime": "~7.17.2",
"@uiw/color-convert": "1.0.10",
"@uiw/react-color-editable-input": "1.0.10",
"@uiw/react-color-swatch": "1.0.10"
"@uiw/color-convert": "1.0.11",
"@uiw/react-color-editable-input": "1.0.11",
"@uiw/react-color-swatch": "1.0.11"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet