Comparing version 0.0.4 to 0.0.5
@@ -96,3 +96,3 @@ var request = require('request'); | ||
if (!id || typeof(id) === "function") { return cb(new Error("id parameter must be provided.")); } | ||
var call = { | ||
@@ -123,3 +123,3 @@ method: 'GET', | ||
if (typeof appId === "function") { cb = appId; appId = null; } | ||
var call = { | ||
@@ -159,3 +159,2 @@ method: 'GET', | ||
console.log(call); | ||
request(call, handleResponse(cb)); | ||
@@ -167,3 +166,3 @@ } | ||
if (err) { return cb(err); } | ||
if (typeof data === 'string') { | ||
@@ -174,4 +173,2 @@ try { | ||
} catch (e) { | ||
console.log(e); | ||
console.log('error parsing response'); | ||
return cb(new Error(data)); // sometimes errors are returned as strings. | ||
@@ -178,0 +175,0 @@ } |
{ | ||
"name": "hubspot", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A node wrapper for the HubSpot API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ # node-hubspot | ||
npm install node-hubspot | ||
npm install hubspot | ||
@@ -21,2 +21,2 @@ ## use | ||
console.log(res); | ||
}); | ||
}); |
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
21
7329
174