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.3.1 to 1.4.0

dist/src/components/RingChart.d.ts

3

dist/src/integrations/sentry/components/Events/Error/Frame.d.ts
import { EventFrame } from '../../../types';
export default function Frame({ frame, defaultExpand }: {
export default function Frame({ frame, defaultExpand, platform, }: {
frame: EventFrame;
defaultExpand: boolean;
platform?: string;
}): import("react/jsx-runtime").JSX.Element;

@@ -50,1 +50,39 @@ export declare const RESOURCES_SORT_KEYS: {

})[];
export declare const WEB_VITALS_SORT_KEYS: {
pages: string;
lcp: string;
fcp: string;
fid: string;
cls: string;
ttfb: string;
score: string;
};
export declare const WEB_VITALS_HEADERS: ({
id: string;
title: string;
sortKey: string;
primary: boolean;
} | {
id: string;
title: string;
sortKey: string;
primary?: undefined;
})[];
export type WebVitals = 'lcp' | 'fcp' | 'cls' | 'ttfb' | 'fid';
export declare const PERFORMANCE_SCORE_PROFILES: {
profiles: {
name: string;
scoreComponents: {
measurement: string;
weight: number;
p10: number;
p50: number;
optional: boolean;
}[];
condition: {
op: string;
name: string;
value: string;
};
}[];
};

@@ -0,1 +1,2 @@

import { Measurements } from '@sentry/types';
export type FrameVars = {

@@ -5,3 +6,3 @@ [key: string]: string;

export type EventFrame = {
filename: string;
filename?: string;
abs_path?: string;

@@ -58,2 +59,3 @@ function?: string;

sdk?: Sdk;
measurements?: Measurements;
};

@@ -122,2 +124,67 @@ export type Context = {

};
export type SentryEventWithPerformanceData = Omit<SentryEvent, 'measurements'> & {
measurements: Record<string, {
value: number;
unit: string;
}> & {
'score.total': {
value: number;
unit: string;
};
'score.fcp': {
value: number;
unit: string;
};
'score.lcp': {
value: number;
unit: string;
};
'score.fid': {
value: number;
unit: string;
};
'score.cls': {
value: number;
unit: string;
};
'score.ttfb': {
value: number;
unit: string;
};
'score.weight.fcp': {
value: number;
unit: string;
};
'score.weight.lcp': {
value: number;
unit: string;
};
'score.weight.fid': {
value: number;
unit: string;
};
'score.weight.cls': {
value: number;
unit: string;
};
'score.weight.ttfb': {
value: number;
unit: string;
};
};
};
export type MetricScoreProps = {
fcpScore: number;
lcpScore: number;
clsScore: number;
fidScore: number;
ttfbScore: number;
};
export type MetricWeightsProps = {
fcp: number;
lcp: number;
cls: number;
fid: number;
ttfb: number;
};
export {};

@@ -20,3 +20,3 @@ export declare const SECOND = 1000;

export declare function getSpanDurationClassName(duration: number): "text-red-400" | "text-orange-400" | "text-yellow-400" | undefined;
export declare function getFormattedNumber(num: number): string;
export declare function getFormattedNumber(num: number, decimalPlaces?: number): string;
export declare function getFormattedDuration(duration: number): string;
/**
* Normalizes SDK name to a platform. Can be as specific or unspecific as we support different platforms and SDKs.
*/
export declare function sdkToPlatform(name: string): "javascript.astro" | "javascript" | "python" | "php" | "ruby" | "dotnet" | "unknown";
export declare function sdkToPlatform(name: string): "javascript.astro" | "javascript" | "java" | "python" | "php" | "ruby" | "dotnet" | "unknown";
{
"name": "@spotlightjs/overlay",
"description": "The overlay of Spotlight to add debug interface to your web app.",
"version": "1.3.1",
"version": "1.4.0",
"license": "Apache-2.0",

@@ -32,3 +32,3 @@ "type": "module",

"typescript": "^5.0.2",
"vite": "^4.5.1",
"vite": "^4.5.2",
"vite-plugin-dts": "^3.5.2",

@@ -35,0 +35,0 @@ "vite-plugin-svgr": "^3.2.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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

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