sitepong 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,112 +1,8 @@
1
1
  import React, { Component, ReactNode, ErrorInfo } from 'react';
2
+ import { S as SitePongConfig, C as CaptureContext, L as LogLevel, U as User, a as addBreadcrumb } from '../breadcrumbs-DwXK5gNn.mjs';
2
3
  import { TrackProperties, UserTraits, GroupTraits, DeviceSignals, WebVitals } from '../index.mjs';
3
4
  export { CapturedError, CronCheckinOptions, CronHandle, DatabaseQueryEvent, DatabaseTrackerConfig, ErrorContext, FraudCheckResult, MetricOptions, PerformanceConfig, PerformanceSpan, PerformanceTransaction, ProfileData, ProfileFrame, ProfilerConfig, ReplayConfig, ReplayEvent, SitePongConfig, SitePongInitConfig, TraceContext, TracePropagator, VisitorIdResult, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, endSpan, endTransaction, extractTrace, flush, flushMetrics, flushProfiles, generateSpanId, generateTraceId, getAllFlags, getAnonymousId, getDbNPlusOnePatterns, getDbQueryCount, getDeviceSignals, getFlag, getFraudCheck, getLatestProfile, getProfiles, getReplaySessionId, getVariant, getVariantPayload, getVisitorId, getWebVitals, group, identify, init, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags } from '../index.mjs';
4
5
 
5
- /**
6
- * SitePong SDK Types
7
- */
8
- interface SitePongConfig {
9
- /** DSN in format: https://<public_key>@ingest.sitepong.com/<project_id> */
10
- dsn?: string;
11
- /** API key in format: sp_live_xxx or sp_test_xxx */
12
- apiKey?: string;
13
- /** Environment name (e.g., 'production', 'staging', 'development') */
14
- environment?: string;
15
- /** Release/version string */
16
- release?: string;
17
- /** Enable debug logging */
18
- debug?: boolean;
19
- /** Enable/disable the SDK entirely */
20
- enabled?: boolean;
21
- /** Sample rate for errors (0.0 to 1.0) */
22
- sampleRate?: number;
23
- /** Maximum number of breadcrumbs to keep */
24
- maxBreadcrumbs?: number;
25
- /** Hook to modify or filter events before sending */
26
- beforeSend?: (event: ErrorEvent) => ErrorEvent | null;
27
- /** Auto-capture configuration */
28
- autoCapture?: {
29
- errors?: boolean;
30
- unhandledRejections?: boolean;
31
- console?: boolean;
32
- };
33
- /** Custom API endpoint (for self-hosted) */
34
- apiEndpoint?: string;
35
- }
36
- interface User {
37
- id?: string;
38
- email?: string;
39
- username?: string;
40
- [key: string]: unknown;
41
- }
42
- interface Breadcrumb {
43
- type: "default" | "http" | "navigation" | "ui" | "console" | "error";
44
- category?: string;
45
- message?: string;
46
- level?: "fatal" | "error" | "warning" | "info" | "debug";
47
- timestamp: number;
48
- data?: Record<string, unknown>;
49
- }
50
- interface ErrorEvent {
51
- event_id: string;
52
- timestamp: string;
53
- level: "fatal" | "error" | "warning" | "info" | "debug";
54
- message: string;
55
- exception?: {
56
- type: string;
57
- value: string;
58
- stacktrace?: StackFrame[];
59
- };
60
- tags?: Record<string, string>;
61
- extra?: Record<string, unknown>;
62
- user?: User;
63
- breadcrumbs?: Breadcrumb[];
64
- context?: {
65
- browser?: BrowserContext;
66
- os?: OSContext;
67
- device?: DeviceContext;
68
- [key: string]: unknown;
69
- };
70
- environment?: string;
71
- release?: string;
72
- request?: {
73
- url?: string;
74
- method?: string;
75
- headers?: Record<string, string>;
76
- };
77
- }
78
- interface StackFrame {
79
- filename?: string;
80
- function?: string;
81
- lineno?: number;
82
- colno?: number;
83
- in_app?: boolean;
84
- context_line?: string;
85
- pre_context?: string[];
86
- post_context?: string[];
87
- }
88
- interface BrowserContext {
89
- name?: string;
90
- version?: string;
91
- }
92
- interface OSContext {
93
- name?: string;
94
- version?: string;
95
- }
96
- interface DeviceContext {
97
- family?: string;
98
- model?: string;
99
- brand?: string;
100
- }
101
- type LogLevel = "fatal" | "error" | "warning" | "info" | "debug";
102
- interface CaptureContext {
103
- tags?: Record<string, string>;
104
- extra?: Record<string, unknown>;
105
- user?: User;
106
- level?: LogLevel;
107
- fingerprint?: string[];
108
- }
109
-
110
6
  interface SitePongContextValue {
111
7
  isInitialized: boolean;
112
8
  }
@@ -215,11 +111,6 @@ declare class SitePongErrorBoundary extends Component<SitePongErrorBoundaryProps
215
111
  render(): ReactNode;
216
112
  }
217
113
 
