🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-currency-input

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-currency-input - npm Package Compare versions

Comparing version

to
1.2.1

LICENSE

@@ -83,2 +83,12 @@ 'use strict';

initialValue = props.allowEmpty ? null : '';
} else {
if (typeof initialValue == 'string') {
initialValue = Number.parseFloat(initialValue);
}
initialValue = Number(initialValue).toLocaleString(undefined, {
style: 'decimal',
minimumFractionDigits: props.precision,
maximumFractionDigits: props.precision
});
}

@@ -85,0 +95,0 @@

2

package.json
{
"name": "react-currency-input",
"version": "1.1.1",
"version": "1.2.1",
"description": "React component for inputing currency amounts",

@@ -5,0 +5,0 @@ "main": "lib/index.js",