@essentials/request-timeout
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -54,5 +54,5 @@ 'use strict' | ||
const loop = () => { | ||
const current = (0, _performanceNow.default)() | ||
const delta = current - start | ||
delta >= delay ? fn.call() : (handle.value = (0, _raf.default)(loop)) | ||
;(0, _performanceNow.default)() - start >= delay | ||
? fn.call() | ||
: (handle.value = (0, _raf.default)(loop)) | ||
} | ||
@@ -59,0 +59,0 @@ |
@@ -16,5 +16,3 @@ import raf, {cancel} from 'raf' | ||
const loop = () => { | ||
const current = now() | ||
const delta = current - start | ||
delta >= delay ? fn.call() : (handle.value = raf(loop)) | ||
now() - start >= delay ? fn.call() : (handle.value = raf(loop)) | ||
} | ||
@@ -21,0 +19,0 @@ |
{ | ||
"name": "@essentials/request-timeout", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Jared Lunde <jared@BeStellar.co> (https://BeStellar.co)", |
@@ -15,6 +15,3 @@ import raf, {cancel} from 'raf' | ||
const loop = () => { | ||
const current = now() | ||
const delta = current - start | ||
delta >= delay | ||
now() - start >= delay | ||
? fn.call() | ||
@@ -21,0 +18,0 @@ : handle.value = raf(loop) |
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
5193
90