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

asset-depreciation-calculator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-depreciation-calculator - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

dist/index.js

@@ -10,2 +10,7 @@ "use strict";

};
const assertPurchaseDate = (date) => {
if (isNaN(date.valueOf())) {
throw new TypeError('`purchaseDate` is invalid.');
}
};
const assertDepreciationYears = (years) => {

@@ -39,2 +44,3 @@ if (years < 1) {

assertPurchaseAmount(purchaseAmount);
assertPurchaseDate(purchaseDate);
assertDepreciationYears(totalDepreciationYears);

@@ -41,0 +47,0 @@ const purchaseMonth = new Date(purchaseDate).getMonth() + 1;

2

package.json
{
"name": "asset-depreciation-calculator",
"version": "0.0.4",
"version": "0.0.5",
"description": "Asset Depreciation Calculator",

@@ -5,0 +5,0 @@ "keywords": [

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