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

@harvest-profit/what-if-analysis

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harvest-profit/what-if-analysis - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

11

dist/utils.js

@@ -11,10 +11,12 @@ "use strict";

function arrayOfYields(aph, yieldIncrement, yieldDecriment) {
var length = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;
var yields = [];
var halfLength = length / 2;
for (var index = 0; index < 5; index += 1) {
var order = 4 - index;
for (var index = 0; index < halfLength; index += 1) {
var order = halfLength - 1 - index;
yields.push(aph + order * yieldIncrement);
}
for (var _index = 1; _index < 5; _index += 1) {
for (var _index = 1; _index < halfLength; _index += 1) {
yields.push(aph - _index * yieldDecriment);

@@ -27,5 +29,6 @@ }

function arrayOfCashPrices(startingCashPrice, cashPriceIncrements) {
var length = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 16;
var cashPrices = [];
for (var index = 0; index < 16; index += 1) {
for (var index = 0; index < length; index += 1) {
var cashPrice = startingCashPrice + index * cashPriceIncrements;

@@ -32,0 +35,0 @@ cashPrices.push(cashPrice);

{
"name": "@harvest-profit/what-if-analysis",
"version": "2.1.0",
"version": "2.2.0",
"description": "Builds \"what if\" analysis for Harvest Profit",

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

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