Socket
Socket
Sign inDemoInstall

@ant-design/fast-color

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/fast-color - npm Package Compare versions

Comparing version 1.2.1 to 1.2.3

6

es/FastColor.js

@@ -13,6 +13,6 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

function splitColorStr(str, parseNum) {
const match = str.match(/\d*\.?\d+%?/g);
const numList = match ? match.map(item => parseFloat(item)) : [];
const match = str.match(/\d*\.?\d+%?/g) || [];
const numList = match.map(item => parseFloat(item));
for (let i = 0; i < 3; i += 1) {
numList[i] = parseNum(numList[i], match[i], i);
numList[i] = parseNum(numList[i] || 0, match[i] || '', i);
}

@@ -19,0 +19,0 @@

@@ -20,6 +20,6 @@ "use strict";

function splitColorStr(str, parseNum) {
const match = str.match(/\d*\.?\d+%?/g);
const numList = match ? match.map(item => parseFloat(item)) : [];
const match = str.match(/\d*\.?\d+%?/g) || [];
const numList = match.map(item => parseFloat(item));
for (let i = 0; i < 3; i += 1) {
numList[i] = parseNum(numList[i], match[i], i);
numList[i] = parseNum(numList[i] || 0, match[i] || '', i);
}

@@ -26,0 +26,0 @@

{
"name": "@ant-design/fast-color",
"version": "1.2.1",
"version": "1.2.3",
"description": "fast and small color class",

@@ -5,0 +5,0 @@ "engines": {

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