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

stockshark-util

Package Overview
Dependencies
Maintainers
1
Versions
444
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stockshark-util - npm Package Compare versions

Comparing version 1.0.408 to 1.0.409

2

package.json
{
"name": "stockshark-util",
"version": "1.0.408",
"version": "1.0.409",
"description": "util",

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

@@ -290,10 +290,10 @@ const time = require("./time")

downgradeInterval(interval) {
downgradeInterval(interval, levels) {
const index = intervals.indexOf(interval)
return intervals[index - 1]
return intervals[index - levels]
}
upgradeInterval(interval) {
upgradeInterval(interval, levels) {
const index = intervals.indexOf(interval)
return intervals[index + 1]
return intervals[index + levels]
}

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