@datadog/browser-core
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -11,4 +11,4 @@ "use strict"; | ||
hasCache = true; | ||
window.clearTimeout(timeout); | ||
timeout = window.setTimeout(function () { | ||
clearTimeout(timeout); | ||
timeout = setTimeout(function () { | ||
hasCache = false; | ||
@@ -15,0 +15,0 @@ }, exports.COOKIE_ACCESS_DELAY); |
@@ -124,3 +124,3 @@ "use strict"; | ||
stopCallbacks.push(stop); | ||
var visibilityCheckInterval = window.setInterval(expandSessionWhenVisible, exports.VISIBILITY_CHECK_DELAY); | ||
var visibilityCheckInterval = setInterval(expandSessionWhenVisible, exports.VISIBILITY_CHECK_DELAY); | ||
stopCallbacks.push(function () { | ||
@@ -127,0 +127,0 @@ clearInterval(visibilityCheckInterval); |
@@ -66,3 +66,3 @@ "use strict"; | ||
inWaitPeriod = true; | ||
pendingTimeoutId = window.setTimeout(function () { | ||
pendingTimeoutId = setTimeout(function () { | ||
if (needTrailingExecution && hasPendingExecution) { | ||
@@ -76,3 +76,3 @@ fn(); | ||
cancel: function () { | ||
window.clearTimeout(pendingTimeoutId); | ||
clearTimeout(pendingTimeoutId); | ||
inWaitPeriod = false; | ||
@@ -79,0 +79,0 @@ hasPendingExecution = false; |
@@ -9,4 +9,4 @@ import { findCommaSeparatedValue, generateUUID, ONE_SECOND } from '../tools/utils'; | ||
hasCache = true; | ||
window.clearTimeout(timeout); | ||
timeout = window.setTimeout(function () { | ||
clearTimeout(timeout); | ||
timeout = setTimeout(function () { | ||
hasCache = false; | ||
@@ -13,0 +13,0 @@ }, COOKIE_ACCESS_DELAY); |
@@ -116,3 +116,3 @@ import { cacheCookieAccess, COOKIE_ACCESS_DELAY } from '../browser/cookie'; | ||
stopCallbacks.push(stop); | ||
var visibilityCheckInterval = window.setInterval(expandSessionWhenVisible, VISIBILITY_CHECK_DELAY); | ||
var visibilityCheckInterval = setInterval(expandSessionWhenVisible, VISIBILITY_CHECK_DELAY); | ||
stopCallbacks.push(function () { | ||
@@ -119,0 +119,0 @@ clearInterval(visibilityCheckInterval); |
@@ -64,3 +64,3 @@ import { monitor } from '../domain/internalMonitoring'; | ||
inWaitPeriod = true; | ||
pendingTimeoutId = window.setTimeout(function () { | ||
pendingTimeoutId = setTimeout(function () { | ||
if (needTrailingExecution && hasPendingExecution) { | ||
@@ -74,3 +74,3 @@ fn(); | ||
cancel: function () { | ||
window.clearTimeout(pendingTimeoutId); | ||
clearTimeout(pendingTimeoutId); | ||
inWaitPeriod = false; | ||
@@ -77,0 +77,0 @@ hasPendingExecution = false; |
{ | ||
"name": "@datadog/browser-core", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"license": "Apache-2.0", | ||
@@ -26,3 +26,3 @@ "main": "cjs/index.js", | ||
}, | ||
"gitHead": "e137aec8b37a9a855f4930bd6305c389828f0da9" | ||
"gitHead": "0c424d5c2aa502869576e9eeb090b08e3da22912" | ||
} |
@@ -23,4 +23,4 @@ import { findCommaSeparatedValue, generateUUID, ONE_SECOND } from '../tools/utils' | ||
hasCache = true | ||
window.clearTimeout(timeout) | ||
timeout = window.setTimeout(() => { | ||
clearTimeout(timeout) | ||
timeout = setTimeout(() => { | ||
hasCache = false | ||
@@ -27,0 +27,0 @@ }, COOKIE_ACCESS_DELAY) |
@@ -160,3 +160,3 @@ import { cacheCookieAccess, COOKIE_ACCESS_DELAY, CookieCache, CookieOptions } from '../browser/cookie' | ||
const visibilityCheckInterval = window.setInterval(expandSessionWhenVisible, VISIBILITY_CHECK_DELAY) | ||
const visibilityCheckInterval = setInterval(expandSessionWhenVisible, VISIBILITY_CHECK_DELAY) | ||
stopCallbacks.push(() => { | ||
@@ -163,0 +163,0 @@ clearInterval(visibilityCheckInterval) |
@@ -66,3 +66,3 @@ import { monitor } from '../domain/internalMonitoring' | ||
inWaitPeriod = true | ||
pendingTimeoutId = window.setTimeout(() => { | ||
pendingTimeoutId = setTimeout(() => { | ||
if (needTrailingExecution && hasPendingExecution) { | ||
@@ -76,3 +76,3 @@ fn() | ||
cancel: () => { | ||
window.clearTimeout(pendingTimeoutId) | ||
clearTimeout(pendingTimeoutId) | ||
inWaitPeriod = false | ||
@@ -79,0 +79,0 @@ hasPendingExecution = false |
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
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
6
1
673611