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.7.10 to 13.7.11

validator/lib/isIMEI.d.ts

16

validator/index.d.ts

@@ -596,3 +596,19 @@ // Type definitions for validator.js 13.7

interface IsIMEIOptions {
/**
* This value is `false` by default. Set to `true` to allow IMEI with hyphens.
*/
allow_hyphens?: boolean | undefined;
}
/**
* Check if the string is a valid IMEI.
* Non-hyphenated (`###############`) only is supported by default.
* Use the `options` param to enable hyphenated (`##-######-######-#`) support.
*
* @param [options] - Options
*/
function isIMEI(str: string, options?: IsIMEIOptions): boolean;
/**
* Check if the string is in a array of allowed values.

@@ -599,0 +615,0 @@ *

6

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

@@ -78,4 +78,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validator",

"dependencies": {},
"typesPublisherContentHash": "bcafc3ecaf07e59448517db1c76b423c79c33520c012a0b3282a95a8a6d001ca",
"typeScriptVersion": "4.1"
"typesPublisherContentHash": "94653db8f881c404306f6b0f38d29c6bd51e4f237425eae8be0fd3c9c44812b9",
"typeScriptVersion": "4.2"
}

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

### Additional Details
* Last updated: Sun, 30 Oct 2022 13:32:41 GMT
* Last updated: Tue, 24 Jan 2023 01:32:33 GMT
* Dependencies: none

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

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