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 5.2.0 to 5.2.1

src/validator.js

7

others/joi.d.ts

@@ -16,1 +16,8 @@ import * as Joi from "joi";

export declare function useJoi(abolish: TypeOfAbolishOrInstance, joi?: Joi.Root): void;
declare module "../src/validator" {
module AvailableValidators {
interface Options {
$joi: Joi.Schema | ((joi: Joi.Root) => Joi.Schema);
}
}
}

@@ -9,2 +9,10 @@ import * as Yup from "yup";

declare type YupHelper<T> = (y: typeof Yup) => T;
declare module "../src/validator" {
module AvailableValidators {
interface Options {
$yup: Yup.BaseSchema | YupSchemaOption<any>;
$yupAsync: Yup.BaseSchema | YupSchemaOption<any>;
}
}
}
/**

@@ -11,0 +19,0 @@ * $yup Schema Helper

4

package.json
{
"name": "abolish",
"version": "5.2.0",
"version": "5.2.1",
"description": "A javascript object validator.",

@@ -23,3 +23,3 @@ "main": "index.js",

"watch": "npx tsc --watch",
"play": "npx ts-node-dev --respawn play.ts",
"play": "npx ts-node-dev --respawn tests/play.ts",
"test-browser": "npx vite --host",

@@ -26,0 +26,0 @@ "test": "npm run build && node JapaFile.js",

/**
* This is not an automatically generated file.
*/
import { $errorRule, $errorsRule, AbolishInlineValidator, AbolishRule } from "./types";
import type { $errorRule, $errorsRule, AbolishInlineValidator, AbolishRule } from "./types";
export declare module AvailableValidators {
export interface Options {
interface Options {
$name: string;

@@ -13,3 +12,2 @@ $error: $errorRule;

$skip: boolean | ((value: any) => boolean);
default: any;

@@ -28,3 +26,2 @@ required: boolean;

}
/**

@@ -34,2 +31,6 @@ * AV - Abolish Validators

*/
export type AV = Partial<AvailableValidators.Options>;
export declare type AV = Partial<AvailableValidators.Options>;
/**
* Import all additional validators
*/
import "../validators/validators";
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