Compare commits

...

2 Commits

@ -9,6 +9,6 @@ module.exports = function (value) {
if (!isNumberObject(value)) { if (!isNumberObject(value)) {
throw new ValidationError("Must be a number"); throw new ValidationError("Must be a number");
} else if (Number.isNaN(value)) { } else if (Number.isNaN(value)) {
throw new ValidationError(`Must not be NaN`); throw new ValidationError(`Must be a number (must not be NaN)`);
} }
}; };

@ -5,7 +5,7 @@
"validatem", "validatem",
"validator" "validator"
], ],
"version": "0.1.2", "version": "0.1.3",
"main": "index.js", "main": "index.js",
"repository": "http://git.cryto.net/validatem/is-number.git", "repository": "http://git.cryto.net/validatem/is-number.git",
"author": "Sven Slootweg <admin@cryto.net>", "author": "Sven Slootweg <admin@cryto.net>",

Loading…
Cancel
Save