1 | # central-services-error-handling
|
2 | [![Git Commit](https://img.shields.io/github/last-commit/mojaloop/central-services-error-handling.svg?style=flat)](https://github.com/mojaloop/central-services-error-handling/commits/master)
|
3 | [![Git Releases](https://img.shields.io/github/release/mojaloop/central-services-error-handling.svg?style=flat)](https://github.com/mojaloop/central-services-error-handling/releases)
|
4 | [![Npm Version](https://img.shields.io/npm/v/@mojaloop/central-services-error-handling.svg?style=flat)](https://www.npmjs.com/package/@mojaloop/central-services-error-handling)
|
5 | [![NPM Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@mojaloop/central-services-error-handling.svg?style=flat)](https://www.npmjs.com/package/@mojaloop/central-services-error-handling)
|
6 | [![CircleCI](https://circleci.com/gh/mojaloop/central-services-error-handling.svg?style=svg)](https://circleci.com/gh/mojaloop/central-services-error-handling)
|
7 |
|
8 | Hapi error handling module
|
9 |
|
10 |
|
11 | ## Auditing Dependencies
|
12 |
|
13 | We use `npm-audit-resolver` along with `npm audit` to check dependencies for vulnerabilities, and keep track of resolved dependencies with an `audit-resolv.json` file.
|
14 |
|
15 | To start a new resolution process, run:
|
16 | ```bash
|
17 | npm run audit:resolve
|
18 | ```
|
19 |
|
20 | You can then check to see if the CI will pass based on the current dependencies with:
|
21 | ```bash
|
22 | npm run audit:check
|
23 | ```
|
24 |
|
25 | And commit the changed `audit-resolv.json` to ensure that CircleCI will build correctly.
|
26 |
|