@orion-js/schema
Advanced tools
Comparing version 3.2.28 to 3.2.29
@@ -16,3 +16,3 @@ "use strict"; | ||
} | ||
if (!(0, isString_1.default)(value)) | ||
if (value && !(0, isString_1.default)(value)) | ||
return Errors_1.default.NOT_A_STRING; | ||
@@ -19,0 +19,0 @@ // eslint-disable-next-line |
@@ -16,2 +16,3 @@ "use strict"; | ||
expect(email_1.default.validate('', { currentSchema: { optional: true } })).toBeFalsy(); | ||
expect(email_1.default.validate(null, { currentSchema: { optional: true } })).toBeFalsy(); | ||
}); | ||
@@ -18,0 +19,0 @@ test('return no error when the value is correct', async () => { |
{ | ||
"name": "@orion-js/schema", | ||
"version": "3.2.28", | ||
"version": "3.2.29", | ||
"main": "lib/index.js", | ||
@@ -39,3 +39,3 @@ "types": "lib/index.d.ts", | ||
}, | ||
"gitHead": "670440985bbd077e154e5d225337bbf242701f5a" | ||
"gitHead": "73acda2229c205547d70d19376984443d5625b20" | ||
} |
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
106214
2951