mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
chore: release 1.0.3
This commit is contained in:
parent
81d5ba0d57
commit
feda782136
9 changed files with 14 additions and 10 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.0.3] - 2023-09-19
|
||||
### Fixed
|
||||
- Avoid using potentially missing URL for ActivityPub postprocessing
|
||||
|
||||
## [1.0.2] - 2023-09-19
|
||||
### Fixed
|
||||
- Make nodeinfo requests use HTTPS
|
||||
|
|
6
dist/doip.core.js
vendored
6
dist/doip.core.js
vendored
|
@ -4665,17 +4665,17 @@ var doip = (function (exports, openpgp$1, fetcher) {
|
|||
case 'Note': {
|
||||
claimData.profile.uri = proofData.result.attributedTo;
|
||||
const personData = await fetcher__namespace.activitypub.fn({ url: proofData.result.attributedTo }, opts);
|
||||
claimData.profile.display = `@${personData.preferredUsername}@${new URL(proofData.result.url).hostname}`;
|
||||
claimData.profile.display = `@${personData.preferredUsername}@${new URL(claimData.proof.request.uri).hostname}`;
|
||||
break
|
||||
}
|
||||
|
||||
case 'Person':
|
||||
claimData.profile.display = `@${proofData.result.preferredUsername}@${new URL(proofData.result.url).hostname}`;
|
||||
claimData.profile.display = `@${proofData.result.preferredUsername}@${new URL(claimData.proof.request.uri).hostname}`;
|
||||
break
|
||||
}
|
||||
|
||||
// Attempt to fetch and process the instance's NodeInfo data
|
||||
const nodeinfo = await _processNodeinfo(new URL(proofData.result.url).hostname);
|
||||
const nodeinfo = await _processNodeinfo(new URL(claimData.proof.request.uri).hostname);
|
||||
if (nodeinfo) {
|
||||
claimData.about.name = nodeinfo.software.name;
|
||||
claimData.about.id = nodeinfo.software.name;
|
||||
|
|
2
dist/doip.core.min.js
vendored
2
dist/doip.core.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/doip.fetchers.js
vendored
2
dist/doip.fetchers.js
vendored
|
@ -2728,7 +2728,7 @@ var doipFetchers = (function (exports) {
|
|||
* doip.js library version
|
||||
* @constant {string}
|
||||
*/
|
||||
const version = '1.0.2';
|
||||
const version = '1.0.3';
|
||||
|
||||
/*
|
||||
Copyright 2022 Yarmo Mackenbach
|
||||
|
|
2
dist/doip.fetchers.min.js
vendored
2
dist/doip.fetchers.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/doip.fetchers.minimal.js
vendored
2
dist/doip.fetchers.minimal.js
vendored
|
@ -2698,7 +2698,7 @@ var doipFetchers = (function (exports) {
|
|||
* doip.js library version
|
||||
* @constant {string}
|
||||
*/
|
||||
const version = '1.0.2';
|
||||
const version = '1.0.3';
|
||||
|
||||
/*
|
||||
Copyright 2022 Yarmo Mackenbach
|
||||
|
|
2
dist/doip.fetchers.minimal.min.js
vendored
2
dist/doip.fetchers.minimal.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "doipjs",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"description": "Decentralized Online Identity Proofs library in Node.js",
|
||||
"type": "module",
|
||||
"main": "./src/index.js",
|
||||
|
|
|
@ -22,4 +22,4 @@ limitations under the License.
|
|||
* doip.js library version
|
||||
* @constant {string}
|
||||
*/
|
||||
export const version = '1.0.2'
|
||||
export const version = '1.0.3'
|
||||
|
|
Loading…
Reference in a new issue