You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add validation for undefined endpoint in TypeScript setEndpoint method
Previously, calling setEndpoint() with undefined would throw a confusing
TypeError when trying to call .startsWith() on undefined. This adds proper
validation to check if the endpoint is null, undefined, or not a string
before checking its format, providing a clear error message.
Changes:
- Add endpoint validation before .startsWith() check
- Throw descriptive error: "Endpoint must be a valid string"
- Applied to Node, Web, Deno, and React Native TypeScript clients
Fixes the weird error when endpoint is undefined.
0 commit comments