Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.12.1 to 13.12.2

validator/es/lib/isAbaRouting.d.ts

46

validator/index.d.ts

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

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