Socket
Socket
Sign inDemoInstall

octonode

Package Overview
Dependencies
1
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

2

lib/octonode/gist.js

@@ -182,3 +182,3 @@ (function() {

} else {
return cb(new Error('Gist comment error'));
return cbOrIdOrCmnt(new Error('Gist comment error'));
}

@@ -185,0 +185,0 @@ };

@@ -49,2 +49,3 @@ (function() {

} else {
cb = cbOrEmails;
return this.client.get('/user/emails', function(err, s, b) {

@@ -94,2 +95,3 @@ if (err) return cb(err);

} else {
cb = cbOrUser;
return this.client.get('/user/following', function(err, s, b) {

@@ -137,2 +139,3 @@ if (err) return cb(err);

} else {
cb = cbOrIdOrKey;
return this.client.get('/user/keys', function(err, s, b) {

@@ -197,2 +200,3 @@ if (err) return cb(err);

} else {
cb = cbOrRepo;
return this.client.get("/user/repos", function(err, s, b) {

@@ -199,0 +203,0 @@ if (err) return cb(err);

@@ -26,2 +26,3 @@ (function() {

} else {
cb = cbOrRepo;
return this.client.get("/orgs/" + this.name + "/repos", function(err, s, b) {

@@ -28,0 +29,0 @@ if (err) return cb(err);

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

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

@@ -403,3 +403,3 @@ # octonode

ghgist.get(37, callback); //gist
```js
```

@@ -413,3 +413,3 @@ ### Create a gist (POST /gists)

}), callback); //gist
```js
```

@@ -422,3 +422,3 @@ ### Edit a gist (PATCH /gists/37)

}, callback); //gist
```js
```

@@ -429,3 +429,3 @@ ### Delete a gist (DELETE /gists/37)

ghgist.delete(37);
```js
```

@@ -436,3 +436,3 @@ ### Star a gist (PUT /gists/37/star)

ghgist.star(37);
```js
```

@@ -443,3 +443,3 @@ ### Unstar a gist (DELETE /gists/37/unstar)

ghgist.unstar(37);
```js
```

@@ -450,3 +450,3 @@ ### Check if a gist is starred (GET /gists/37/star)

ghgist.check(37); //boolean
```js
```

@@ -457,3 +457,3 @@ ### List comments on a gist (GET /gists/37/comments)

ghgist.comments(37, callback); //array of comments
```js
```

@@ -466,3 +466,3 @@ ### Create a comment (POST /gists/37/comments)

}, callback); //comment
```js
```

@@ -473,3 +473,3 @@ ### Get a single comment (GET /gists/comments/1)

ghgist.comment(1, callback); //comment
```js
```

@@ -482,3 +482,3 @@ ### Edit a comment (POST /gists/comments/1)

}, callback); //comment
```js
```

@@ -489,3 +489,3 @@ ### Delete a comment (DELETE /gists/comments/1)

ghgist.comment(1);
```js
```

@@ -492,0 +492,0 @@ ## Github teams 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