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

ghutils

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghutils - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

14

ghutils.js

@@ -43,15 +43,2 @@ const jsonist = require('jsonist')

function issuesList (type) {
return function list (auth, org, repo, options, callback) {
if (typeof options == 'function') {
callback = options
options = {}
}
var url = apiRoot + '/repos/' + org + '/' + repo + '/' + type
lister(auth, url, options, callback)
}
}
function lister (auth, urlbase, options, callback) {

@@ -87,4 +74,3 @@ var retdata = []

module.exports.handler = handler
module.exports.issuesList = issuesList
module.exports.lister = lister
module.exports.apiRoot = apiRoot

2

package.json
{
"name": "ghutils",
"version": "1.3.0",
"version": "2.0.0",
"description": "A collection of utility functions for dealing with the GitHub API",

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

@@ -27,6 +27,2 @@ # ghutils

### issuesList(type)
Creates an issues or pull requests fetching function where `type` is either `'issues'` or `'pulls'`. The function returned has the signature: `function list (auth, org, repo, options, callback)`.
### apiRoot

@@ -33,0 +29,0 @@

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