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.7.15 to 0.7.16

2

package.json

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

"author": "symbo.ls",
"version": "0.7.15",
"version": "0.7.16",
"files": [

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

@@ -73,3 +73,3 @@ 'use strict'

for (let i = 0; i < 3; i++) {
arr[i] = Math.round(
arr[i] = ~~(
colorA[i] + (

@@ -76,0 +76,0 @@ (colorB[i] - colorA[i]) * range

@@ -41,4 +41,4 @@ 'use strict'

key,
decimal: Math.round(value * 100) / 100,
val: Math.round(value),
decimal: ~~(value * 100) / 100,
val: ~~(value),
scaling,

@@ -59,4 +59,4 @@ index,

const valueRounded = Math.round(value)
const nextRounded = Math.round(next)
const valueRounded = ~~(value)
const nextRounded = ~~(next)
const diffRounded = nextRounded - valueRounded

@@ -72,3 +72,3 @@

arr.map((v, k) => {
const scaling = Math.round(v / base * 1000) / 1000
const scaling = ~~(v / base * 1000) / 1000
const newVar = variable + (k + 1)

@@ -97,3 +97,3 @@

const value = base * Math.pow(ratio, key)
const scaling = Math.round(value / base * 1000) / 1000
const scaling = ~~(value / base * 1000) / 1000
const variable = prefix + letterKey

@@ -100,0 +100,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