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

js-validate

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-validate - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

bower.json
{
"name": "js-validate",
"version": "0.4.1",
"version": "0.4.2",
"homepage": "https://github.com/kshunz/js-validate",

@@ -5,0 +5,0 @@ "authors": [

{
"name": "js-validate",
"version": "0.4.1",
"version": "0.4.2",
"description": "Functional, extensible, input validation. Make sure the value you receive is EXACTLY what you expect.",

@@ -5,0 +5,0 @@ "main": "src/validate.js",

@@ -51,3 +51,3 @@ module.exports = function Validate() {

validatorInput = rule.split(' '); //rules may have parameters separated by spaces
flipRule = _.contains(['not', '!', '-'], _.first(validatorInput)) && validatorInput.length > 1;
flipRule = _.includes(['not', '!', '-'], _.first(validatorInput)) && validatorInput.length > 1;

@@ -54,0 +54,0 @@ if(flipRule) {

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