@harvest-profit/harvest-profit-calculations
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15312
58
0