Socket
Socket
Sign inDemoInstall

@sentry/utils

Package Overview
Dependencies
Maintainers
9
Versions
499
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/utils - npm Package Compare versions

Comparing version 4.6.4 to 4.6.5

7

esm/supports.d.ts

@@ -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}.

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc