@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
|
@@ -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:
|
|
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);
|