workos / workos-node

Official Node SDK for interacting with the WorkOS API
https://workos.com/docs/sdk/node
MIT License
120 stars 30 forks source link

Update TS target and provide better error messagins for http errors #1152

Closed PaulAsjes closed 1 week ago

PaulAsjes commented 2 weeks ago

Description

Fixes https://github.com/workos/workos-node/issues/1149

Had to target a more recent version of ES to make TypeScript recognize the options argument of the Error constructor.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.