mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Release 0.12.9
This commit is contained in:
parent
12df5b3fc3
commit
f0fec90001
4 changed files with 20 additions and 5 deletions
|
@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.12.9] - 2021-06-03
|
||||
### Fixed
|
||||
- Typo during claim generation
|
||||
- Handle claims without matches
|
||||
|
||||
## [0.12.8] - 2021-06-03
|
||||
### Fixed
|
||||
- Expose key revocation status
|
||||
|
|
14
dist/doip.js
vendored
14
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.8",
|
||||
"version": "0.12.9",
|
||||
"description": "Decentralized OpenPGP Identity Proofs library in Node.js",
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
@ -7798,6 +7798,16 @@ class Claim {
|
|||
// Handle options
|
||||
opts = mergeOptions(defaults.opts, opts ? opts : {})
|
||||
|
||||
// If there are no matches
|
||||
if (this._matches.length === 0) {
|
||||
this._verification = {
|
||||
result: false,
|
||||
completed: true,
|
||||
proof: {},
|
||||
errors: ['No matches for claim'],
|
||||
}
|
||||
}
|
||||
|
||||
// For each match
|
||||
for (let index = 0; index < this._matches.length; index++) {
|
||||
const claimData = this._matches[index]
|
||||
|
@ -10454,7 +10464,7 @@ exports.process = (publicKey) => {
|
|||
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)
|
||||
.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.8",
|
||||
"version": "0.12.9",
|
||||
"description": "Decentralized OpenPGP Identity Proofs library in Node.js",
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in a new issue