api-error-handler
api-error-handler copied to clipboard
Add exposeAdditionalProperties option
see #7 for motivation
Coverage remained the same at 100.0% when pulling fe4ea9a12acff4f0a9f667f8db02f3ac812a1819 on LinusU:expose-additional-properties into df765a50c0c1de4fdbe4ce9cef2d910df4d8ba3e on expressjs:master.
+1
ping @jonathanong, what do you think about this? ☺️
I think it would be useful to specify either a truthy/falsy value or an array of properties to whitelist.
Some packages add additional error properties that you might not want to propagate to the user.