Files
bitvid/dist/js/nostrViewEventsFacade.js
T
google-labs-jules[bot]andPR0M3TH3AN 0bfa3b08e8 fix(ci): fix netlify deployment by building to dist
- Move from root publishing to clean `dist/` directory
- Create `scripts/build-dist.mjs` to orchestrate build and copy assets
- Update `package.json` build script
- Update `netlify.toml` to publish `dist/`
- Ignore `dist/` in `.gitignore`

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 09:07:15 +00:00

28 lines
896 B
JavaScript

// js/nostrViewEventsFacade.js
//
// Central export for NIP-71 view event helpers. Consumers can choose between
// helpers that accept an explicit Nostr client and thin wrappers that call the
// default client instance configured by the app shell.
export {
recordVideoView as recordVideoViewWithDefaultClient,
listVideoViewEvents as listVideoViewEventsWithDefaultClient,
subscribeVideoViewEvents as subscribeVideoViewEventsWithDefaultClient,
countVideoViewEvents as countVideoViewEventsWithDefaultClient,
} from "./nostr/viewEventBindings.js";
export {
VIEW_EVENT_KIND,
createVideoViewEventFilters,
deriveViewEventBucketIndex,
deriveViewEventPointerScope,
getViewEventGuardWindowMs,
hasRecentViewPublish,
rememberViewPublish,
publishViewEvent,
recordVideoView,
listVideoViewEvents,
subscribeVideoViewEvents,
countVideoViewEvents,
} from "./nostr/viewEvents.js";