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

@doctadevs/utils

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doctadevs/utils - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

8

dist/src/finance.d.ts

@@ -1,7 +0,1 @@

declare type CFTToInstallments = {
amountToPay: number;
installmentsAmount: number;
cft: number;
};
export declare const getInstallmentValueFromCFT: ({ installmentsAmount, amountToPay, cft }: CFTToInstallments) => number;
export {};
export declare const getInstallmentValue: (amountToSplit: number, installmentRate: number, installmentsToPay: number) => number;

9

dist/src/finance.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInstallmentValueFromCFT = void 0;
const getInstallmentValueFromCFT = ({ installmentsAmount, amountToPay, cft }) => (amountToPay + amountToPay * (cft / 100)) / installmentsAmount;
exports.getInstallmentValueFromCFT = getInstallmentValueFromCFT;
exports.getInstallmentValue = void 0;
const getInstallmentValue = (amountToSplit, installmentRate, installmentsToPay) => {
const pureInstallmentValue = amountToSplit / installmentsToPay;
return pureInstallmentValue + pureInstallmentValue * (installmentRate / 100);
};
exports.getInstallmentValue = getInstallmentValue;
//# sourceMappingURL=finance.js.map
{
"name": "@doctadevs/utils",
"version": "0.0.13",
"version": "0.0.14",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -1,8 +0,8 @@

type CFTToInstallments = {
amountToPay: number;
installmentsAmount: number;
cft: number;
export const getInstallmentValue = (
amountToSplit: number,
installmentRate: number,
installmentsToPay: number,
): number => {
const pureInstallmentValue = amountToSplit / installmentsToPay;
return pureInstallmentValue + pureInstallmentValue * (installmentRate / 100);
};
export const getInstallmentValueFromCFT = ({ installmentsAmount, amountToPay, cft }: CFTToInstallments) =>
(amountToPay + amountToPay * (cft / 100)) / installmentsAmount;

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