@unumid/server-sdk
Advanced tools
Comparing version 3.26.1 to 3.26.2
@@ -296,3 +296,3 @@ "use strict"; | ||
if (issueCredentialsToSelf) { | ||
issuerCredSubject = __assign({ id: issuerDid }, credData); | ||
issuerCredSubject = __assign(__assign({}, credData), { id: issuerDid }); | ||
issuerCredentialVersionPairs = constructEncryptedCredentialOfEachVersion(authorization, type, issuerDid, credentialId, issuerCredSubject, signingPrivateKey, issuerPublicKeyInfos, expirationDate); | ||
@@ -485,4 +485,7 @@ // add all issuerCredentialVersionPairs to creds array | ||
} | ||
if (data.id) { | ||
throw new error_1.CustError(400, 'Credential Data has an invalid `id` key'); | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=issueCredentials.js.map |
{ | ||
"name": "@unumid/server-sdk", | ||
"version": "3.26.1", | ||
"version": "3.26.2", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git", |
{ | ||
"name": "@unumid/server-sdk", | ||
"version": "3.26.1", | ||
"version": "3.26.2", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git", |
@@ -284,3 +284,3 @@ import { configData } from '../config'; | ||
// construct the Credential's credentialSubject for the issuerDid | ||
const issuerCredSubject: CredentialSubject = { id: issuerDid, ...credData }; | ||
const issuerCredSubject: CredentialSubject = { ...credData, id: issuerDid }; | ||
@@ -485,3 +485,7 @@ // construct the Credentials and their encrypted form for each supported version for the issuer | ||
} | ||
if (data.id) { | ||
throw new CustError(400, 'Credential Data has an invalid `id` key'); | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1395809
16350