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

@bbc/http-transport

Package Overview
Dependencies
Maintainers
0
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bbc/http-transport - npm Package Compare versions

Comparing version 4.5.0 to 4.5.1

5

lib/client.js

@@ -356,2 +356,5 @@ 'use strict';

/**
* Retries only work on critical HTTP 5XX errors
*/
function retry(fn, ctx) {

@@ -364,3 +367,3 @@ ctx.retryAttempts = [];

.catch((err) => {
if (maxAttempts > 0) {
if (i < maxAttempts && isCriticalError(err) && ctx.retryDelay && ctx.retryDelay > 0) {
const delayBy = rejectedPromise(ctx.retryDelay);

@@ -367,0 +370,0 @@ return delayBy(err);

3

lib/context.js

@@ -13,2 +13,5 @@ 'use strict';

constructor(defaults) {
/**
* Retries only work on critical HTTP 5XX errors
*/
this.retries = 0;

@@ -15,0 +18,0 @@ this.redirect = undefined;

{
"name": "@bbc/http-transport",
"version": "4.5.0",
"version": "4.5.1",
"description": "A flexible, modular REST client built for ease-of-use and resilience.",

@@ -5,0 +5,0 @@ "main": "index.js",

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