fetch-retry
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11831
35