@sentry-internal/browser-utils
Advanced tools
Comparing version 8.3.0 to 8.4.0
@@ -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 @@ } |
{ | ||
"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
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
642620
6768
+ Added@sentry/core@8.4.0(transitive)
+ Added@sentry/types@8.4.0(transitive)
+ Added@sentry/utils@8.4.0(transitive)
- Removed@sentry/core@8.3.0(transitive)
- Removed@sentry/types@8.3.0(transitive)
- Removed@sentry/utils@8.3.0(transitive)
Updated@sentry/core@8.4.0
Updated@sentry/types@8.4.0
Updated@sentry/utils@8.4.0