@types/validator
Advanced tools
Comparing version 13.12.1 to 13.12.2
@@ -44,2 +44,7 @@ import * as _isBoolean from "./lib/isBoolean"; | ||
/** | ||
* Check if the string is an ABA routing number for US bank account / cheque. | ||
*/ | ||
export function isAbaRouting(str: string): boolean; | ||
/** | ||
* Check if the string is a date that's after the specified date. | ||
@@ -812,25 +817,21 @@ * | ||
/** | ||
* Check if the string matches the format of a country's license plate. | ||
*/ | ||
export function isLicensePlate( | ||
str: string, | ||
locale: | ||
| "cs-CZ" | ||
| "de-DE" | ||
| "de-LI" | ||
| "en-IN" | ||
| "es-AR" | ||
| "hu-HU" | ||
| "pt-BR" | ||
| "pt-PT" | ||
| "sq-AL" | ||
| "sv-SE" | ||
| "any", | ||
): boolean; | ||
export type LicensePlateLocale = | ||
| "cs-CZ" | ||
| "de-DE" | ||
| "de-LI" | ||
| "en-IN" | ||
| "es-AR" | ||
| "hu-HU" | ||
| "pt-BR" | ||
| "pt-PT" | ||
| "sq-AL" | ||
| "sv-SE" | ||
| "en-PK" | ||
| "any"; | ||
/** | ||
* Check if the string passes the [Luhn algorithm check](https://en.m.wikipedia.org/wiki/Luhn_algorithm). | ||
* Check if the string matches the format of a country's license plate. | ||
*/ | ||
export function isLuhnNumber(str: string): boolean; | ||
export function isLicensePlate(str: string, locale: LicensePlateLocale): boolean; | ||
export function isLicensePlate(str: string, locale: string): unknown; | ||
@@ -874,2 +875,7 @@ /** | ||
/** | ||
* Check if the string passes the [Luhn algorithm check](https://en.m.wikipedia.org/wiki/Luhn_algorithm). | ||
*/ | ||
export function isLuhnNumber(str: string): boolean; | ||
/** | ||
* Check if the string is a MAC address. | ||
@@ -876,0 +882,0 @@ * |
@@ -46,2 +46,8 @@ export interface IsEmailOptions { | ||
/** | ||
* If `allow_underscores` is set to `true`, the validator will allow underscores in an email address. | ||
* | ||
* @default false | ||
*/ | ||
allow_underscores?: boolean | undefined; | ||
/** | ||
* If host_blacklist is set to an array of strings | ||
@@ -48,0 +54,0 @@ * and the part of the email after the @ symbol matches one of the strings defined in it, |
{ | ||
"name": "@types/validator", | ||
"version": "13.12.1", | ||
"version": "13.12.2", | ||
"description": "TypeScript definitions for validator", | ||
@@ -83,4 +83,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validator", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "fcb73bc0a650faea429c409bee3ae79d4c151963e98e706ffe246d5ffe82fbbb", | ||
"typesPublisherContentHash": "1b1887c67d11cdfd7d264409b9b2646ee6cc5a9a148d5c5cc9923185000e7aac", | ||
"typeScriptVersion": "4.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 26 Aug 2024 02:45:06 GMT | ||
* Last updated: Mon, 16 Sep 2024 19:07:13 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
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
73166
201
2466