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

stubborn-fetch

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stubborn-fetch - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

dist/index.es.js

@@ -725,3 +725,5 @@ (function(self) {

var status = error.data.response && error.data.response.status;
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && status >= this.options.minimumStatusCodeForRetry;
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && (
// Always retry 429's (respecting Retry-After). To disable this, add 429 to `unretryableStatusCodes` option.
status === 429 || status >= this.options.minimumStatusCodeForRetry);
break;

@@ -728,0 +730,0 @@ }

@@ -729,3 +729,5 @@ 'use strict';

var status = error.data.response && error.data.response.status;
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && status >= this.options.minimumStatusCodeForRetry;
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && (
// Always retry 429's (respecting Retry-After). To disable this, add 429 to `unretryableStatusCodes` option.
status === 429 || status >= this.options.minimumStatusCodeForRetry);
break;

@@ -732,0 +734,0 @@ }

{
"name": "stubborn-fetch",
"version": "0.2.1",
"version": "0.2.2",
"description": "Fetch wrapper with built in retry",

@@ -5,0 +5,0 @@ "main": "dist/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