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

stockshark-channels

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stockshark-channels - npm Package Compare versions

Comparing version 1.0.27 to 1.0.28

2

package.json
{
"name": "stockshark-channels",
"version": "1.0.27",
"version": "1.0.28",
"description": "provide channels",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -6,6 +6,8 @@ const calculators = require('../calculators')

module.exports = function (channel) {
module.exports = function (channel, { min, max }) {
let data = channel.data.map(p => (p - channel.meta.min) / channel.meta.range)
// let data = channel.data.map(p => (p - channel.meta.min) / channel.meta.range)
let range = max - min
let data = channel.data.map(p => (p - min) / range)
return {

@@ -12,0 +14,0 @@ data,

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