Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spotlightjs/overlay

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spotlightjs/overlay - npm Package Compare versions

Comparing version 1.8.2 to 2.0.0-alpha.1

dist/index-28835ac3.js

2

./dist/sentry-spotlight.js

@@ -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

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