Release 0.8.2

This commit is contained in:
Yarmo Mackenbach 2020-12-26 13:58:33 +01:00
parent 32c01756d3
commit a8389bd0b6
7 changed files with 27 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.8.2] - 2020-12-26
### Fixed
- Hanlding of users without selfCertifications
## [0.8.1] - 2020-12-20 ## [0.8.1] - 2020-12-20
### Fixed ### Fixed
- Timeout for claim verification promises - Timeout for claim verification promises

20
dist/doip.js vendored
View file

@ -1193,7 +1193,7 @@ process.umask = function() { return 0; };
},{}],9:[function(require,module,exports){ },{}],9:[function(require,module,exports){
module.exports={ module.exports={
"name": "doipjs", "name": "doipjs",
"version": "0.8.1", "version": "0.8.2",
"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": {
@ -1757,14 +1757,18 @@ const process = (publicKey) => {
}, },
} }
const notations = user.selfCertifications[0].rawNotations if ('selfCertifications' in user && user.selfCertifications.length >= 0) {
usersOutput[i].notations = notations.map( const notations = user.selfCertifications[0].rawNotations
({ name, value, humanReadable }) => { usersOutput[i].notations = notations.map(
if (humanReadable && name === 'proof@metacode.biz') { ({ name, value, humanReadable }) => {
return openpgp.util.decode_utf8(value) if (humanReadable && name === 'proof@metacode.biz') {
return openpgp.util.decode_utf8(value)
}
} }
} )
) } else {
usersOutput[i].notations = []
}
}) })
resolve({ resolve({

2
dist/doip.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
# doip.js <small>0.8.1</small> # doip.js <small>0.8.2</small>
<img src="doip.png" width="120"> <img src="doip.png" width="120">

View file

@ -1,5 +1,12 @@
# Changelog # Changelog
## [0.8.2]
[2020-12-26](https://codeberg.org/keyoxide/doipjs/releases/tag/0.8.2)
### Fixed
- Hanlding of users without selfCertifications
## [0.8.1] ## [0.8.1]
[2020-12-20](https://codeberg.org/keyoxide/doipjs/releases/tag/0.8.1) [2020-12-20](https://codeberg.org/keyoxide/doipjs/releases/tag/0.8.1)

View file

@ -15,7 +15,7 @@ npm install --save doipjs
Install on website by including the following HTML snippet: Install on website by including the following HTML snippet:
```html ```html
<script src="https://cdn.jsdelivr.net/npm/doipjs@0.8.1/dist/doip.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/doipjs@0.8.2/dist/doip.min.js"></script>
``` ```
Next step: [quick start (Node.js)](quickstart-nodejs.md) and [quick start (browser)](quickstart-browser.md) Next step: [quick start (Node.js)](quickstart-nodejs.md) and [quick start (browser)](quickstart-browser.md)

View file

@ -1,6 +1,6 @@
{ {
"name": "doipjs", "name": "doipjs",
"version": "0.8.1", "version": "0.8.2",
"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": {