react-currency-input-field
Advanced tools
Comparing version 0.0.46 to 0.0.47
@@ -5,2 +5,44 @@ # Changelog | ||
### [0.0.47](https://github.com/cchanxzy/React-Currency-Input-Field/compare/v0.10.0...v0.0.47) (2019-09-08) | ||
## 0.10.0 (2019-09-08) | ||
### ⚠ BREAKING CHANGES | ||
* removed limit prop | ||
* removed limit prop, updated tests and examples ([ed24b8e](https://github.com/cchanxzy/React-Currency-Input-Field/commit/ed24b8e)) | ||
### Bug Fixes | ||
* updated packages ([7e80871](https://github.com/cchanxzy/React-Currency-Input-Field/commit/7e80871)) | ||
## 0.1.0 (2019-09-08) | ||
### ⚠ BREAKING CHANGES | ||
* removed limit prop | ||
* removed limit prop, updated tests and examples ([ed24b8e](https://github.com/cchanxzy/React-Currency-Input-Field/commit/ed24b8e)) | ||
### Bug Fixes | ||
* updated packages ([7e80871](https://github.com/cchanxzy/React-Currency-Input-Field/commit/7e80871)) | ||
### 0.0.47 (2019-09-08) | ||
### Bug Fixes | ||
* updated packages ([7e80871](https://github.com/cchanxzy/React-Currency-Input-Field/commit/7e80871)) | ||
### Features | ||
* upating tests and examples ([e18c23a](https://github.com/cchanxzy/React-Currency-Input-Field/commit/e18c23a)) | ||
### 0.0.46 (2019-08-29) | ||
@@ -7,0 +49,0 @@ |
{ | ||
"name": "react-currency-input-field", | ||
"version": "0.0.46", | ||
"version": "0.0.47", | ||
"description": "React input field component for currency and numbers", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.js", | ||
"@types/enzyme": "^3.1.14", | ||
"@types/jest": "^23.3.2", | ||
"@types/jest": "^24.0.18", | ||
"@types/react": "^16.4.14", | ||
@@ -43,2 +43,4 @@ "@types/react-dom": "^16.0.7", | ||
"jest": "^25.0.0", | ||
"prettier": "^1.18.2", | ||
"react": "^16.9.0", | ||
"react-dom": "^16.5.2", | ||
@@ -48,5 +50,8 @@ "react-hot-loader": "^4.3.11", | ||
"standard-version": "^7.0.0", | ||
"ts-jest": "^23.10.1", | ||
"ts-jest": "^24.0.2", | ||
"tslint": "^5.11.0", | ||
"tslint-config-airbnb": "^5.11.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-plugin-prettier": "^2.0.1", | ||
"tslint-react": "^4.0.0", | ||
"typescript": "^3.0.3", | ||
@@ -58,4 +63,5 @@ "webpack": "^4.19.1", | ||
"peerDependencies": { | ||
"react": "^16.5.2" | ||
"react": "^16.9.0" | ||
}, | ||
"dependencies": {}, | ||
"jest": { | ||
@@ -77,5 +83,2 @@ "verbose": true, | ||
}, | ||
"dependencies": { | ||
"react": "^16.9.0" | ||
}, | ||
"config": { | ||
@@ -82,0 +85,0 @@ "commitizen": { |
@@ -1,16 +0,11 @@ | ||
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): string => value.replace(/,/g, ''); | ||
export const checkIsValidNumber = (input: number, limit: number) => { | ||
if (input === 0) { | ||
return true; | ||
} | ||
if (input < 0 || Number.isNaN(input)) { | ||
export const checkIsValidNumber = (input: number) => { | ||
if (input < 0 || isNaN(input)) { | ||
return false; | ||
} | ||
return input <= limit; | ||
return true; | ||
}; |
{ | ||
"compilerOptions": { | ||
"outDir": "./dist/", | ||
"sourceMap": true, | ||
"noImplicitAny": true, | ||
"module": "commonJs", | ||
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"target": "es6", | ||
"jsx": "react", | ||
"esModuleInterop": true, | ||
"declaration": true | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react" | ||
}, | ||
"include": ["./src/**/*"] | ||
"include": ["src"] | ||
} |
{ | ||
"defaultSeverity": "error", | ||
"extends": [ | ||
"tslint:recommended", | ||
"tslint-react", | ||
"tslint-config-airbnb" | ||
], | ||
"jsRules": {}, | ||
"rules": {}, | ||
"rulesDirectory": [] | ||
} | ||
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"], | ||
"rulesDirectory": ["tslint-plugin-prettier"], | ||
"rules": { | ||
"prettier": true, | ||
"interface-name": false | ||
} | ||
} |
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
40848
1
28
387
28
- Removedreact@^16.9.0