eh-api-client
Advanced tools
Comparing version 0.41.5 to 0.42.0
@@ -25,4 +25,5 @@ var | ||
} | ||
// only retry if got an ECONNRESET/ETIMEDOUT/ESOCKETTIMEDOUT error | ||
return err.code === "ECONNRESET" || err.code === "ETIMEDOUT" || err.code === "ESOCKETTIMEDOUT"; | ||
// only retry if got an ECONNRESET/ETIMEDOUT/ESOCKETTIMEDOUT/EAI_AGAIN/ECONNREFUSED error | ||
// https://man7.org/linux/man-pages/man3/errno.3.html | ||
return err.code === "ECONNRESET" || err.code === "ETIMEDOUT" || err.code === "ESOCKETTIMEDOUT" || err.code === 'EAI_AGAIN' || err.code === 'ECONNREFUSED'; | ||
} | ||
@@ -29,0 +30,0 @@ }; |
@@ -243,3 +243,3 @@ var | ||
else { | ||
reject(buildError(res, data)); | ||
return reject(buildError(res, data)); | ||
} | ||
@@ -246,0 +246,0 @@ } |
{ | ||
"name": "eh-api-client", | ||
"version": "0.41.5", | ||
"version": "0.42.0", | ||
"description": "Node.js rest client", | ||
@@ -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
85107
2074