hola-server 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/core/validate.js +3 -1
  2. package/package.json +1 -1
package/core/validate.js CHANGED
@@ -3,7 +3,9 @@ const is_undefined = function (value) {
3
3
  }
4
4
 
5
5
  const has_value = function (value) {
6
- if (value === undefined || value === null || isNaN(value)) {
6
+ //In short, JavaScript NaN values are the only ones that are not equal to themselves
7
+ //value!==value is to check is NaN
8
+ if (value === undefined || value === null || value !== value) {
7
9
  return false
8
10
  }
9
11
  if (typeof value == 'undefined') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hola-server",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "a meta programming framework used to build nodejs restful api",
5
5
  "main": "index.js",
6
6
  "scripts": {