diff --git a/modules/social/runtime/server/_social/bluesky.get.ts b/modules/social/runtime/server/_social/bluesky.get.ts index dbd5a0e9..5e0e6f32 100644 --- a/modules/social/runtime/server/_social/bluesky.get.ts +++ b/modules/social/runtime/server/_social/bluesky.get.ts @@ -1,12 +1,12 @@ import { AppBskyEmbedImages, AppBskyFeedPost, AppBskyRichtextFacet, AtpAgent } from '@atproto/api' -import type { FeedViewPost } from '@atproto/api/dist/client/types/app/bsky/feed/defs' +import type { AppBskyFeedDefs } from '@atproto/api' import MagicString from 'magic-string' export default defineEventHandler(async event => { const agent = new AtpAgent({ service: 'https://public.api.bsky.app' }) const { identifier } = useRuntimeConfig(event).social.networks.bluesky - const feed: FeedViewPost[] = [] + const feed: AppBskyFeedDefs.FeedViewPost[] = [] let cursor: string | undefined do { const result = await agent.getAuthorFeed({ actor: identifier, limit: 100, cursor }) diff --git a/test/unit/bundle.spec.ts b/test/unit/bundle.spec.ts index 1a256374..f4f68d65 100644 --- a/test/unit/bundle.spec.ts +++ b/test/unit/bundle.spec.ts @@ -108,7 +108,7 @@ describe('project sizes', () => { const modules = await analyzeSizes('node_modules/**/*', serverDir) expect .soft(roundToKilobytes(modules.totalBytes, 10)) - .toMatchInlineSnapshot(`"38790k"`) + .toMatchInlineSnapshot(`"42270k"`) const packages = modules.files .filter(m => m.endsWith('package.json')) @@ -135,15 +135,11 @@ describe('project sizes', () => { "@atproto/jwk", "@atproto/jwk-jose", "@atproto/jwk-webcrypto", - "@atproto/jwk/node_modules/multiformats", "@atproto/lex-data", - "@atproto/lex-data/node_modules/multiformats", "@atproto/lex-json", "@atproto/lexicon", - "@atproto/lexicon/node_modules/multiformats", "@atproto/oauth-client", "@atproto/oauth-client-node", - "@atproto/oauth-client/node_modules/multiformats", "@atproto/oauth-types", "@atproto/syntax", "@atproto/xrpc", @@ -360,13 +356,13 @@ describe('project sizes', () => { "trim-trailing-lines", "trough", "ts-custom-error", - "tslib", "ufo", - "uint8arrays", - "uint8arrays/node_modules/multiformats", "ultrahtml", "uncrypto", "undici", + "undici_v6", + "undici_v7", + "undici_v8", "unhead", "unicode-emoji-modifier-base", "unicode-segmenter",