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

bankers-math

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bankers-math - npm Package Compare versions

Comparing version 0.1.7 to 0.2.0

2

Banker.js

@@ -84,3 +84,3 @@

let toCut = feeTotal - amount
for (let i = feeValues.length - 1; toCut > 0 && i >= 0; ++i) {
for (let i = feeValues.length - 1; toCut > 0 && i >= 0; --i) {
let tc = toCut <= feeValues[i] ? toCut : feeValues[i]

@@ -87,0 +87,0 @@ feeValues[i] -= tc

{
"name": "bankers-math",
"version": "0.1.7",
"version": "0.2.0",
"description": "Helper function for Bankers' calculus",

@@ -25,3 +25,3 @@ "keywords": [

"devDependencies": {
"jest": "^27.5.1"
"jest": "^29.6.2"
},

@@ -28,0 +28,0 @@ "engines": {

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