Refactor publishVideo and fix client dependencies

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-09 02:07:30 +00:00
1 parent b246e431e5
commit b7b29d5332
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -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({
+1 -1
View File
@@ -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,