New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@symbo.ls/scratch

Package Overview
Dependencies
Maintainers
18
Versions
280
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
2.11.524

10

dist/cjs/utils/index.js

@@ -1038,4 +1038,8 @@ "use strict";

var generateSequencePosition = (sequenceProps, position = 0) => {
var _a;
const { type, base, ratio, subSequence } = sequenceProps;
const letterKey = isString(position) ? position : numToLetterMap[position];
const index = isString(position) ? (_a = Object.entries(numToLetterMap).find(
([, value2]) => value2 === position
)) == null ? void 0 : _a[0] : position;
if (!letterKey) {

@@ -1051,7 +1055,7 @@ console.warn(`Position ${position} is out of range in numToLetterMap`);

};
const value = base * Math.pow(ratio, position);
const value = base * Math.pow(ratio, index);
const scaling = ~~(value / base * 100) / 100;
const prefix = "--" + (type && type.replace(".", "-")) + "-";
const variable = prefix + letterKey;
const scalingVariable = setScalingVar(position, sequenceProps);
const scalingVariable = setScalingVar(index, sequenceProps);
const props = {

@@ -1065,3 +1069,3 @@ key: letterKey,

ratio,
index: position
index
};

@@ -1068,0 +1072,0 @@ setSequenceValue(props, result);

@@ -762,4 +762,8 @@ "use strict";

var generateSequencePosition = (sequenceProps, position = 0) => {
var _a;
const { type, base, ratio, subSequence } = sequenceProps;
const letterKey = isString(position) ? position : numToLetterMap[position];
const index = isString(position) ? (_a = Object.entries(numToLetterMap).find(
([, value2]) => value2 === position
)) == null ? void 0 : _a[0] : position;
if (!letterKey) {

@@ -775,7 +779,7 @@ console.warn(`Position ${position} is out of range in numToLetterMap`);

};
const value = base * Math.pow(ratio, position);
const value = base * Math.pow(ratio, index);
const scaling = ~~(value / base * 100) / 100;
const prefix = "--" + (type && type.replace(".", "-")) + "-";
const variable = prefix + letterKey;
const scalingVariable = setScalingVar(position, sequenceProps);
const scalingVariable = setScalingVar(index, sequenceProps);
const props = {

@@ -789,3 +793,3 @@ key: letterKey,

ratio,
index: position
index
};

@@ -792,0 +796,0 @@ setSequenceValue(props, result);

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

"author": "symbo.ls",
"version": "2.11.523",
"version": "2.11.524",
"files": [

@@ -34,3 +34,3 @@ "src",

},
"gitHead": "08e5b257605d1475f4628529f8e35373d87eb369"
"gitHead": "11ddc293abaa696dce80d4fb0356a27f0a0f476c"
}

@@ -174,3 +174,8 @@ 'use strict'

const letterKey = isString(position) ? position : numToLetterMap[position]
const index = isString(position)
? Object.entries(numToLetterMap).find(
([, value]) => value === position
)?.[0]
: position
if (!letterKey) {

@@ -188,7 +193,7 @@ console.warn(`Position ${position} is out of range in numToLetterMap`)

const value = base * Math.pow(ratio, position)
const value = base * Math.pow(ratio, index)
const scaling = ~~((value / base) * 100) / 100
const prefix = '--' + (type && type.replace('.', '-')) + '-'
const variable = prefix + letterKey
const scalingVariable = setScalingVar(position, sequenceProps)
const scalingVariable = setScalingVar(index, sequenceProps)

@@ -203,3 +208,3 @@ const props = {

ratio,
index: position
index
}

@@ -206,0 +211,0 @@

Sorry, the diff of this file is too big to display