From acb568ed1ace8fbc3fb98b80cd9eb4ad81a2b7ae Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Thu, 25 Jan 2024 16:15:07 -0300 Subject: [PATCH] docs-packages: added audit arguments checks --- v3-docs/docs/packages/audit-argument-checks.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 v3-docs/docs/packages/audit-argument-checks.md diff --git a/v3-docs/docs/packages/audit-argument-checks.md b/v3-docs/docs/packages/audit-argument-checks.md new file mode 100644 index 0000000000..eaa9811dd5 --- /dev/null +++ b/v3-docs/docs/packages/audit-argument-checks.md @@ -0,0 +1,13 @@ +# Audit Argument Checks + + +This package causes Meteor to require that all arguments passed to methods and +publish functions are [checked](#check). Any method that does not pass each +one of its arguments to `check` will throw an error, which will be logged on the +server and which will appear to the client as a +`500 Internal server error`. This is a simple way to help ensure that your +app has complete check coverage. + +Methods and publish functions that do not need to validate their arguments can +simply run `check(arguments, [Match.Any])` to satisfy the +`audit-argument-checks` coverage checker.