Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "get-it", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Generic HTTP request library for node and browsers", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
const objectAssign = require('object-assign') | ||
const defaultShouldRetry = require('../util/node-shouldRetry') | ||
module.exports = (opts = {}) => { | ||
const retry = module.exports = (opts = {}) => { | ||
const maxRetries = opts.maxRetries || 5 | ||
@@ -33,4 +33,6 @@ const retryDelay = opts.retryDelay || getRetryDelay | ||
retry.shouldRetry = defaultShouldRetry | ||
function getRetryDelay(attemptNum) { | ||
return (100 * Math.pow(2, attemptNum)) + (Math.random() * 100) | ||
} |
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
378345
2051