Socket
Socket
Sign inDemoInstall

@orion-js/schema

Package Overview
Dependencies
Maintainers
3
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orion-js/schema - npm Package Compare versions

Comparing version 3.2.29 to 3.2.33

4

lib/fieldTypes/email.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc