New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

extensible-validator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extensible-validator - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

5

dist/Schema.js

@@ -67,5 +67,4 @@ "use strict";

required(condition) {
return this.addTest((value, context) => (!condition || condition(value, context)) &&
value != null &&
value !== '', this._messages.required);
return this.addTest((value, context) => (condition && !condition(value, context)) ||
(value != null && value !== ''), this._messages.required);
}

@@ -72,0 +71,0 @@ oneOf(options) {

2

package.json
{
"name": "extensible-validator",
"version": "2.2.5",
"version": "2.2.6",
"description": "Typescript-friendly and extensible object and value validation",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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