forked from Mirrors/doipjs
chore: release 1.2.5
This commit is contained in:
parent
a3c9e9137d
commit
8a01cdf9fa
9 changed files with 25 additions and 8 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.2.5] - 2023-10-05
|
||||
### Added
|
||||
- Support for theme color
|
||||
|
||||
## [1.2.4] - 2023-10-04
|
||||
### Changed
|
||||
- Claim display information
|
||||
|
|
13
dist/doip.core.js
vendored
13
dist/doip.core.js
vendored
|
@ -5750,6 +5750,12 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
|||
* @public
|
||||
*/
|
||||
this.avatarUrl = null;
|
||||
/**
|
||||
* Theme color
|
||||
* @type {string | null}
|
||||
* @public
|
||||
*/
|
||||
this.themeColor = null;
|
||||
/**
|
||||
* List of identity claims
|
||||
* @type {import('./claim.js').Claim[]}
|
||||
|
@ -5854,6 +5860,7 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
|||
email: this.email,
|
||||
description: this.description,
|
||||
avatarUrl: this.avatarUrl,
|
||||
themeColor: this.themeColor,
|
||||
isRevoked: this.isRevoked,
|
||||
claims: this.claims.map(x => x.toJSON())
|
||||
}
|
||||
|
@ -5873,6 +5880,7 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
|||
persona.email = personaObject.email;
|
||||
persona.description = personaObject.description;
|
||||
persona.avatarUrl = personaObject.avatarUrl;
|
||||
persona.themeColor = personaObject.avatarUrl;
|
||||
persona.isRevoked = personaObject.isRevoked;
|
||||
|
||||
return persona
|
||||
|
@ -9742,6 +9750,8 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
|||
const profileName = payloadJson['http://ariadne.id/name'];
|
||||
/** @type {string} */
|
||||
const profileDescription = payloadJson['http://ariadne.id/description'];
|
||||
/** @type {string} */
|
||||
const profileThemeColor = payloadJson['http://ariadne.id/color'];
|
||||
/** @type {string[]} */
|
||||
const profileClaims = payloadJson['http://ariadne.id/claims'];
|
||||
|
||||
|
@ -9751,6 +9761,9 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
|||
if (profileDescription) {
|
||||
pe.setDescription(profileDescription);
|
||||
}
|
||||
if (profileThemeColor && /^#([0-9A-F]{3}){1,2}$/i.test(profileThemeColor)) {
|
||||
pe.themeColor = profileThemeColor;
|
||||
}
|
||||
|
||||
const profile = new Profile(ProfileType.ASP, uri, [pe]);
|
||||
profile.publicKey.fingerprint = fp;
|
||||
|
|
4
dist/doip.core.min.js
vendored
4
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
|
||||
* @constant {string}
|
||||
*/
|
||||
const version = '1.2.4';
|
||||
const version = '1.2.5';
|
||||
|
||||
/*
|
||||
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
|
||||
* @constant {string}
|
||||
*/
|
||||
const version = '1.2.4';
|
||||
const version = '1.2.5';
|
||||
|
||||
/*
|
||||
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",
|
||||
"version": "1.2.4",
|
||||
"version": "1.2.5",
|
||||
"description": "Decentralized Online Identity Proofs library in Node.js",
|
||||
"type": "module",
|
||||
"main": "./src/index.js",
|
||||
|
|
|
@ -22,4 +22,4 @@ limitations under the License.
|
|||
* doip.js library version
|
||||
* @constant {string}
|
||||
*/
|
||||
export const version = '1.2.4'
|
||||
export const version = '1.2.5'
|
||||
|
|
Loading…
Reference in a new issue