@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.
@@ -592,6 +592,13 @@ var PolygonIdSdk = (function (exports) {
592
592
  return b$5.encodeString(b);
593
593
  }
594
594
 
595
+ /**
596
+ * Merges two objects together, prioritizing the properties of the second object.
597
+ * If a property exists in both objects, the value from the second object will be used.
598
+ * @param credSubject - The first object to merge.
599
+ * @param otherCredSubject - The second object to merge.
600
+ * @returns A new object with the merged properties.
601
+ */
595
602
  function mergeObjects(credSubject, otherCredSubject) {
596
603
  let result = {};
597
604
  const credSubjectKeys = Object.keys(credSubject);
@@ -77067,7 +77074,7 @@ var PolygonIdSdk = (function (exports) {
77067
77074
  * Returns a Map where the key is the groupId and the value is an object containing the query and linkNonce.
77068
77075
  *
77069
77076
  * @param requestScope - An array of ZeroKnowledgeProofRequest objects.
77070
- * @returns A Map<number, { query: JSONObject; linkNonce: number }> representing the grouped queries.
77077
+ * @returns A Map<number, { query: JsonDocumentObject; linkNonce: number }> representing the grouped queries.
77071
77078
  */
77072
77079
  const getGroupedQueries = (requestScope) => requestScope.reduce((acc, proofReq) => {
77073
77080
  const groupId = proofReq.query.groupId;
@@ -80342,6 +80349,7 @@ var PolygonIdSdk = (function (exports) {
80342
80349
  break;
80343
80350
  }
80344
80351
  catch (err) {
80352
+ // eslint-disable-next-line no-console
80345
80353
  console.warn(`Error while transiting state, retrying state transition, attempt: ${attempt}`, err);
80346
80354
  }
80347
80355
  } while (--attempt);