- RateLimiter is no longer the default export, breaks normal JavaScript.
- Code is now somewhat properly tested, to ensure that at least basic functionality is there.
Not much else can be tested here. This checks that things are being run, and that their return values are being returned. Not sure how we would verify that the rate limit is being enforced yet.
TypeScript does not automatically assign the only default export to exports, or at least not with my configuration. Not worth testing around, and this also makes it easier to use for normal JavaScript.