The clean node_modules reinstall pulled newer @nostrify/* and nostr-tools minors whose nip57.makeZapRequest signature changed (event param became a required full NostrEvent), breaking tsc in useZaps and usePurchasePro. Build the kind:9734 zap request events directly per NIP-57 instead of relying on nip57.makeZapRequest, so we're decoupled from that helper's changing type signature. Preserves correct target tagging: - addressable events → 'a' tag (kind:pubkey:dTag) - other events → 'e' tag (event id) - profile-only (pro purchase) → no event tag, keeps pro-tier/pro-expiry. Pin @nostrify/nostrify, @nostrify/react and nostr-tools so the tree stays reproducible. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| i18n | ||
| lib | ||
| pages | ||
| test | ||
| App.test.tsx | ||
| App.tsx | ||
| AppRouter.tsx | ||
| index.css | ||
| main.tsx | ||
| vite-env.d.ts | ||