Release 0.12.8

This commit is contained in:
Yarmo Mackenbach 2021-06-03 13:01:23 +02:00
parent 4c9b96af1a
commit f6338bbfac
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
4 changed files with 16 additions and 12 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.12.8] - 2021-06-03
### Fixed
- Expose key revocation status
## [0.12.7] - 2021-06-03 ## [0.12.7] - 2021-06-03
### Fixed ### Fixed
- IRC nickname regex - IRC nickname regex

20
dist/doip.js vendored
View file

@ -7515,7 +7515,7 @@ module.exports.default = exports.default;
},{"./util/assertString":107}],113:[function(require,module,exports){ },{"./util/assertString":107}],113:[function(require,module,exports){
module.exports={ module.exports={
"name": "doipjs", "name": "doipjs",
"version": "0.12.7", "version": "0.12.8",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js", "description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "src/index.js", "main": "src/index.js",
"dependencies": { "dependencies": {
@ -10443,20 +10443,20 @@ exports.process = (publicKey) => {
email: user.userId ? user.userId.email : null, email: user.userId ? user.userId.email : null,
comment: user.userId ? user.userId.comment : null, comment: user.userId ? user.userId.comment : null,
isPrimary: primaryUser.index === i, isPrimary: primaryUser.index === i,
isRevoked: false,
}, },
claims: [], claims: [],
} }
if ('selfCertifications' in user && user.selfCertifications.length > 0) { if ('selfCertifications' in user && user.selfCertifications.length > 0) {
const notations = user.selfCertifications[0].rawNotations const selfCertification = user.selfCertifications[0]
usersOutput[i].claims = notations.map(
({ name, value, humanReadable }) => { const notations = selfCertification.rawNotations
if (humanReadable && name === 'proof@metacode.biz') { usersOutput[i].claims = notations
const notation = openpgp.util.decode_utf8(value) .filter(({ name, humanReadable }) => humanReadable && name === 'proof@metacode.biz')
return new Claim(notation, fingerprint) .map(({ value }) => new Claim(openpgp.util.decode_utf8(value)), fingerprint)
}
} usersOutput[i].userData.isRevoked = selfCertification.revoked
)
} }
}) })

2
dist/doip.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "doipjs", "name": "doipjs",
"version": "0.12.7", "version": "0.12.8",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js", "description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "src/index.js", "main": "src/index.js",
"dependencies": { "dependencies": {