mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Release 0.11.2
This commit is contained in:
parent
fc66f545ef
commit
e7fc47f955
7 changed files with 26 additions and 10 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.11.2] - 2021-03-06
|
||||||
|
## Fixed
|
||||||
|
- Matrix.to URLs
|
||||||
|
|
||||||
## [0.11.1] - 2021-03-06
|
## [0.11.1] - 2021-03-06
|
||||||
## Fixed
|
## Fixed
|
||||||
- Proxy URL encoding
|
- Proxy URL encoding
|
||||||
|
|
16
dist/doip.js
vendored
16
dist/doip.js
vendored
|
@ -1742,7 +1742,7 @@ module.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.c
|
||||||
},{}],14:[function(require,module,exports){
|
},{}],14:[function(require,module,exports){
|
||||||
module.exports={
|
module.exports={
|
||||||
"name": "doipjs",
|
"name": "doipjs",
|
||||||
"version": "0.11.1",
|
"version": "0.11.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": {
|
||||||
|
@ -3477,10 +3477,16 @@ const processURI = (uri, opts) => {
|
||||||
opts = {}
|
opts = {}
|
||||||
}
|
}
|
||||||
const match = uri.match(reURI)
|
const match = uri.match(reURI)
|
||||||
let proofUrl = null
|
|
||||||
|
let profileUrl = null,
|
||||||
|
eventUrl = null,
|
||||||
|
proofUrl = null
|
||||||
|
|
||||||
if (match[2]) {
|
if (match[2]) {
|
||||||
const params = queryString.parse(match[2])
|
const params = queryString.parse(match[2])
|
||||||
if ('org.keyoxide.e' in params && 'org.keyoxide.r' in params) {
|
if ('org.keyoxide.e' in params && 'org.keyoxide.r' in params) {
|
||||||
|
profileUrl = `https://matrix.to/#/${match[1]}`
|
||||||
|
eventUrl = `https://matrix.to/#/${params['org.keyoxide.r']}/${params['org.keyoxide.e']}`
|
||||||
proofUrl = utils.generateProxyURL(
|
proofUrl = utils.generateProxyURL(
|
||||||
'matrix',
|
'matrix',
|
||||||
[params['org.keyoxide.r'], params['org.keyoxide.e']],
|
[params['org.keyoxide.r'], params['org.keyoxide.e']],
|
||||||
|
@ -3496,12 +3502,12 @@ const processURI = (uri, opts) => {
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display: match[1],
|
display: match[1],
|
||||||
uri: uri,
|
uri: profileUrl,
|
||||||
qr: null,
|
qr: null,
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
uri: proofUrl,
|
uri: eventUrl,
|
||||||
fetch: null,
|
fetch: proofUrl,
|
||||||
useProxy: false,
|
useProxy: false,
|
||||||
format: 'json',
|
format: 'json',
|
||||||
},
|
},
|
||||||
|
|
2
dist/doip.min.js
vendored
2
dist/doip.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
# doip.js <small>0.11.1</small>
|
# doip.js <small>0.11.2</small>
|
||||||
|
|
||||||
<img src="doip.png" width="120">
|
<img src="doip.png" width="120">
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.11.2]
|
||||||
|
|
||||||
|
[2021-03-06](https://codeberg.org/keyoxide/doipjs/releases/tag/0.11.2)
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
- Matrix.to URLs
|
||||||
|
|
||||||
## [0.11.1]
|
## [0.11.1]
|
||||||
|
|
||||||
[2021-03-06](https://codeberg.org/keyoxide/doipjs/releases/tag/0.11.1)
|
[2021-03-06](https://codeberg.org/keyoxide/doipjs/releases/tag/0.11.1)
|
||||||
|
@ -7,7 +14,6 @@
|
||||||
## Fixed
|
## Fixed
|
||||||
- Proxy URL encoding
|
- Proxy URL encoding
|
||||||
|
|
||||||
|
|
||||||
## [0.11.0]
|
## [0.11.0]
|
||||||
|
|
||||||
[2021-03-05](https://codeberg.org/keyoxide/doipjs/releases/tag/0.11.0)
|
[2021-03-05](https://codeberg.org/keyoxide/doipjs/releases/tag/0.11.0)
|
||||||
|
|
|
@ -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.11.1/dist/doip.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/doipjs@0.11.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)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "doipjs",
|
"name": "doipjs",
|
||||||
"version": "0.11.1",
|
"version": "0.11.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": {
|
||||||
|
|
Loading…
Reference in a new issue