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.15.2 to 1.16.0

12

dist/Form.js

@@ -366,2 +366,10 @@ (function (global, factory) {

this.validateField = function (fieldName, fieldValidators, allFields, allErrors, areDirty) {
var validators = _this2.props.validators;
// if field is optional and the value doesn't pass the isRequired validator, skip all validators
if (!fieldValidators.isRequired && validators.isRequired({})(allFields[fieldName]) !== null) {
return null;
}
return Object.entries(fieldValidators).reduce(function (error, _ref4) {

@@ -376,5 +384,5 @@ var _ref5 = _slicedToArray(_ref4, 2),

var validator = _this2.props.validators[validatorName];
var validator = validators[validatorName];
(0, _invariant2.default)(validator, "You specified a validator that doesn't exist. You " + ('specified ' + validatorName + '. Available validators: \n\n') + Object.keys(_this2.props.validators).join(',\n'));
(0, _invariant2.default)(validator, "You specified a validator that doesn't exist. You " + ('specified ' + validatorName + '. Available validators: \n\n') + Object.keys(validators).join(',\n'));

@@ -381,0 +389,0 @@ var context = {

135

package.json
{
"name": "calidation",
"version": "1.15.2",
"description": "A red hot validation library for React",
"main": "dist/index.js",
"keywords": [
"validation",
"react",
"react validation"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/selbekk/calidation"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "babel --out-dir dist --ignore *.spec.js src",
"precommit": "pretty-quick --staged",
"commit": "git-cz",
"test": "jest",
"test:watch": "jest --watch --coverage",
"test:coverage": "jest --coverage",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.1.0",
"dom-testing-library": "^1.1.0",
"husky": "^0.14.3",
"jest": "^22.4.3",
"prettier": "^1.11.1",
"pretty-quick": "^1.4.1",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"react-testing-library": "^6.0.0",
"rimraf": "^2.6.2",
"semantic-release": "^15.1.5",
"travis-deploy-once": "^4.4.1"
},
"peerDependencies": {
"react": "^16.3.1",
"react-dom": "^16.3.1"
},
"files": [
"README.md",
"dist"
],
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
"name": "calidation",
"version": "1.16.0",
"description": "A red hot validation library for React",
"main": "dist/index.js",
"keywords": [
"validation",
"react",
"react validation"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/selbekk/calidation"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "babel --out-dir dist --ignore *.spec.js src",
"precommit": "pretty-quick --staged",
"commit": "git-cz",
"test": "jest",
"test:watch": "jest --watch --coverage",
"test:coverage": "jest --coverage",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.1.0",
"dom-testing-library": "^1.1.0",
"husky": "^0.14.3",
"jest": "^22.4.3",
"prettier": "^1.11.1",
"pretty-quick": "^1.4.1",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"react-testing-library": "^6.0.0",
"rimraf": "^2.6.2",
"semantic-release": "^15.1.5",
"travis-deploy-once": "^4.4.1"
},
"peerDependencies": {
"react": "^16.3.1",
"react-dom": "^16.3.1"
},
"files": [
"README.md",
"dist"
],
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"calidators": "^3.0.0",
"invariant": "^2.2.4",
"prop-types": "^15.6.1"
},
"jest": {
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"testURL": "http://localhost/"
}
},
"dependencies": {
"calidators": "^2.0.0",
"invariant": "^2.2.4",
"prop-types": "^15.6.1"
},
"jest": {
"coverageDirectory": "./coverage/",
"collectCoverage": true
}
}
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