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

fetch-retry

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-retry - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "fetch-retry",
"version": "1.1.0",
"version": "1.1.1",
"description": "Adds retry functionality to the Fetch API",

@@ -5,0 +5,0 @@ "repository": "https://github.com/jonbern/fetch-retry.git",

@@ -16,3 +16,3 @@ # fetch-retry

## Example
`fetch-retry` works the same way as `fetch`, but also accepts `retries` and `retryDelay` in the `options` argument. When omitted it will default to 3 retries with a 1000ms retry delay.
`fetch-retry` is used the same way as `fetch`, but also accepts `retries` and `retryDelay` on the optional `init` object. When omitted these will default to 3 retries and a 1000ms retry delay.

@@ -36,9 +36,1 @@ ```javascript

```
### Caveats
The `fetch` specification differs from jQuery.ajax() in mainly two ways that bear keeping in mind:
* The Promise returned from fetch() won't reject on HTTP error status even if the response is a HTTP 404 or 500. Instead, it will resolve normally, and it will only reject on network failure, or if anything prevented the request from completing.
Source: [Github fetch](https://github.com/github/fetch#caveats)
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