@orion-js/schema
Advanced tools
Comparing version 3.2.29 to 3.2.33
@@ -9,7 +9,7 @@ "use strict"; | ||
const Errors_1 = __importDefault(require("../Errors")); | ||
const lodash_1 = require("lodash"); | ||
const isNil_1 = __importDefault(require("lodash/isNil")); | ||
exports.default = (0, fieldType_1.default)({ | ||
name: 'email', | ||
validate(value, { currentSchema }) { | ||
if ((value === '' || (0, lodash_1.isNil)(value)) && !currentSchema.optional) { | ||
if ((value === '' || (0, isNil_1.default)(value)) && !currentSchema.optional) { | ||
return Errors_1.default.REQUIRED; | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "@orion-js/schema", | ||
"version": "3.2.29", | ||
"version": "3.2.33", | ||
"main": "lib/index.js", | ||
@@ -39,3 +39,3 @@ "types": "lib/index.d.ts", | ||
}, | ||
"gitHead": "73acda2229c205547d70d19376984443d5625b20" | ||
"gitHead": "3b0bf99ff75e304ce8fc0e8d9d766039cdbcc624" | ||
} |
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
106237