decentralized-identity / decentralized-identity/web5-js
Remove remaining package.json named exports causing compat issues
Open
- Dominant language
- TypeScript
- Stars
- 142
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
The named package.json exports have caused issues with sinon, react native, bundlers, etc. They are easily replaced by simple object exports that namespace grouped functions. Afterwards, consider adding an eslint rule so the project is free of these in the future.
e.g.:
```ts
export const CryptoUtils = {
randomPin,
randomUuid,
randomBytes,
isWebCryptoSupported,
getJoseSignatureAlgorithmFromPublicKey,
checkValidProperty,
checkRequiredProperty
};
```
Contributor guide
Assessment
This issue has not been assessed yet.