chore: release 1.0.3

This commit is contained in:
Yarmo Mackenbach 2023-09-19 13:37:41 +02:00
parent 81d5ba0d57
commit feda782136
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
9 changed files with 14 additions and 10 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.0.3] - 2023-09-19
### Fixed
- Avoid using potentially missing URL for ActivityPub postprocessing
## [1.0.2] - 2023-09-19 ## [1.0.2] - 2023-09-19
### Fixed ### Fixed
- Make nodeinfo requests use HTTPS - Make nodeinfo requests use HTTPS

6
dist/doip.core.js vendored
View file

@ -4665,17 +4665,17 @@ var doip = (function (exports, openpgp$1, fetcher) {
case 'Note': { case 'Note': {
claimData.profile.uri = proofData.result.attributedTo; claimData.profile.uri = proofData.result.attributedTo;
const personData = await fetcher__namespace.activitypub.fn({ url: proofData.result.attributedTo }, opts); 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 break
} }
case 'Person': 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 break
} }
// Attempt to fetch and process the instance's NodeInfo data // 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) { if (nodeinfo) {
claimData.about.name = nodeinfo.software.name; claimData.about.name = nodeinfo.software.name;
claimData.about.id = nodeinfo.software.name; claimData.about.id = nodeinfo.software.name;

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 * doip.js library version
* @constant {string} * @constant {string}
*/ */
const version = '1.0.2'; const version = '1.0.3';
/* /*
Copyright 2022 Yarmo Mackenbach 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 * doip.js library version
* @constant {string} * @constant {string}
*/ */
const version = '1.0.2'; const version = '1.0.3';
/* /*
Copyright 2022 Yarmo Mackenbach Copyright 2022 Yarmo Mackenbach

File diff suppressed because one or more lines are too long

View file

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

View file

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