Skip to content

Commit

Permalink
5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbern committed Sep 14, 2021
1 parent a04ed2d commit c7335d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/fetch-retry.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@
// eslint-disable-next-line no-undef
return new Promise(function (resolve, reject) {
var wrappedFetch = function (attempt) {
var _input = input instanceof Request ? input.clone() : input;
var _input =
typeof Request !== 'undefined' && input instanceof Request
? input.clone()
: input;
fetch(_input, init)
.then(function (response) {
if (Array.isArray(retryOn) && retryOn.indexOf(response.status) === -1) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fetch-retry",
"version": "5.0.0",
"version": "5.0.1",
"description": "Extend any fetch library with retry functionality",
"repository": "https://github.com/jonbern/fetch-retry.git",
"main": "index.js",
Expand Down

0 comments on commit c7335d8

Please sign in to comment.