mirror of
https://github.com/dergigi/boris.git
synced 2026-01-09 09:54:34 +01:00
refactor: use main package exports instead of subpath imports
- Import Helpers from 'applesauce-core' instead of 'applesauce-core/helpers' - Import Blueprints from 'applesauce-factory' instead of 'applesauce-factory/blueprints' - Use namespace exports as documented in applesauce tutorial - Fixes Vercel build issue with internal module resolution - Follows recommended import patterns from applesauce docs
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { RelayPool, completeOnEose, onlyEvents } from 'applesauce-relay'
|
||||
import { lastValueFrom, takeUntil, timer, tap, toArray } from 'rxjs'
|
||||
import { NostrEvent } from 'nostr-tools'
|
||||
import {
|
||||
import { Helpers } from 'applesauce-core'
|
||||
import { Highlight } from '../types/highlights'
|
||||
import { RELAYS } from '../config/relays'
|
||||
|
||||
const {
|
||||
getHighlightText,
|
||||
getHighlightContext,
|
||||
getHighlightComment,
|
||||
@@ -9,9 +13,7 @@ import {
|
||||
getHighlightSourceAddressPointer,
|
||||
getHighlightSourceUrl,
|
||||
getHighlightAttributions
|
||||
} from 'applesauce-core/helpers'
|
||||
import { Highlight } from '../types/highlights'
|
||||
import { RELAYS } from '../config/relays'
|
||||
} = Helpers
|
||||
|
||||
/**
|
||||
* Deduplicate highlight events by ID
|
||||
|
||||
Reference in New Issue
Block a user