sitepong 0.0.8 → 0.0.10

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.
package/dist/index.d.mts CHANGED
@@ -454,6 +454,10 @@ declare class SitePongClient {
454
454
  private profiler;
455
455
  constructor();
456
456
  init(config: SitePongInitConfig): void;
457
+ /**
458
+ * Check if the SDK is initialized
459
+ */
460
+ isInitialized(): boolean;
457
461
  /**
458
462
  * Get a feature flag value
459
463
  * Returns the cached evaluated result or default value
@@ -549,6 +553,8 @@ declare const setContext: (context: ErrorContext) => void;
549
553
  declare const setUser: (user: ErrorContext["user"]) => void;
550
554
  declare const setTags: (tags: Record<string, string>) => void;
551
555
  declare const flush: () => Promise<void>;
556
+ declare const isInitialized: () => boolean;
557
+
552
558
  declare const getFlag: (key: string, defaultValue?: boolean) => boolean;
553
559
  declare const getAllFlags: () => Record<string, boolean>;
554
560
  declare const getVariant: (key: string, defaultValue?: string | null) => string | null;
@@ -599,4 +605,4 @@ declare const getProfiles: () => ProfileData[];
599
605
  declare const getLatestProfile: () => ProfileData | null;
600
606
  declare const flushProfiles: () => Promise<void>;
601
607
 
602
- export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, TrackProperties, UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, 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 };
608
+ export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, TrackProperties, UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, sitepong as client, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, 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, isInitialized, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags };
package/dist/index.d.ts CHANGED
@@ -454,6 +454,10 @@ declare class SitePongClient {
454
454
  private profiler;
455
455
  constructor();
456
456
  init(config: SitePongInitConfig): void;
457
+ /**
458
+ * Check if the SDK is initialized
459
+ */
460
+ isInitialized(): boolean;
457
461
  /**
458
462
  * Get a feature flag value
459
463
  * Returns the cached evaluated result or default value
@@ -549,6 +553,8 @@ declare const setContext: (context: ErrorContext) => void;
549
553
  declare const setUser: (user: ErrorContext["user"]) => void;
550
554
  declare const setTags: (tags: Record<string, string>) => void;
551
555
  declare const flush: () => Promise<void>;
556
+ declare const isInitialized: () => boolean;
557
+
552
558
  declare const getFlag: (key: string, defaultValue?: boolean) => boolean;
553
559
  declare const getAllFlags: () => Record<string, boolean>;
554
560
  declare const getVariant: (key: string, defaultValue?: string | null) => string | null;
@@ -599,4 +605,4 @@ declare const getProfiles: () => ProfileData[];
599
605
  declare const getLatestProfile: () => ProfileData | null;
600
606
  declare const flushProfiles: () => Promise<void>;
601
607
 
602
- export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, TrackProperties, UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, 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 };
608
+ export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, TrackProperties, UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, sitepong as client, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, 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, isInitialized, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags };
package/dist/index.js CHANGED
@@ -4176,6 +4176,12 @@ var SitePongClient = class {
4176
4176
  });
4177
4177
  }
4178
4178
  }
4179
+ /**
4180
+ * Check if the SDK is initialized
4181
+ */
4182
+ isInitialized() {
4183
+ return this.initialized;
4184
+ }
4179
4185
  /**
4180
4186
  * Get a feature flag value
4181
4187
  * Returns the cached evaluated result or default value
@@ -4612,6 +4618,7 @@ var setContext = sitepong.setContext.bind(sitepong);
4612
4618
  var setUser = sitepong.setUser.bind(sitepong);
4613
4619
  var setTags = sitepong.setTags.bind(sitepong);
4614
4620
  var flush = sitepong.flush.bind(sitepong);
4621
+ var isInitialized = sitepong.isInitialized.bind(sitepong);
4615
4622
  var getFlag = sitepong.getFlag.bind(sitepong);
4616
4623
  var getAllFlags = sitepong.getAllFlags.bind(sitepong);
4617
4624
  var getVariant = sitepong.getVariant.bind(sitepong);
@@ -4663,6 +4670,7 @@ exports.areFlagsReady = areFlagsReady;
4663
4670
  exports.captureError = captureError;
4664
4671
  exports.captureMessage = captureMessage;
4665
4672
  exports.clearAnonymousId = clearAnonymousId;
4673
+ exports.client = sitepong;
4666
4674
  exports.createTraceContext = createTraceContext;
4667
4675
  exports.cronCheckin = cronCheckin;
4668
4676
  exports.cronStart = cronStart;
@@ -4695,6 +4703,7 @@ exports.getWebVitals = getWebVitals;
4695
4703
  exports.group = group;
4696
4704
  exports.identify = identify;
4697
4705
  exports.init = init;
4706
+ exports.isInitialized = isInitialized;
4698
4707
  exports.isReplayRecording = isReplayRecording;
4699
4708
  exports.metricDistribution = metricDistribution;
4700
4709
  exports.metricGauge = metricGauge;