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.