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.28 to 3.2.29

2

lib/fieldTypes/email.js

@@ -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"
}
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