Upgrade nspec to latest, switch to version from JSR
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { NSchema as n, NostrSigner, NSecSigner } from '@soapbox/nspec';
|
||||
import { getPublicKey, nip19 } from 'nostr-tools';
|
||||
import { NSchema as n, NostrSigner, NSecSigner } from 'nspec';
|
||||
|
||||
import { lockStorageKey } from 'soapbox/utils/storage';
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { hexToBytes } from '@noble/hashes/utils';
|
||||
import { type NostrSigner, type NostrEvent, NSecSigner } from 'nspec';
|
||||
import { type NostrSigner, type NostrEvent, NSecSigner } from '@soapbox/nspec';
|
||||
|
||||
/** Use key from `localStorage` if available, falling back to NIP-07. */
|
||||
export class SoapboxSigner implements NostrSigner {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { type NostrSigner } from 'nspec';
|
||||
import { type NostrSigner } from '@soapbox/nspec';
|
||||
|
||||
import { SoapboxSigner } from './SoapboxSigner';
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { NostrSigner } from 'nspec';
|
||||
import { NostrSigner } from '@soapbox/nspec';
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import AccountStep from './steps/account-step';
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { NSchema as n } from 'nspec';
|
||||
import { NSchema as n } from '@soapbox/nspec';
|
||||
import React, { useMemo } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { NostrSigner } from '@soapbox/nspec';
|
||||
import { generateSecretKey, getPublicKey, nip19 } from 'nostr-tools';
|
||||
import { NostrSigner } from 'nspec';
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user