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

skmatc

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skmatc - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

typings.json

16

index.d.ts
export declare function scope(schema: any): Skmatc;
export declare var validators: Validator[];
export declare function create(handles: (schema: any) => boolean, validate: (schema: any, data: any, path: string) => Result, options?: { name?: string }): Validator;
export declare function create(handles: (schema: any) => boolean, validate: IValidationHandler, options?: { name?: string }): Validator;
export declare function validate(validators: Validator[], schema: any, data: any, path?: string): Result;

@@ -17,4 +17,4 @@ export declare function register(validator: Validator);

constructor(skmatc: Skmatc, options?: any);
static create(handles: (schema: any) => boolean, validate: (schema: any, data: any, path: string) => Result, options?: { name?: string }): Validator;
static module(handles: (schema: any) => boolean, validate: (schema: any, data: any, path: string) => Result, options?: { name?: string }): Validator;
static create(handles: (schema: any) => boolean, validate: IValidationHandler, options?: { name?: string }): Validator;
static module(handles: (schema: any) => boolean, validate: IValidationHandler, options?: { name?: string }): Validator;

@@ -50,9 +50,7 @@ name: string;

export declare interface IValidationHandler {
(thisArg: {
export declare type IValidationHandler = (this: {
validator: IValidationHandler;
skmatc: Skmatc;
fail(message?: string);
assert(test: boolean, message?: string);
}, schema: any, data: any, path: string): Result;
}
fail(message?: string): Result;
assert(test: boolean, message?: string): Result;
}, schema: any, data: any, path: string) => Result;
{
"name": "skmatc",
"version": "1.2.0",
"version": "1.2.1",
"author": "Benjamin Pannell <admin@sierrasoftworks.com>",

@@ -5,0 +5,0 @@ "description": "Automatic schematic validation for JavaScript objects",

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