volos-analytics-apigee
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -58,13 +58,13 @@ /**************************************************************************** | ||
superagent.agent(). | ||
post(this.uri + '/v2/analytics/accept'). | ||
set('x-DNA-Api-Key', this.key). | ||
set('Content-Type', 'application/json'). | ||
send(JSON.stringify(recordsToBeUploaded)). | ||
end(function(err, resp) { | ||
if(err) { | ||
superagent.agent() | ||
.post(this.uri + '/v2/analytics/accept') | ||
.set('x-DNA-Api-Key', this.key) | ||
.set('Content-Type', 'application/json') | ||
.send(JSON.stringify(recordsToBeUploaded)) | ||
.end(function(err, resp) { | ||
if (err) { | ||
cb(err); | ||
} else { | ||
if(resp.statusCode != 200) { | ||
cb(resp.body); | ||
if (resp.statusCode != 200) { | ||
cb(null); | ||
} else { | ||
@@ -71,0 +71,0 @@ cb(undefined, resp.body); |
{ | ||
"name": "volos-analytics-apigee", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "lib/apigeeanalytics.js", | ||
@@ -15,3 +15,4 @@ "license": "MIT", | ||
"debug": "1.0.x", | ||
"superagent": "0.x.x" | ||
"superagent": "0.x.x", | ||
"volos-analytics-common": "^0.2.0" | ||
}, | ||
@@ -18,0 +19,0 @@ "devDependencies": {}, |
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
3814
4
+ Addedvolos-analytics-common@0.2.5(transitive)