zeanium-node
Advanced tools
Comparing version 0.6.8 to 0.6.9
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,17 @@ /** | ||
} | ||
switch (prop.type[0].toLowerCase()) { | ||
case 'int': | ||
case 'float': | ||
_value = +_value; | ||
if(isNaN(_value)){ | ||
return -1; | ||
} | ||
break; | ||
case 'datetime': | ||
_value = _value.trim(); | ||
if(!_value){ | ||
return -1; | ||
} | ||
break; | ||
} | ||
if(_value != null) { | ||
@@ -25,3 +40,3 @@ _values[key] = _value; | ||
}, this); | ||
console.log(_values); | ||
return _values; | ||
@@ -28,0 +43,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250593
5947