Socket
Socket
Sign inDemoInstall

octonode

Package Overview
Dependencies
51
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.2 to 0.9.3

15

lib/octonode/issue.js

@@ -101,2 +101,17 @@ // Generated by CoffeeScript 1.12.7

Issue.prototype.events = function() {
var cb, i, params, 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.repo + "/issues/" + this.number + "/events"].concat(slice.call(params), [function(err, s, b, h) {
if (err) {
return cb(err);
}
if (s !== 200) {
return cb(new Error('Issue events error'));
} else {
return cb(null, b, h);
}
}]));
};
Issue.prototype.labels = function(cb) {

@@ -103,0 +118,0 @@ return this.client.get("/repos/" + this.repo + "/issues/" + this.number + "/labels", {}, function(err, s, b, h) {

13

lib/octonode/pr.js

@@ -5,3 +5,4 @@ // Generated by CoffeeScript 1.12.7

extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
hasProp = {}.hasOwnProperty,
slice = [].slice;

@@ -90,4 +91,6 @@ Base = require('./base');

Pr.prototype.comments = function(cb) {
return this.client.get("/repos/" + this.repo + "/pulls/" + this.number + "/comments", function(err, s, b, h) {
Pr.prototype.comments = function() {
var cb, i, params, 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.repo + "/pulls/" + this.number + "/comments"].concat(slice.call(params), [function(err, s, b, h) {
if (err) {

@@ -97,7 +100,7 @@ return cb(err);

if (s !== 200) {
return cb(new Error("Pr comments error"));
return cb(new Error('Pr Comments error'));
} else {
return cb(null, b, h);
}
});
}]));
};

@@ -104,0 +107,0 @@

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

@@ -21,3 +21,3 @@ "description": "nodejs wrapper for github v3 api",

"bluebird": "^3.5.0",
"deep-extend": "^0.4.1",
"deep-extend": "^0.5.1",
"randomstring": "^1.1.5",

@@ -24,0 +24,0 @@ "request": "^2.72.0"

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