sentry-node
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -163,4 +163,4 @@ // Generated by CoffeeScript 1.6.3 | ||
_this.emit("done"); | ||
if ((err != null) || res.statusCode > 299) { | ||
if ((_ref = res.statusCode) === 429 || _ref === 413) { | ||
if ((err != null) || !res || res.statusCode > 299) { | ||
if ((_ref = res != null ? res.statusCode : void 0) === 429 || _ref === 413) { | ||
_handle_http_load_errors(_this, err); | ||
@@ -171,3 +171,3 @@ return cb(err || new Error("status code: " + res.statusCode)); | ||
_this.emit("error", err); | ||
return cb(err || new Error("status code: " + res.statusCode)); | ||
return cb(err || new Error("status code: " + (res != null ? res.statusCode : void 0))); | ||
} else { | ||
@@ -174,0 +174,0 @@ _this.emit("logged"); |
{ | ||
"name": "sentry-node", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "simple Node wrapper around Sentry API", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
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
49124