commonform-validate
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "commonform-validate", | ||
"description": "Common Form content object validation", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Kyle E. Mitchell", |
@@ -111,3 +111,3 @@ var Immutable = require('immutable'); | ||
var subFactory = function(formPredicate) { | ||
var inclusionFactory = function(formPredicate) { | ||
return function(argument) { | ||
@@ -122,8 +122,8 @@ return ( | ||
argument.has('form') && | ||
formPredicate(argument.get('form')) && | ||
argument.has('include') && | ||
formPredicate(argument.get('include')) && | ||
argument.keySeq().every(function(key) { | ||
return ( | ||
key === 'form' || | ||
key === 'include' || | ||
key === 'heading' | ||
@@ -136,5 +136,5 @@ ); | ||
exports.inclusion = subFactory(digest); | ||
exports.inclusion = inclusionFactory(digest); | ||
exports.nestedInclusion = function() { | ||
return subFactory(exports.nestedForm).apply(this, arguments); | ||
return inclusionFactory(exports.nestedForm).apply(this, arguments); | ||
}; | ||
@@ -276,2 +276,2 @@ | ||
exports.version = '0.2.0'; | ||
exports.version = '0.3.0'; |
7894