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

installment-calculations

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

installment-calculations - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

8

index.js

@@ -12,3 +12,5 @@ var moment = require('moment'),

var results = [];
var currentDate = moment.utc(startDate).startOf('day').format();
// This is the format the DB expects.
var outputFormat = 'YYYY-MM-DD HH:mm:ss';
var currentDate = moment.utc(startDate).startOf('day').format(outputFormat);

@@ -28,5 +30,5 @@ for (var ctr = 0; ctr < numberOfInstallments; ctr++) {

if (depositInterval === 'MONTHLY') {
currentDate = moment.utc(startDate).add(ctr+1, 'months').startOf('day').format();
currentDate = moment.utc(startDate).add(ctr+1, 'months').startOf('day').format(outputFormat);
} else {
currentDate = moment.utc(currentDate).add(7, 'days').startOf('day').format();
currentDate = moment.utc(currentDate).add(7, 'days').startOf('day').format(outputFormat);
};

@@ -33,0 +35,0 @@ }

{
"name": "installment-calculations",
"version": "0.0.6",
"version": "0.0.7",
"description": "Calculate payment installments (and other useful details) based on start/end dates, interval and target amount",

@@ -5,0 +5,0 @@ "main": "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