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

react-currency-input-field

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-currency-input-field - npm Package Compare versions

Comparing version 0.0.41 to 0.0.42

dist/index.js

4

package.json
{
"name": "react-currency-input-field",
"version": "0.0.41",
"version": "0.0.42",
"description": "React input field component for currency and numbers",

@@ -47,3 +47,3 @@ "main": "dist/index.js",

"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.8"
"webpack-dev-server": "^3.1.14"
},

@@ -50,0 +50,0 @@ "peerDependencies": {

@@ -1,4 +0,5 @@

export const addCommas = (value:number) => value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
export const addCommas = (value: number) =>
value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
export const removeCommas = (value:string) => value.replace(/,/g, '');
export const removeCommas = (value: string) => value.replace(/,/g, '');

@@ -14,3 +15,3 @@ export const checkIsValidNumber = (input: number, limit: number) => {

return (input <= limit);
return input <= limit;
};
import CurrencyInput from './components/CurrencyInput';
export default CurrencyInput;
export default CurrencyInput;

@@ -7,18 +7,18 @@ const webpack = require('webpack');

output: {
filename: 'index.js',
path: __dirname + '/dist'
filename: 'index.js',
path: __dirname + '/dist',
},
devtool: 'source-map',
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json']
extensions: ['.ts', '.tsx', '.js', '.json'],
},
module: {
rules: [
{ test: /\.tsx?$/, loader: 'awesome-typescript-loader' },
{ enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' }
]
rules: [
{ test: /\.tsx?$/, loader: 'awesome-typescript-loader' },
{ enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' },
],
},
externals: {
'react': 'React',
'react-dom': 'ReactDOM'
react: 'React',
'react-dom': 'ReactDOM',
},

@@ -29,3 +29,3 @@ plugins: [

}),
]
],
};

@@ -41,7 +41,9 @@

config.plugins.push(new HtmlWebPackPlugin({
template: './src/example.html'
}));
config.plugins.push(
new HtmlWebPackPlugin({
template: './src/example.html',
})
);
}
module.exports = config;
module.exports = config;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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