Socket
Socket
Sign inDemoInstall

@types/validator

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/validator - npm Package Compare versions

Comparing version 13.1.1 to 13.1.2

validator/es/lib/isStrongPassword.d.ts

19

validator/index.d.ts

@@ -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 @@ */

4

validator/package.json
{
"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

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