axe 13.0.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -648,7 +648,7 @@ Pre hooks allow you to manipulate the arguments `err`, `message`, and `meta` tha
648
648
 
649
649
  Post hooks are useful if you want to send logging information to a third-party, store them into a database, or do any sort of custom processing.
650
650
 
651
- As of v12, logger invocation (e.g. `logger.info('hello')`) will return their post hooks as a Promise – which means you can `await logger.error(err);` if needed – which is useful if you have jobs that need to store logs to a database using post hooks before the job shuts down with `process.exit(0)`. Note that the resolved Promise returns an Array of the returned values from post hooks, executed serially via `p-map-series`. If no post hooks exist, then logger invocations will return an Object consisting of `{ method, err, message, meta }`, whereas `method` is the logger method invoked with (e.g. `logger.error()` will have a `method: 'error'` value).
651
+ As of v12, logger invocation (e.g. `logger.info('hello')`) will return their post hooks as a Promise – which means you can `await logger.error(err);` if needed – which is useful if you have jobs that need to store logs to a database using post hooks before the job shuts down with `process.exit(0)`. Note that the resolved Promise returns an Array of the returned values from post hooks, executed serially. If no post hooks exist, then logger invocations will return an Object consisting of `{ method, err, message, meta }`, whereas `method` is the logger method invoked with (e.g. `logger.error()` will have a `method: 'error'` value).
652
652
 
653
653
  You should properly handle any errors in your pre hooks, otherwise they will be thrown and logger methods will not be invoked.
654
654