githulk
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -38,2 +38,20 @@ 'use strict'; | ||
/** | ||
* List all organizations for the authenticated user. | ||
* | ||
* @param {Object} options Optional options. | ||
* @param {function} fn The callback. | ||
* @returns {Assign} | ||
* @api public | ||
*/ | ||
Organization.prototype.list = function list(args) { | ||
args = this.api.args(arguments); | ||
return this.send( | ||
['user', 'orgs'], | ||
this.api.options(args.options || {}), | ||
args.fn | ||
); | ||
}; | ||
/** | ||
* Get public member information for a given org. | ||
@@ -40,0 +58,0 @@ * |
@@ -201,5 +201,5 @@ 'use strict'; | ||
// | ||
// We've reached the end of the of the iternation, also bail out. | ||
// We've reached the end of the of the iteration, also bail out. | ||
// | ||
if (!link.next) return assign.end(); | ||
if (!link.next || !link.next.query) return assign.end(); | ||
@@ -225,3 +225,3 @@ // | ||
// | ||
if (link.next.query.page === link.last.query.page) { | ||
if (!link.last || link.next.query.page === link.last.query.page) { | ||
delete oargs.options.next; | ||
@@ -228,0 +228,0 @@ } |
{ | ||
"name": "githulk", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Small but powerful Github client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
52011
1676
1