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 4.6.0 to 4.6.1

2

package.json
{
"name": "abolish",
"version": "4.6.0",
"version": "4.6.1",
"description": "A javascript object validator.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -132,3 +132,27 @@ import { AbolishRule, AbolishValidator, ValidationError, ValidationResult } from "./Types";

static attemptAsync<V = any>(variable: V, rules: AbolishRule): Promise<V>;
/**
* test a variable, returns boolean
* @param variable
* @param rules
*/
test<V = any>(variable: V, rules: AbolishRule): boolean;
/**
* Static Check
* @param variable
* @param rules
*/
static test<V = any>(variable: V, rules: AbolishRule): boolean;
/**
* Checks a variable Asynchronously
* @param variable
* @param rules
*/
testAsync<V = any>(variable: V, rules: AbolishRule): Promise<boolean>;
/**
* Static Check Async
* @param variable
* @param rules
*/
static testAsync<V = any>(variable: V, rules: AbolishRule): Promise<boolean>;
}
export = Abolish;

@@ -587,3 +587,37 @@ "use strict";

}
/**
* test a variable, returns boolean
* @param variable
* @param rules
*/
test(variable, rules) {
const [e] = this.check(variable, rules);
return !e;
}
/**
* Static Check
* @param variable
* @param rules
*/
static test(variable, rules) {
return new this().test(variable, rules);
}
/**
* Checks a variable Asynchronously
* @param variable
* @param rules
*/
async testAsync(variable, rules) {
const [e] = await this.checkAsync(variable, rules);
return !e;
}
/**
* Static Check Async
* @param variable
* @param rules
*/
static testAsync(variable, rules) {
return new this().testAsync(variable, rules);
}
}
module.exports = Abolish;
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