@konemono/nostr-login 1.7.35 → 1.7.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ConnectionString, Info } from 'nostr-login-components';
1
+ import { ConnectionString, Info } from 'nostr-login-components/dist/types/types';
2
2
  import { NostrParams } from './';
3
3
  import { EventEmitter } from 'tseep';
4
4
  import { Signer } from './Nostr';
@@ -29,13 +29,13 @@ declare class AuthNostrService extends EventEmitter implements Signer {
29
29
  isIframe(): boolean;
30
30
  waitReady(): Promise<void>;
31
31
  cancelNostrConnect(): void;
32
- nostrConnect(relay?: string, { domain, link, iframeUrl, importConnect, }?: {
32
+ nostrConnect(relays?: string[], { domain, link, iframeUrl, importConnect, }?: {
33
33
  domain?: string;
34
34
  link?: string;
35
35
  importConnect?: boolean;
36
36
  iframeUrl?: string;
37
37
  }): Promise<Info>;
38
- createNostrConnect(relay?: string): Promise<string>;
38
+ createNostrConnect(relays?: string[]): Promise<string>;
39
39
  getNostrConnectServices(): Promise<[string, ConnectionString[]]>;
40
40
  localSignup(name: string, sk?: string): Promise<void>;
41
41
  setLocal(info: Info, signup?: boolean): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import { NostrLoginOptions } from '../types';
2
2
  import { NostrParams } from '.';
3
- import { Info } from 'nostr-login-components';
3
+ import { Info } from 'nostr-login-components/dist/types/types';
4
4
  import { EventEmitter } from 'tseep';
5
5
  declare class BannerManager extends EventEmitter {
6
6
  private banner;
@@ -1,7 +1,7 @@
1
1
  import { NostrLoginOptions } from '../types';
2
2
  import { AuthNostrService, NostrExtensionService, NostrParams } from '.';
3
3
  import { EventEmitter } from 'tseep';
4
- import { Info, RecentType } from 'nostr-login-components';
4
+ import { Info, RecentType } from 'nostr-login-components/dist/types/types';
5
5
  declare class ModalManager extends EventEmitter {
6
6
  private modal;
7
7
  private params;
@@ -24,11 +24,9 @@ export declare class IframeNostrRpc extends NostrRpc {
24
24
  private peerOrigin?;
25
25
  private iframePort?;
26
26
  private iframeRequests;
27
- private iframePingInterval?;
28
27
  constructor(ndk: NDK, localSigner: PrivateKeySigner, iframePeerOrigin?: string);
29
28
  subscribe(filter: NDKFilter): Promise<NDKSubscription>;
30
29
  setWorkerIframePort(port: MessagePort): void;
31
- cleanup(): void;
32
30
  sendRequest(remotePubkey: string, method: string, params?: string[], kind?: number, cb?: (res: NDKRpcResponse) => void): Promise<NDKRpcResponse>;
33
31
  }
34
32
  export declare class ReadyListener {
@@ -1,4 +1,4 @@
1
- import { Info } from 'nostr-login-components';
1
+ import { Info } from 'nostr-login-components/dist/types/types';
2
2
  export interface Signer {
3
3
  signEvent: (event: any) => Promise<any>;
4
4
  nip04: {
@@ -1,4 +1,4 @@
1
- import { Info } from 'nostr-login-components';
1
+ import { Info } from 'nostr-login-components/dist/types/types';
2
2
  import { NostrLoginOptions } from '../types';
3
3
  declare class NostrParams {
4
4
  userInfo: Info | null;
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Info, AuthMethod, ConnectionString, RecentType, BannerNotify } from 'nostr-login-components';
1
+ import { Info, AuthMethod, ConnectionString, RecentType, BannerNotify } from 'nostr-login-components/dist/types/types';
2
2
  export interface NostrLoginAuthOptions {
3
3
  localNsec?: string;
4
4
  relays?: string[];