typedconverter
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,2 +0,2 @@ | ||
/// <reference types="validator" /> | ||
import validatorJs from "validator"; | ||
import { Class } from './types'; | ||
@@ -11,6 +11,6 @@ interface Opt { | ||
function alpha(opt?: Opt & { | ||
locale?: ValidatorJS.AlphaLocale; | ||
locale?: validatorJs.AlphaLocale; | ||
}): (target: any, name: string, index?: any) => void; | ||
function alphanumeric(opt?: Opt & { | ||
locale?: ValidatorJS.AlphaLocale; | ||
locale?: validatorJs.AlphaLocale; | ||
}): (target: any, name: string, index?: any) => void; | ||
@@ -22,17 +22,17 @@ function ascii(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
}): (target: any, name: string, index?: any) => void; | ||
function byteLength(opt: Opt & ValidatorJS.IsByteLengthOptions): (target: any, name: string, index?: any) => void; | ||
function byteLength(opt: Opt & validatorJs.IsByteLengthOptions): (target: any, name: string, index?: any) => void; | ||
function creditCard(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function currency(opt?: Opt & ValidatorJS.IsCurrencyOptions): (target: any, name: string, index?: any) => void; | ||
function currency(opt?: Opt & validatorJs.IsCurrencyOptions): (target: any, name: string, index?: any) => void; | ||
function dataURI(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function decimal(opt?: Opt & ValidatorJS.IsDecimalOptions): (target: any, name: string, index?: any) => void; | ||
function decimal(opt?: Opt & validatorJs.IsDecimalOptions): (target: any, name: string, index?: any) => void; | ||
function divisibleBy(opt: Opt & { | ||
num: number; | ||
}): (target: any, name: string, index?: any) => void; | ||
function email(opt?: Opt & ValidatorJS.IsEmailOptions): (target: any, name: string, index?: any) => void; | ||
function fqdn(opt?: Opt & ValidatorJS.IsFQDNOptions): (target: any, name: string, index?: any) => void; | ||
function float(opt?: Opt & ValidatorJS.IsFloatOptions): (target: any, name: string, index?: any) => void; | ||
function email(opt?: Opt & validatorJs.IsEmailOptions): (target: any, name: string, index?: any) => void; | ||
function fqdn(opt?: Opt & validatorJs.IsFQDNOptions): (target: any, name: string, index?: any) => void; | ||
function float(opt?: Opt & validatorJs.IsFloatOptions): (target: any, name: string, index?: any) => void; | ||
function fullWidth(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function halfWidth(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function hash(opt: Opt & { | ||
algorithm: ValidatorJS.HashAlgorithm; | ||
algorithm: validatorJs.HashAlgorithm; | ||
}): (target: any, name: string, index?: any) => void; | ||
@@ -42,6 +42,6 @@ function hexColor(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function ip(opt?: Opt & { | ||
version?: number; | ||
version?: "4" | "6"; | ||
}): (target: any, name: string, index?: any) => void; | ||
function isbn(opt?: Opt & { | ||
version?: number; | ||
version?: "10" | "13"; | ||
}): (target: any, name: string, index?: any) => void; | ||
@@ -52,11 +52,11 @@ function isin(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function isrc(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function issn(opt?: Opt & ValidatorJS.IsISSNOptions): (target: any, name: string, index?: any) => void; | ||
function int(opt?: Opt & ValidatorJS.IsIntOptions): (target: any, name: string, index?: any) => void; | ||
function issn(opt?: Opt & validatorJs.IsISSNOptions): (target: any, name: string, index?: any) => void; | ||
function int(opt?: Opt & validatorJs.IsIntOptions): (target: any, name: string, index?: any) => void; | ||
function json(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function latLong(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function length(opt: Opt & ValidatorJS.IsLengthOptions): (target: any, name: string, index?: any) => void; | ||
function length(opt: Opt & validatorJs.IsLengthOptions): (target: any, name: string, index?: any) => void; | ||
function lowerCase(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function macAddress(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function matches(opt: Opt & { | ||
pattern: string | RegExp; | ||
pattern: string; | ||
modifier?: string; | ||
@@ -67,4 +67,4 @@ }): (target: any, name: string, index?: any) => void; | ||
function mobilePhone(opt: Opt & { | ||
locale: ValidatorJS.MobilePhoneLocale; | ||
options?: ValidatorJS.IsMobilePhoneOptions; | ||
locale: validatorJs.MobilePhoneLocale; | ||
options?: validatorJs.IsMobilePhoneOptions; | ||
}): (target: any, name: string, index?: any) => void; | ||
@@ -76,6 +76,6 @@ function mongoId(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function postalCode(opt: Opt & { | ||
locale: ValidatorJS.PostalCodeLocale; | ||
locale: validatorJs.PostalCodeLocale; | ||
}): (target: any, name: string, index?: any) => void; | ||
function surrogatePair(opt?: Opt): (target: any, name: string, index?: any) => void; | ||
function url(opt?: Opt & ValidatorJS.IsURLOptions): (target: any, name: string, index?: any) => void; | ||
function url(opt?: Opt & validatorJs.IsURLOptions): (target: any, name: string, index?: any) => void; | ||
function UUID(opt?: Opt & { | ||
@@ -82,0 +82,0 @@ version?: 3 | 4 | 5 | "3" | "4" | "5" | "all"; |
{ | ||
"name": "typedconverter", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Convert object into classes match with TypeScript type annotation", | ||
@@ -21,18 +21,18 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@types/validator": "^10.11.3", | ||
"tinspector": "^2.2.7", | ||
"@types/validator": "^12.0.1", | ||
"tinspector": "^2.2.8", | ||
"tslib": "^1.10.0", | ||
"validator": "^12.0.0" | ||
"validator": "^12.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/ejs": "^2.6.3", | ||
"@types/jest": "^24.0.21", | ||
"@types/joi": "^14.3.3", | ||
"coveralls": "^3.0.7", | ||
"ejs": "^2.7.1", | ||
"@types/ejs": "^2.7.0", | ||
"@types/jest": "^24.0.23", | ||
"@types/joi": "^14.3.4", | ||
"coveralls": "^3.0.9", | ||
"ejs": "^3.0.1", | ||
"jest": "^24.9.0", | ||
"joi": "^14.3.1", | ||
"ts-jest": "^24.1.0", | ||
"ts-node": "^8.4.1", | ||
"typescript": "^3.6.4" | ||
"ts-jest": "^24.2.0", | ||
"ts-node": "^8.5.4", | ||
"typescript": "^3.7.2" | ||
}, | ||
@@ -39,0 +39,0 @@ "bugs": { |
39857
+ Added@types/validator@12.0.1(transitive)
- Removed@types/validator@10.11.3(transitive)
Updated@types/validator@^12.0.1
Updatedtinspector@^2.2.8
Updatedvalidator@^12.1.0