📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Lib -> Swetrix; added export default
Blue Mouse3b6a0afe84f5
diff --git a/src/index.ts b/src/index.tsindex 34773ddeb..5ebd0c6de 100644--- a/src/index.ts+++ b/src/index.ts@@ -122,7 +122,7 @@ export interface TrackPageViewOptions {const DEFAULT_API_HOST = 'https://api.swetrix.com/log'-export class Lib {+export class Swetrix {constructor(private projectID: string, private options?: LibOptions) {this.heartbeat = this.heartbeat.bind(this)}@@ -257,3 +257,5 @@ export class Lib {req.end()}}++export default Swetrix