Skip to content

Commit ae5e5aa

Browse files
authored
Merge pull request #168 from identity-com/feature/CIV-3145__add_enchoring_error_code
CIV-3145 - Add error code for anchoring failures
2 parents c69bcda + b9ffd03 commit ae5e5aa

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

AUDIT.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ Whenever you whitelist a specific advisory it is required to refer it to here an
1111

1212
| # | Level | Module | Title | Explanation |
1313
|------|-------|---------|------|-------------|
14-
| 1500 | Low | babel-minify>yargs-parser | Prototype Pollution | dev dependency only |
14+
| 565 | Moderate | npm>ssri | Regular Expression Denial of Service | dev dependency only |
1515
| 786 | Low | babel-cli > chokidar > anymatch > micromatch > braces | Regular Expression Denial of Service | dev dependency only |
16+
| 1500 | Low | babel-minify>yargs-parser | Prototype Pollution | dev dependency only |
17+
| 1654 | Moderate | npm>libnpx>y18n | Regular Expression Denial of Service | dev dependency only |
18+
| 1677 | Moderate | npm>hosted-git-info | Regular Expression Denial of Service | dev dependency only |

audit-ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"low": true,
33
"package-manager": "auto",
44
"report": true,
5-
"allowlist": [786, 1500]
5+
"allowlist": [565, 786, 1500, 1654, 1677]
66
}

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@identity.com/credential-commons",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"author": "Identity.com Community",
55
"license": "MIT",
66
"description": "Verifiable Credential and Attestation Library",
@@ -78,7 +78,7 @@
7878
"flat": "^4.1.0",
7979
"inquirer": "^7.3.3",
8080
"json-format": "^1.0.1",
81-
"lodash": "^4.17.20",
81+
"lodash": "^4.17.21",
8282
"md5": "^2.3.0",
8383
"merkle-tools": "^1.4.1",
8484
"moment-mini": "^2.24.0",

src/errors/definitions.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ const ErrorCodes = {
180180
*/
181181
ERROR_IDV_CREDENTIAL_INVALID_SIGNATURE: 'error.idv.credential.invalid.signature',
182182

183+
/**
184+
* Reason: Could not anchor the credential,
185+
* possibly caused by errors while connecting to an external provider
186+
* Troubleshooting: Try again later
187+
*/
188+
ERROR_IDV_CREDENTIAL_FAILED_ANCHORING: 'error.idv.credential.failed.anchoring',
189+
183190
/**
184191
* Reason: The credential has already been signed.
185192
* Troubleshooting: The credential is already signed. You must not sign it again
@@ -417,7 +424,6 @@ const ErrorCodes = {
417424
* Troubleshooting: Retry the network call again
418425
*/
419426
ERROR_RETRYABLE_NETWORK_ERROR: 'error.retryable.network',
420-
421427
};
422428

423429
/**

0 commit comments

Comments
 (0)