mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 11:22:25 +00:00
Refactor publishVideo and fix client dependencies
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
b246e431e5
commit
b7b29d5332
2 files changed
+4
-2
No files matched your search
+3
-1
@@ -213,7 +213,8 @@ import { queueSignEvent } from "./signRequestQueue.js";
|
||||
import { EventsMap } from "./eventsMap.js";
|
||||
import { PersistenceManager } from "./managers/PersistenceManager.js";
|
||||
import { ConnectionManager } from "./managers/ConnectionManager.js";
|
||||
import { SignerManager } from "./managers/SignerManager.js";
|
||||
import { SignerManager, resolveSignerCapabilities } from "./managers/SignerManager.js";
|
||||
import { RelayBatchFetcher } from "./relayBatchFetcher.js";
|
||||
import {
|
||||
prepareVideoPublishPayload,
|
||||
prepareVideoMirrorOptions,
|
||||
@@ -463,6 +464,7 @@ export class NostrClient {
|
||||
this.dirtyTombstones = new Set();
|
||||
this.persistenceManager = new PersistenceManager(this);
|
||||
this.syncMetadataStore = new SyncMetadataStore();
|
||||
this.relayBatchFetcher = new RelayBatchFetcher(this);
|
||||
|
||||
this.nip71Cache = new Map();
|
||||
this.watchHistory = createWatchHistoryManager({
|
||||
|
||||
@@ -53,7 +53,7 @@ import { queueSignEvent } from "../signRequestQueue.js";
|
||||
import { signEventWithPrivateKey } from "../publishHelpers.js";
|
||||
import { ensureNostrTools, getCachedNostrTools } from "../toolkit.js";
|
||||
|
||||
function resolveSignerCapabilities(signer) {
|
||||
export function resolveSignerCapabilities(signer) {
|
||||
const fallback = {
|
||||
sign: false,
|
||||
nip44: false,
|
||||
|
||||
Reference in new issue
Block a user