This commit introduces the Nostr Development Kit (NDK) to enhance the Nostr client functionality. Key changes include: - Added `NDKPrivateKeySigner` for improved authentication methods in `LoginModal.svelte` and `App.svelte`. - Refactored the Nostr client to utilize NDK for connection and event fetching, streamlining the connection process and event handling. - Updated `go.mod` and `package.json` to include `@nostr-dev-kit/ndk` as a dependency. - Created a new `package-lock.json` to reflect the updated dependency tree. These changes improve the overall architecture and maintainability of the Nostr client.
26 lines
610 B
JSON
26 lines
610 B
JSON
{
|
|
"name": "svelte-app",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "rollup -c",
|
|
"dev": "rollup -c -w",
|
|
"start": "sirv public --no-clear"
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-commonjs": "^24.0.0",
|
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
"@rollup/plugin-terser": "^0.4.0",
|
|
"rollup": "^3.15.0",
|
|
"rollup-plugin-css-only": "^4.3.0",
|
|
"rollup-plugin-livereload": "^2.0.0",
|
|
"rollup-plugin-svelte": "^7.1.2",
|
|
"svelte": "^3.55.0"
|
|
},
|
|
"dependencies": {
|
|
"@nostr-dev-kit/ndk": "^2.17.3",
|
|
"sirv-cli": "^2.0.0"
|
|
}
|
|
}
|