Comparing version 2.4.0 to 2.4.1
# CHANGELOG | ||
## 2.4.1 | ||
Bugfixes: | ||
* Allow for passing some required parameters as null | ||
## 2.4.0 | ||
@@ -4,0 +9,0 @@ |
@@ -163,5 +163,7 @@ "use strict"; | ||
if (typeof value != "boolean" && !value) { | ||
// we don't need to validation for undefined parameter values | ||
// we don't need validation for undefined parameter values | ||
// that are not required. | ||
if (!def.required || (def["allow-empty"] && value === "")) | ||
if (!def.required || | ||
(def["allow-empty"] && value === "") || | ||
(def["allow-null"] && value === null)) | ||
continue; | ||
@@ -168,0 +170,0 @@ throw new error.BadRequest("Empty value for parameter '" + |
{ | ||
"name": "github", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "NodeJS wrapper for the GitHub API", | ||
@@ -5,0 +5,0 @@ "author": "Mike de Boer <info@mikedeboer.nl>", |
Sorry, the diff of this file is too big to display
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
618585
50
17419