Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
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 6.2.3 to 6.3.0

15

validator/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for validator.js v6.2
// Type definitions for validator.js v6.3
// Project: https://github.com/chriso/validator.js

@@ -15,2 +15,3 @@ // Definitions by: tgfjt <https://github.com/tgfjt>

type MobilePhoneLocale = "ar-DZ" | "ar-SA" | "ar-SY" | "cs-CZ" | "de-DE" | "da-DK" | "el-GR" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-CA" | "en-ZA" | "en-ZM" | "es-ES" | "fi-FI" | "fr-FR" | "hu-HU" | "it-IT" | "ja-JP" | "ko-KR" | "ms-MY" | "nb-NO" | "nn-NO" | "pl-PL" | "pt-PT" | "ru-RU" | "sr-RS" | "tr-TR" | "vi-VN" | "zh-CN" | "zh-TW" | "any";
type PostalCodeLocale = "AT" | "AU" | "BE" | "CA" | "CH" | "CZ" | "DE" | "DK" | "DZ" | "ES" | "FI" | "FR" | "GB" | "GR" | "IL" | "IN" | "IS" | "IT" | "JP" | "KE" | "LI" | "MX" | "NL" | "NO" | "PL" | "PT" | "RO" | "RU" | "SA" | "SE" | "TW" | "US" | "ZA" | "ZM" | "any"

@@ -158,2 +159,9 @@ interface ValidatorStatic {

// check if the string is a postal code, (locale is one of
// [ 'AT', 'AU', 'BE', 'CA', 'CH', 'CZ', 'DE', 'DK', 'DZ', 'ES', 'FI', 'FR', 'GB', 'GR', 'IL',
// 'IN', 'IS', 'IT', 'JP', 'KE', 'LI', 'MX', 'NL', 'NO', 'PL', 'PT', 'RO', 'RU', 'SA', 'SE',
// 'TW', 'US', 'ZA', 'ZM' ]) OR 'any'. If 'any' is used, function will check if any of the
// locales match).
isPostalCode(str: string, locale: PostalCodeLocale): boolean;
// check if the string contains any surrogate pairs chars.

@@ -518,2 +526,7 @@ isSurrogatePair(str: string): boolean;

declare module "validator/lib/isPostalCode" {
const isPostalCode: typeof validator.isPostalCode;
export = isPostalCode;
}
declare module "validator/lib/isMongoId" {

@@ -520,0 +533,0 @@ const isMongoId: typeof validator.isMongoId;

4

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

@@ -45,4 +45,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "caf02858bba031db9d94395f562668cfcf1cb121db3b8be95742a45b2a21d96d",
"typesPublisherContentHash": "cf43c29df8ebd1d3442a35b25a7646435afe1f55f696cc7c7ec31a58e23fa6c5",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Thu, 31 Aug 2017 14:05:17 GMT
* Last updated: Tue, 26 Sep 2017 18:20:22 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: validator

Sorry, the diff of this file is not supported yet

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