Comparing version 1.3.0 to 2.0.0
@@ -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 |
{ | ||
"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 @@ |
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
1
6998
119
34