@sentry/utils
Advanced tools
Comparing version 4.6.4 to 4.6.5
@@ -37,9 +37,2 @@ /** | ||
/** | ||
* Tells whether current environment supports sendBeacon API | ||
* {@link supportsBeacon}. | ||
* | ||
* @returns Answer to the given question. | ||
*/ | ||
export declare function supportsBeacon(): boolean; | ||
/** | ||
* Tells whether current environment supports ReportingObserver API | ||
@@ -46,0 +39,0 @@ * {@link supportsReportingObserver}. |
@@ -93,12 +93,2 @@ import { getGlobalObject } from './misc'; | ||
/** | ||
* Tells whether current environment supports sendBeacon API | ||
* {@link supportsBeacon}. | ||
* | ||
* @returns Answer to the given question. | ||
*/ | ||
export function supportsBeacon() { | ||
const global = getGlobalObject(); | ||
return 'navigator' in global && 'sendBeacon' in global.navigator; | ||
} | ||
/** | ||
* Tells whether current environment supports ReportingObserver API | ||
@@ -105,0 +95,0 @@ * {@link supportsReportingObserver}. |
{ | ||
"name": "@sentry/utils", | ||
"version": "4.6.4", | ||
"version": "4.6.5", | ||
"description": "Utilities for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -37,9 +37,2 @@ /** | ||
/** | ||
* Tells whether current environment supports sendBeacon API | ||
* {@link supportsBeacon}. | ||
* | ||
* @returns Answer to the given question. | ||
*/ | ||
export declare function supportsBeacon(): boolean; | ||
/** | ||
* Tells whether current environment supports ReportingObserver API | ||
@@ -46,0 +39,0 @@ * {@link supportsReportingObserver}. |
@@ -100,13 +100,2 @@ "use strict"; | ||
/** | ||
* Tells whether current environment supports sendBeacon API | ||
* {@link supportsBeacon}. | ||
* | ||
* @returns Answer to the given question. | ||
*/ | ||
function supportsBeacon() { | ||
var global = misc_1.getGlobalObject(); | ||
return 'navigator' in global && 'sendBeacon' in global.navigator; | ||
} | ||
exports.supportsBeacon = supportsBeacon; | ||
/** | ||
* Tells whether current environment supports ReportingObserver API | ||
@@ -113,0 +102,0 @@ * {@link supportsReportingObserver}. |
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
270100
3747