Unverified Commit ab7bf71e authored by Hong Minhee's avatar Hong Minhee
Browse files

Get rid of jsr: specified from docs

[ci skip]
parent 12a69dc0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ the following:
The below example shows how to register an actor dispatcher:

~~~~ typescript
import { Federation, Person } from "jsr:@fedify/fedify";
import { Federation, Person } from "@fedify/fedify";

const federation = new Federation({
  // Omitted for brevity; see the related section for details.
@@ -180,7 +180,7 @@ this document, but here's a simple example of how to generate a key pair and
store it in a [Deno KV] database in form of JWK:

~~~~ typescript
import { generateCryptoKeyPair, exportJwk } from "jsr:@fedify/fedify";
import { generateCryptoKeyPair, exportJwk } from "@fedify/fedify";

const kv = await Deno.openKv();
const { privateKey, publicKey } = await generateCryptoKeyPair();
@@ -200,7 +200,7 @@ await kv.set(["keypair", handle], {
Here's an example of how to load a key pair from the database too:

~~~~ typescript
import { importJwk } from "jsr:@fedify/fedify";
import { importJwk } from "@fedify/fedify";

federation
  .setActorDispatcher("/users/{handle}", async (ctx, handle, key) => {
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ return an array of activities. The following example shows how to construct
an outbox collection:

~~~~ typescript
import { Article, Create } from "jsr:@fedify/fedify";
import { Article, Create } from "@fedify/fedify";

federation
  .setOutboxDispatcher("/users/{handle}/outbox", async (ctx, handle) => {
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ You can create a `Federation` object by calling the constructor function
with an optional configuration object:

~~~~ typescript
import { Federation } from "jsr:@fedify/fedify";
import { Federation } from "@fedify/fedify";

const federation = new Federation<void>({
  kv: await Deno.openKv(),
@@ -196,7 +196,7 @@ object can handle.
>
> ~~~~ typescript
> import { federation } from "../federation.ts"; // Import the `Federation` object
> import { integrateHandler } from "jsr:@fedify/fedify/x/fresh";
> import { integrateHandler } from "@fedify/fedify/x/fresh";
>
> export const handler = integrateHandler(federation, () => undefined);
> ~~~~
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ With Fedify, you can register an inbox listener for both types of inboxes at
a time.  The following shows how to register an inbox listener:

~~~~ typescript
import { Federation, Follow } from "jsr:@fedify/fedify";
import { Federation, Follow } from "@fedify/fedify";

const federation = new Federation({
  // Omitted for brevity; see the related section for details.
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ To expose a NodeInfo endpoint, you need to register a NodeInfo dispatcher with
a NodeInfo endpoint:

~~~~ typescript
import { Federation } from "jsr:@fedify/fedify";
import { Federation } from "@fedify/fedify";

const federation = new Federation({
  // Omitted for brevity; see the related section for details.
Loading