cloudiy
December 25, 2023, 12:04pm
1
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?
jam
December 25, 2023, 1:19pm
2
Use meteor add ddp-rate-limiter
to add the package.
More details can be found in the docs Methods | Meteor API Docs
cloudiy
December 25, 2023, 1:33pm
3
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
jam
December 25, 2023, 2:22pm
4
Did you try this meteor add ddp-rate-limiter
not meteor add meteor/ddp-rate-limiter
?
cloudiy
December 26, 2023, 6:13am
5
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
rjdavid
December 27, 2023, 7:08am
6
Did you try forking the package under the packages
folder of your project? You might have the package folder there