You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@symbo.ls/scratch

Package Overview
Dependencies
Maintainers
5
Versions
288
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

to
0.7.21

2

package.json

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

"author": "symbo.ls",
"version": "0.7.20",
"version": "0.7.21",
"files": [

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

'use strict'
import { toDashCase } from '@symbo.ls/utils'
import { SEQUENCE, SPACING, UNIT } from '../defaultConfig'
import { UNIT } from '../defaultConfig'
import { CONFIG } from '../factory'

@@ -86,10 +86,10 @@ import { isString } from './object'

const switchSequenceOnNegative = (key, base, ratio) => {
const values = Object.values(SEQUENCE)
const index = values.indexOf(ratio)
const diffRatio = ratio / SPACING.ratio
const total = values[values.length - 1] - values[0]
const avg = total / 2
const diff = avg - ratio
const scale = total / ratio
const finalDiff = avg + avg / diffRatio
// const values = Object.values(SEQUENCE)
// const index = values.indexOf(ratio)
// const diffRatio = ratio / SPACING.ratio
// const total = values[values.length - 1] - values[0]
// const avg = total / 2
// const diff = avg - ratio
// const scale = total / ratio
// const finalDiff = avg + avg / diffRatio

@@ -96,0 +96,0 @@ // if (key < 0) return base * Math.pow(avg, key)