From 2a314bef521ab83501d1635794f79e8737c7ea95 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 18 Sep 2023 12:49:35 +0200 Subject: [PATCH] fix: fix import calls preventing proper bundling --- src/proofs.js | 2 +- src/serviceProviders/activitypub.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proofs.js b/src/proofs.js index 82af153..b4aa450 100644 --- a/src/proofs.js +++ b/src/proofs.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ import { isNode } from 'browser-or-node' -import * as fetcher from './fetcher/index.js' +import { fetcher } from './index.js' import { generateProxyURL } from './utils.js' import { ProxyPolicy, ProofAccessRestriction } from './enums.js' diff --git a/src/serviceProviders/activitypub.js b/src/serviceProviders/activitypub.js index d200200..fcc8ec2 100644 --- a/src/serviceProviders/activitypub.js +++ b/src/serviceProviders/activitypub.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ import * as E from '../enums.js' -import { activitypub } from '../fetcher/index.js' +import { fetcher } from '../index.js' import { ServiceProvider } from '../serviceProvider.js' export const reURI = /^https:\/\/(.*)\/?/ @@ -81,7 +81,7 @@ export const functions = { switch (proofData.result.type) { case 'Note': { claimData.profile.uri = proofData.result.attributedTo - const personData = await activitypub.fn({ url: proofData.result.attributedTo }, opts) + const personData = await fetcher.activitypub.fn({ url: proofData.result.attributedTo }, opts) claimData.profile.display = `@${personData.preferredUsername}@${new URL(proofData.result.url).hostname}` break }