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

@harvest-profit/model-helpers

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harvest-profit/model-helpers - npm Package Compare versions

Comparing version 1.7.1 to 1.8.0

25

dist/models/planting.js

@@ -86,5 +86,28 @@ Object.defineProperty(exports, "__esModule", {

/**
* Updates the crop ID for a planting and it's associated applications
* @function
* @param {planting} planting The planting to update
* @param {number} cropId The new crop id for the given planting
* @return {planting} The updated planting (with applications)
*/
}, {
key: 'updateCropId',
value: function () {
function updateCropId(planting, cropId) {
return _extends({}, planting, {
crop_id: cropId,
applications: planting.applications.map(function (app) {
return _extends({}, app, { crop_id: cropId });
})
});
}
return updateCropId;
}()
/**
* Updates the planted acres for a planting and it's associated applications
* @function
* @param {planting} planting The planting to sanitize
* @param {planting} planting The planting to update
* @param {number|string} acres The new acres for the given planting

@@ -91,0 +114,0 @@ * @return {planting} The updated planting (with applications)

2

package.json
{
"name": "@harvest-profit/model-helpers",
"version": "1.7.1",
"version": "1.8.0",
"description": "All the calculations",

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

Sorry, the diff of this file is not supported yet

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