mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
fix: fix import calls preventing proper bundling
This commit is contained in:
parent
8ea07938e4
commit
2a314bef52
2 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue