Validation-argument-validation with bad packages

I want to use the audit-argument-checks package in meteor to make sure that I checked all corrections correctly.

But some other packages that I import, such as gadicohen:headers , do not meet the requirements.

I have a way to enable validation checking only for my code, and not for packages that I use, which may be incompatible.

+5
source share
1 answer

I often encounter this problem - the ecosystem of the package makes it easy to do everything, but not always well. Usually I clone a package into my own packages folder in the meteorite project folder, make changes, and then send the download request to the original author so that the changes make their way to other people. With a package of check-argument-check in your project, this usually involves adding a control package to the packages.js file using api.use ('check'), and then defining methods for checking the parameters.

0
source

Source: https://habr.com/ru/post/1215421/


All Articles