Skip to content

Commit

Permalink
Make track async (#15)
Browse files Browse the repository at this point in the history
* make track async

* update build

---------

Co-authored-by: Blue Mouse <[email protected]>
  • Loading branch information
iipanda and Blaumaus authored Aug 9, 2024
1 parent 8dfef68 commit dfb9876
Show file tree
Hide file tree
Showing 12 changed files with 290 additions and 65 deletions.
2 changes: 1 addition & 1 deletion dist/esnext/Lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export declare class Lib {
captureError(event: ErrorEvent): void;
trackErrors(options?: ErrorOptions): ErrorActions;
submitError(payload: IErrorEventPayload, evokeCallback?: boolean): void;
track(event: TrackEventOptions): void;
track(event: TrackEventOptions): Promise<void>;
trackPageViews(options?: PageViewsOptions): PageActions;
getPerformanceStats(): IPerfPayload | {};
private heartbeat;
Expand Down
17 changes: 10 additions & 7 deletions dist/esnext/Lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esnext/Lib.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esnext/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export declare function init(pid: string, options?: LibOptions): Lib;
*
* @param {TrackEventOptions} event The options related to the custom event.
*/
export declare function track(event: TrackEventOptions): void;
export declare function track(event: TrackEventOptions): Promise<void>;
/**
* With this function you are able to automatically track pageviews across your application.
*
Expand Down
4 changes: 2 additions & 2 deletions dist/esnext/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dfb9876

Please sign in to comment.