Skip to content

Commit ea46c51

Browse files
Merge pull request #25 from gokulakannant/issue-fixes
Fixup! Rule not defined console error throwing issue fixed
2 parents 324deb3 + 4d5fde3 commit ea46c51

9 files changed

+11
-10
lines changed

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ webpack.config.js
55
*.tgz
66

77
!*/**/*.d.ts
8-
example/
8+
demo/
99
tsconfig.json
1010
typedocconfig.ts
1111
webpack.config.js

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ The input types button, submit, reset, hidden are exceptional from the above lis
171171

172172
## Versions
173173

174-
Latest Version: 2.0.4. For more versions refer [VERSIONS.md](VERSIONS.md).
174+
Latest Version: 2.0.5. For more versions refer [VERSIONS.md](VERSIONS.md).
175175

176176
## Changelog
177177

demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "demo",
33
"version": "1.0.0",
44
"main": "index.js",
5-
"license": "MIT",
5+
"license": "GPLv3",
66
"babel": {
77
"presets": [
88
"@babel/preset-env",
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"react": "^16.13.1",
1818
"react-dom": "^16.13.1",
19-
"react-form-input-validation": "./react-form-input-validation-2.0.2.tgz"
19+
"react-form-input-validation": "./react-form-input-validation-2.0.4.tgz"
2020
},
2121
"devDependencies": {
2222
"@babel/core": "^7.11.1",
-113 KB
Binary file not shown.
128 KB
Binary file not shown.

demo/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4898,9 +4898,9 @@ react-dom@^16.13.1:
48984898
prop-types "^15.6.2"
48994899
scheduler "^0.19.1"
49004900

4901-
react-form-input-validation@./react-form-input-validation-2.0.2.tgz:
4902-
version "2.0.2"
4903-
resolved "./react-form-input-validation-2.0.2.tgz#e25c3642f38c285f1d630dc76228f024fb75dd98"
4901+
react-form-input-validation@./react-form-input-validation-2.0.4.tgz:
4902+
version "2.0.4"
4903+
resolved "./react-form-input-validation-2.0.4.tgz#c9c97f9ce7959008adf4a97b4f3df271355b29f3"
49044904
dependencies:
49054905
validatorjs "^3.18.1"
49064906

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-form-input-validation",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "A validator package to validate the react forms",
55
"main": "./dist/bundle.js",
66
"license": "GPLv3",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ class ReactFormInputValidation extends BaseValidation {
182182
rule[name] = this.rules[name];
183183

184184
if (!rule[name]) {
185-
console.error(`Rule is not defind for ${name}`);
185+
console.warn(`Rule is not defind for ${name}`);
186+
rule[name] = "";
186187
}
187188

188189
if (name.endsWith("_confirmation")) {

0 commit comments

Comments
 (0)