Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

githulk

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

githulk - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

endpoints/organizations.js

27

endpoints/users.js

@@ -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.

2

package.json
{
"name": "githulk",
"version": "0.1.3",
"version": "0.1.4",
"description": "Small but powerful Github client",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc