Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-call

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-call - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

9

lib/http.js

@@ -214,4 +214,9 @@ 'use strict';

async maybeRetry(err, retries) {
const allowed = require('is-retry-allowed');
if (retries < 5 && err.code && allowed(err)) {
const allowed = err => {
if (retries >= 5) return false;
if (!err.code) return false;
if (err.code === 'ENOTFOUND') return true;
return require('is-retry-allowed')(err);
};
if (allowed(err)) {
let noise = Math.random() * 100;

@@ -218,0 +223,0 @@ await this._wait((1 << retries) * 1000 + noise);

{
"name": "http-call",
"description": "make http requests",
"version": "2.1.2",
"version": "2.1.3",
"author": "Jeff Dickey @dickeyxxx",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/dickeyxxx/http-call/issues",

Sorry, the diff of this file is not supported yet

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