Skip to content

Commit

Permalink
book: add (filters & client messages) JavaScript examples
Browse files Browse the repository at this point in the history
- Minor correction to reference nostr-sdk instead of nostr package.
  • Loading branch information
RydalWater committed Nov 8, 2024
1 parent 88ac19c commit 7fcfc6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/snippets/nostr/js/src/messages/client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ClientMessage, EventBuilder, Filter, Keys, loadWasmAsync } = require('@rust-nostr/nostr');
const { ClientMessage, EventBuilder, Filter, Keys, loadWasmAsync } = require('@rust-nostr/nostr-sdk');

async function run() {
await loadWasmAsync();
Expand Down
2 changes: 1 addition & 1 deletion book/snippets/nostr/js/src/messages/filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { Filter, Keys, Kind, EventBuilder, Timestamp, Tag, loadWasmSync } = require('@rust-nostr/nostr');
const { Filter, Keys, Kind, EventBuilder, Timestamp, Tag, loadWasmSync } = require('@rust-nostr/nostr-sdk');

async function run() {
loadWasmSync();
Expand Down

0 comments on commit 7fcfc6e

Please sign in to comment.