This package has been deprecated

Author message:

n-eager-fetch is no longer supported. It will get security patches up until 2024-07-01

n-eager-fetch

7.2.0 • Public • Published

n-eager-fetch

Extension of fetch which supports passing a retry value in to options. retry should be an integer, n, and a fetch will be retried n times (i.e. n + 1 fetches in total) before failing.

Supports an allowedStatusCodes value in options. This is an array of integers of status codes that if responded with, won't attempt to retry.

Fetches also have a stopRetrying() method which will fulfil the promise with the reult of the current in-flight fetch and not send any more requests

Readme

Keywords

none

Package Sidebar

Install

npm i n-eager-fetch

Weekly Downloads

1,937

Version

7.2.0

License

none

Unpacked Size

3.29 kB

Total Files

12

Last publish

Collaborators

  • aendra
  • alexwilson
  • chee
  • emmalewis
  • hamza.samih
  • notlee
  • robertboulton
  • rowanmanning
  • seraph2000
  • the-ft