Socket
Socket
Sign inDemoInstall

@sentry-internal/browser-utils

Package Overview
Dependencies
Maintainers
9
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/browser-utils - npm Package Compare versions

Comparing version 8.3.0 to 8.4.0

10

cjs/getNativeImplementation.js

@@ -16,10 +16,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

/**
* isNative checks if the given function is a native implementation
*/
// eslint-disable-next-line @typescript-eslint/ban-types
function isNative(func) {
return func && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(func.toString());
}
/**
* Get the native implementation of a browser function.

@@ -44,3 +36,3 @@ *

// Fast path to avoid DOM I/O
if (isNative(impl)) {
if (utils.isNativeFunction(impl)) {
return (cachedImplementations[name] = impl.bind(types.WINDOW) );

@@ -47,0 +39,0 @@ }

@@ -1,2 +0,2 @@

import { logger } from '@sentry/utils';
import { isNativeFunction, logger } from '@sentry/utils';
import { DEBUG_BUILD } from './debug-build.js';

@@ -14,10 +14,2 @@ import { WINDOW } from './types.js';

/**
* isNative checks if the given function is a native implementation
*/
// eslint-disable-next-line @typescript-eslint/ban-types
function isNative(func) {
return func && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(func.toString());
}
/**
* Get the native implementation of a browser function.

@@ -42,3 +34,3 @@ *

// Fast path to avoid DOM I/O
if (isNative(impl)) {
if (isNativeFunction(impl)) {
return (cachedImplementations[name] = impl.bind(WINDOW) );

@@ -45,0 +37,0 @@ }

8

package.json
{
"name": "@sentry-internal/browser-utils",
"version": "8.3.0",
"version": "8.4.0",
"description": "Browser Utilities for all Sentry JavaScript SDKs",

@@ -45,7 +45,7 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "8.3.0",
"@sentry/types": "8.3.0",
"@sentry/utils": "8.3.0"
"@sentry/core": "8.4.0",
"@sentry/types": "8.4.0",
"@sentry/utils": "8.4.0"
},
"sideEffects": 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

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