venn-places
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -7,4 +7,12 @@ var request = require("request").defaults({ | ||
searchEndpoint = "http://places.getvenn.io/v1/search"; | ||
key = undefined; | ||
exports.init = function(keyString, callback) { | ||
key = keyString; | ||
} | ||
exports.search = function(data, callback) { | ||
if(!key) return callback({"error": "Must initialize Venn Places with vennPlaces.init(API_KEY)"}); | ||
// attach api key to request | ||
data.key = key; | ||
request.get({ | ||
@@ -11,0 +19,0 @@ url: searchEndpoint, |
{ | ||
"name": "venn-places", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Use Venn Places in your NodeJS App", | ||
@@ -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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
5784
5
21
1
38
1