Comparing version 0.1.0 to 0.1.1
@@ -6,2 +6,6 @@ All notable changes to this project will be documented in this file. | ||
## [0.1.1] - 2019-02-16 | ||
### Added | ||
- possibility not to use totalTimeout (define as Infinity) | ||
## [0.1.0] - 2019-02-16 | ||
@@ -8,0 +12,0 @@ ### Added |
@@ -228,2 +228,3 @@ "use strict"; | ||
var currentController, | ||
globalTimeout, | ||
aborted = false, | ||
@@ -275,3 +276,3 @@ isGlobalTimeouted = false; | ||
if (!(fineOptions.totalTimeout > Date.now() - start + waitTime)) { | ||
if (!(!globalTimeout || fineOptions.totalTimeout > Date.now() - start + waitTime)) { | ||
_context.next = 12; | ||
@@ -289,4 +290,3 @@ break; | ||
case 12: | ||
globalTimeout.stop(); // eslint-disable-line no-use-before-define | ||
globalTimeout.stop(); | ||
globalBreak(); | ||
@@ -371,3 +371,3 @@ | ||
}).finally(function () { | ||
globalTimeout.stop(); // eslint-disable-line no-use-before-define | ||
globalTimeout && globalTimeout.stop(); // eslint-disable-line no-use-before-define | ||
}); | ||
@@ -380,3 +380,6 @@ | ||
var globalTimeout = new _Timeout.default(globalBreak, fineOptions.totalTimeout, true); | ||
if (fineOptions.totalTimeout > 0 && Number.isFinite(fineOptions.totalTimeout)) { | ||
globalTimeout = new _Timeout.default(globalBreak, fineOptions.totalTimeout, true); | ||
} | ||
return future; | ||
@@ -383,0 +386,0 @@ } |
{ | ||
"name": "api-reach", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": "https://github.com/dzek69/api-reach.git", | ||
@@ -5,0 +5,0 @@ "author": "Jacek Nowacki @dzek69 <git-public@dzek.eu>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
181461
2190