@sentry/browser
Advanced tools
Comparing version 8.30.0 to 8.31.0
@@ -71,4 +71,11 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
helpers.WINDOW.document.body.appendChild(script); | ||
const currentScript = helpers.WINDOW.document.currentScript; | ||
const parent = helpers.WINDOW.document.body || helpers.WINDOW.document.head || (currentScript && currentScript.parentElement); | ||
if (parent) { | ||
parent.appendChild(script); | ||
} else { | ||
throw new Error(`Could not find parent element to insert lazy-loaded ${name} script`); | ||
} | ||
try { | ||
@@ -75,0 +82,0 @@ await waitForLoad; |
@@ -69,4 +69,11 @@ import { getClient, SDK_VERSION } from '@sentry/core'; | ||
WINDOW.document.body.appendChild(script); | ||
const currentScript = WINDOW.document.currentScript; | ||
const parent = WINDOW.document.body || WINDOW.document.head || (currentScript && currentScript.parentElement); | ||
if (parent) { | ||
parent.appendChild(script); | ||
} else { | ||
throw new Error(`Could not find parent element to insert lazy-loaded ${name} script`); | ||
} | ||
try { | ||
@@ -73,0 +80,0 @@ await waitForLoad; |
{ | ||
"name": "@sentry/browser", | ||
"version": "8.30.0", | ||
"version": "8.31.0", | ||
"description": "Official Sentry SDK for browsers", | ||
@@ -42,12 +42,12 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry-internal/browser-utils": "8.30.0", | ||
"@sentry-internal/feedback": "8.30.0", | ||
"@sentry-internal/replay": "8.30.0", | ||
"@sentry-internal/replay-canvas": "8.30.0", | ||
"@sentry/core": "8.30.0", | ||
"@sentry/types": "8.30.0", | ||
"@sentry/utils": "8.30.0" | ||
"@sentry-internal/browser-utils": "8.31.0", | ||
"@sentry-internal/feedback": "8.31.0", | ||
"@sentry-internal/replay": "8.31.0", | ||
"@sentry-internal/replay-canvas": "8.31.0", | ||
"@sentry/core": "8.31.0", | ||
"@sentry/types": "8.31.0", | ||
"@sentry/utils": "8.31.0" | ||
}, | ||
"devDependencies": { | ||
"@sentry-internal/integration-shims": "8.30.0", | ||
"@sentry-internal/integration-shims": "8.31.0", | ||
"fake-indexeddb": "^4.0.1" | ||
@@ -54,0 +54,0 @@ }, |
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
970451
9811
+ Added@sentry-internal/browser-utils@8.31.0(transitive)
+ Added@sentry-internal/feedback@8.31.0(transitive)
+ Added@sentry-internal/replay@8.31.0(transitive)
+ Added@sentry-internal/replay-canvas@8.31.0(transitive)
+ Added@sentry/core@8.31.0(transitive)
+ Added@sentry/types@8.31.0(transitive)
+ Added@sentry/utils@8.31.0(transitive)
- Removed@sentry-internal/browser-utils@8.30.0(transitive)
- Removed@sentry-internal/feedback@8.30.0(transitive)
- Removed@sentry-internal/replay@8.30.0(transitive)
- Removed@sentry-internal/replay-canvas@8.30.0(transitive)
- Removed@sentry/core@8.30.0(transitive)
- Removed@sentry/types@8.30.0(transitive)
- Removed@sentry/utils@8.30.0(transitive)
Updated@sentry/core@8.31.0
Updated@sentry/types@8.31.0
Updated@sentry/utils@8.31.0