@live-change/framework
Advanced tools
Comparing version 0.8.68 to 0.8.69
@@ -36,4 +36,4 @@ import { mergeDeep } from "../utils.js" | ||
minLength: ({ length }) => (value) => value.length < length ? 'tooShort' : undefined, | ||
maxLength: ({ length }) => (value) => value.length > length ? 'tooLong' : undefined, | ||
minLength: ({ length }) => (value) => value && (value.length < length ? 'tooShort' : undefined), | ||
maxLength: ({ length }) => (value) => value && (value.length > length ? 'tooLong' : undefined), | ||
@@ -65,3 +65,3 @@ number: () => (value) => isNaN(value) ? 'notANumber' : undefined, | ||
const validator = (value, context) => { | ||
if(getField(context, prop) == to) { | ||
if(getField(context, prop) === to) { | ||
for(let v of validators) { | ||
@@ -74,3 +74,3 @@ const err = v(value, context) | ||
validator.isRequired = (context) => { | ||
if(getField(context, prop) == to) { | ||
if(getField(context, prop) === to) { | ||
for(let v of validators) { | ||
@@ -77,0 +77,0 @@ if(v.isRequired && v.isRequired(context)) return true |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.8.68", | ||
"version": "0.8.69", | ||
"description": "Live Change Framework - ultimate solution for real time mobile/web apps", | ||
@@ -25,6 +25,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@live-change/dao": "^0.8.68", | ||
"@live-change/uid": "^0.8.68" | ||
"@live-change/dao": "^0.8.69", | ||
"@live-change/uid": "^0.8.69" | ||
}, | ||
"gitHead": "9f34ce84625f32092de0d93dcd19e4e4982982bd" | ||
"gitHead": "57f25e13fd727c638d5ab23e724b6e12a4e3735a" | ||
} |
186805