stockshark-util
Advanced tools
Comparing version 1.0.408 to 1.0.409
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109031