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

@harvest-profit/harvest-profit-calculations

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harvest-profit/harvest-profit-calculations - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

dist/calculations/crop.js

@@ -73,4 +73,4 @@ Object.defineProperty(exports, "__esModule", {

Crop.calculateCropRevenue = function (contracts, cashPrice, totalProduction, settings) {
var contractRevenue = _contracts2['default'].calculateContractRevenue(contracts);
var contractProduction = _contracts2['default'].calculateContractProduction(contracts);
var contractRevenue = _contracts2['default'].calculateContractsRevenue(contracts);
var contractProduction = _contracts2['default'].calculateContractsProduction(contracts);
var remainingProduction = totalProduction - contractProduction;

@@ -77,0 +77,0 @@ var price = cashPrice + Crop.calculateCropBasis(settings);

{
"name": "@harvest-profit/harvest-profit-calculations",
"version": "1.1.0",
"version": "1.1.1",
"description": "All the calculations",

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

@@ -14,2 +14,12 @@ <div style="text-align: center">

## Usage
To use this package, just give it a try!
```javascript
import { Contract } from 'harvest-profit';
const contractUrl = Contract.translateContractTypeToUrl('hedgetoarrive');
console.log(contractUrl); // Outputs: `hedge_to_arrive`
```
## Development

@@ -16,0 +26,0 @@ [Clone](https://help.github.com/articles/cloning-a-repository/) this repo, and begin committing changes. PRs are preferred over committing directly to master.

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