Release 0.17.5

This commit is contained in:
Yarmo Mackenbach 2022-11-14 23:54:51 +01:00
parent 13e20fe6fb
commit 66e3e68e2f
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,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.17.5] - 2022-11-14
### Fixed
- Implementation of postprocess function
## [0.17.3] - 2022-11-14
### Changed
- Add fetcher to lib exports

23
dist/doip.js vendored
View file

@ -38808,7 +38808,7 @@ module.exports.default = exports.default;
},{"./util/assertString":323}],329:[function(require,module,exports){
module.exports={
"name": "doipjs",
"version": "0.17.3",
"version": "0.17.5",
"description": "Decentralized Online Identity Proofs library in Node.js",
"main": "./src/index.js",
"dependencies": {
@ -39141,9 +39141,10 @@ class Claim {
}
// Post process the data
if (claimData.functions && claimData.functions.postprocess) {
const def = claimDefinitions.data[claimData.serviceprovider.name]
if (def.functions && def.functions.postprocess) {
try {
({ claimData, proofData } = claimData.functions.postprocess(claimData, proofData))
({ claimData, proofData } = def.functions.postprocess(claimData, proofData))
} catch (_) {}
}
} else {
@ -39276,13 +39277,14 @@ const processURI = (uri) => {
relation: E.ClaimRelation.CONTAINS,
path: ['attachment', 'value']
}
],
functions: {
postprocess: (claimData, proofData) => {
claimData.profile.display = `${proofData.result.preferredUsername}@${new URL(proofData.result.url).hostname}`
return { claimData, proofData }
}
}
]
}
}
const functions = {
postprocess: (claimData, proofData) => {
claimData.profile.display = `${proofData.result.preferredUsername}@${new URL(proofData.result.url).hostname}`
return { claimData, proofData }
}
}
@ -39315,6 +39317,7 @@ const tests = [
exports.reURI = reURI
exports.processURI = processURI
exports.functions = functions
exports.tests = tests
},{"../enums":354}],332:[function(require,module,exports){

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