Socket
Socket
Sign inDemoInstall

get-it

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-it - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"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)
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc