-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR vendors tracekit to alleviate some issues with ESM compatibility. Currently the typescript conversion is minimal. It adds the types which are largely compatible and leaves most of it reasonably unchanged. This PR does not port the tests from tracekit to this repository. A subsequent PR will do this. BEGIN_COMMIT_OVERRIDE feat: Vendor TraceKit feat: Export browser-telemetry initialization method. END_COMMIT_OVERRIDE Jira: EMSR-14 Jira: EMSR-15
- Loading branch information
1 parent
20cccbf
commit d1b364e
Showing
5 changed files
with
1,129 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
import { BrowserTelemetry } from './api/BrowserTelemetry'; | ||
import { Options } from './api/Options'; | ||
import BrowserTelemetryImpl from './BrowserTelemetryImpl'; | ||
import parse from './options'; | ||
|
||
export * from './api'; | ||
|
||
export function initializeTelemetry(options?: Options): BrowserTelemetry { | ||
const parsedOptions = parse(options || {}); | ||
return new BrowserTelemetryImpl(parsedOptions); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.