chore: release 1.2.2

This commit is contained in:
Yarmo Mackenbach 2023-10-03 12:05:09 +02:00
parent 7e5d15ac0f
commit 0d1e400d02
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
9 changed files with 23 additions and 17 deletions

View file

@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.2.2] - 2023-10-03
### Fixed
- Service provider information for Lichess and Keybase
- Display data logic in claim toJSON
## [1.2.1] - 2023-09-23 ## [1.2.1] - 2023-09-23
Bump necessary due to tag-related glitch in git forge Bump necessary due to tag-related glitch in git forge

21
dist/doip.core.js vendored
View file

@ -3742,8 +3742,9 @@ var doip = (function (exports, openpgp$1, fetcher) {
return new ServiceProvider({ return new ServiceProvider({
about: { about: {
id: 'web', id: 'lichess',
name: 'lichess' name: 'Lichess',
homepage: 'https://lichess.org'
}, },
profile: { profile: {
display: match[1], display: match[1],
@ -5006,8 +5007,9 @@ var doip = (function (exports, openpgp$1, fetcher) {
return new ServiceProvider({ return new ServiceProvider({
about: { about: {
id: 'web', id: 'keybase',
name: 'keybase' name: 'keybase',
homepage: 'https://keybase.io'
}, },
profile: { profile: {
display: match[1], display: match[1],
@ -5598,15 +5600,13 @@ var doip = (function (exports, openpgp$1, fetcher) {
let displayName = this._uri; let displayName = this._uri;
let displayUrl = null; let displayUrl = null;
let displayServiceProviderName = null; let displayServiceProviderName = null;
let displayServiceProviderId = null;
if (this._status >= 200 && this._status < 300) { if (!this.isAmbiguous() || (this._status >= 200 && this._status < 300)) {
displayName = this._matches[0].profile.display;
displayUrl = this._matches[0].profile.uri;
displayServiceProviderName = this._matches[0].about.name;
} else if (this._status === ClaimStatus.MATCHED && !this.isAmbiguous()) {
displayName = this._matches[0].profile.display; displayName = this._matches[0].profile.display;
displayUrl = this._matches[0].profile.uri; displayUrl = this._matches[0].profile.uri;
displayServiceProviderName = this._matches[0].about.name; displayServiceProviderName = this._matches[0].about.name;
displayServiceProviderId = this._matches[0].about.id;
} }
return { return {
@ -5618,7 +5618,8 @@ var doip = (function (exports, openpgp$1, fetcher) {
display: { display: {
name: displayName, name: displayName,
url: displayUrl, url: displayUrl,
serviceProviderName: displayServiceProviderName serviceProviderName: displayServiceProviderName,
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.1'; const version = '1.2.2';
/* /*
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.1'; const version = '1.2.2';
/* /*
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.1", "version": "1.2.2",
"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.1' export const version = '1.2.2'