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 13.21.73 to 13.21.74

4

constants.js

@@ -17,2 +17,3 @@ const BASE58_ALPHABET = 'AveDarkwo1f23456789BCEFGHJKLMNPQRSTUVWXYZbcdghijmnpqstuxyz'

const UID_REGEX = new RegExp(`^[${BASE58_ALPHABET}]{20}$`)
const AUTH_TOKEN_REGEX = new RegExp(`^Bearer (${HASH_REGEX.source.slice(1, -1)})$`)

@@ -34,3 +35,4 @@ module.exports = {

HASH_REGEX,
UID_REGEX
UID_REGEX,
AUTH_TOKEN_REGEX
}

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

const isUid = value => constants.UID_REGEX.test(value)
const isAuthToken = value => constants.AUTH_TOKEN_REGEX.test(value)

@@ -227,3 +228,4 @@ module.exports = {

isHash,
isUid
isUid,
isAuthToken
}
{
"name": "@darkwolf/validator",
"version": "13.21.73",
"version": "13.21.74",
"description": "Validator",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -91,1 +91,2 @@ # Validator

### isUid(value)
### isAuthToken(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