Skip to content

Commit

Permalink
Merge pull request #168 from identity-com/feature/CIV-3145__add_encho…
Browse files Browse the repository at this point in the history
…ring_error_code

CIV-3145 - Add error code for anchoring failures
  • Loading branch information
lucmir authored May 10, 2021
2 parents c69bcda + b9ffd03 commit ae5e5aa
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
5 changes: 4 additions & 1 deletion AUDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ Whenever you whitelist a specific advisory it is required to refer it to here an

| # | Level | Module | Title | Explanation |
|------|-------|---------|------|-------------|
| 1500 | Low | babel-minify>yargs-parser | Prototype Pollution | dev dependency only |
| 565 | Moderate | npm>ssri | Regular Expression Denial of Service | dev dependency only |
| 786 | Low | babel-cli > chokidar > anymatch > micromatch > braces | Regular Expression Denial of Service | dev dependency only |
| 1500 | Low | babel-minify>yargs-parser | Prototype Pollution | dev dependency only |
| 1654 | Moderate | npm>libnpx>y18n | Regular Expression Denial of Service | dev dependency only |
| 1677 | Moderate | npm>hosted-git-info | Regular Expression Denial of Service | dev dependency only |
2 changes: 1 addition & 1 deletion audit-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"low": true,
"package-manager": "auto",
"report": true,
"allowlist": [786, 1500]
"allowlist": [565, 786, 1500, 1654, 1677]
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@identity.com/credential-commons",
"version": "1.2.3",
"version": "1.2.4",
"author": "Identity.com Community",
"license": "MIT",
"description": "Verifiable Credential and Attestation Library",
Expand Down Expand Up @@ -78,7 +78,7 @@
"flat": "^4.1.0",
"inquirer": "^7.3.3",
"json-format": "^1.0.1",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"md5": "^2.3.0",
"merkle-tools": "^1.4.1",
"moment-mini": "^2.24.0",
Expand Down
8 changes: 7 additions & 1 deletion src/errors/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ const ErrorCodes = {
*/
ERROR_IDV_CREDENTIAL_INVALID_SIGNATURE: 'error.idv.credential.invalid.signature',

/**
* Reason: Could not anchor the credential,
* possibly caused by errors while connecting to an external provider
* Troubleshooting: Try again later
*/
ERROR_IDV_CREDENTIAL_FAILED_ANCHORING: 'error.idv.credential.failed.anchoring',

/**
* Reason: The credential has already been signed.
* Troubleshooting: The credential is already signed. You must not sign it again
Expand Down Expand Up @@ -417,7 +424,6 @@ const ErrorCodes = {
* Troubleshooting: Retry the network call again
*/
ERROR_RETRYABLE_NETWORK_ERROR: 'error.retryable.network',

};

/**
Expand Down

0 comments on commit ae5e5aa

Please sign in to comment.