async-validator
Advanced tools
Comparing version 1.6.6 to 1.6.7
@@ -9,3 +9,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -63,3 +63,3 @@ var _util = require('./util'); | ||
var o = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var oc = arguments[2]; | ||
@@ -173,3 +173,3 @@ | ||
function cb() { | ||
var e = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0]; | ||
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
@@ -254,2 +254,6 @@ var errors = e; | ||
var keys = Object.keys(rule); | ||
var messageIndex = keys.indexOf('message'); | ||
if (messageIndex !== -1) { | ||
keys.splice(messageIndex, 1); | ||
} | ||
if (keys.length === 1 && keys[0] === 'required') { | ||
@@ -256,0 +260,0 @@ return _validator2["default"].required; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -100,4 +100,4 @@ var _util = require('../util'); | ||
} else if (ruleType && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) !== rule.type) { | ||
errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); | ||
} | ||
errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); | ||
} | ||
} | ||
@@ -104,0 +104,0 @@ |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -12,0 +12,0 @@ exports.warning = warning; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -10,0 +10,0 @@ var _rule = require('../rule/'); |
{ | ||
"name": "async-validator", | ||
"version": "1.6.6", | ||
"version": "1.6.7", | ||
"description": "validate form asynchronous", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
57402
1208