Comparing version 6.0.4 to 6.1.0
# 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. |
@@ -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
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
1533675
41164