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

valour

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

valour - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

10

lib/ValidationUnit.js

@@ -68,3 +68,3 @@ 'use strict';

var isCheckable = function isCheckable(val) {
return !(0, _lodashLangIsUndefined2['default'])(val) && !(0, _lodashLangIsNull2['default'])(val) && val.toString().length;
return !(0, _lodashLangIsUndefined2['default'])(val) && !(0, _lodashLangIsNull2['default'])(val) && !!val.toString().length;
};

@@ -149,2 +149,7 @@

}, {
key: 'shouldCheckValue',
value: function shouldCheckValue(val) {
return this.hasIsRequired() || isCheckable(val);
}
}, {
key: 'runValidation',

@@ -161,3 +166,3 @@ value: function runValidation(value, allValues, name) {

this.messages = [];
if (!this.hasIsRequired() && !isCheckable(value)) {
if (!this.shouldCheckValue(value)) {
return _Promise.resolve(true).then(function () {

@@ -212,2 +217,3 @@ return _this2.valid = true;

valid = !this.shouldCheckValue(this.value) && this.valid === undefined ? true : valid;
valid = valid === undefined ? valid : waiting ? undefined : valid;

@@ -214,0 +220,0 @@ return {

2

package.json
{
"name": "valour",
"version": "0.0.16",
"version": "0.0.17",
"description": "Simple javascript validation for any application",

@@ -5,0 +5,0 @@ "main": "lib/valour.js",

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