218
- /**
219
- * Add a breadcrumb to the trail
220
- */
221
- declare function addBreadcrumb(breadcrumb: Omit<Breadcrumb, "timestamp">): void;
222
-
223
114
  /**
224
115
  * Hook to access all SitePong SDK methods
225
116
  *
@@ -1,112 +1,8 @@
1
1
  import React, { Component, ReactNode, ErrorInfo } from 'react';
2
+ import { S as SitePongConfig, C as CaptureContext, L as LogLevel, U as User, a as addBreadcrumb } from '../breadcrumbs-DwXK5gNn.js';
2
3
  import { TrackProperties, UserTraits, GroupTraits, DeviceSignals, WebVitals } from '../index.js';
3
4
  export { CapturedError, CronCheckinOptions, CronHandle, DatabaseQueryEvent, DatabaseTrackerConfig, ErrorContext, FraudCheckResult, MetricOptions, PerformanceConfig, PerformanceSpan, PerformanceTransaction, ProfileData, ProfileFrame, ProfilerConfig, ReplayConfig, ReplayEvent, SitePongConfig, SitePongInitConfig, TraceContext, TracePropagator, VisitorIdResult, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, endSpan, endTransaction, extractTrace, flush, flushMetrics, flushProfiles, generateSpanId, generateTraceId, getAllFlags, getAnonymousId, getDbNPlusOnePatterns, getDbQueryCount, getDeviceSignals, getFlag, getFraudCheck, getLatestProfile, getProfiles, getReplaySessionId, getVariant, getVariantPayload, getVisitorId, getWebVitals, group, identify, init, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags } from '../index.js';
4
5
 
5
- /**
6
- * SitePong SDK Types
7
- */
8
- interface SitePongConfig {
9
- /** DSN in format: https://<public_key>@ingest.sitepong.com/<project_id> */
10
- dsn?: string;
11
- /** API key in format: sp_live_xxx or sp_test_xxx */
12
- apiKey?: string;
13
- /** Environment name (e.g., 'production', 'staging', 'development') */
14
- environment?: string;
15
- /** Release/version string */
16
- release?: string;
17
- /** Enable debug logging */
18
- debug?: boolean;
19
- /** Enable/disable the SDK entirely */
20
- enabled?: boolean;
21
- /** Sample rate for errors (0.0 to 1.0) */
22
- sampleRate?: number;
23
- /** Maximum number of breadcrumbs to keep */
24
- maxBreadcrumbs?: number;
25
- /** Hook to modify or filter events before sending */
26
- beforeSend?: (event: ErrorEvent) => ErrorEvent | null;
27
- /** Auto-capture configuration */
28
- autoCapture?: {
29
- errors?: boolean;
30
- unhandledRejections?: boolean;
31
- console?: boolean;
32
- };
33
- /** Custom API endpoint (for self-hosted) */
34
- apiEndpoint?: string;
35
- }
36
- interface User {
37
- id?: string;
38
- email?: string;
39
- username?: string;
40
- [key: string]: unknown;
41
- }
42
- interface Breadcrumb {
43
- type: "default" | "http" | "navigation" | "ui" | "console" | "error";
44
- category?: string;
45
- message?: string;
46
- level?: "fatal" | "error" | "warning" | "info" | "debug";
47
- timestamp: number;
48
- data?: Record<string, unknown>;
49
- }
50
- interface ErrorEvent {
51
- event_id: string;
52
- timestamp: string;
53
- level: "fatal" | "error" | "warning" | "info" | "debug";
54
- message: string;
55
- exception?: {
56
- type: string;
57
- value: string;
58
- stacktrace?: StackFrame[];
59
- };
60
- tags?: Record<string, string>;
61
- extra?: Record<string, unknown>;
62
- user?: User;
63
- breadcrumbs?: Breadcrumb[];
64
- context?: {
65
- browser?: BrowserContext;
66
- os?: OSContext;
67
- device?: DeviceContext;
68
- [key: string]: unknown;
69
- };
70
- environment?: string;
71
- release?: string;
72
- request?: {
73
- url?: string;
74
- method?: string;
75
- headers?: Record<string, string>;
76
- };
77
- }
78
- interface StackFrame {
79
- filename?: string;
80
- function?: string;
81
- lineno?: number;
82
- colno?: number;
83
- in_app?: boolean;
84
- context_line?: string;
85
- pre_context?: string[];
86
- post_context?: string[];
87
- }
88
- interface BrowserContext {
89
- name?: string;
90
- version?: string;
91
- }
92
- interface OSContext {
93
- name?: string;
94
- version?: string;
95
- }
96
- interface DeviceContext {
97
- family?: string;
98
- model?: string;
99
- brand?: string;
100
- }
101
- type LogLevel = "fatal" | "error" | "warning" | "info" | "debug";
102
- interface CaptureContext {
103
- tags?: Record<string, string>;
104
- extra?: Record<string, unknown>;
105
- user?: User;
106
- level?: LogLevel;
107
- fingerprint?: string[];
108
- }
109
-
110
6
  interface SitePongContextValue {
111
7
  isInitialized: boolean;
112
8
  }
@@ -215,11 +111,6 @@ declare class SitePongErrorBoundary extends Component<SitePongErrorBoundaryProps
215
111
  render(): ReactNode;
216
112
  }
217
113
 
218
- /**
219
- * Add a breadcrumb to the trail
220
- */
221
- declare function addBreadcrumb(breadcrumb: Omit<Breadcrumb, "timestamp">): void;
222
-
223
114
  /**
224
115
  * Hook to access all SitePong SDK methods
225
116
  *