Socket
Socket
Sign inDemoInstall

@hookstate/validation

Package Overview
Dependencies
7
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.3 to 0.10.4

10

dist/index.es.js

@@ -148,12 +148,12 @@ var ValidationSeverity;

get validShallow() {
return getErrors(l, 1).length === 0;
return getErrors(l, 1, undefined, true).length === 0;
},
get valid() {
return getErrors(l, Number.MAX_SAFE_INTEGER).length === 0;
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length === 0;
},
get invalidShallow() {
return getErrors(l, 1).length !== 0;
return getErrors(l, 1, undefined, true).length !== 0;
},
get invalid() {
return getErrors(l, Number.MAX_SAFE_INTEGER).length !== 0;
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length !== 0;
},

@@ -168,3 +168,3 @@ errors: function (filter, depth, first) {

}
return r;
return r[0];
},

@@ -171,0 +171,0 @@ }); }

@@ -151,12 +151,12 @@ 'use strict';

get validShallow() {
return getErrors(l, 1).length === 0;
return getErrors(l, 1, undefined, true).length === 0;
},
get valid() {
return getErrors(l, Number.MAX_SAFE_INTEGER).length === 0;
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length === 0;
},
get invalidShallow() {
return getErrors(l, 1).length !== 0;
return getErrors(l, 1, undefined, true).length !== 0;
},
get invalid() {
return getErrors(l, Number.MAX_SAFE_INTEGER).length !== 0;
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length !== 0;
},

@@ -171,3 +171,3 @@ errors: function (filter, depth, first) {

}
return r;
return r[0];
},

@@ -174,0 +174,0 @@ }); }

{
"name": "@hookstate/validation",
"version": "0.10.3",
"version": "0.10.4",
"description": "Plugin for @hookstate/core to enable validation of data state.",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc