@0xpolygonid/js-sdk 1.38.6 → 1.38.7

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.
@@ -7245,6 +7245,9 @@ var processZeroKnowledgeProofRequests = async (to, requests, from, proofService,
7245
7245
  const isCircuitSupported = opts.supportedCircuits.includes(proofReq.circuitId);
7246
7246
  if (!isCircuitSupported) {
7247
7247
  if (proofReq.optional) {
7248
+ console.log(
7249
+ `Circuit ${proofReq.circuitId} is not supported, skipping optional proof request`
7250
+ );
7248
7251
  continue;
7249
7252
  }
7250
7253
  throw new Error(`Circuit ${proofReq.circuitId} is not allowed`);
@@ -7264,6 +7267,7 @@ var processZeroKnowledgeProofRequests = async (to, requests, from, proofService,
7264
7267
  );
7265
7268
  if (!credWithRevStatus2.cred) {
7266
7269
  if (proofReq.optional) {
7270
+ console.log(`No credential found for optional proof request, skipping`);
7267
7271
  continue;
7268
7272
  }
7269
7273
  throw new Error(
@@ -7292,6 +7296,7 @@ var processZeroKnowledgeProofRequests = async (to, requests, from, proofService,
7292
7296
  if (error instanceof Error && (expectedErrors.includes(error.message) || error.message.includes(
7293
7297
  VerifiableConstants.ERRORS.PROOF_SERVICE_NO_CREDENTIAL_FOR_QUERY
7294
7298
  )) && proofReq.optional) {
7299
+ console.log(`Error in optional proof request: ${error.message}, skipping`);
7295
7300
  continue;
7296
7301
  }
7297
7302
  throw error;