@sentry/svelte
Advanced tools
@@ -1,2 +0,2 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
@@ -33,3 +33,3 @@ const preprocessors = require('./preprocessors.js'); | ||
const shouldTrackComponents = mergedOptions.componentTracking && mergedOptions.componentTracking.trackComponents; | ||
const shouldTrackComponents = mergedOptions.componentTracking?.trackComponents; | ||
if (shouldTrackComponents) { | ||
@@ -36,0 +36,0 @@ const firstPassPreproc = preprocessors.componentTrackingPreprocessor(mergedOptions.componentTracking); |
@@ -1,2 +0,2 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
@@ -3,0 +3,0 @@ const UI_SVELTE_INIT = 'ui.svelte.init'; |
@@ -1,2 +0,2 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
@@ -3,0 +3,0 @@ const browser = require('@sentry/browser'); |
@@ -1,2 +0,2 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
@@ -3,0 +3,0 @@ const browser = require('@sentry/browser'); |
@@ -1,2 +0,2 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
@@ -3,0 +3,0 @@ const MagicString = require('magic-string'); |
@@ -1,2 +0,2 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
@@ -59,4 +59,3 @@ const browser = require('@sentry/browser'); | ||
function isSvelteKitApp() { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return core.getDomElement('div#svelte-announcer') !== null; | ||
return !!browser.WINDOW.document.querySelector('div#svelte-announcer'); | ||
} | ||
@@ -63,0 +62,0 @@ |
@@ -31,3 +31,3 @@ import { componentTrackingPreprocessor, defaultComponentTrackingOptions } from './preprocessors.js'; | ||
const shouldTrackComponents = mergedOptions.componentTracking && mergedOptions.componentTracking.trackComponents; | ||
const shouldTrackComponents = mergedOptions.componentTracking?.trackComponents; | ||
if (shouldTrackComponents) { | ||
@@ -34,0 +34,0 @@ const firstPassPreproc = componentTrackingPreprocessor(mergedOptions.componentTracking); |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"8.50.0","sideEffects":false} | ||
{"type":"module","version":"9.0.0-alpha.0","sideEffects":false} |
@@ -1,3 +0,3 @@ | ||
import { init as init$1, addEventProcessor } from '@sentry/browser'; | ||
import { applySdkMetadata, getDomElement } from '@sentry/core'; | ||
import { init as init$1, addEventProcessor, WINDOW } from '@sentry/browser'; | ||
import { applySdkMetadata } from '@sentry/core'; | ||
@@ -57,4 +57,3 @@ /** | ||
function isSvelteKitApp() { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return getDomElement('div#svelte-announcer') !== null; | ||
return !!WINDOW.document.querySelector('div#svelte-announcer'); | ||
} | ||
@@ -61,0 +60,0 @@ |
{ | ||
"name": "@sentry/svelte", | ||
"version": "8.50.0", | ||
"version": "9.0.0-alpha.0", | ||
"description": "Official Sentry SDK for Svelte", | ||
@@ -10,3 +10,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"engines": { | ||
"node": ">=14.18" | ||
"node": ">=18" | ||
}, | ||
@@ -33,3 +33,3 @@ "files": [ | ||
"typesVersions": { | ||
"<4.9": { | ||
"<5.0": { | ||
"build/types/index.d.ts": [ | ||
@@ -44,4 +44,4 @@ "build/types-ts3.8/index.d.ts" | ||
"dependencies": { | ||
"@sentry/browser": "8.50.0", | ||
"@sentry/core": "8.50.0", | ||
"@sentry/browser": "9.0.0-alpha.0", | ||
"@sentry/core": "9.0.0-alpha.0", | ||
"magic-string": "^0.30.0" | ||
@@ -48,0 +48,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
85001
-0.24%859
-0.23%1
Infinity%