Suite of AT Protocol TypeScript libraries built on web standards
21
fork

Configure Feed

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

@atp in lex-cli

+6 -10
+4 -4
lex-cli/codegen/client.ts
··· 67 67 ) => 68 68 gen(project, "/index.ts", (file) => { 69 69 const extension = options?.useJsExtension ? ".js" : ".ts"; 70 - //= import { XrpcClient, type FetchHandler, type FetchHandlerOptions } from '@atproto/xrpc' 70 + //= import { XrpcClient, type FetchHandler, type FetchHandlerOptions } from '@atp/xrpc' 71 71 const xrpcImport = file.addImportDeclaration({ 72 - moduleSpecifier: "@atproto/xrpc", 72 + moduleSpecifier: "@atp/xrpc", 73 73 }); 74 74 xrpcImport.addNamedImports([ 75 75 { name: "XrpcClient" }, ··· 487 487 main?.type === "subscription" || 488 488 main?.type === "procedure" 489 489 ) { 490 - //= import {HeadersMap, XRPCError} from '@atproto/xrpc' 490 + //= import {HeadersMap, XRPCError} from '@atp/xrpc' 491 491 const xrpcImport = file.addImportDeclaration({ 492 - moduleSpecifier: "@atproto/xrpc", 492 + moduleSpecifier: "@atp/xrpc", 493 493 }); 494 494 xrpcImport.addNamedImports([ 495 495 { name: "HeadersMap" },
-3
lex-cli/codegen/common.ts
··· 7 7 import type { GeneratedFile } from "../types.ts"; 8 8 import type { CodeGenOptions } from "./util.ts"; 9 9 import { format, type Options as PrettierOptions } from "prettier"; 10 - import * as fmt from "deno_fmt"; 11 10 12 11 const PRETTIER_OPTS: PrettierOptions = { 13 12 parser: "typescript", ··· 289 288 let content = `${banner()}${file.getFullText()}`; 290 289 if (!(typeof Deno !== "undefined")) { 291 290 content = await format(content, PRETTIER_OPTS); 292 - } else { 293 - content = await fmt.format(content); 294 291 } 295 292 296 293 return { path, content };
+1 -2
lex-cli/deno.json
··· 11 11 "@atproto/lexicon": "npm:@atproto/lexicon@^0.4.14", 12 12 "prettier": "npm:prettier@^3.6.2", 13 13 "ts-morph": "jsr:@ts-morph/ts-morph@^26.0.0", 14 - "zod": "jsr:@zod/zod@^4.1.5", 15 - "deno_fmt": "https://deno.land/x/deno_fmt@0.1.5/mod.ts" 14 + "zod": "jsr:@zod/zod@^4.1.5" 16 15 } 17 16 }
+1 -1
xrpc-server/tests/bodies_test.ts
··· 638 638 method: "post", 639 639 headers: { "Content-Type": "" }, 640 640 body: new Uint8Array(randomBytes(BLOB_LIMIT)), 641 - // @ts-ignore see note in @atproto/xrpc/client.ts 641 + // @ts-ignore see note in @atp/xrpc/client.ts 642 642 duplex: "half", 643 643 }); 644 644 const resBody = await res.json();