@bedrock/vc-delivery 7.18.0 → 7.18.1

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.
Files changed (2) hide show
  1. package/lib/issue.js +5 -0
  2. package/package.json +1 -1
package/lib/issue.js CHANGED
@@ -197,6 +197,11 @@ function _getIssueZcap({
197
197
  }
198
198
 
199
199
  async function _issue({workflow, exchange, issueRequests, mediaType} = {}) {
200
+ if(issueRequests.length === 0) {
201
+ // no issue requests means nothing to issue or store
202
+ return {credentials: [], storedCredentials: [], exchangeChanged: false};
203
+ }
204
+
200
205
  // create zcap client for issuing VCs
201
206
  const {zcapClient, zcaps} = await getZcapClient({workflow});
202
207
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/vc-delivery",
3
- "version": "7.18.0",
3
+ "version": "7.18.1",
4
4
  "type": "module",
5
5
  "description": "Bedrock Verifiable Credential Delivery",
6
6
  "main": "./lib/index.js",