react-currency-input-field
Advanced tools
Comparing version 0.0.41 to 0.0.42
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37071
19
315