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 1.1.1 to 1.1.2

10

index.js

@@ -17,2 +17,3 @@ const CodeError = require('@darkwolf/code-error')

this.isPassword = this.isPassword.bind(this)
this.isVerificationCode = this.isVerificationCode.bind(this)
}

@@ -92,2 +93,6 @@

isVerificationCode(value) {
return /^\d{6}$/.test(value)
}
isValidBoolean(value, name, code, data) {

@@ -171,4 +176,9 @@ if (!this.isBoolean(value)) {

}
isValidVerificationCode(value) {
if (!this.isVerificationCode(value)) throw errors.INVALID_VERIFICATION_CODE
return true
}
}
module.exports = new Validator()

4

package.json
{
"name": "@darkwolf/validator",
"version": "1.1.1",
"version": "1.1.2",
"description": "Validator",

@@ -25,4 +25,4 @@ "main": "index.js",

"@darkwolf/code-error": "^1.0.2",
"@darkwolf/errors": "^1.1.2"
"@darkwolf/errors": "^1.1.5"
}
}
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