Socket
Socket
Sign inDemoInstall

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 6.0.4 to 6.1.0

13

CHANGELOG.md
# CHANGELOG
## 6.1.0
Features:
* Add X-GitHub-RequestId, Retry-After request headers.
* Add trailing slash to getReferences url to return all references.
* Allow the ref param to be the empty string.
Bug fixes:
* Some example fixes.
## 6.0.4

@@ -10,2 +20,5 @@

Features:
* Generate flow-type type definitions.
Bug fixes:

@@ -12,0 +25,0 @@ * Fix ref params being uri encoded.

1

examples/getFollowers.js

@@ -16,5 +16,4 @@ "use strict";

github.users.getFollowers({
user: "defunkt"
}, function(err, res) {
console.log(err, res);
});

@@ -15,6 +15,5 @@ "use strict";

github.users.getFollowingForUser({
username: "defunkt"
github.users.getFollowing({
}, function(err, res) {
console.log(err, res);
});
{
"name": "github",
"version": "6.0.4",
"version": "6.1.0",
"description": "NodeJS wrapper for the GitHub API",

@@ -51,3 +51,3 @@ "author": "Mike de Boer <info@mikedeboer.nl>",

"name": "node-github",
"version": "6.0.4",
"version": "6.1.0",
"template": {

@@ -54,0 +54,0 @@ "withCompare": true

@@ -40,3 +40,3 @@ **NOTE: The `node-github` npm package is deprecated. You want the `github` npm package (see Installation).**

var github = new GitHubApi({
// optional args
// optional
debug: true,

@@ -57,7 +57,7 @@ protocol: "https",

github.users.getFollowingForUser({
// optional:
// optional
// headers: {
// "cookie": "blahblah"
// },
user: "defunkt"
username: "defunkt"
}, function(err, res) {

@@ -64,0 +64,0 @@ console.log(JSON.stringify(res));

@@ -191,3 +191,3 @@ /*

it("should successfully execute GET /repos/:owner/:repo/git/refs (getReferences)", function(next) {
it("should successfully execute GET /repos/:owner/:repo/git/refs/ (getReferences)", function(next) {
client.gitdata.getReferences(

@@ -194,0 +194,0 @@ {

Sorry, the diff of this file is too big to display

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