fix: fix import calls preventing proper bundling

This commit is contained in:
Yarmo Mackenbach 2023-09-18 12:49:35 +02:00
parent 8ea07938e4
commit 2a314bef52
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
2 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

@ -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
}