New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.7 to 2.1.8

8

index.js

@@ -162,15 +162,15 @@ class Validator {

_isNaN(value) {
return Number.isNaN(value)
return this._isNumber(value) && isNaN(value)
}
_isFinite(value) {
return Number.isFinite(value)
return this._isNumber(value) && isFinite(value)
}
_isInteger(value) {
return Number.isInteger(value)
return this._isFinite(value) && !(value % 1)
}
_isSafeInteger(value) {
return Number.isSafeInteger(value)
return this._isInteger(value) && this._isRange(value, Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER)
}

@@ -177,0 +177,0 @@

{
"name": "@darkwolf/validator",
"version": "2.1.7",
"version": "2.1.8",
"description": "Validator Utility",

@@ -5,0 +5,0 @@ "main": "index.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