Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github

Package Overview
Dependencies
Maintainers
2
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

examples/updateBranchProtection.js

5

CHANGELOG.md
# CHANGELOG
## 2.4.1
Bugfixes:
* Allow for passing some required parameters as null
## 2.4.0

@@ -4,0 +9,0 @@

6

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc