chore: release 1.2.4

This commit is contained in:
Yarmo Mackenbach 2023-10-04 09:13:43 +02:00
parent fc0af3dd1d
commit 2dd18395dd
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
9 changed files with 20 additions and 13 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.2.4] - 2023-10-04
### Changed
- Claim display information
## [1.2.3] - 2023-10-03 ## [1.2.3] - 2023-10-03
### Fixed ### Fixed
- Claim ambiguity logic - Claim ambiguity logic

15
dist/doip.core.js vendored
View file

@ -5598,14 +5598,16 @@ var doip = (function (exports, openpgp$1, fetcher) {
* @returns {object} * @returns {object}
*/ */
toJSON () { toJSON () {
let displayName = this._uri; let displayProfileName = this._uri;
let displayUrl = null; let displayProfileUrl = null;
let displayProofUrl = null;
let displayServiceProviderName = null; let displayServiceProviderName = null;
let displayServiceProviderId = null; let displayServiceProviderId = null;
if (this._status >= ClaimStatus.MATCHED && this._matches.length > 0 && !this.isAmbiguous()) { if (this._status >= ClaimStatus.MATCHED && this._matches.length > 0 && !this.isAmbiguous()) {
displayName = this._matches[0].profile.display; displayProfileName = this._matches[0].profile.display;
displayUrl = this._matches[0].profile.uri; displayProfileUrl = this._matches[0].profile.uri;
displayProofUrl = this._matches[0].proof.request.uri;
displayServiceProviderName = this._matches[0].about.name; displayServiceProviderName = this._matches[0].about.name;
displayServiceProviderId = this._matches[0].about.id; displayServiceProviderId = this._matches[0].about.id;
} }
@ -5617,8 +5619,9 @@ var doip = (function (exports, openpgp$1, fetcher) {
matches: this._matches.map(x => x.toJSON()), matches: this._matches.map(x => x.toJSON()),
status: this._status, status: this._status,
display: { display: {
name: displayName, profileName: displayProfileName,
url: displayUrl, profileUrl: displayProfileUrl,
proofUrl: displayProofUrl,
serviceProviderName: displayServiceProviderName, serviceProviderName: displayServiceProviderName,
serviceProviderId: displayServiceProviderId serviceProviderId: displayServiceProviderId
} }

File diff suppressed because one or more lines are too long

View file

@ -2728,7 +2728,7 @@ var doipFetchers = (function (exports) {
* doip.js library version * doip.js library version
* @constant {string} * @constant {string}
*/ */
const version = '1.2.3'; const version = '1.2.4';
/* /*
Copyright 2022 Yarmo Mackenbach Copyright 2022 Yarmo Mackenbach

File diff suppressed because one or more lines are too long

View file

@ -2698,7 +2698,7 @@ var doipFetchers = (function (exports) {
* doip.js library version * doip.js library version
* @constant {string} * @constant {string}
*/ */
const version = '1.2.3'; const version = '1.2.4';
/* /*
Copyright 2022 Yarmo Mackenbach Copyright 2022 Yarmo Mackenbach

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "doipjs", "name": "doipjs",
"version": "1.2.3", "version": "1.2.4",
"description": "Decentralized Online Identity Proofs library in Node.js", "description": "Decentralized Online Identity Proofs library in Node.js",
"type": "module", "type": "module",
"main": "./src/index.js", "main": "./src/index.js",

View file

@ -22,4 +22,4 @@ limitations under the License.
* doip.js library version * doip.js library version
* @constant {string} * @constant {string}
*/ */
export const version = '1.2.3' export const version = '1.2.4'