SYMBOL INDEX (233 symbols across 12 files) FILE: dist/esnext/Lib.d.ts type LibOptions (line 1) | interface LibOptions { type TrackEventOptions (line 23) | interface TrackEventOptions { type IPageViewPayload (line 35) | interface IPageViewPayload { type IErrorEventPayload (line 52) | interface IErrorEventPayload { type IInternalErrorEventPayload (line 63) | interface IInternalErrorEventPayload extends IErrorEventPayload { type IPerfPayload (line 68) | interface IPerfPayload { type FeatureFlagsOptions (line 81) | interface FeatureFlagsOptions { type ExperimentOptions (line 92) | interface ExperimentOptions { type PageActions (line 103) | interface PageActions { type ErrorActions (line 110) | interface ErrorActions { type PageData (line 114) | interface PageData { type ErrorOptions (line 120) | interface ErrorOptions { type PageViewsOptions (line 137) | interface PageViewsOptions { class Lib (line 166) | class Lib { FILE: dist/esnext/Lib.js method stop (line 3) | stop() { } constant DEFAULT_API_HOST (line 5) | const DEFAULT_API_HOST = 'https://api.swetrix.com/log'; constant DEFAULT_API_BASE (line 6) | const DEFAULT_API_BASE = 'https://api.swetrix.com'; constant DEFAULT_CACHE_DURATION (line 8) | const DEFAULT_CACHE_DURATION = 5 * 60 * 1000; class Lib (line 9) | class Lib { method constructor (line 10) | constructor(projectID, options) { method captureError (line 24) | captureError(event) { method trackErrors (line 45) | trackErrors(options) { method submitError (line 59) | submitError(payload, evokeCallback) { method track (line 85) | async track(event) { method trackPageViews (line 109) | trackPageViews(options) { method getPerformanceStats (line 139) | getPerformanceStats() { method getFeatureFlags (line 172) | async getFeatureFlags(options, forceRefresh) { method fetchFlagsAndExperiments (line 197) | async fetchFlagsAndExperiments(options) { method getFeatureFlag (line 237) | async getFeatureFlag(key, options, defaultValue = false) { method clearFeatureFlagsCache (line 244) | clearFeatureFlagsCache() { method getExperiments (line 261) | async getExperiments(options, forceRefresh) { method getExperiment (line 302) | async getExperiment(experimentId, options, defaultVariant = null) { method clearExperimentsCache (line 309) | clearExperimentsCache() { method getProfileId (line 335) | async getProfileId() { method getSessionId (line 384) | async getSessionId() { method getApiBase (line 410) | getApiBase() { method heartbeat (line 417) | heartbeat() { method trackPathChange (line 430) | trackPathChange() { method trackPage (line 442) | trackPage(pg, unique = false) { method submitPageView (line 450) | submitPageView(payload, unique, perf, evokeCallback) { method canTrack (line 480) | canTrack() { method sendRequest (line 490) | async sendRequest(path, body) { FILE: dist/esnext/index.d.ts type IPageviewOptions (line 52) | interface IPageviewOptions { FILE: dist/esnext/index.js constant LIB_INSTANCE (line 2) | let LIB_INSTANCE = null; function init (line 10) | function init(pid, options) { function track (line 23) | async function track(event) { function trackViews (line 34) | function trackViews(options) { function trackErrors (line 58) | function trackErrors(options) { function trackError (line 71) | function trackError(payload) { function trackPageview (line 86) | function trackPageview(pg, _prev, unique) { function pageview (line 91) | function pageview(options) { function getFeatureFlags (line 116) | async function getFeatureFlags(options, forceRefresh) { function getFeatureFlag (line 138) | async function getFeatureFlag(key, options, defaultValue = false) { function clearFeatureFlagsCache (line 147) | function clearFeatureFlagsCache() { function getExperiments (line 174) | async function getExperiments(options, forceRefresh) { function getExperiment (line 203) | async function getExperiment(experimentId, options, defaultVariant = nul... function clearExperimentsCache (line 212) | function clearExperimentsCache() { function getProfileId (line 240) | async function getProfileId() { function getSessionId (line 267) | async function getSessionId() { FILE: dist/esnext/utils.d.ts type IGetPath (line 1) | interface IGetPath { FILE: dist/swetrix.cjs.js method stop (line 74) | stop() { } constant DEFAULT_API_HOST (line 76) | const DEFAULT_API_HOST = 'https://api.swetrix.com/log'; constant DEFAULT_API_BASE (line 77) | const DEFAULT_API_BASE = 'https://api.swetrix.com'; constant DEFAULT_CACHE_DURATION (line 79) | const DEFAULT_CACHE_DURATION = 5 * 60 * 1000; class Lib (line 80) | class Lib { method constructor (line 81) | constructor(projectID, options) { method captureError (line 95) | captureError(event) { method trackErrors (line 117) | trackErrors(options) { method submitError (line 131) | submitError(payload, evokeCallback) { method track (line 158) | async track(event) { method trackPageViews (line 183) | trackPageViews(options) { method getPerformanceStats (line 213) | getPerformanceStats() { method getFeatureFlags (line 247) | async getFeatureFlags(options, forceRefresh) { method fetchFlagsAndExperiments (line 273) | async fetchFlagsAndExperiments(options) { method getFeatureFlag (line 314) | async getFeatureFlag(key, options, defaultValue = false) { method clearFeatureFlagsCache (line 322) | clearFeatureFlagsCache() { method getExperiments (line 339) | async getExperiments(options, forceRefresh) { method getExperiment (line 381) | async getExperiment(experimentId, options, defaultVariant = null) { method clearExperimentsCache (line 389) | clearExperimentsCache() { method getProfileId (line 415) | async getProfileId() { method getSessionId (line 465) | async getSessionId() { method getApiBase (line 491) | getApiBase() { method heartbeat (line 499) | heartbeat() { method trackPathChange (line 513) | trackPathChange() { method trackPage (line 526) | trackPage(pg, unique = false) { method submitPageView (line 534) | submitPageView(payload, unique, perf, evokeCallback) { method canTrack (line 565) | canTrack() { method sendRequest (line 576) | async sendRequest(path, body) { function init (line 597) | function init(pid, options) { function track (line 610) | async function track(event) { function trackViews (line 621) | function trackViews(options) { function trackErrors (line 645) | function trackErrors(options) { function trackError (line 658) | function trackError(payload) { function trackPageview (line 673) | function trackPageview(pg, _prev, unique) { function pageview (line 678) | function pageview(options) { function getFeatureFlags (line 703) | async function getFeatureFlags(options, forceRefresh) { function getFeatureFlag (line 725) | async function getFeatureFlag(key, options, defaultValue = false) { function clearFeatureFlagsCache (line 734) | function clearFeatureFlagsCache() { function getExperiments (line 761) | async function getExperiments(options, forceRefresh) { function getExperiment (line 790) | async function getExperiment(experimentId, options, defaultVariant = nul... function clearExperimentsCache (line 799) | function clearExperimentsCache() { function getProfileId (line 827) | async function getProfileId() { function getSessionId (line 854) | async function getSessionId() { FILE: dist/swetrix.es5.js method stop (line 72) | stop() { } constant DEFAULT_API_HOST (line 74) | const DEFAULT_API_HOST = 'https://api.swetrix.com/log'; constant DEFAULT_API_BASE (line 75) | const DEFAULT_API_BASE = 'https://api.swetrix.com'; constant DEFAULT_CACHE_DURATION (line 77) | const DEFAULT_CACHE_DURATION = 5 * 60 * 1000; class Lib (line 78) | class Lib { method constructor (line 79) | constructor(projectID, options) { method captureError (line 93) | captureError(event) { method trackErrors (line 115) | trackErrors(options) { method submitError (line 129) | submitError(payload, evokeCallback) { method track (line 156) | async track(event) { method trackPageViews (line 181) | trackPageViews(options) { method getPerformanceStats (line 211) | getPerformanceStats() { method getFeatureFlags (line 245) | async getFeatureFlags(options, forceRefresh) { method fetchFlagsAndExperiments (line 271) | async fetchFlagsAndExperiments(options) { method getFeatureFlag (line 312) | async getFeatureFlag(key, options, defaultValue = false) { method clearFeatureFlagsCache (line 320) | clearFeatureFlagsCache() { method getExperiments (line 337) | async getExperiments(options, forceRefresh) { method getExperiment (line 379) | async getExperiment(experimentId, options, defaultVariant = null) { method clearExperimentsCache (line 387) | clearExperimentsCache() { method getProfileId (line 413) | async getProfileId() { method getSessionId (line 463) | async getSessionId() { method getApiBase (line 489) | getApiBase() { method heartbeat (line 497) | heartbeat() { method trackPathChange (line 511) | trackPathChange() { method trackPage (line 524) | trackPage(pg, unique = false) { method submitPageView (line 532) | submitPageView(payload, unique, perf, evokeCallback) { method canTrack (line 563) | canTrack() { method sendRequest (line 574) | async sendRequest(path, body) { constant LIB_INSTANCE (line 587) | let LIB_INSTANCE = null; function init (line 595) | function init(pid, options) { function track (line 608) | async function track(event) { function trackViews (line 619) | function trackViews(options) { function trackErrors (line 643) | function trackErrors(options) { function trackError (line 656) | function trackError(payload) { function trackPageview (line 671) | function trackPageview(pg, _prev, unique) { function pageview (line 676) | function pageview(options) { function getFeatureFlags (line 701) | async function getFeatureFlags(options, forceRefresh) { function getFeatureFlag (line 723) | async function getFeatureFlag(key, options, defaultValue = false) { function clearFeatureFlagsCache (line 732) | function clearFeatureFlagsCache() { function getExperiments (line 759) | async function getExperiments(options, forceRefresh) { function getExperiment (line 788) | async function getExperiment(experimentId, options, defaultVariant = nul... function clearExperimentsCache (line 797) | function clearExperimentsCache() { function getProfileId (line 825) | async function getProfileId() { function getSessionId (line 852) | async function getSessionId() { FILE: dist/swetrix.js method stop (line 1) | stop(){} class N (line 1) | class N{constructor(t,e){this.projectID=t,this.options=e,this.pageData=n... method constructor (line 1) | constructor(t,e){this.projectID=t,this.options=e,this.pageData=null,th... method captureError (line 1) | captureError(t){var e,i,a,n;"number"==typeof(null===(e=this.errorsOpti... method trackErrors (line 1) | trackErrors(t){return this.errorListenerExists||!this.canTrack()?m:(th... method submitError (line 1) | submitError(t,e){var i,a,n;const o={pid:this.projectID},r={pg:this.act... method track (line 1) | async track(t){var e,i,a,n;if(!this.canTrack())return;const o={...t,pi... method trackPageViews (line 1) | trackPageViews(t){if(!this.canTrack())return m;if(this.pageData)return... method getPerformanceStats (line 1) | getPerformanceStats(){var t;if(!this.canTrack()||this.perfStatsCollect... method getFeatureFlags (line 1) | async getFeatureFlags(t,e){var i,a,n,o;if(!l())return{};const r=null!=... method fetchFlagsAndExperiments (line 1) | async fetchFlagsAndExperiments(t){var e,i,a,n;const o=this.getApiBase(... method getFeatureFlag (line 1) | async getFeatureFlag(t,e,i=!1){var a;return null!==(a=(await this.getF... method clearFeatureFlagsCache (line 1) | clearFeatureFlagsCache(){this.cachedData=null} method getExperiments (line 1) | async getExperiments(t,e){var i,a,n,o;if(!l())return{};const r=null!==... method getExperiment (line 1) | async getExperiment(t,e,i=null){var a;return null!==(a=(await this.get... method clearExperimentsCache (line 1) | clearExperimentsCache(){this.cachedData=null} method getProfileId (line 1) | async getProfileId(){var t;if(null===(t=this.options)||void 0===t?void... method getSessionId (line 1) | async getSessionId(){if(!l())return null;try{const t=this.getApiBase()... method getApiBase (line 1) | getApiBase(){var t;return(null===(t=this.options)||void 0===t?void 0:t... method heartbeat (line 1) | heartbeat(){var t,e;if(!(null===(t=this.pageViewsOptions)||void 0===t?... method trackPathChange (line 1) | trackPathChange(){var t,e;if(!this.pageData)return;const i=I({hash:nul... method trackPage (line 1) | trackPage(t,e=!1){if(!this.pageData)return;this.pageData.path=t;const ... method submitPageView (line 1) | submitPageView(t,e,i,a){var n,o;const r={pid:this.projectID,perf:i,uni... method canTrack (line 1) | canTrack(){var t,e,i,a;return!((null===(t=this.options)||void 0===t?vo... method sendRequest (line 1) | async sendRequest(t,e){var i;const a=(null===(i=this.options)||void 0=... FILE: src/Lib.ts type LibOptions (line 16) | interface LibOptions { type TrackEventOptions (line 43) | interface TrackEventOptions { type IPageViewPayload (line 60) | interface IPageViewPayload { type IErrorEventPayload (line 81) | interface IErrorEventPayload { type IInternalErrorEventPayload (line 93) | interface IInternalErrorEventPayload extends IErrorEventPayload { type IPerfPayload (line 99) | interface IPerfPayload { type FeatureFlagsOptions (line 113) | interface FeatureFlagsOptions { type ExperimentOptions (line 125) | interface ExperimentOptions { type CachedData (line 137) | interface CachedData { type PageActions (line 148) | interface PageActions { type ErrorActions (line 156) | interface ErrorActions { type PageData (line 161) | interface PageData { type ErrorOptions (line 169) | interface ErrorOptions { type PageViewsOptions (line 188) | interface PageViewsOptions { method stop (line 220) | stop() {} constant DEFAULT_API_HOST (line 223) | const DEFAULT_API_HOST = 'https://api.swetrix.com/log' constant DEFAULT_API_BASE (line 224) | const DEFAULT_API_BASE = 'https://api.swetrix.com' constant DEFAULT_CACHE_DURATION (line 227) | const DEFAULT_CACHE_DURATION = 5 * 60 * 1000 class Lib (line 229) | class Lib { method constructor (line 238) | constructor(private projectID: string, private options?: LibOptions) { method captureError (line 244) | captureError(event: ErrorEvent): void { method trackErrors (line 275) | trackErrors(options?: ErrorOptions): ErrorActions { method submitError (line 293) | submitError(payload: IErrorEventPayload, evokeCallback?: boolean): void { method track (line 327) | async track(event: TrackEventOptions): Promise { method trackPageViews (line 354) | trackPageViews(options?: PageViewsOptions): PageActions { method getPerformanceStats (line 392) | getPerformanceStats(): IPerfPayload | {} { method getFeatureFlags (line 432) | async getFeatureFlags(options?: FeatureFlagsOptions, forceRefresh?: bo... method fetchFlagsAndExperiments (line 460) | private async fetchFlagsAndExperiments(options?: FeatureFlagsOptions |... method getFeatureFlag (line 510) | async getFeatureFlag(key: string, options?: FeatureFlagsOptions, defau... method clearFeatureFlagsCache (line 518) | clearFeatureFlagsCache(): void { method getExperiments (line 536) | async getExperiments(options?: ExperimentOptions, forceRefresh?: boole... method getExperiment (line 580) | async getExperiment( method clearExperimentsCache (line 592) | clearExperimentsCache(): void { method getProfileId (line 619) | async getProfileId(): Promise { method getSessionId (line 672) | async getSessionId(): Promise { method getApiBase (line 701) | private getApiBase(): string { method heartbeat (line 709) | private heartbeat(): void { method trackPathChange (line 726) | private trackPathChange(): void { method trackPage (line 739) | private trackPage(pg: string, unique: boolean = false): void { method submitPageView (line 749) | submitPageView( method canTrack (line 791) | private canTrack(): boolean { method sendRequest (line 805) | private async sendRequest(path: string, body: object): Promise { FILE: src/index.ts constant LIB_INSTANCE (line 16) | let LIB_INSTANCE: Lib | null = null function init (line 25) | function init(pid: string, options?: LibOptions): Lib { function track (line 40) | async function track(event: TrackEventOptions): Promise { function trackViews (line 52) | function trackViews(options?: PageViewsOptions): Promise { function trackErrors (line 77) | function trackErrors(options?: ErrorOptions): ErrorActions { function trackError (line 92) | function trackError(payload: IErrorEventPayload): void { function trackPageview (line 108) | function trackPageview(pg: string, _prev?: string, unique?: boolean): vo... type IPageviewOptions (line 114) | interface IPageviewOptions { function pageview (line 119) | function pageview(options: IPageviewOptions): void { function getFeatureFlags (line 145) | async function getFeatureFlags( function getFeatureFlag (line 171) | async function getFeatureFlag( function clearFeatureFlagsCache (line 185) | function clearFeatureFlagsCache(): void { function getExperiments (line 213) | async function getExperiments( function getExperiment (line 246) | async function getExperiment( function clearExperimentsCache (line 260) | function clearExperimentsCache(): void { function getProfileId (line 289) | async function getProfileId(): Promise { function getSessionId (line 317) | async function getSessionId(): Promise { FILE: src/utils.ts type IGetPath (line 1) | interface IGetPath { FILE: tests/errors.test.ts method trackErrors (line 56) | trackErrors(options?: any) {