@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.
- package/dist/browser/esm/index.js +9 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +9 -1
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/iden3comm/handlers/common.js +1 -1
- package/dist/node/cjs/identity/identity-wallet.js +1 -0
- package/dist/node/cjs/utils/object.js +7 -0
- package/dist/node/esm/iden3comm/handlers/common.js +1 -1
- package/dist/node/esm/identity/identity-wallet.js +1 -0
- package/dist/node/esm/utils/object.js +7 -0
- package/dist/types/credentials/models.d.ts +2 -3
- package/dist/types/iden3comm/handlers/credential-proposal.d.ts +3 -3
- package/dist/types/iden3comm/types/packer.d.ts +10 -0
- package/dist/types/iden3comm/types/protocol/auth.d.ts +4 -4
- package/dist/types/iden3comm/types/protocol/credentials.d.ts +2 -2
- package/dist/types/iden3comm/types/protocol/proposal-request.d.ts +3 -3
- package/dist/types/proof/common.d.ts +3 -3
- package/dist/types/utils/object.d.ts +2 -5
- package/dist/types/verifiable/credential.d.ts +2 -3
- package/dist/types/verifiable/presentation.d.ts +2 -2
- package/dist/types/verifiable/proof.d.ts +2 -4
- package/package.json +1 -1
|
@@ -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:
|
|
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);
|