Socket
Socket
Sign inDemoInstall

github-api-promise

Package Overview
Dependencies
59
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.11.2 to 1.12.0

src/teams/teams.js

16

package.json
{
"name": "github-api-promise",
"version": "1.11.2",
"version": "1.12.0",
"description": "A node module for interfacing with the Github API using promises",

@@ -13,8 +13,8 @@ "main": "src/app.js",

"dependencies": {
"bluebird": "*",
"lodash": "^4.17.4",
"lognext": "0.0.3",
"q": "*",
"superagent": "*",
"superagent-bluebird-promise": "*",
"bluebird": "^3.5.1",
"lodash": "^4.17.10",
"lognext": "0.0.4",
"q": "^1.5.1",
"superagent": "^3.8.3",
"superagent-bluebird-promise": "^4.2.0",
"urlencode": "^1.1.0"

@@ -26,4 +26,4 @@ },

"scripts": {
"generate-docs": "jsdoc -r -c jsdoc.json -R README.md"
"generate-docs": "jsdoc -r -c jsdoc.json -R README.md"
}
}

@@ -29,3 +29,3 @@ # github-api-promise

```JavaScript
var api = require('github-api-promise');
const api = require('github-api-promise');

@@ -40,7 +40,7 @@ // Set settings

api.repos.releases.getRepositoryReleases()
.then(function(res) {
.then((res) => {
// Do your stuff here. res is the JSON object returned by the API
})
.catch(function(err) {
console.log('Request failed: ' + err);
.catch((err) => {
console.log(`Request failed: ${err}`);
});

@@ -69,2 +69,4 @@ ```

* [Repositories](https://developer.github.com/v3/repos/)
* Teams
* [Teams](https://developer.github.com/v3/teams/)

@@ -71,0 +73,0 @@

@@ -31,2 +31,6 @@ const req = require('./request-helpers');

githubApi.teams = {
teams: require('./teams/teams')
};
githubApi.getRequestCount = () => { return req.requestCount; };

@@ -33,0 +37,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc