Comparing version 6.4.0 to 6.5.0
{ | ||
"name": "abolish", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "A javascript object validator.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,2 +12,2 @@ import type Abolish from "./Abolish"; | ||
*/ | ||
export declare function registerValidators<T extends typeof Abolish>(abolish: T, validators: "string" | "array" | "utils" | "object"): typeof Abolish; | ||
export declare function registerValidators<T extends typeof Abolish>(abolish: T, validators: "string" | "array" | "utils" | "object" | "date"): typeof Abolish; |
@@ -10,2 +10,3 @@ "use strict"; | ||
registerValidators(abolish, "array"); | ||
registerValidators(abolish, "date"); | ||
registerValidators(abolish, "object"); | ||
@@ -26,2 +27,4 @@ registerValidators(abolish, "string"); | ||
return abolish.addGlobalValidators(require("../validators/string")); | ||
case "date": | ||
return abolish.addGlobalValidators(require("../validators/date")); | ||
case "array": | ||
@@ -28,0 +31,0 @@ return abolish.addGlobalValidators(require("../validators/array")); |
@@ -10,2 +10,5 @@ // Arrays | ||
// Dates | ||
import "./date/age"; | ||
// Objects | ||
@@ -12,0 +15,0 @@ import "./object/objectValues"; |
226414
108
4364