chore: release 1.0.4

This commit is contained in:
Yarmo Mackenbach 2023-09-19 15:35:55 +02:00
parent 1baffe9c92
commit 4aba882b1b
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
9 changed files with 17 additions and 9 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.0.4] - 2023-09-19
### Fixed
- Allow the activitypub Person request to fail
## [1.0.3] - 2023-09-19
### Fixed
- Avoid using potentially missing URL for ActivityPub postprocessing

6
dist/doip.core.js vendored
View file

@ -4664,8 +4664,12 @@ var doip = (function (exports, openpgp$1, fetcher) {
switch (proofData.result.type) {
case 'Note': {
claimData.profile.uri = proofData.result.attributedTo;
const personData = await fetcher__namespace.activitypub.fn({ url: proofData.result.attributedTo }, opts);
claimData.profile.display = proofData.result.attributedTo;
const personData = await fetcher__namespace.activitypub.fn({ url: proofData.result.attributedTo }, opts)
.catch(_ => null);
if (personData) {
claimData.profile.display = `@${personData.preferredUsername}@${new URL(claimData.proof.request.uri).hostname}`;
}
break
}

File diff suppressed because one or more lines are too long

View file

@ -2728,7 +2728,7 @@ var doipFetchers = (function (exports) {
* doip.js library version
* @constant {string}
*/
const version = '1.0.3';
const version = '1.0.4';
/*
Copyright 2022 Yarmo Mackenbach

File diff suppressed because one or more lines are too long

View file

@ -2698,7 +2698,7 @@ var doipFetchers = (function (exports) {
* doip.js library version
* @constant {string}
*/
const version = '1.0.3';
const version = '1.0.4';
/*
Copyright 2022 Yarmo Mackenbach

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "doipjs",
"version": "1.0.3",
"version": "1.0.4",
"description": "Decentralized Online Identity Proofs library in Node.js",
"type": "module",
"main": "./src/index.js",

View file

@ -22,4 +22,4 @@ limitations under the License.
* doip.js library version
* @constant {string}
*/
export const version = '1.0.3'
export const version = '1.0.4'