Unverified Commit 7dc1eb38 authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix fedify lookup -a on Windows

parent f870220c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
    "generate-import-map": "deno run --allow-read --allow-write scripts/generate_import_map.ts",
    "sync-version": "deno run --allow-read=deno.json --allow-write=deno.json scripts/sync_version.ts",
    "codegen": "deno task fedify-codegen && deno task generate-import-map && deno task sync-version",
    "run": "deno task codegen && deno run --allow-read --allow-write --allow-net --allow-env --allow-run mod.ts",
    "run": "deno task codegen && deno run --allow-all mod.ts",
    "publish": "deno task codegen && deno task generate-import-map --release && deno publish",
    "publish-dry-run": "deno task codegen && deno publish --dry-run --allow-dirty"
  }
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@
    "@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.4",
    "@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0-rc.4",
    "@cross/dir": "jsr:@cross/dir@^1.1.0",
    "@hongminhee/localtunnel": "jsr:@hongminhee/localtunnel@^0.1.0",
    "@hongminhee/localtunnel": "jsr:@hongminhee/localtunnel@^0.1.1",
    "cli-highlight": "npm:cli-highlight@^2.1.11",
    "json-preserve-indent": "npm:json-preserve-indent@^1.1.3",
    "ora": "npm:ora@^8.0.1"
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
    "@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.4",
    "@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0-rc.4",
    "@cross/dir": "jsr:@cross/dir@^1.1.0",
    "@hongminhee/localtunnel": "jsr:@hongminhee/localtunnel@^0.1.0",
    "@hongminhee/localtunnel": "jsr:@hongminhee/localtunnel@^0.1.1",
    "@logtape/logtape": "jsr:@logtape/logtape@^0.2.2",
    "@std/fs": "jsr:@std/fs@^0.220.1",
    "@std/path": "jsr:@std/path@^0.220.1",
+10 −9
Original line number Diff line number Diff line
@@ -41,14 +41,15 @@ export const command = new Command()
      const key = await generateCryptoKeyPair();
      spinner.text = "Spinning up a temporary ActivityPub server...";
      server = await spawnTemporaryServer((req) => {
        const serverUrl = server?.url ?? new URL("http://localhost/");
        if (new URL(req.url).pathname == "/.well-known/webfinger") {
          const jrd: ResourceDescriptor = {
            subject: `acct:${server!.url.hostname}@${server!.url.hostname}`,
            aliases: [server!.url.href],
            subject: `acct:${serverUrl.hostname}@${serverUrl.hostname}`,
            aliases: [serverUrl.href],
            links: [
              {
                rel: "self",
                href: server!.url.href,
                href: serverUrl.href,
                type: "application/activity+json",
              },
            ],
@@ -59,16 +60,16 @@ export const command = new Command()
        }
        return respondWithObject(
          new Application({
            id: server?.url,
            preferredUsername: server?.url?.hostname,
            id: serverUrl,
            preferredUsername: serverUrl?.hostname,
            publicKey: new CryptographicKey({
              id: new URL("#main-key", server?.url),
              owner: server?.url,
              id: new URL("#main-key", serverUrl),
              owner: serverUrl,
              publicKey: key.publicKey,
            }),
            manuallyApprovesFollowers: true,
            inbox: new URL("/inbox", server?.url),
            outbox: new URL("/outbox", server?.url),
            inbox: new URL("/inbox", serverUrl),
            outbox: new URL("/outbox", serverUrl),
          }),
          { documentLoader },
        );
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,11 @@ const command = new Command()
            level: "debug",
            sinks: ["console"],
          },
          {
            category: "localtunnel",
            level: "debug",
            sinks: ["console"],
          },
          {
            category: ["logtape", "meta"],
            level: "warning",
Loading