mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Release 0.17.1
This commit is contained in:
parent
2c722d31a9
commit
6d89cc0542
4 changed files with 19 additions and 12 deletions
|
@ -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
16
dist/doip.js
vendored
|
@ -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
2
dist/doip.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue