Upgrade nspec to latest, switch to version from JSR

This commit is contained in:
Alex Gleason
2024-03-06 17:19:45 -06:00
parent 613d97ea78
commit fc0de1bc49
12 changed files with 30 additions and 24 deletions

View File

@ -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';

View File

@ -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 {

View File

@ -1,4 +1,4 @@
import { type NostrSigner } from 'nspec';
import { type NostrSigner } from '@soapbox/nspec';
import { SoapboxSigner } from './SoapboxSigner';

View File

@ -1,4 +1,4 @@
import { NostrSigner } from 'nspec';
import { NostrSigner } from '@soapbox/nspec';
import React, { useState } from 'react';
import AccountStep from './steps/account-step';

View File

@ -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';

View File

@ -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';