@darkwolf/validator
Advanced tools
Comparing version 2.0.7 to 2.0.8
11
index.js
@@ -86,2 +86,6 @@ class Validator { | ||
_isPromise(value) { | ||
return this._isInstance(value, Promise) | ||
} | ||
_isObjectExact(value) { | ||
@@ -263,2 +267,7 @@ return Object.prototype.toString.call(value) === '[object Object]' | ||
isPromise(...args) { | ||
if (args.length) return this._isPromise(...args) | ||
return this._valid(() => this._isPromise(this.value)) | ||
} | ||
isObjectExact(...args) { | ||
@@ -359,3 +368,3 @@ if (args.length) return this._isObjectExact(...args) | ||
} | ||
isLength(...args) { | ||
@@ -362,0 +371,0 @@ if (args.length && this._isUndefined(this.value)) return this._isLength(...args) |
{ | ||
"name": "@darkwolf/validator", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Validator Utility", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -44,2 +44,3 @@ # Validator Utility | ||
### isSet(value?) | ||
### isPromise(value?) | ||
### isObjectExact(value?) | ||
@@ -46,0 +47,0 @@ ### isTrue(value?) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12326
299
66