Socket
Socket
Sign inDemoInstall

octonode

Package Overview
Dependencies
41
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.11 to 0.6.12

34

lib/octonode/repo.js

@@ -146,10 +146,10 @@ // Generated by CoffeeScript 1.7.1

Repo.prototype.contributors = function(cb) {
return this.client.get("/repos/" + this.name + "/contributors", function(err, s, b, h) {
Repo.prototype.contributors = 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, ["/repos/" + this.name + "/contributors"].concat(__slice.call(params), [function(err, s, b, h) {
if (err) {
return cb(err);
}
if (s === 204) {
return cb(null, [], h);
} else if (s !== 200) {
if (s !== 200) {
return cb(new Error("Repo contributors error"));

@@ -159,3 +159,3 @@ } else {

}
});
}]));
};

@@ -315,7 +315,10 @@

cb = cbOrRef;
cbOrRef = 'master';
cbOrRef = null;
}
return this.client.get("/repos/" + this.name + "/readme", {
ref: cbOrRef
}, function(err, s, b, h) {
if (cbOrRef) {
cbOrRef = {
ref: cbOrRef
};
}
return this.client.get("/repos/" + this.name + "/readme", cbOrRef, function(err, s, b, h) {
if (err) {

@@ -335,7 +338,10 @@ return cb(err);

cb = cbOrRef;
cbOrRef = 'master';
cbOrRef = null;
}
return this.client.get("/repos/" + this.name + "/contents/" + path, {
ref: cbOrRef
}, function(err, s, b, h) {
if (cbOrRef) {
cbOrRef = {
ref: cbOrRef
};
}
return this.client.get("/repos/" + this.name + "/contents/" + path, cbOrRef, function(err, s, b, h) {
if (err) {

@@ -342,0 +348,0 @@ return cb(err);

@@ -84,4 +84,9 @@ // Generated by CoffeeScript 1.7.1

events = null;
} else if ((events != null) && !Array.isArray(events)) {
events = [events];
} else if (events != null) {
if (typeof events === 'number' && params.length > 0) {
params[1] = events;
events = null;
} else if (!Array.isArray(events)) {
events = [events];
}
}

@@ -88,0 +93,0 @@ return (_ref = this.client).get.apply(_ref, ["/users/" + this.login + "/events"].concat(__slice.call(params), [function(err, s, b, h) {

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

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

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