heroku-client
Advanced tools
Comparing version 3.0.0-beta2 to 3.0.0-beta3
@@ -146,3 +146,3 @@ 'use strict' | ||
if (!this.retries) this.retries = 0 | ||
if (this.retries >= 7 || !this.isRetryAllowed(error)) return this.reject(error) | ||
if (this.retries >= 4 || !this.isRetryAllowed(error)) return this.reject(error) | ||
let noise = Math.random() * 100 | ||
@@ -243,3 +243,7 @@ setTimeout(() => this.request(), (1 << this.retries) * 1000 + noise) | ||
err.statusCode = res.statusCode | ||
err.body = this.parseBody(buffer) | ||
try { | ||
err.body = this.parseBody(buffer) | ||
} catch (e) { | ||
err.body = buffer | ||
} | ||
@@ -246,0 +250,0 @@ this.reject(err) |
{ | ||
"name": "heroku-client", | ||
"description": "A wrapper for the Heroku v3 API", | ||
"version": "3.0.0-beta2", | ||
"version": "3.0.0-beta3", | ||
"author": "Jeff Dickey", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
17861
355