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

@depay/local-currency

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@depay/local-currency - npm Package Compare versions

Comparing version 3.5.5 to 3.6.0

5

dist/esm/index.js

@@ -464,2 +464,7 @@ var timezoneToCurrency = {

toString(options = {}) {
if(options.minimumFractionDigits == undefined && (this.amount % 1 === 0) && this.amount >= 100) {
options.minimumFractionDigits = 0;
} else if(options.minimumFractionDigits == undefined) {
options.minimumFractionDigits = 2;
}
return new Intl.NumberFormat(navigator.language, {...options,

@@ -466,0 +471,0 @@ style: 'currency',

@@ -470,2 +470,7 @@ (function (global, factory) {

toString(options = {}) {
if(options.minimumFractionDigits == undefined && (this.amount % 1 === 0) && this.amount >= 100) {
options.minimumFractionDigits = 0;
} else if(options.minimumFractionDigits == undefined) {
options.minimumFractionDigits = 2;
}
return new Intl.NumberFormat(navigator.language, {...options,

@@ -472,0 +477,0 @@ style: 'currency',

2

package.json
{
"name": "@depay/local-currency",
"moduleName": "LocalCurrency",
"version": "3.5.5",
"version": "3.6.0",
"description": "JavaScript library that detects user's local currency and provides functionalities to convert between multiple currencies.",

@@ -6,0 +6,0 @@ "main": "dist/umd/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