From 7b207c046cf4ff82d6344431a7dfe052dc11b5f9 Mon Sep 17 00:00:00 2001 From: quaff Date: Wed, 16 Oct 2024 00:14:17 -0700 Subject: [PATCH] fix: cleanup test-service-provider and add attribution to previous PR --- examples/test-service-provider.js | 6 ++---- src/serviceProviders/sourcehut.js | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/test-service-provider.js b/examples/test-service-provider.js index 97bcd40..b088e19 100644 --- a/examples/test-service-provider.js +++ b/examples/test-service-provider.js @@ -1,10 +1,8 @@ import * as doip from '../src/index.js' const main = async () => { - // const sp = doip.ServiceProviderDefinitions.data['activitypub'].processURI('https://fosstodon.org/@yarmo') - // const sp = doip.ServiceProviderDefinitions.data['discourse'].processURI('https://domain.org/u/alice') - const sp = doip.ServiceProviderDefinitions.data['sourcehut'].processURI('https://git.sr.ht/~alice/keyoxide_proof') - console.log(sp); + const sp = doip.ServiceProviderDefinitions.data.sourcehut.processURI('https://git.sr.ht/~alice/keyoxide_proof') + console.log(sp) } main() \ No newline at end of file diff --git a/src/serviceProviders/sourcehut.js b/src/serviceProviders/sourcehut.js index d35cd81..df5b6b0 100644 --- a/src/serviceProviders/sourcehut.js +++ b/src/serviceProviders/sourcehut.js @@ -1,5 +1,6 @@ /* Copyright 2024 quaff +Copyright 2022 tianruiwei Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.