Jblew / firebase-functions-rate-limiter

Js/ts library that allows you to set per-time, per-user or per-anything limits for calling Firebase cloud functions
MIT License
100 stars 15 forks source link

isQuotaExceededOrRecordUsage is deprecated warning #22

Open jasan-s opened 3 years ago

jasan-s commented 3 years ago

using: limiter.isQuotaExceededOrRecordUsage(account_id)

Screen Shot 2020-12-25 at 12 10 31 AM

bashoogzaad commented 3 years ago

I think you should rejectOnQuotaExceededOrRecordUsage method from now on, but the documentation is not updated yet. Correct me if I am wrong ;)

jasan-s commented 3 years ago

@bashoogzaad i can def think of many scenerios where automatic error throw may not be desirable. so awaiting for @Jblew to address this.

chicagocomputerclasses commented 1 year ago

It's been a couple of years now, it doesn't look like developers of this package support this project any longer. Are there any alternative packages without needing to rebuild this functionality from scratch?