Meteor/ddp-rate-limiter

Im trying to use ddp-rate-limiter setErrorMessageOnRule but for some reason my meteor folder in node modules only contain the https://github.com/meteor/meteor/blob/master/packages/ddp-rate-limiter/ddp-rate-limiter.d.ts

and i want to have the https://github.com/meteor/meteor/blob/master/packages/ddp-rate-limiter/ddp-rate-limiter.js to use the setErrorMessageOnRule

I tried to do meteor add meteor/ddp-rate-limiter but it does not work, im on meteor version 2.10

anyone can help me on this? how to provide for my prod build and local build the whole package of ddp-rate-limiter?

Use meteor add ddp-rate-limiter to add the package.

More details can be found in the docs Methods | Meteor API Docs

Thank you, but did mention that

I tried to do meteor add meteor/ddp-rate-limiter but it does not work, im on meteor version 2.10

It is not downloading the entire folder, it is only downloading the https://github.com/meteor/meteor/blob/master/packages/ddp-rate-limiter/ddp-rate-limiter.d.ts
into the node modules of meteor and In that file there is only two methods
AddRule and RemoveRule
And i cannot use setErrorMessageOnRule because i do not have the js file

Did you try this meteor add ddp-rate-limiter not meteor add meteor/ddp-rate-limiter?

Yes I did try that, it does add it to packages since i was missing it there however im still importing the typescript file when i do
import { DDPRateLimiter } from 'meteor/ddp-rate-limiter'

and in that file i lack the setErrorMessageOnRule and few other functions

Did you try forking the package under the packages folder of your project? You might have the package folder there