Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

validate-promise

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-promise - npm Package Compare versions

Comparing version 3.3.2 to 3.3.3

2

dist/index.d.ts

@@ -19,3 +19,3 @@ import after from './rules/after';

export declare type MsgFunc<T extends object, A = any> = (value: string, row: T, arg?: A | ArgFunc<T, A>) => string;
export declare type ValidationPromise<T extends object = object, A = any> = (value: string | string[] | Record<string, number>, row: T, msg: MsgFunc<T, A>, arg?: A | ArgFunc<T, A>) => Promise<string | void>;
export declare type ValidationPromise<T extends object = object, A = any> = (value: string | string[] | Record<string, number> | number | Date, row: T, msg: MsgFunc<T, A>, arg?: A | ArgFunc<T, A>) => Promise<string | void>;
interface IAPromise<T extends object = object> {

@@ -22,0 +22,0 @@ rule: ValidationPromise<T>;

{
"name": "validate-promise",
"version": "3.3.2",
"version": "3.3.3",
"description": "Promised based validation library",

@@ -59,2 +59,2 @@ "main": "dist/index.js",

}
}
}

@@ -35,3 +35,3 @@ import get from 'lodash.get';

export type ValidationPromise<T extends object = object, A = any> = (
value: string | string[] | Record<string, number>,
value: string | string[] | Record<string, number> | number | Date,
row: T,

@@ -38,0 +38,0 @@ msg: MsgFunc<T, A>,

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