mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
chore: release 1.2.3
This commit is contained in:
parent
c5d6c2c9d9
commit
34688bb644
9 changed files with 14 additions and 9 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.2.3] - 2023-10-03
|
||||||
|
### Fixed
|
||||||
|
- Claim ambiguity logic
|
||||||
|
|
||||||
## [1.2.2] - 2023-10-03
|
## [1.2.2] - 2023-10-03
|
||||||
### Fixed
|
### Fixed
|
||||||
- Service provider information for Lichess and Keybase
|
- Service provider information for Lichess and Keybase
|
||||||
|
|
5
dist/doip.core.js
vendored
5
dist/doip.core.js
vendored
|
@ -5581,12 +5581,13 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isAmbiguous () {
|
isAmbiguous () {
|
||||||
if (this._status === ClaimStatus.INIT) {
|
if (this._status < ClaimStatus.MATCHED) {
|
||||||
throw new Error('The claim has not been matched yet')
|
throw new Error('The claim has not been matched yet')
|
||||||
}
|
}
|
||||||
if (this._matches.length === 0) {
|
if (this._matches.length === 0) {
|
||||||
throw new Error('The claim has no matches')
|
throw new Error('The claim has no matches')
|
||||||
}
|
}
|
||||||
|
if (this._status >= 200 && this._status < 300) return false
|
||||||
return this._matches.length > 1 || this._matches[0].claim.uriIsAmbiguous
|
return this._matches.length > 1 || this._matches[0].claim.uriIsAmbiguous
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5602,7 +5603,7 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
||||||
let displayServiceProviderName = null;
|
let displayServiceProviderName = null;
|
||||||
let displayServiceProviderId = null;
|
let displayServiceProviderId = null;
|
||||||
|
|
||||||
if (!this.isAmbiguous() || (this._status >= 200 && this._status < 300)) {
|
if (this._status >= ClaimStatus.MATCHED && this._matches.length > 0 && !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;
|
||||||
|
|
2
dist/doip.core.min.js
vendored
2
dist/doip.core.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/doip.fetchers.js
vendored
2
dist/doip.fetchers.js
vendored
|
@ -2728,7 +2728,7 @@ var doipFetchers = (function (exports) {
|
||||||
* doip.js library version
|
* doip.js library version
|
||||||
* @constant {string}
|
* @constant {string}
|
||||||
*/
|
*/
|
||||||
const version = '1.2.2';
|
const version = '1.2.3';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2022 Yarmo Mackenbach
|
Copyright 2022 Yarmo Mackenbach
|
||||||
|
|
2
dist/doip.fetchers.min.js
vendored
2
dist/doip.fetchers.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/doip.fetchers.minimal.js
vendored
2
dist/doip.fetchers.minimal.js
vendored
|
@ -2698,7 +2698,7 @@ var doipFetchers = (function (exports) {
|
||||||
* doip.js library version
|
* doip.js library version
|
||||||
* @constant {string}
|
* @constant {string}
|
||||||
*/
|
*/
|
||||||
const version = '1.2.2';
|
const version = '1.2.3';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2022 Yarmo Mackenbach
|
Copyright 2022 Yarmo Mackenbach
|
||||||
|
|
2
dist/doip.fetchers.minimal.min.js
vendored
2
dist/doip.fetchers.minimal.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "doipjs",
|
"name": "doipjs",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"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",
|
||||||
|
|
|
@ -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.2'
|
export const version = '1.2.3'
|
||||||
|
|
Loading…
Reference in a new issue