-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ee licensed replay transformer (#18874)
first pass through using the EE licensed replay transformer in playback Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Newell <[email protected]>
- Loading branch information
1 parent
bda9166
commit 1632395
Showing
27 changed files
with
2,983 additions
and
599 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.eslintrc.js | ||
jest.config.ts |
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
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,13 +1,12 @@ | ||
import { PostHogEE } from '@posthog/ee/types' | ||
|
||
const myTestCode = (): void => { | ||
// eslint-disable-next-line no-console | ||
console.log('it works!') | ||
} | ||
import { transformEventToWeb, transformToWeb } from './mobile-replay' | ||
|
||
const postHogEE: PostHogEE = { | ||
enabled: true, | ||
myTestCode, | ||
} | ||
|
||
export default postHogEE | ||
export default async (): Promise<PostHogEE> => | ||
Promise.resolve({ | ||
enabled: true, | ||
mobileReplay: { | ||
transformEventToWeb, | ||
transformToWeb, | ||
}, | ||
}) |
Oops, something went wrong.