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

react-validatables

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-validatables - npm Package Compare versions

Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9

3

lib/use-validator/types/use-validator-args.d.ts

@@ -0,1 +1,2 @@

import type { DependencyList } from 'react';
import type { BindingArrayDependencies, LimiterOptions, ReadonlyBinding } from 'react-bindings';

@@ -5,2 +6,4 @@ export interface UseValidatorArgs extends LimiterOptions {

id?: string;
/** On a rerender, deps changes are treated like hard reset bindings changes. */
deps?: DependencyList;
/**

@@ -7,0 +10,0 @@ * If specified and the values of any of the specified bindings are not truthy, the validator is disabled and so it will always result in

2

lib/use-validator/use-validator.d.ts

@@ -16,3 +16,3 @@ import { InferRequiredWaitableAndBindingValueTypes, TypeOrPromisedType, WaitableDependencies } from 'react-waitables';

*/
export declare const useValidator: <DependenciesT extends WaitableDependencies>(dependencies: DependenciesT | undefined, validators: (dependencyValues: InferRequiredWaitableAndBindingValueTypes<DependenciesT>, dependencies: DependenciesT, args: ValidationCheckerArgs) => TypeOrPromisedType<ValidationChecker<InferRequiredWaitableAndBindingValueTypes<DependenciesT>> | undefined>, { id, disabledUntil: disabledUntilBindings, disabledWhile: disabledWhileBindings, disabledWhileUnmodified: disabledWhileUnmodifiedBindings, limitMSec, limitMode, limitType, priority, queue }?: UseValidatorArgs) => Validator;
export declare const useValidator: <DependenciesT extends WaitableDependencies>(dependencies: DependenciesT | undefined, validators: (dependencyValues: InferRequiredWaitableAndBindingValueTypes<DependenciesT>, dependencies: DependenciesT, args: ValidationCheckerArgs) => TypeOrPromisedType<ValidationChecker<InferRequiredWaitableAndBindingValueTypes<DependenciesT>> | undefined>, { id, deps, disabledUntil: disabledUntilBindings, disabledWhile: disabledWhileBindings, disabledWhileUnmodified: disabledWhileUnmodifiedBindings, limitMSec, limitMode, limitType, priority, queue }?: UseValidatorArgs) => Validator;
//# sourceMappingURL=use-validator.d.ts.map

@@ -33,3 +33,3 @@ "use strict";

*/
const useValidator = (dependencies, validators, { id = 'validator', disabledUntil: disabledUntilBindings, disabledWhile: disabledWhileBindings, disabledWhileUnmodified: disabledWhileUnmodifiedBindings,
const useValidator = (dependencies, validators, { id = 'validator', deps, disabledUntil: disabledUntilBindings, disabledWhile: disabledWhileBindings, disabledWhileUnmodified: disabledWhileUnmodifiedBindings,
// LimiterOptions

@@ -75,5 +75,6 @@ limitMSec, limitMode, limitType, priority, queue } = {}) => {

}
}), Object.assign({ id, addFields: () => ({ isDisabled }), hardResetBindings: isDisabledBinding, defaultValue: () => (isDisabled() ? basic_validation_results_1.disabledState : undefined) }, limiterOptions));
}), Object.assign({ id,
deps, addFields: () => ({ isDisabled }), hardResetBindings: isDisabledBinding, defaultValue: () => (isDisabled() ? basic_validation_results_1.disabledState : undefined) }, limiterOptions));
};
exports.useValidator = useValidator;
//# sourceMappingURL=use-validator.js.map
{
"name": "react-validatables",
"version": "1.0.0-alpha.8",
"version": "1.0.0-alpha.9",
"description": "Validation tools for React built on react-waitables",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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