New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 1.1.1 to 1.2.1

LICENSE

10

lib/index.js

@@ -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",

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