volos-analytics-apigee
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -86,5 +86,7 @@ /**************************************************************************** | ||
if (err || resp.statusCode !== 200) { | ||
cb(err || new Error('error from server: ' + resp.statusCode), recordsToBeUploaded); | ||
cb(err || new Error('error from server: ' + resp.statusCode), recordsQueue); | ||
} else if( resp.body ) { | ||
resp.body.rejected > 0 ? cb(undefined, recordsQueue.slice(recordsQueue.length - resp.body.rejected)) : cb(); | ||
} else { | ||
resp.body.rejected > 0 ? cb(undefined, recordsQueue.slice(recordsQueue.length - resp.body.rejected)) : cb(); | ||
cb(new Error('Empty response from server: ' + resp.statusCode)); | ||
} | ||
@@ -151,3 +153,5 @@ } | ||
ApigeeAnalyticsSpi.prototype.send = function send(data, cb) { | ||
if ( !data ) { // add null check to payload | ||
return; | ||
} | ||
var options = { | ||
@@ -154,0 +158,0 @@ url: this.uri, |
{ | ||
"name": "volos-analytics-apigee", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"main": "lib/apigeeanalytics.js", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"request": "^2.6.0", | ||
"volos-analytics-common": "0.2.x" | ||
"volos-analytics-common": "^0.2.5" | ||
}, | ||
@@ -19,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
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
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
27921
5
662
1
1