@spotlightjs/overlay
Advanced tools
Comparing version 1.8.2 to 2.0.0-alpha.1
@@ -1,2 +0,2 @@ | ||
import { R as e, a as o, b as t, h as n, j as r, i, d as p, e as c, f as l, o as g, s as h, t as v, v as R } from "./index-4728f540.js"; | ||
import { R as e, a as o, b as t, h as n, j as r, i, d as p, e as c, f as l, o as g, s as h, t as v, v as R } from "./index-28835ac3.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ e as React, |
@@ -1,2 +0,2 @@ | ||
import { R as e, a as o, b as t, h as n, j as r, i, d as p, e as c, f as l, o as g, s as h, t as v, v as R } from "./index-4728f540.js"; | ||
import { R as e, a as o, b as t, h as n, j as r, i, d as p, e as c, f as l, o as g, s as h, t as v, v as R } from "./index-28835ac3.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ e as React, |
@@ -1,3 +0,3 @@ | ||
import { EventProcessor, Hub, Integration } from '@sentry/types'; | ||
type SpotlightBrowserIntegationOptions = { | ||
import { Client, Event } from '@sentry/types'; | ||
type SpotlightBrowserIntegrationOptions = { | ||
/** | ||
@@ -11,14 +11,28 @@ * The URL of the Sidecar instance to connect and forward events to. | ||
}; | ||
export declare class Spotlight implements Integration { | ||
/** | ||
* A Sentry integration for Spotlight integration that the Overlay will inject automatically. | ||
* This integration does a couple of things: | ||
* | ||
* - Try to enrich stack traces by querying a potentially existing context lines integration | ||
* on the server side (@see packages/astro/src/vite/source-context.ts) | ||
* - Drop transactions created from interactions with the Spotlight UI | ||
* - Forward Sentry events sent from the browser SDK to the Sidecar instance running on | ||
* either on http://localhost:8969/stream or on the supplied `sidecarUrl` option. | ||
* | ||
* @param options - Configuration options for the integration ({@link SpotlightBrowserIntegrationOptions}) | ||
* | ||
* @returns Sentry integration for Spotlight. | ||
*/ | ||
export declare const spotlightIntegration: (options?: SpotlightBrowserIntegrationOptions) => { | ||
name: string; | ||
private _sidecarUrl; | ||
constructor(options?: SpotlightBrowserIntegationOptions); | ||
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void; | ||
} | ||
setupOnce: () => void; | ||
setup: () => void; | ||
processEvent: (event: Event) => Promise<Event | null>; | ||
afterAllSetup: (client: Client) => void; | ||
}; | ||
type FetchImpl = typeof fetch; | ||
/** | ||
* We want to get an unpatched fetch implementation to avoid capturing our own calls. | ||
* TODO: We might need to expose this as a utitly function so people can make requests without the SDK picking it put | ||
*/ | ||
export declare function getNativeFetchImplementation(): FetchImpl; | ||
export {}; |
export declare function activateLogger(): void; | ||
export declare function deactivateLogger(): void; | ||
export declare function log(...args: unknown[]): void; | ||
export declare function warn(...args: unknown[]): void; |
{ | ||
"name": "@spotlightjs/overlay", | ||
"description": "The overlay of Spotlight to add debug interface to your web app.", | ||
"version": "1.8.2", | ||
"version": "2.0.0-alpha.1", | ||
"license": "Apache-2.0", | ||
@@ -21,3 +21,4 @@ "type": "module", | ||
"devDependencies": { | ||
"@sentry/types": "^7.77.0", | ||
"@sentry/types": "^8.0.0-alpha.7", | ||
"@sentry/utils": "^8.0.0-alpha.7", | ||
"@types/react": "^18.2.37", | ||
@@ -38,3 +39,2 @@ "@types/react-dom": "^18.2.15", | ||
"@fontsource/raleway": "^5.0.8", | ||
"@sentry/utils": "^7.77.0", | ||
"autoprefixer": "^10.4.15", | ||
@@ -41,0 +41,0 @@ "dayjs": "^1.11.9", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11291935
47010
2