Release 0.17.1

This commit is contained in:
Yarmo Mackenbach 2022-10-25 10:26:24 +02:00
parent 2c722d31a9
commit 6d89cc0542
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
4 changed files with 19 additions and 12 deletions

View file

@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.17.1] - 2022-10-25
### Fixed
- ActivityPub definition
- Claim verification logic
## [0.17.0] - 2022-10-24 ## [0.17.0] - 2022-10-24
### Added ### Added
- ActivityPub claim verification - ActivityPub claim verification

16
dist/doip.js vendored
View file

@ -38808,8 +38808,8 @@ module.exports.default = exports.default;
},{"./util/assertString":323}],329:[function(require,module,exports){ },{"./util/assertString":323}],329:[function(require,module,exports){
module.exports={ module.exports={
"name": "doipjs", "name": "doipjs",
"version": "0.17.0", "version": "0.17.1",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js", "description": "Decentralized Online Identity Proofs library in Node.js",
"main": "./src/index.js", "main": "./src/index.js",
"dependencies": { "dependencies": {
"@openpgp/hkp-client": "^0.0.2", "@openpgp/hkp-client": "^0.0.2",
@ -39142,7 +39142,9 @@ class Claim {
// Post process the data // Post process the data
if (claimData.functions && claimData.functions.postprocess) { if (claimData.functions && claimData.functions.postprocess) {
try {
({ claimData, proofData } = claimData.functions.postprocess(claimData, proofData)) ({ claimData, proofData } = claimData.functions.postprocess(claimData, proofData))
} catch (_) {}
} }
} else { } else {
// Consider the proof completed but with a negative result // Consider the proof completed but with a negative result
@ -39152,12 +39154,12 @@ class Claim {
proof: {}, proof: {},
errors: [proofFetchError] errors: [proofFetchError]
} }
}
if (this.isAmbiguous()) { if (this.isAmbiguous() && !verificationResult.result) {
// Assume a wrong match and continue // Assume a wrong match and continue
continue continue
} }
}
if (verificationResult.completed) { if (verificationResult.completed) {
// Store the result, keep a single match and stop verifying // Store the result, keep a single match and stop verifying
@ -39174,7 +39176,7 @@ class Claim {
result: false, result: false,
completed: true, completed: true,
proof: {}, proof: {},
errors: ['Unknown error'] errors: []
} }
this._status = E.ClaimStatus.VERIFIED this._status = E.ClaimStatus.VERIFIED
@ -39245,7 +39247,7 @@ const processURI = (uri) => {
}, },
match: { match: {
regularExpression: reURI, regularExpression: reURI,
isAmbiguous: false isAmbiguous: true
}, },
profile: { profile: {
display: uri, display: uri,
@ -42979,7 +42981,7 @@ const runJSON = async (proofData, checkPath, checkClaim, checkClaimFormat, check
} }
} }
if (!(checkPath[0] in proofData)) { if (typeof proofData === 'object' && !(checkPath[0] in proofData)) {
throw new Error('err_json_structure_incorrect') throw new Error('err_json_structure_incorrect')
} }

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.17.0", "version": "0.17.1",
"description": "Decentralized Online Identity Proofs library in Node.js", "description": "Decentralized Online Identity Proofs library in Node.js",
"main": "./src/index.js", "main": "./src/index.js",
"dependencies": { "dependencies": {