@types/validator
Advanced tools
Comparing version 13.1.1 to 13.1.2
@@ -1051,2 +1051,21 @@ // Type definitions for validator.js 13.1 | ||
/** | ||
* Check if string is considered a strong password. Allows options to be added | ||
*/ | ||
interface strongPasswordOptions { | ||
minLength?: number; | ||
minLowercase?: number; | ||
minUppercase?: number; | ||
minNumbers?: number; | ||
minSymbols?: number; | ||
returnScore?: boolean; | ||
pointsPerUnique?: number; | ||
pointsPerRepeat?: number; | ||
pointsForContainingLower?: number; | ||
pointsForContainingUpper?: number; | ||
pointsForContainingNumber?: number; | ||
pointsForContainingSymbol?: number; | ||
} | ||
function isStrongPassword(str: string, options?: strongPasswordOptions): boolean; | ||
/** | ||
* Check if the string contains any surrogate pairs chars. | ||
@@ -1053,0 +1072,0 @@ */ |
{ | ||
"name": "@types/validator", | ||
"version": "13.1.1", | ||
"version": "13.1.2", | ||
"description": "TypeScript definitions for validator.js", | ||
@@ -72,4 +72,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6bca27e47f4f1b49c7697c0727c7b13342a554dc177ab4d34a247974ddf3b619", | ||
"typesPublisherContentHash": "4ebbb8bfdf6ec014ee72b7a487e2e5dc7d62ad8c56f7dbedab8fc0fc20a1d090", | ||
"typeScriptVersion": "3.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 02 Dec 2020 11:16:33 GMT | ||
* Last updated: Fri, 25 Dec 2020 14:46:50 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
54386
178
1627