Skip to content

Commit

Permalink
build: release v1.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqiboy committed Mar 31, 2020
1 parent 6a38cb8 commit 2274255
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 43 deletions.
26 changes: 13 additions & 13 deletions dist/react-formutil.cjs.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2712,20 +2712,20 @@ var defaultValidators = [['required', function ($value, check, _ref) {
_ref$checked = _ref.checked,
checked = _ref$checked === void 0 ? true : _ref$checked;
return __TYPE__ === 'checked' ? $value === checked : !isEmpty($value);
}], ['maxLength', function ($value, len, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : '').length <= len * 1;
}], ['minLength', function ($value, len, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : '').length >= len * 1;
}], ['max', function ($value, limit, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : 0) * 1 <= limit * 1;
}], ['min', function ($value, limit, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : 0) * 1 >= limit * 1;
}], ['pattern', function ($value, regexp, props) {
return 'required' in props.$validError || regexp.test($value);
}], ['enum', function ($value, enumeration, props) {
return 'required' in props.$validError || enumeration.indexOf($value) > -1;
}], ['maxLength', function ($value, len) {
return isEmpty($value) || $value.length <= len * 1;
}], ['minLength', function ($value, len) {
return isEmpty($value) || $value.length >= len * 1;
}], ['max', function ($value, limit) {
return isEmpty($value) || $value * 1 <= limit * 1;
}], ['min', function ($value, limit) {
return isEmpty($value) || $value * 1 >= limit * 1;
}], ['pattern', function ($value, regexp) {
return isEmpty($value) || regexp.test($value);
}], ['enum', function ($value, enumeration) {
return isEmpty($value) || enumeration.indexOf($value) > -1;
}], ['checker', function ($value, checker, props) {
return 'required' in props.$validError || checker($value, props);
return checker($value, props);
}]].reduce(function ($validators, item) {
var _item = slicedToArray(item, 2),
validKey = _item[0],
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.cjs.production.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions dist/react-formutil.esm.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2647,20 +2647,20 @@ var defaultValidators = [['required', function ($value, check, _ref) {
_ref$checked = _ref.checked,
checked = _ref$checked === void 0 ? true : _ref$checked;
return __TYPE__ === 'checked' ? $value === checked : !isEmpty($value);
}], ['maxLength', function ($value, len, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : '').length <= len * 1;
}], ['minLength', function ($value, len, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : '').length >= len * 1;
}], ['max', function ($value, limit, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : 0) * 1 <= limit * 1;
}], ['min', function ($value, limit, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : 0) * 1 >= limit * 1;
}], ['pattern', function ($value, regexp, props) {
return 'required' in props.$validError || regexp.test($value);
}], ['enum', function ($value, enumeration, props) {
return 'required' in props.$validError || enumeration.indexOf($value) > -1;
}], ['maxLength', function ($value, len) {
return isEmpty($value) || $value.length <= len * 1;
}], ['minLength', function ($value, len) {
return isEmpty($value) || $value.length >= len * 1;
}], ['max', function ($value, limit) {
return isEmpty($value) || $value * 1 <= limit * 1;
}], ['min', function ($value, limit) {
return isEmpty($value) || $value * 1 >= limit * 1;
}], ['pattern', function ($value, regexp) {
return isEmpty($value) || regexp.test($value);
}], ['enum', function ($value, enumeration) {
return isEmpty($value) || enumeration.indexOf($value) > -1;
}], ['checker', function ($value, checker, props) {
return 'required' in props.$validError || checker($value, props);
return checker($value, props);
}]].reduce(function ($validators, item) {
var _item = _slicedToArray(item, 2),
validKey = _item[0],
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.esm.production.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions dist/react-formutil.umd.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -3199,20 +3199,20 @@
_ref$checked = _ref.checked,
checked = _ref$checked === void 0 ? true : _ref$checked;
return __TYPE__ === 'checked' ? $value === checked : !isEmpty($value);
}], ['maxLength', function ($value, len, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : '').length <= len * 1;
}], ['minLength', function ($value, len, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : '').length >= len * 1;
}], ['max', function ($value, limit, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : 0) * 1 <= limit * 1;
}], ['min', function ($value, limit, props) {
return 'required' in props.$validError || ($value !== null && $value !== void 0 ? $value : 0) * 1 >= limit * 1;
}], ['pattern', function ($value, regexp, props) {
return 'required' in props.$validError || regexp.test($value);
}], ['enum', function ($value, enumeration, props) {
return 'required' in props.$validError || enumeration.indexOf($value) > -1;
}], ['maxLength', function ($value, len) {
return isEmpty($value) || $value.length <= len * 1;
}], ['minLength', function ($value, len) {
return isEmpty($value) || $value.length >= len * 1;
}], ['max', function ($value, limit) {
return isEmpty($value) || $value * 1 <= limit * 1;
}], ['min', function ($value, limit) {
return isEmpty($value) || $value * 1 >= limit * 1;
}], ['pattern', function ($value, regexp) {
return isEmpty($value) || regexp.test($value);
}], ['enum', function ($value, enumeration) {
return isEmpty($value) || enumeration.indexOf($value) > -1;
}], ['checker', function ($value, checker, props) {
return 'required' in props.$validError || checker($value, props);
return checker($value, props);
}]].reduce(function ($validators, item) {
var _item = slicedToArray(item, 2),
validKey = _item[0],
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.umd.production.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-formutil",
"version": "1.0.14",
"version": "1.0.15",
"description": "Happy to build the forms in React ^_^",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
Expand Down

0 comments on commit 2274255

Please sign in to comment.