a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm

feat(lexicon-resolver): initial commit

mary.my.id 27467f4b ae208ad6

verified
Changed files
+97 -3
packages
+3
packages/lexicons/lexicon-resolver/README.md
··· 1 + # @atcute/lexicon-resolver 2 + 3 + atproto lexicon authority resolution
packages/lexicons/lexicon-resolver/lib/index.ts

This is a binary file and will not be displayed.

+10
packages/lexicons/lexicon-resolver/lib/types.ts
··· 1 + import type { AtprotoDid, Nsid } from '@atcute/lexicons/syntax'; 2 + 3 + export interface ResolveLexiconAuthorityOptions { 4 + signal?: AbortSignal; 5 + noCache?: boolean; 6 + } 7 + 8 + export interface LexiconAuthorityResolver { 9 + resolve(nsid: Nsid, options?: ResolveLexiconAuthorityOptions): Promise<AtprotoDid>; 10 + }
+38
packages/lexicons/lexicon-resolver/package.json
··· 1 + { 2 + "type": "module", 3 + "name": "@atcute/lexicon-resolver", 4 + "version": "0.1.0", 5 + "description": "atproto lexicon authority resolution", 6 + "keywords": [ 7 + "atproto", 8 + "lexicon", 9 + "did" 10 + ], 11 + "license": "0BSD", 12 + "repository": { 13 + "url": "https://github.com/mary-ext/atcute", 14 + "directory": "packages/lexicons/lexicon-resolver" 15 + }, 16 + "files": [ 17 + "dist/", 18 + "lib/", 19 + "!lib/**/*.bench.ts", 20 + "!lib/**/*.test.ts" 21 + ], 22 + "exports": { 23 + ".": "./dist/index.js" 24 + }, 25 + "sideEffects": false, 26 + "scripts": { 27 + "build": "tsc --project tsconfig.build.json", 28 + "test": "bun test --coverage", 29 + "prepublish": "rm -rf dist; pnpm run build" 30 + }, 31 + "dependencies": { 32 + "@atcute/lexicons": "workspace:^", 33 + "@atcute/util-fetch": "workspace:^" 34 + }, 35 + "devDependencies": { 36 + "@types/bun": "^1.2.21" 37 + } 38 + }
+4
packages/lexicons/lexicon-resolver/tsconfig.build.json
··· 1 + { 2 + "extends": "./tsconfig.json", 3 + "exclude": ["**/*.test.ts"] 4 + }
+24
packages/lexicons/lexicon-resolver/tsconfig.json
··· 1 + { 2 + "compilerOptions": { 3 + "types": ["bun"], 4 + "outDir": "dist/", 5 + "esModuleInterop": true, 6 + "skipLibCheck": true, 7 + "target": "ESNext", 8 + "allowJs": true, 9 + "resolveJsonModule": true, 10 + "moduleDetection": "force", 11 + "isolatedModules": true, 12 + "verbatimModuleSyntax": true, 13 + "strict": true, 14 + "noImplicitOverride": true, 15 + "noUnusedLocals": true, 16 + "noUnusedParameters": true, 17 + "noFallthroughCasesInSwitch": true, 18 + "module": "NodeNext", 19 + "sourceMap": true, 20 + "declaration": true, 21 + "stripInternal": true 22 + }, 23 + "include": ["lib"] 24 + }
+18 -3
pnpm-lock.yaml
··· 486 486 specifier: ^0.4.6 487 487 version: 0.4.6 488 488 489 + packages/lexicons/lexicon-resolver: 490 + dependencies: 491 + '@atcute/lexicons': 492 + specifier: workspace:^ 493 + version: link:../lexicons 494 + '@atcute/util-fetch': 495 + specifier: workspace:^ 496 + version: link:../../misc/util-fetch 497 + devDependencies: 498 + '@types/bun': 499 + specifier: ^1.2.21 500 + version: 1.2.21(@types/react@19.1.8) 501 + 489 502 packages/lexicons/lexicons: 490 503 dependencies: 491 504 esm-env: ··· 5438 5451 5439 5452 '@types/bn.js@5.2.0': 5440 5453 dependencies: 5441 - '@types/node': 24.3.0 5454 + '@types/node': 22.18.0 5442 5455 5443 5456 '@types/bun@1.2.21(@types/react@19.1.8)': 5444 5457 dependencies: ··· 5469 5482 '@types/node@24.3.0': 5470 5483 dependencies: 5471 5484 undici-types: 7.10.0 5485 + optional: true 5472 5486 5473 5487 '@types/react@19.1.8': 5474 5488 dependencies: ··· 5697 5711 5698 5712 bun-types@1.2.21(@types/react@19.1.8): 5699 5713 dependencies: 5700 - '@types/node': 24.3.0 5714 + '@types/node': 22.18.0 5701 5715 '@types/react': 19.1.8 5702 5716 5703 5717 bytes@3.1.2: {} ··· 7082 7096 7083 7097 undici-types@6.21.0: {} 7084 7098 7085 - undici-types@7.10.0: {} 7099 + undici-types@7.10.0: 7100 + optional: true 7086 7101 7087 7102 undici@6.21.3: {} 7088 7103