@darkwolf/validator
Advanced tools
Comparing version 13.21.73 to 13.21.74
@@ -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) |
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
12975
251
92