this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

accept @ in username

alice 598b70b9 53df4c23

+19 -18
+1
.eslintrc.cjs
··· 7 7 rules: { 8 8 'react-refresh/only-export-components': 'warn', 9 9 '@typescript-eslint/no-non-null-assertion': 'off', 10 + '@typescript-eslint/no-explicit-any': 'off', 10 11 }, 11 12 };
+1 -1
package.json
··· 18 18 "react-tooltip": "^5.21.5" 19 19 }, 20 20 "devDependencies": { 21 - "@types/react": "^18.2.29", 21 + "@types/react": "^18.2.30", 22 22 "@types/react-calendar-heatmap": "^1.6.5", 23 23 "@types/react-dom": "^18.2.14", 24 24 "@typescript-eslint/eslint-plugin": "^6.8.0",
+15 -15
pnpm-lock.yaml
··· 26 26 27 27 devDependencies: 28 28 '@types/react': 29 - specifier: ^18.2.29 30 - version: 18.2.29 29 + specifier: ^18.2.30 30 + version: 18.2.30 31 31 '@types/react-calendar-heatmap': 32 32 specifier: ^1.6.5 33 33 version: 1.6.5 ··· 74 74 '@atproto/syntax': 0.1.2 75 75 '@atproto/xrpc': 0.3.2 76 76 multiformats: 9.9.0 77 - tlds: 1.242.0 77 + tlds: 1.243.0 78 78 typed-emitter: 2.1.0 79 79 dev: false 80 80 ··· 362 362 resolution: {integrity: sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==} 363 363 dev: false 364 364 365 - /@humanwhocodes/config-array@0.11.11: 366 - resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==} 365 + /@humanwhocodes/config-array@0.11.12: 366 + resolution: {integrity: sha512-NlGesA1usRNn6ctHCZ21M4/dKPgW9Nn1FypRdIKKgZOKzkVV4T1FlK5mBiLhHBCDmEbdQG0idrcXlbZfksJ+RA==} 367 367 engines: {node: '>=10.10.0'} 368 368 dependencies: 369 - '@humanwhocodes/object-schema': 1.2.1 369 + '@humanwhocodes/object-schema': 2.0.0 370 370 debug: 4.3.4 371 371 minimatch: 3.1.2 372 372 transitivePeerDependencies: ··· 378 378 engines: {node: '>=12.22'} 379 379 dev: true 380 380 381 - /@humanwhocodes/object-schema@1.2.1: 382 - resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} 381 + /@humanwhocodes/object-schema@2.0.0: 382 + resolution: {integrity: sha512-9S9QrXY2K0L4AGDcSgTi9vgiCcG8VcBv4Mp7/1hDPYoswIy6Z6KO5blYto82BT8M0MZNRWmCFLpCs3HlpYGGdw==} 383 383 dev: true 384 384 385 385 /@nodelib/fs.scandir@2.1.5: ··· 537 537 /@types/react-calendar-heatmap@1.6.5: 538 538 resolution: {integrity: sha512-wOsp4TTZmUVuPbnPNuP0GwvJemimbsE7yoYdOGV9VUfZCK2eqkXW1O/tNsROKJZOjA0xWyIpzY/Cg/mU4buOqQ==} 539 539 dependencies: 540 - '@types/react': 18.2.29 540 + '@types/react': 18.2.30 541 541 dev: true 542 542 543 543 /@types/react-dom@18.2.14: 544 544 resolution: {integrity: sha512-V835xgdSVmyQmI1KLV2BEIUgqEuinxp9O4G6g3FqO/SqLac049E53aysv0oEFD2kHfejeKU+ZqL2bcFWj9gLAQ==} 545 545 dependencies: 546 - '@types/react': 18.2.29 546 + '@types/react': 18.2.30 547 547 dev: true 548 548 549 - /@types/react@18.2.29: 550 - resolution: {integrity: sha512-Z+ZrIRocWtdD70j45izShRwDuiB4JZqDegqMFW/I8aG5DxxLKOzVNoq62UIO82v9bdgi+DO1jvsb9sTEZUSm+Q==} 549 + /@types/react@18.2.30: 550 + resolution: {integrity: sha512-OfqdJnDsSo4UNw0bqAjFCuBpLYQM7wvZidz0hVxHRjrEkzRlvZL1pJVyOSY55HMiKvRNEo9DUBRuEl7FNlJ/Vg==} 551 551 dependencies: 552 552 '@types/prop-types': 15.7.9 553 553 '@types/scheduler': 0.16.5 ··· 915 915 '@eslint-community/regexpp': 4.9.1 916 916 '@eslint/eslintrc': 2.1.2 917 917 '@eslint/js': 8.51.0 918 - '@humanwhocodes/config-array': 0.11.11 918 + '@humanwhocodes/config-array': 0.11.12 919 919 '@humanwhocodes/module-importer': 1.0.1 920 920 '@nodelib/fs.walk': 1.2.8 921 921 ajv: 6.12.6 ··· 1524 1524 resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} 1525 1525 dev: true 1526 1526 1527 - /tlds@1.242.0: 1528 - resolution: {integrity: sha512-aP3dXawgmbfU94mA32CJGHmJUE1E58HCB1KmlKRhBNtqBL27mSQcAEmcaMaQ1Za9kIVvOdbxJD3U5ycDy7nJ3w==} 1527 + /tlds@1.243.0: 1528 + resolution: {integrity: sha512-jA0EMB5YFZFX2VqmK/Ra4O1UqDuWnpiw/9miYFdG1lVIDg6w9IsjlXK0TGlqFnzsnuBIpP5rCDFT2iPZNOfvqA==} 1529 1529 hasBin: true 1530 1530 dev: false 1531 1531
+2 -2
src/atproto.tsx
··· 1 1 import * as bsky from '@atproto/api'; 2 2 import { getUserCreatedAt, paginateAll } from './helpers.tsx'; 3 3 4 - export const getData = async (agent: bsky.BskyAgent, actor = '') => { 5 - actor = (await agent.getProfile({ actor })).data.did; 4 + export const getData = async (agent: bsky.BskyAgent, actor: string) => { 5 + actor = (await agent.getProfile({ actor: actor.trim().replace('@', '') })).data.did; 6 6 7 7 // source: https://github.com/bluesky-social/atproto/blob/efb1cac2bfc8ccb77c0f4910ad9f3de7370fbebb/packages/bsky/tests/views/author-feed.test.ts#L94 8 8 const paginator = async (cursor?: string) => {