Socket
Socket
Sign inDemoInstall

octonode

Package Overview
Dependencies
32
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.3 to 0.6.4

8

lib/octonode/org.js

@@ -87,4 +87,6 @@ // Generated by CoffeeScript 1.7.1

Org.prototype.members = function(cb) {
return this.client.get("/orgs/" + this.name + "/members", function(err, s, b, h) {
Org.prototype.members = function() {
var cb, params, _i, _ref;
params = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), cb = arguments[_i++];
return (_ref = this.client).get.apply(_ref, ["/orgs/" + this.name + "/members"].concat(__slice.call(params), [function(err, s, b, h) {
if (err) {

@@ -98,3 +100,3 @@ return cb(err);

}
});
}]));
};

@@ -101,0 +103,0 @@

@@ -185,2 +185,15 @@ // Generated by CoffeeScript 1.7.1

Repo.prototype.branch = function(branch, cb) {
return this.client.get("/repos/" + this.name + "/branches/" + branch, function(err, s, b, h) {
if (err) {
return cb(err);
}
if (s !== 200) {
return cb(new Error("Repo branch error"));
} else {
return cb(null, b, h);
}
});
};
Repo.prototype.issue = function(numberOrIssue, cb) {

@@ -187,0 +200,0 @@ if (typeof cb === 'function' && typeof numberOrIssue === 'object') {

@@ -69,3 +69,3 @@ // Generated by CoffeeScript 1.7.1

events = null;
} else if (!Array.isArray(events)) {
} else if ((events != null) && !Array.isArray(events)) {
events = [events];

@@ -80,5 +80,7 @@ }

}
b = b.filter(function(event) {
return events.indexOf(event.type) !== -1;
});
if (events != null) {
b = b.filter(function(event) {
return events.indexOf(event.type) !== -1;
});
}
return cb(null, b, h);

@@ -85,0 +87,0 @@ }]));

{
"name": "octonode",
"version": "0.6.3",
"version": "0.6.4",
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (http://pksunkara.github.com)",

@@ -5,0 +5,0 @@ "description": "nodejs wrapper for github v3 api",

@@ -409,6 +409,14 @@ # octonode [![Gitter chat](https://badges.gitter.im/pksunkara/octonode.png)](https://gitter.im/pksunkara/octonode)

Optionally, supply an array of Event Types to filter by.
```js
ghuser.events(['commit_comment'], callback); //array of events
ghuser.events(['PushEvent'], callback); //array of PushEvent events
```
Or leave it out to get all Event Types.
```js
ghuser.events(callback); //array of events
```
#### Get user public organizations (GET /users/pksunkara/orgs)

@@ -483,2 +491,8 @@

#### Get a branch for a repository (GET /repos/pksunkara/hub/branches/master)
```js
ghrepo.branch('master', callback); //branch
```
#### Get the issues for a repository (GET /repos/pksunkara/hub/issues)

@@ -714,2 +728,4 @@

This query supports [pagination](#pagination).
```js

@@ -1017,3 +1033,3 @@ ghorg.members(callback); //array of github users

q: 'windows+state:open+repo:pksunkara/hub',
sort: 'created'
sort: 'created',
order: 'asc'

@@ -1020,0 +1036,0 @@ }, callback); //array of search results

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc