New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

abolish

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abolish - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

validators/date/age.d.ts

2

package.json
{
"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";

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