Socket
Socket
Sign inDemoInstall

@types/validator

Package Overview
Dependencies
0
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.7.12 to 13.7.13

10

validator/index.d.ts

@@ -15,2 +15,3 @@ // Type definitions for validator.js 13.7

// Matteo Nista <https://github.com/Mattewn99>
// Roman Babiak <https://github.com/Almost-Infinity>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -275,6 +276,13 @@

interface IsCreditCardOptions {
/**
* @default undefined
*/
provider?: 'amex' | 'dinersclub' | 'discover' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | '';
}
/**
* Check if the string is a credit card.
*/
function isCreditCard(str: string): boolean;
function isCreditCard(str: string, options?: IsCreditCardOptions): boolean;

@@ -281,0 +289,0 @@ interface IsCurrencyOptions {

9

validator/package.json
{
"name": "@types/validator",
"version": "13.7.12",
"version": "13.7.13",
"description": "TypeScript definitions for validator.js",

@@ -67,2 +67,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validator",

"githubUsername": "Mattewn99"
},
{
"name": "Roman Babiak",
"url": "https://github.com/Almost-Infinity",
"githubUsername": "Almost-Infinity"
}

@@ -79,4 +84,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "011db9f0d21612e8f4fca0ba5b473f3d2554a00b126c77edf313dd63a9db8cc2",
"typesPublisherContentHash": "5b11c6364f516d04f829e2e87ac85ae94c4458b29f5a70bbd97c3133b5b79a12",
"typeScriptVersion": "4.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sat, 04 Feb 2023 13:02:41 GMT
* Last updated: Thu, 02 Mar 2023 19:32:46 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: `validator`

# Credits
These definitions were written by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu), [Ayman Nedjmeddine](https://github.com/IOAyman), [Louay Alakkad](https://github.com/louy), [Bonggyun Lee](https://github.com/deptno), [Naoto Yokoyama](https://github.com/builtinnya), [Philipp Katz](https://github.com/qqilihq), [Jace Warren](https://github.com/keatz55), [Munif Tanjim](https://github.com/MunifTanjim), [Vlad Poluch](https://github.com/vlapo), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Matteo Nista](https://github.com/Mattewn99).
These definitions were written by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu), [Ayman Nedjmeddine](https://github.com/IOAyman), [Louay Alakkad](https://github.com/louy), [Bonggyun Lee](https://github.com/deptno), [Naoto Yokoyama](https://github.com/builtinnya), [Philipp Katz](https://github.com/qqilihq), [Jace Warren](https://github.com/keatz55), [Munif Tanjim](https://github.com/MunifTanjim), [Vlad Poluch](https://github.com/vlapo), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Matteo Nista](https://github.com/Mattewn99), and [Roman Babiak](https://github.com/Almost-Infinity).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc