@0xpolygonid/js-sdk 1.38.5 → 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.
@@ -6697,6 +6697,9 @@ var processZeroKnowledgeProofRequests = async (to, requests, from, proofService,
6697
6697
  const isCircuitSupported = opts.supportedCircuits.includes(proofReq.circuitId);
6698
6698
  if (!isCircuitSupported) {
6699
6699
  if (proofReq.optional) {
6700
+ console.log(
6701
+ `Circuit ${proofReq.circuitId} is not supported, skipping optional proof request`
6702
+ );
6700
6703
  continue;
6701
6704
  }
6702
6705
  throw new Error(`Circuit ${proofReq.circuitId} is not allowed`);
@@ -6716,6 +6719,7 @@ var processZeroKnowledgeProofRequests = async (to, requests, from, proofService,
6716
6719
  );
6717
6720
  if (!credWithRevStatus2.cred) {
6718
6721
  if (proofReq.optional) {
6722
+ console.log(`No credential found for optional proof request, skipping`);
6719
6723
  continue;
6720
6724
  }
6721
6725
  throw new Error(
@@ -6744,6 +6748,7 @@ var processZeroKnowledgeProofRequests = async (to, requests, from, proofService,
6744
6748
  if (error instanceof Error && (expectedErrors.includes(error.message) || error.message.includes(
6745
6749
  VerifiableConstants.ERRORS.PROOF_SERVICE_NO_CREDENTIAL_FOR_QUERY
6746
6750
  )) && proofReq.optional) {
6751
+ console.log(`Error in optional proof request: ${error.message}, skipping`);
6747
6752
  continue;
6748
6753
  }
6749
6754
  throw error;
@@ -9222,6 +9227,7 @@ var PaymentHandler = class extends AbstractMessageHandler {
9222
9227
  method: "POST",
9223
9228
  body: response.buffer,
9224
9229
  headers: {
9230
+ ...ctx.headers,
9225
9231
  "Content-Type": this._params.packerParams.mediaType === "application/iden3comm-plain-json" /* PlainMessage */ ? "application/json" : "application/octet-stream"
9226
9232
  }
9227
9233
  });