@0xpolygonid/js-sdk 1.17.4 → 1.17.5

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.
@@ -541,6 +541,13 @@ function bytesToHex$3(b) {
541
541
  return Hex.encodeString(b);
542
542
  }
543
543
 
544
+ /**
545
+ * Merges two objects together, prioritizing the properties of the second object.
546
+ * If a property exists in both objects, the value from the second object will be used.
547
+ * @param credSubject - The first object to merge.
548
+ * @param otherCredSubject - The second object to merge.
549
+ * @returns A new object with the merged properties.
550
+ */
544
551
  function mergeObjects(credSubject, otherCredSubject) {
545
552
  let result = {};
546
553
  const credSubjectKeys = Object.keys(credSubject);
@@ -56159,7 +56166,7 @@ var CredentialOfferStatus;
56159
56166
  * Returns a Map where the key is the groupId and the value is an object containing the query and linkNonce.
56160
56167
  *
56161
56168
  * @param requestScope - An array of ZeroKnowledgeProofRequest objects.
56162
- * @returns A Map<number, { query: JSONObject; linkNonce: number }> representing the grouped queries.
56169
+ * @returns A Map<number, { query: JsonDocumentObject; linkNonce: number }> representing the grouped queries.
56163
56170
  */
56164
56171
  const getGroupedQueries = (requestScope) => requestScope.reduce((acc, proofReq) => {
56165
56172
  const groupId = proofReq.query.groupId;
@@ -59434,6 +59441,7 @@ class IdentityWallet {
59434
59441
  break;
59435
59442
  }
59436
59443
  catch (err) {
59444
+ // eslint-disable-next-line no-console
59437
59445
  console.warn(`Error while transiting state, retrying state transition, attempt: ${attempt}`, err);
59438
59446
  }
59439
59447
  } while (--attempt);