Comparing version 0.1.3 to 0.1.4
@@ -41,2 +41,29 @@ 'use strict'; | ||
/** | ||
* Get organization information for a given username. | ||
* | ||
* @param {String} project The project details. | ||
* @param {Object} options Optional options. | ||
* @param {function} fn The callback. | ||
* @returns {Assign} | ||
* @api public | ||
*/ | ||
User.prototype.orgs = function get(args) { | ||
args = this.api.args(arguments); | ||
if (!args.str) return this.send( | ||
['user', 'orgs'], | ||
args.options || {}, | ||
args.fn | ||
); | ||
var project = this.api.project(args.str) || {}; | ||
return this.send( | ||
['users', project.user || args.str, 'orgs'], | ||
args.options || {}, | ||
args.fn | ||
); | ||
}; | ||
// | ||
@@ -43,0 +70,0 @@ // Expose the User API. |
{ | ||
"name": "githulk", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Small but powerful Github client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
28781
13
936
0