Skip to content

Commit

Permalink
Correct minor error with parameter required error in derive.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed May 17, 2024
1 parent f7cf40c commit 4262cdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# @digitalbazaar/vc ChangeLog

## 6.3.1 -

### Fixed
- Required parameter error for `vc.derive` match name of parameters.

## 6.3.0 - 2023-xx-xx

### Changed
Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export async function derive({
documentLoader = defaultDocumentLoader
} = {}) {
if(!verifiableCredential) {
throw new TypeError('"credential" parameter is required for deriving.');
throw new TypeError('"verifiableCredential" parameter is required for ' +
'deriving.');
}
if(!suite) {
throw new TypeError('"suite" parameter is required for deriving.');
Expand Down

0 comments on commit 4262cdf

Please sign in to comment.