chore: package upgrades

This commit is contained in:
florian 2024-03-28 21:00:33 +01:00
parent d02d45e225
commit 534e0c5cc7
6 changed files with 20 additions and 20 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -12,36 +12,36 @@
"analyze": "vite-bundle-visualizer"
},
"dependencies": {
"@nostr-dev-kit/ndk": "^2.5.0",
"@nostr-dev-kit/ndk-cache-dexie": "^2.2.7",
"@tanstack/react-query": "^5.24.8",
"@nostr-dev-kit/ndk": "^2.6.1",
"@nostr-dev-kit/ndk-cache-dexie": "^2.2.10",
"@tanstack/react-query": "^5.28.9",
"bech32": "^2.0.0",
"jotai": "^2.7.0",
"jotai": "^2.7.1",
"lodash": "^4.17.21",
"nostr-tools": "^1.15.0",
"nostr-tools": "^2.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-lazy-load": "^4.0.1",
"react-router-dom": "^6.22.2",
"react-router-dom": "^6.22.3",
"react-swipeable": "^7.0.1"
},
"devDependencies": {
"@types/lodash": "^4.14.202",
"@types/react": "^18.2.63",
"@types/react-dom": "^18.2.19",
"@types/lodash": "^4.17.0",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.23",
"@types/react-helmet": "^6.1.11",
"@types/react-swipeable": "^5.2.0",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vitejs/plugin-react": "^4.2.1",
"@webbtc/webln-types": "^3.0.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"eslint-plugin-react-refresh": "^0.4.6",
"prettier": "^3.2.5",
"typescript": "^5.3.3",
"vite": "^5.1.5",
"vite-bundle-visualizer": "^1.0.1"
"typescript": "^5.4.3",
"vite": "^5.2.6",
"vite-bundle-visualizer": "^1.1.0"
}
}

View File

@ -15,8 +15,7 @@ const ndk = new NDK({
explicitRelayUrls: defaultRelays,
outboxRelayUrls: ['wss://purplepag.es'],
enableOutboxModel: true,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cacheAdapter: cacheAdapterDexie as any, // types don't match in the current version
cacheAdapter: cacheAdapterDexie,
});
const App = () => {

View File

@ -247,7 +247,9 @@ export const adultNPubs = [
'npub10m75ad8pc6wtlt67f6wjeug4hpqurc68842ve5ne47u9lkjqa0lq8ja88s', // 313Chris:hellokitty_headbang:
'npub10y6rhnutt52wwt5f7544tq4as6jt03aq7j8mle7wcymjjudanm4q4hvzaw', // NSFW
'npub13806pd9p833wkgyemeqddjzdksunlq9gszq4yjnhw4l57sjjhwlq6m79nj', // Orvalho
'npub13m4q96y3yzzev25npv5tamfxsw5csc2dax3njag2uzesv83vdkcs9973fv', // 🔞鸟巢🔞
'npub13n6ednsew67xk7hgse670z7849q5h8su5rgydxtl4lq3r5cx4ecqsd9af4', // Everybody, Every Body
'npub13teffx3nkty8c85dg06ewwue3hqm0kg7lxv6hkv0mp2jtkfypyas4luudc', // S
'npub14agvvpaqjc922sn7vrkg769xujxh2wp2xdcd7xgrzec4ykyam6yshjepay',
'npub15asxgmzhextsxd8545rldcqgauq3ycxjta6a9m4x70p927jvltpq983udd', // Big Wanker
'npub15xnjasjznk2tqude45pd7epjztgl9a550kn3pvztuarv9agfecrq7sv2ww', // Steel Seraphim
@ -330,7 +332,6 @@ export const adultNPubs = [
'npub1ylq5s3xsdmzgzvgzll6ghcs3qa8a9ajl955hj4tcpmyruvjsl8nq5wqhd8', // Dnera
'npub1ylrnf0xfp9wsmqthxlqjqyqj9yy27pnchjwjq93v3mq66ts7ftjs6x7dcq', // Welcome To The Jungle
'npub1z0xv9t5w6evrcg860kmgqq5tfj55mz84ta40uszjnfp9uhw2clkq63yrak', // ???
'npub13teffx3nkty8c85dg06ewwue3hqm0kg7lxv6hkv0mp2jtkfypyas4luudc', // S
];
export const adultPublicKeys = adultNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase());

View File

@ -10,7 +10,7 @@ const useImageSizes = (imageUrl: string) => {
const imageUrl1920w = useMemo(() => createImgProxyUrl(imageUrl, 1920, -1), [imageUrl]);
const optimalImageUrl = useMemo(() => {
return width == undefined ? imageUrl320w : width < 800 ? imageUrl320w : width < 1920 ? imageUrl800w : imageUrl1920w;
return width == undefined ? imageUrl320w : width <= 640 ? imageUrl320w : width < 1500 ? imageUrl800w : imageUrl1920w;
}, [width, imageUrl320w, imageUrl800w, imageUrl1920w]);
return {

File diff suppressed because one or more lines are too long