gist-map-browser
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -6,4 +6,5 @@ var request = require('browser-request'), | ||
module.exports = function(_) { | ||
module.exports = function(_, endpoint) { | ||
token = _; | ||
base = endpoint || base; | ||
return module.exports; | ||
@@ -60,3 +61,5 @@ }; | ||
c.onclick = function(elem) { | ||
onclick(gist, elem); | ||
page('/gists/' + gist.id, function(err, res){ | ||
onclick(res, elem); | ||
}); | ||
}; | ||
@@ -84,3 +87,3 @@ } | ||
request({ | ||
uri: 'https://api.github.com' + postfix, | ||
uri: base + postfix, | ||
headers: { | ||
@@ -87,0 +90,0 @@ Authorization: 'token ' + token |
{ | ||
"name": "gist-map-browser", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "browse through your recent mappy gists", | ||
@@ -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
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
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
3006
83
4
1