Skip to content

Updated intent.gen without webrpc types, errors exported from authenticator.gen#560

Merged
attente merged 5 commits intomasterfrom
intent-gen-without-webrpc-types
Aug 7, 2024
Merged

Updated intent.gen without webrpc types, errors exported from authenticator.gen#560
attente merged 5 commits intomasterfrom
intent-gen-without-webrpc-types

Conversation

@tolgahan-arikan
Copy link
Copy Markdown
Contributor

We were exporting error types from intent.gen instead of authenticator.gen, which caused issues when trying to check the type of errors, for example if (error instanceof WebrpcEndpointError) was not returning true while error was an instance of WebrpcEndpointError, but from authenticator.gen.

@tolgahan-arikan tolgahan-arikan requested a review from attente August 7, 2024 16:46
@tolgahan-arikan tolgahan-arikan changed the title Updated intent.gen without webrpc types, errors used from authenticator.gen Updated intent.gen without webrpc types, errors exported from authenticator.gen Aug 7, 2024
Comment thread packages/waas/src/auth.ts Outdated
Session,
WebrpcEndpointError,
WebrpcError
} from './clients/authenticator.gen'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this change necessary? What uses WebrpcEndpointError and WebrpcError in this file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yep you are right, I think I forgot to remove after testing

@attente attente merged commit 9904eb1 into master Aug 7, 2024
@attente attente deleted the intent-gen-without-webrpc-types branch August 7, 2024 17:46
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.

3 participants