
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
redux-form-async-validator
Advanced tools
Easy asynchronous validation of multiple redux-form fields
redux-form-async-validator
aims to provide an easy way to perform asynchronous validation on multiple redux-form fields.
npm: npm install redux-form-async-validator --save
yarn: yarn add redux-form-async-validator
See below for an example usage:
import { composeAsyncValidator } from 'redux-form-async-validator';
const asyncValidateUsername = /* Some validator */
const asyncValidateEmail = /* Some validator */
export default reduxForm({
form: 'some-form',
asyncValidate: composeAsyncValidator({
username: [asyncValidateUsername, 'Username is not available'],
email: [asyncValidateEmail, 'Email is not available']
}),
asyncChangeFields: ['email', 'username']
})(YourFormComponent);
composeAsyncValidator (validatorObj: object) -> (asyncValidator: function)
validatorObj: object
(required): An object in which each key corresponds to a field name and each value is an array containing an asynchronous validator function and the error message should the validation fail.
All validator functions must return a Promise
- a resolved promise to indicate successful validation or a rejected promise to indicate a failed validation.
asyncValidator: function
: The resulting validator function uses the provided validatorObj
to ensure that the correct validator function runs whenever an async field changes. This resulting asyncValidator
function will be invoked everytime any fields listed in the asyncChangeFields
prop changes (See the redux-form docs for more info).
FAQs
Easy asynchronous validation of multiple redux-form fields
The npm package redux-form-async-validator receives a total of 0 weekly downloads. As such, redux-form-async-validator popularity was classified as not popular.
We found that redux-form-async-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.