mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Release 0.12.8
This commit is contained in:
parent
4c9b96af1a
commit
f6338bbfac
4 changed files with 16 additions and 12 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.12.8] - 2021-06-03
|
||||
### Fixed
|
||||
- Expose key revocation status
|
||||
|
||||
## [0.12.7] - 2021-06-03
|
||||
### Fixed
|
||||
- IRC nickname regex
|
||||
|
|
20
dist/doip.js
vendored
20
dist/doip.js
vendored
|
@ -7515,7 +7515,7 @@ module.exports.default = exports.default;
|
|||
},{"./util/assertString":107}],113:[function(require,module,exports){
|
||||
module.exports={
|
||||
"name": "doipjs",
|
||||
"version": "0.12.7",
|
||||
"version": "0.12.8",
|
||||
"description": "Decentralized OpenPGP Identity Proofs library in Node.js",
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
@ -10443,20 +10443,20 @@ exports.process = (publicKey) => {
|
|||
email: user.userId ? user.userId.email : null,
|
||||
comment: user.userId ? user.userId.comment : null,
|
||||
isPrimary: primaryUser.index === i,
|
||||
isRevoked: false,
|
||||
},
|
||||
claims: [],
|
||||
}
|
||||
|
||||
if ('selfCertifications' in user && user.selfCertifications.length > 0) {
|
||||
const notations = user.selfCertifications[0].rawNotations
|
||||
usersOutput[i].claims = notations.map(
|
||||
({ name, value, humanReadable }) => {
|
||||
if (humanReadable && name === 'proof@metacode.biz') {
|
||||
const notation = openpgp.util.decode_utf8(value)
|
||||
return new Claim(notation, fingerprint)
|
||||
}
|
||||
}
|
||||
)
|
||||
const selfCertification = user.selfCertifications[0]
|
||||
|
||||
const notations = selfCertification.rawNotations
|
||||
usersOutput[i].claims = notations
|
||||
.filter(({ name, humanReadable }) => humanReadable && name === 'proof@metacode.biz')
|
||||
.map(({ value }) => new Claim(openpgp.util.decode_utf8(value)), fingerprint)
|
||||
|
||||
usersOutput[i].userData.isRevoked = selfCertification.revoked
|
||||
}
|
||||
})
|
||||
|
||||
|
|
2
dist/doip.min.js
vendored
2
dist/doip.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "doipjs",
|
||||
"version": "0.12.7",
|
||||
"version": "0.12.8",
|
||||
"description": "Decentralized OpenPGP Identity Proofs library in Node.js",
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in a new issue