Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@darkwolf/validator

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkwolf/validator - npm Package Compare versions

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)

2

package.json
{
"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?)

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