Socket
Socket
Sign inDemoInstall

@types/validator

Package Overview
Dependencies
0
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.1.0 to 13.1.1

validator/es/lib/isDate.d.ts

25

validator/index.d.ts

@@ -320,2 +320,27 @@ // Type definitions for validator.js 13.1

interface IsDateOptions {
/**
* @default false
*/
format?: string;
/**
* If strictMode is set to true,
* the validator will reject inputs different from format.
*
* @default false
*/
strictMode?: boolean;
/**
* `delimiters` is an array of allowed date delimiters
*
* @default ['/', '-']
*/
delimiters?: string[];
}
/**
* Check if the string is a valid date.
*/
function isDate(str: string, options?: IsDateOptions): boolean;
type DecimalLocale = FloatLocale;

@@ -322,0 +347,0 @@

6

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

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

"dependencies": {},
"typesPublisherContentHash": "d34264838093ba6f36a43ab69ebac0ba4cff09dc988b96553c4a7b7025018d3d",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "6bca27e47f4f1b49c7697c0727c7b13342a554dc177ab4d34a247974ddf3b619",
"typeScriptVersion": "3.3"
}

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

### Additional Details
* Last updated: Wed, 24 Jun 2020 06:29:46 GMT
* Last updated: Wed, 02 Dec 2020 11:16:33 GMT
* Dependencies: none

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc