Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@daybrush/utils

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daybrush/utils - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

dist/utils.esm.js

@@ -278,5 +278,7 @@ var prefixes = ["webkit", "ms", "moz", "o"];

case HSLA:
for (var i = 1; i < length; ++i) {
for (var i = 0; i < length; ++i) {
if (arr[i].indexOf("%") !== -1) {
colorArr[i] = parseFloat(arr[i]) / 100;
} else {
colorArr[i] = parseFloat(arr[i]);
}

@@ -283,0 +285,0 @@ } // hsl, hsla to rgba

@@ -282,5 +282,7 @@ 'use strict';

case HSLA:
for (var i = 1; i < length; ++i) {
for (var i = 0; i < length; ++i) {
if (arr[i].indexOf("%") !== -1) {
colorArr[i] = parseFloat(arr[i]) / 100;
} else {
colorArr[i] = parseFloat(arr[i]);
}

@@ -287,0 +289,0 @@ } // hsl, hsla to rgba

{
"name": "@daybrush/utils",
"version": "0.0.4",
"version": "0.0.5",
"description": "utils for daybrush",

@@ -5,0 +5,0 @@ "main": "dist/utils.js",

@@ -142,5 +142,7 @@ import { RGB, RGBA, HSL, HSLA } from "./consts";

case HSLA:
for (let i = 1; i < length; ++i) {
for (let i = 0; i < length; ++i) {
if (arr[i].indexOf("%") !== -1) {
colorArr[i] = parseFloat(arr[i]) / 100;
} else {
colorArr[i] = parseFloat(arr[i]);
}

@@ -147,0 +149,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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