auth0 / node-auth0

Node.js client library for the Auth0 platform.
MIT License
637 stars 308 forks source link

Support ESM and CJS #854

Closed frederikprijck closed 1 year ago

frederikprijck commented 1 year ago

Changes

This PR ensures we support both ESM and CJS. To achieve that, we downgraded node-fetch to v2. As a consequence of that, we had to juggle a little with the types.

You'll notice there is still an any involved with the users property on the payload to import users. It works, but we will need to figure out the types.

On top of that, there are also a couple of minor changes.

Checklist