New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nostr-dev-kit/ndk

Package Overview
Dependencies
Maintainers
2
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nostr-dev-kit/ndk - npm Package Compare versions

Comparing version 1.3.2 to 1.4.2

49

dist/index.d.ts

@@ -299,3 +299,2 @@ import EventEmitter from 'eventemitter3';

declare class NDKRelayList extends NDKEvent {
relays: Set<NDKRelayUrl>;
constructor(ndk?: NDK, rawEvent?: NostrEvent);

@@ -309,2 +308,3 @@ static from(ndkEvent: NDKEvent): NDKRelayList;

set bothRelayUrls(relays: NDKRelayUrl[]);
get relays(): NDKRelayUrl[];
}

@@ -352,5 +352,26 @@

set npub(npub: Npub);
/**
* Get the user's hexpubkey
* @returns {Hexpubkey} The user's hexpubkey
*
* @deprecated Use `pubkey` instead
*/
get hexpubkey(): Hexpubkey;
set hexpubkey(hexpubkey: Hexpubkey);
/**
* Set the user's hexpubkey
* @param pubkey {Hexpubkey} The user's hexpubkey
* @deprecated Use `pubkey` instead
*/
set hexpubkey(pubkey: Hexpubkey);
/**
* Get the user's pubkey
* @returns {string} The user's pubkey
*/
get pubkey(): string;
/**
* Set the user's pubkey
* @param pubkey {string} The user's pubkey
*/
set pubkey(pubkey: string);
/**
* Instantiate an NDKUser from a NIP-05 string

@@ -623,2 +644,9 @@ * @param nip05Id {string} The user's NIP-05

/**
* Auto-connect to main user's relays. The "main" user is determined
* by the presence of a signer. Upon connection to the explicit relays,
* the user's relays will be fetched and connected to if this is set to true.
* @default true
*/
autoConnectUserRelays?: boolean;
/**
* Signer to use for signing events by default

@@ -644,3 +672,4 @@ */

outboxPool?: NDKPool;
signer?: NDKSigner;
private _signer?;
private _activeUser?;
cacheAdapter?: NDKCacheAdapter;

@@ -650,4 +679,9 @@ debug: debug$1.Debugger;

outboxTracker?: OutboxTracker;
private autoConnectUserRelays;
constructor(opts?: NDKConstructorParams);
toJSON(): string;
get activeUser(): NDKUser | undefined;
set activeUser(user: NDKUser | undefined);
get signer(): NDKSigner | undefined;
set signer(newSigner: NDKSigner | undefined);
/**

@@ -870,3 +904,3 @@ * Connect to relays with optional timeout.

*/
zap(amount: number, comment?: string, extraTags?: NDKTag[], recipient?: NDKUser): Promise<string | null>;
zap(amount: number, comment?: string, extraTags?: NDKTag[], recipient?: NDKUser, signer?: NDKSigner): Promise<string | null>;
/**

@@ -1249,3 +1283,7 @@ * Generates a deletion event of the current event

private debug;
constructor();
private waitTimeout;
/**
* @param waitTimeout - The timeout in milliseconds to wait for the NIP-07 to become available
*/
constructor(waitTimeout?: number);
blockUntilReady(): Promise<NDKUser>;

@@ -1268,2 +1306,3 @@ /**

private processNip04Queue;
private waitForExtension;
}

@@ -1270,0 +1309,0 @@ declare global {

2

package.json
{
"name": "@nostr-dev-kit/ndk",
"version": "1.3.2",
"version": "1.4.2",
"description": "NDK - Nostr Development Kit",

@@ -5,0 +5,0 @@ "homepage": "https://ndk.fyi",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc