Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: better support for event sender analytics paths #259

Conversation

yusinto
Copy link
Contributor

@yusinto yusinto commented Aug 28, 2023

No description provided.

@@ -16,7 +17,12 @@ export class LDClient extends LDClientImpl {
constructor(clientSideID: string, platformInfo: Info, options: LDOptions) {
const em = new EventEmitter();
const platform = new EdgePlatform(platformInfo);
super(clientSideID, platform, createOptions(options), createCallbacks(em));
const internalOptions: internal.LDInternalOptions = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I like this much better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier auto fixes this

Comment on lines +15 to +27
/** Valid paths are:
* /bulk
* /events/bulk/envId
* /mobile
*/
public readonly analyticsEventPath: string;

/** Valid paths are:
* /diagnostic
* /events/diagnostic/envId
* /mobile/events/diagnostic
*/
public readonly diagnosticEventPath: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can be more pedantic and make these literal types instead of freeform strings. Any opinions?

@yusinto yusinto merged commit 1908227 into yus/sc-214758/send-events-to-environment-endpoint-for-edge Aug 28, 2023
1 check passed
@yusinto yusinto deleted the yus/improve-event-sender-paths branch August 28, 2023 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants