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

isoly

Package Overview
Dependencies
Maintainers
2
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isoly - npm Package Compare versions

Comparing version 0.1.18 to 0.1.19

6

dist/Currency.js

@@ -374,5 +374,7 @@ const currencies = [

function round(value, currency) {
var _a;
var _a, _b, _c, _d, _e;
const factor = Math.pow(10, (_a = decimalDigits(currency)) !== null && _a !== void 0 ? _a : 2);
return Math.round(Math.round(value * factor * 10) / 10) / factor;
const decimals = ((_d = (_c = (_b = value.toString().split(".")) === null || _b === void 0 ? void 0 : _b[1]) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) - 1;
return (Math.round((value + (decimals <= ((_e = decimalDigits(currency)) !== null && _e !== void 0 ? _e : 2) + 5 ? 0 : Math.pow(10, -decimals))) * factor) /
factor);
}

@@ -379,0 +381,0 @@ Currency.round = round;

{
"name": "isoly",
"version": "0.1.18",
"version": "0.1.19",
"description": "Datatypes and functions specified by ISO-standards.",

@@ -5,0 +5,0 @@ "author": "PayFunc",

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