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.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { isNode } from 'browser-or-node'
|
import { isNode } from 'browser-or-node'
|
||||||
import * as fetcher from './fetcher/index.js'
|
import { fetcher } from './index.js'
|
||||||
import { generateProxyURL } from './utils.js'
|
import { generateProxyURL } from './utils.js'
|
||||||
import { ProxyPolicy, ProofAccessRestriction } from './enums.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.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
import * as E from '../enums.js'
|
import * as E from '../enums.js'
|
||||||
import { activitypub } from '../fetcher/index.js'
|
import { fetcher } from '../index.js'
|
||||||
import { ServiceProvider } from '../serviceProvider.js'
|
import { ServiceProvider } from '../serviceProvider.js'
|
||||||
|
|
||||||
export const reURI = /^https:\/\/(.*)\/?/
|
export const reURI = /^https:\/\/(.*)\/?/
|
||||||
|
@ -81,7 +81,7 @@ export const functions = {
|
||||||
switch (proofData.result.type) {
|
switch (proofData.result.type) {
|
||||||
case 'Note': {
|
case 'Note': {
|
||||||
claimData.profile.uri = proofData.result.attributedTo
|
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}`
|
claimData.profile.display = `@${personData.preferredUsername}@${new URL(proofData.result.url).hostname}`
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue