wonderful-fetch
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -23,3 +23,3 @@ (function (root, factory) { | ||
var SOURCE = 'library'; | ||
var VERSION = '0.0.4'; | ||
var VERSION = '0.0.5'; | ||
@@ -39,3 +39,3 @@ function WonderfulFetch(url, options) { | ||
var maxTries = options.tries - 1; | ||
// console.log('----maxTries', maxTries, url); | ||
var infinite = options.tries === 0; | ||
@@ -84,3 +84,3 @@ if (!url) { | ||
clearTimeout(timeoutHolder); | ||
if (tries > maxTries && maxTries > 0) { | ||
if (tries > maxTries && !infinite) { | ||
return reject(e); | ||
@@ -87,0 +87,0 @@ } else { |
{ | ||
"name": "wonderful-fetch", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A wrapper around fetch.", | ||
@@ -35,2 +35,2 @@ "main": "./dist/index.js", | ||
"runkitExampleFilename": "examples/process.js" | ||
} | ||
} |
13613