Upgrade nspec to latest, switch to version from JSR
This commit is contained in:
parent
613d97ea78
commit
fc0de1bc49
12 changed files with 30 additions and 24 deletions
|
@ -73,6 +73,7 @@
|
||||||
"@sentry/browser": "^7.74.1",
|
"@sentry/browser": "^7.74.1",
|
||||||
"@sentry/react": "^7.74.1",
|
"@sentry/react": "^7.74.1",
|
||||||
"@soapbox.pub/wasmboy": "^0.8.0",
|
"@soapbox.pub/wasmboy": "^0.8.0",
|
||||||
|
"@soapbox/nspec": "npm:@jsr/soapbox__nspec",
|
||||||
"@tabler/icons": "^2.0.0",
|
"@tabler/icons": "^2.0.0",
|
||||||
"@tailwindcss/aspect-ratio": "^0.4.2",
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@tailwindcss/forms": "^0.5.7",
|
||||||
|
@ -135,7 +136,6 @@
|
||||||
"mini-css-extract-plugin": "^2.6.0",
|
"mini-css-extract-plugin": "^2.6.0",
|
||||||
"nostr-machina": "^0.1.0",
|
"nostr-machina": "^0.1.0",
|
||||||
"nostr-tools": "^2.3.0",
|
"nostr-tools": "^2.3.0",
|
||||||
"nspec": "^0.3.0",
|
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"postcss": "^8.4.29",
|
"postcss": "^8.4.29",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
import { type NostrEvent } from '@soapbox/nspec';
|
||||||
import { NiceRelay } from 'nostr-machina';
|
import { NiceRelay } from 'nostr-machina';
|
||||||
import { type NostrEvent } from 'nspec';
|
|
||||||
import { useEffect, useMemo } from 'react';
|
import { useEffect, useMemo } from 'react';
|
||||||
|
|
||||||
import { signer } from 'soapbox/features/nostr/sign';
|
import { signer } from 'soapbox/features/nostr/sign';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
import { NSchema as n, NostrSigner, NSecSigner } from '@soapbox/nspec';
|
||||||
import { getPublicKey, nip19 } from 'nostr-tools';
|
import { getPublicKey, nip19 } from 'nostr-tools';
|
||||||
import { NSchema as n, NostrSigner, NSecSigner } from 'nspec';
|
|
||||||
|
|
||||||
import { lockStorageKey } from 'soapbox/utils/storage';
|
import { lockStorageKey } from 'soapbox/utils/storage';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { hexToBytes } from '@noble/hashes/utils';
|
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. */
|
/** Use key from `localStorage` if available, falling back to NIP-07. */
|
||||||
export class SoapboxSigner implements NostrSigner {
|
export class SoapboxSigner implements NostrSigner {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { type NostrSigner } from 'nspec';
|
import { type NostrSigner } from '@soapbox/nspec';
|
||||||
|
|
||||||
import { SoapboxSigner } from './SoapboxSigner';
|
import { SoapboxSigner } from './SoapboxSigner';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { NostrSigner } from 'nspec';
|
import { NostrSigner } from '@soapbox/nspec';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
|
|
||||||
import AccountStep from './steps/account-step';
|
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 React, { useMemo } from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
import { NostrSigner } from '@soapbox/nspec';
|
||||||
import { generateSecretKey, getPublicKey, nip19 } from 'nostr-tools';
|
import { generateSecretKey, getPublicKey, nip19 } from 'nostr-tools';
|
||||||
import { NostrSigner } from 'nspec';
|
|
||||||
import React, { useEffect, useMemo, useState } from 'react';
|
import React, { useEffect, useMemo, useState } from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { NSchema as n } from '@soapbox/nspec';
|
||||||
import escapeTextContentForBrowser from 'escape-html';
|
import escapeTextContentForBrowser from 'escape-html';
|
||||||
import DOMPurify from 'isomorphic-dompurify';
|
import DOMPurify from 'isomorphic-dompurify';
|
||||||
import { NSchema as n } from 'nspec';
|
|
||||||
import z from 'zod';
|
import z from 'zod';
|
||||||
|
|
||||||
import emojify from 'soapbox/features/emoji';
|
import emojify from 'soapbox/features/emoji';
|
||||||
|
|
2
src/types/window.d.ts
vendored
2
src/types/window.d.ts
vendored
|
@ -1,4 +1,4 @@
|
||||||
import type { NostrSigner } from 'nspec';
|
import type { NostrSigner } from '@soapbox/nspec';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "Bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|
32
yarn.lock
32
yarn.lock
|
@ -2263,6 +2263,20 @@
|
||||||
raf "^3.4.0"
|
raf "^3.4.0"
|
||||||
responsive-gamepad "1.1.0"
|
responsive-gamepad "1.1.0"
|
||||||
|
|
||||||
|
"@soapbox/nspec@npm:@jsr/soapbox__nspec":
|
||||||
|
version "0.6.0"
|
||||||
|
resolved "https://npm.jsr.io/~/6/@jsr/soapbox__nspec/0.6.0.tgz#60A75BCDBEC1B76DFA91BEFDF5505CCB8ADDAD3B"
|
||||||
|
integrity sha512-HY+MssBjm532J9SAqLek8YGxBlEaXdT1Eek3bOWkq4uLJxipJhYkdQrW+NzXhfVvGZUt6YXBobeSqRQx1JFgkQ==
|
||||||
|
dependencies:
|
||||||
|
"@noble/hashes" "^1.3.3"
|
||||||
|
"@scure/base" "^1.1.5"
|
||||||
|
"@scure/bip32" "^1.3.3"
|
||||||
|
"@scure/bip39" "^1.2.2"
|
||||||
|
lru-cache "^10.2.0"
|
||||||
|
nostr-tools "^2.3.1"
|
||||||
|
websocket-ts "^2.1.5"
|
||||||
|
zod "^3.22.4"
|
||||||
|
|
||||||
"@surma/rollup-plugin-off-main-thread@^2.2.3":
|
"@surma/rollup-plugin-off-main-thread@^2.2.3":
|
||||||
version "2.2.3"
|
version "2.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053"
|
resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053"
|
||||||
|
@ -6635,19 +6649,6 @@ npm-run-path@^5.1.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
path-key "^4.0.0"
|
path-key "^4.0.0"
|
||||||
|
|
||||||
nspec@^0.3.0:
|
|
||||||
version "0.3.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/nspec/-/nspec-0.3.0.tgz#7c7ee37bab841c190201d1a43634577c42f421d8"
|
|
||||||
integrity sha512-FKdJwYuxcq9btYRVaZwukRsp6fIuFZ5QKHdfxyj/Lw7PX+GwbeYlkyAuGEAuYBrHmMd4jcozbbfOLIg40mYJnA==
|
|
||||||
dependencies:
|
|
||||||
"@noble/hashes" "^1.3.3"
|
|
||||||
"@scure/base" "^1.1.5"
|
|
||||||
"@scure/bip32" "^1.3.3"
|
|
||||||
"@scure/bip39" "^1.2.2"
|
|
||||||
lru-cache "^10.2.0"
|
|
||||||
nostr-tools "^2.3.1"
|
|
||||||
zod "^3.22.4"
|
|
||||||
|
|
||||||
nth-check@^2.0.1:
|
nth-check@^2.0.1:
|
||||||
version "2.1.1"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d"
|
resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d"
|
||||||
|
@ -9296,6 +9297,11 @@ webpack-sources@^3.2.3:
|
||||||
watchpack "^2.4.0"
|
watchpack "^2.4.0"
|
||||||
webpack-sources "^3.2.3"
|
webpack-sources "^3.2.3"
|
||||||
|
|
||||||
|
websocket-ts@^2.1.5:
|
||||||
|
version "2.1.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/websocket-ts/-/websocket-ts-2.1.5.tgz#b6b51f0afca89d6bc7ff71c9e74540f19ae0262c"
|
||||||
|
integrity sha512-rCNl9w6Hsir1azFm/pbjBEFzLD/gi7Th5ZgOxMifB6STUfTSovYAzryWw0TRvSZ1+Qu1Z5Plw4z42UfTNA9idA==
|
||||||
|
|
||||||
whatwg-encoding@^3.1.1:
|
whatwg-encoding@^3.1.1:
|
||||||
version "3.1.1"
|
version "3.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz#d0f4ef769905d426e1688f3e34381a99b60b76e5"
|
resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz#d0f4ef769905d426e1688f3e34381a99b60b76e5"
|
||||||
|
|
Loading…
Reference in a new issue