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

@symbo.ls/scratch

Package Overview
Dependencies
Maintainers
4
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbo.ls/scratch - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

2

package.json

@@ -5,3 +5,3 @@ {

"author": "Symbols",
"version": "0.3.6",
"version": "0.3.7",
"files": [

@@ -8,0 +8,0 @@ "src"

@@ -73,11 +73,7 @@ 'use strict'

} else {
console.log(rgb)
const [r, g, b] = [...rgb.split(', ').map(v => parseFloat(v))]
const hsl = rgbToHSL(r, g, b)
const [h, s, l] = hsl
console.log(h, s, l, tone)
const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255)
console.log(newRgb)
rgb = newRgb
console.log(rgb)
}

@@ -222,5 +218,3 @@ val[tone] = { rgb, var: `${val.var}-${tone}` }

const setSameValue = (val, key) => {
return val
}
const setSameValue = (val, key) => val

@@ -227,0 +221,0 @@ export const SETTERS = {

@@ -162,3 +162,2 @@ 'use strict'

export const rgbToHSL = (r, g, b) => {
console.log(r, g, b)
const a = Math.max(r, g, b); const n = a - Math.min(r, g, b); const f = (1 - Math.abs(a + a - n - 1))

@@ -332,2 +331,3 @@ const h = n && ((a == r) ? (g - b) / n : ((a == g) ? 2 + (b - r) / n : 4 + (r - g) / n))

if (val === '-' || val === '') return ({ })
if (val === 'auto') return ({ [prop]: val })

@@ -334,0 +334,0 @@

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