Comparing version 9.0.0 to 9.1.0
# CHANGELOG | ||
## 9.1.0 | ||
Features: | ||
* Add User Blocking preview api. | ||
## 9.0.0 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "github", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"description": "NodeJS wrapper for the GitHub API", | ||
@@ -53,3 +53,3 @@ "author": "Mike de Boer <info@mikedeboer.nl>", | ||
"name": "node-github", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"template": { | ||
@@ -56,0 +56,0 @@ "withCompare": true |
@@ -191,20 +191,21 @@ **NOTE: The `node-github` npm package is deprecated. You want the `github` npm package (see Installation).** | ||
| Preview API | Accept header val | | ||
| ------------------- | ----------------------------------------------- | | ||
| Commit Search | application/vnd.github.cloak-preview+json | | ||
| Community | application/vnd.github.black-panther-preview+json | | ||
| Deployment | application/vnd.github.ant-man-preview+json | | ||
| Git signing | application/vnd.github.cryptographer-preview | | ||
| Imports | application/vnd.github.barred-rock-preview | | ||
| Integrations | application/vnd.github.machine-man-preview | | ||
| License | application/vnd.github.drax-preview+json | | ||
| Migrations | application/vnd.github.wyandotte-preview+json | | ||
| Organization Membership | application/vnd.github.korra-preview+json | | ||
| Pages | application/vnd.github.mister-fantastic-preview | | ||
| Pre-receive | application/vnd.github.eye-scream-preview | | ||
| Projects | application/vnd.github.inertia-preview+json | | ||
| Protected Branches | application/vnd.github.loki-preview+json | | ||
| Pull Request Squash | application/vnd.github.polaris-preview | | ||
| Reactions | application/vnd.github.squirrel-girl-preview | | ||
| Timeline | application/vnd.github.mockingbird-preview | | ||
| Preview API | Accept header val | | ||
| ------------------- | ----------------------------------------------- | | ||
| Commit Search | application/vnd.github.cloak-preview+json | | ||
| Community | application/vnd.github.black-panther-preview+json | | ||
| Deployment | application/vnd.github.ant-man-preview+json | | ||
| Git signing | application/vnd.github.cryptographer-preview | | ||
| Imports | application/vnd.github.barred-rock-preview | | ||
| Integrations | application/vnd.github.machine-man-preview | | ||
| License | application/vnd.github.drax-preview+json | | ||
| Migrations | application/vnd.github.wyandotte-preview+json | | ||
| Organization Membership | application/vnd.github.korra-preview+json | | ||
| Pages | application/vnd.github.mister-fantastic-preview | | ||
| Pre-receive | application/vnd.github.eye-scream-preview | | ||
| Projects | application/vnd.github.inertia-preview+json | | ||
| Protected Branches | application/vnd.github.loki-preview+json | | ||
| Pull Request Squash | application/vnd.github.polaris-preview | | ||
| Reactions | application/vnd.github.squirrel-girl-preview | | ||
| Timeline | application/vnd.github.mockingbird-preview | | ||
| User Blocking | application/vnd.github.giant-sentry-fist-preview+json | | ||
@@ -211,0 +212,0 @@ ## Dev notes |
@@ -54,2 +54,28 @@ /* | ||
it("should successfully execute PUT /user/blocks/:username (blockUser)", function(next) { | ||
client.users.blockUser( | ||
{ | ||
username: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /user/blocks/:username (checkBlockedUser)", function(next) { | ||
client.users.checkBlockedUser( | ||
{ | ||
username: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /user/following/:username (checkFollowing)", function(next) { | ||
@@ -225,2 +251,13 @@ client.users.checkFollowing( | ||
it("should successfully execute GET /user/blocks (getBlockedUsers)", function(next) { | ||
client.users.getBlockedUsers( | ||
{}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /user/:id (getById)", function(next) { | ||
@@ -484,2 +521,15 @@ client.users.getById( | ||
it("should successfully execute DELETE /user/blocks/:username (unblockUser)", function(next) { | ||
client.users.unblockUser( | ||
{ | ||
username: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute DELETE /user/following/:username (unfollowUser)", function(next) { | ||
@@ -486,0 +536,0 @@ client.users.unfollowUser( |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1898810
51461
231