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 0.9.5 to 0.9.6

10

package.json
{
"name": "react-currency-input",
"version": "0.9.5",
"version": "0.9.6",
"description": "React component for inputing currency amounts",
"main": "src/index.js",
"scripts": {
"test": "mocha --compilers js:babel-register"
"test": "mocha --compilers js:babel-register "
},

@@ -38,4 +38,8 @@ "repository": {

"chai": "^3.5.0",
"mocha": "^2.5.3"
"jsdom": "^9.2.1",
"mocha": "^2.5.3",
"react-addons-test-utils": "^15.1.0",
"sinon": "^1.17.4",
"sinon-chai": "^2.8.0"
}
}

@@ -22,3 +22,3 @@ /**

thousandSeparator: PropTypes.string,
precision: PropTypes.number
precision: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
},

@@ -41,3 +41,3 @@

thousandSeparator: ",",
precision: 2
precision: "2"
}

@@ -62,3 +62,3 @@ },

return {
maskedValue: mask(this.props.value, this.props.decimalSeparator, this.props.thousandSeparator, this.props.precision),
maskedValue: mask(this.props.value, this.props.precision, this.props.decimalSeparator, this.props.thousandSeparator),
customProps: customProps

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

this.setState({
maskedValue: mask(nextProps.value, nextProps.decimalSeparator, nextProps.thousandSeparator, nextProps.precision),
maskedValue: mask(nextProps.value, nextProps.precision, nextProps.decimalSeparator, nextProps.thousandSeparator),
customProps: customProps

@@ -107,3 +107,3 @@ });

event.preventDefault();
let maskedValue = mask(event.target.value, this.props.decimalSeparator, this.props.thousandSeparator, this.props.precision);
let maskedValue = mask(event.target.value, this.props.precision, this.props.decimalSeparator, this.props.thousandSeparator);
this.setState({maskedValue: maskedValue});

@@ -110,0 +110,0 @@ this.props.onChange(maskedValue);

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