Comparing version 3.3.1 to 3.4.0
@@ -69,3 +69,3 @@ /*jshint browserify: true */ | ||
}, function (err, response, rawBody) { | ||
if (err) callback(err); | ||
if (err) callback(err, rawBody, response); | ||
else if (!response.headers['content-type'].match(jsonMime)) callback(null, rawBody, response); | ||
@@ -75,6 +75,6 @@ else { | ||
var body = JSON.parse(rawBody); | ||
if (!body.error) callback(null, body); | ||
if (!body.error) callback(null, body, response); | ||
else callback(new ArangoError(body)); | ||
} catch (e) { | ||
callback(e); | ||
callback(e, rawBody, response); | ||
} | ||
@@ -81,0 +81,0 @@ } |
{ | ||
"name": "arangojs", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "The official ArangoDB JavaScript driver.", | ||
@@ -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
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
134725