A typed, browser-ready and vite-compatible library to query and create reviews with Mangrove.reviews
Used in https://mapcomplete.org
| example | ||
| lib | ||
| .gitignore | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Mangrove-reviews-typescript
This is a port of mangrove-reviews, but which uses jose instead of jsonwebtoken.
The latter has a dependency which uses Stream, which vite cannot handle.
Another benefit is that this one has better typing* and should thus be more ergonomic to use.
(*): typing is incomplete and only includes the very basic usecase of downloading and uploading reviews - the bare minimum of what I needed for MapComplete. However, I'll gladly merge pull requests which add more types.