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

calidation

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calidation - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

2

dist/Form.js

@@ -161,3 +161,3 @@ 'use strict';

return validator(validatorConfig)(allFields[name]);
return validator(validatorConfig, context)(allFields[name]);
}, null);

@@ -164,0 +164,0 @@ }, _this.registerSubComponent = function (subComponentConfig, initialValues) {

{
"name": "calidation",
"version": "1.8.0",
"version": "1.9.0",
"description": "A red hot validation library for React",

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

@@ -364,5 +364,6 @@ # calidation

const extraValidators = {
isEven: config => value =>
isEven: (config, { fields, errors }) => value =>
Number(value) % 2 !== 0 ? config.message : null,
isOdd: config => value => (Number(value) % 2 !== 1 ? config.message : null),
isOdd: (config, { fields, errors }) => value =>
Number(value) % 2 !== 1 ? config.message : null,
};

@@ -369,0 +370,0 @@

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