@fedify/fedify 2.1.0-dev.411 → 2.1.0-dev.418
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builder-CIZKYq_c.js → builder-Dr8wJfzL.js} +3 -3
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +11 -11
- package/dist/{context-o4OhjMHe.d.cts → context-D3QkEtZd.d.cts} +4 -23
- package/dist/{context-Dy5ro7zD.d.ts → context-DZJhUmzF.d.ts} +4 -23
- package/dist/{deno-DxRR1kaD.js → deno-RllegzSG.js} +1 -1
- package/dist/{docloader-71iWs1aW.js → docloader-Bue7Ij3R.js} +2 -2
- package/dist/federation/builder.test.js +3 -3
- package/dist/federation/handler.test.js +19 -19
- package/dist/federation/idempotency.test.js +11 -11
- package/dist/federation/inbox.test.js +2 -2
- package/dist/federation/middleware.test.js +27 -12
- package/dist/federation/mod.cjs +4 -4
- package/dist/federation/mod.d.cts +2 -2
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +4 -4
- package/dist/federation/send.test.js +5 -5
- package/dist/federation/webfinger.test.js +11 -11
- package/dist/{http-WSYVmp9R.js → http-BNiAwNU-.js} +1 -1
- package/dist/{http-UopJGipr.js → http-Cvsk5Skd.js} +2 -2
- package/dist/{http-Bkqq3cqd.cjs → http-Due1pojF.cjs} +1 -1
- package/dist/{inbox-z2dSbzt3.js → inbox-CYce8kRg.js} +1 -1
- package/dist/{key-kX3-bxPb.js → key-BqMOdwtv.js} +1 -1
- package/dist/{kv-cache-UyMHB44V.js → kv-cache-DjYerrCe.js} +1 -1
- package/dist/{kv-cache-D7jF50Gv.cjs → kv-cache-zyDjqzjm.cjs} +1 -1
- package/dist/{ld-SocWt2pR.js → ld-BMgYSVTZ.js} +2 -2
- package/dist/{middleware-D0Fpfvqu.js → middleware-B2L4AM_o.js} +11 -11
- package/dist/middleware-BFRIkXyv.cjs +12 -0
- package/dist/{middleware-D22v0yXE.js → middleware-BQ3c3mRY.js} +30 -89
- package/dist/{middleware-B3sv5Omd.cjs → middleware-CfgAMF_j.cjs} +29 -88
- package/dist/{middleware-05Kug3Mc.js → middleware-CgEEF8s6.js} +4 -4
- package/dist/{middleware-DCgDvH1B.js → middleware-CpOJCVxU.js} +36 -95
- package/dist/{mod-Bm_GwNTL.d.cts → mod-DVwHUI_x.d.cts} +1 -1
- package/dist/{mod-DwqZ5l67.d.cts → mod-Di3W5OdP.d.cts} +1 -1
- package/dist/{mod-CIR7gJW8.d.ts → mod-DnSsduJF.d.ts} +1 -1
- package/dist/{mod-DQWhp0xs.d.ts → mod-DosD6NsG.d.ts} +1 -1
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +3 -3
- package/dist/mod.d.ts +3 -3
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.js +11 -11
- package/dist/{owner-Q1XHK8bh.js → owner-rwfm7c6o.js} +1 -1
- package/dist/{proof-DMtRy_BF.js → proof-BSXD3gxs.js} +1 -1
- package/dist/{proof-CORNZjD4.js → proof-CV9ObID1.js} +2 -2
- package/dist/{proof-BZxZbnb0.cjs → proof-CVHxb_s9.cjs} +1 -1
- package/dist/{send-BsDp0CM9.js → send-BUsEdmU0.js} +2 -2
- package/dist/sig/http.test.js +3 -3
- package/dist/sig/key.test.js +2 -2
- package/dist/sig/ld.test.js +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.js +3 -3
- package/dist/sig/proof.test.js +3 -3
- package/dist/testing/mod.d.ts +4 -23
- package/dist/utils/docloader.test.js +4 -4
- package/dist/utils/mod.cjs +2 -2
- package/dist/utils/mod.js +2 -2
- package/package.json +5 -5
- package/dist/middleware-DLg9JD9M.cjs +0 -12
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./deno-
|
|
6
|
+
import { deno_default } from "./deno-RllegzSG.js";
|
|
7
7
|
import { Router, RouterError } from "./router-D9eI0s4b.js";
|
|
8
|
-
import { InboxListenerSet } from "./inbox-
|
|
8
|
+
import { InboxListenerSet } from "./inbox-CYce8kRg.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { getTypeId } from "@fedify/vocab";
|
|
11
11
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -45,7 +45,7 @@ var FederationBuilderImpl = class {
|
|
|
45
45
|
this.collectionTypeIds = {};
|
|
46
46
|
}
|
|
47
47
|
async build(options) {
|
|
48
|
-
const { FederationImpl } = await import("./middleware-
|
|
48
|
+
const { FederationImpl } = await import("./middleware-B2L4AM_o.js");
|
|
49
49
|
const f = new FederationImpl(options);
|
|
50
50
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
51
51
|
f.router = this.router.clone();
|
package/dist/compat/mod.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../client-C97KOq3x.cjs";
|
|
2
2
|
import "../http-Cz3MlXAZ.cjs";
|
|
3
3
|
import "../owner-1AbPBOOZ.cjs";
|
|
4
|
-
import { ActivityTransformer } from "../context-
|
|
4
|
+
import { ActivityTransformer } from "../context-D3QkEtZd.cjs";
|
|
5
5
|
import "../kv-BL4nlICN.cjs";
|
|
6
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
6
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-DVwHUI_x.cjs";
|
|
7
7
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
|
3
3
|
import "../client-BxMZiQaD.js";
|
|
4
4
|
import "../http-DkHdFfrc.js";
|
|
5
5
|
import "../owner-gd0Q9FuU.js";
|
|
6
|
-
import { ActivityTransformer } from "../context-
|
|
6
|
+
import { ActivityTransformer } from "../context-DZJhUmzF.js";
|
|
7
7
|
import "../kv-DXEUEP6z.js";
|
|
8
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
8
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-DosD6NsG.js";
|
|
9
9
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
|
@@ -8,25 +8,25 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
11
|
+
import "../deno-RllegzSG.js";
|
|
12
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-CpOJCVxU.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BqMOdwtv.js";
|
|
17
|
+
import "../http-Cvsk5Skd.js";
|
|
18
|
+
import "../ld-BMgYSVTZ.js";
|
|
19
|
+
import "../owner-rwfm7c6o.js";
|
|
20
|
+
import "../proof-CV9ObID1.js";
|
|
21
|
+
import "../docloader-Bue7Ij3R.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CYce8kRg.js";
|
|
24
|
+
import "../builder-Dr8wJfzL.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BUsEdmU0.js";
|
|
30
30
|
import { Follow, Person } from "@fedify/vocab";
|
|
31
31
|
|
|
32
32
|
//#region src/compat/transformers.test.ts
|
|
@@ -289,21 +289,12 @@ type OutboxPermanentFailureHandler<TContextData> = (context: Context<TContextDat
|
|
|
289
289
|
*
|
|
290
290
|
* @template TContextData The context data to pass to the {@link Context}.
|
|
291
291
|
* @param context The request context.
|
|
292
|
-
* @param identifier The internal identifier of the actor that is being
|
|
293
|
-
*
|
|
294
|
-
* {@link RequestContext.getSignedKey} method.*
|
|
295
|
-
* The key that was used to sign the request, or `null` if
|
|
296
|
-
* the request was not signed or the signature was invalid.
|
|
297
|
-
* @param signedKeyOwner *Deprecated in Fedify 1.5.0 in favor of
|
|
298
|
-
* {@link RequestContext.getSignedKeyOwner} method.*
|
|
299
|
-
* The actor that owns the key that was used to sign the
|
|
300
|
-
* request, or `null` if the request was not signed or the
|
|
301
|
-
* signature was invalid, or if the key is not associated
|
|
302
|
-
* with an actor.
|
|
292
|
+
* @param identifier The internal identifier of the actor that is being
|
|
293
|
+
* requested.
|
|
303
294
|
* @returns `true` if the request is authorized, `false` otherwise.
|
|
304
295
|
* @since 0.7.0
|
|
305
296
|
*/
|
|
306
|
-
type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>, identifier: string
|
|
297
|
+
type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>, identifier: string) => boolean | Promise<boolean>;
|
|
307
298
|
/**
|
|
308
299
|
* A callback that determines if a request is authorized or not.
|
|
309
300
|
*
|
|
@@ -311,20 +302,10 @@ type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>,
|
|
|
311
302
|
* @template TParam The parameter names of the requested URL.
|
|
312
303
|
* @param context The request context.
|
|
313
304
|
* @param values The parameters of the requested URL.
|
|
314
|
-
* @param signedKey *Deprecated in Fedify 1.5.0 in favor of
|
|
315
|
-
* {@link RequestContext.getSignedKey} method.*
|
|
316
|
-
* The key that was used to sign the request, or `null` if
|
|
317
|
-
* the request was not signed or the signature was invalid.
|
|
318
|
-
* @param signedKeyOwner *Deprecated in Fedify 1.5.0 in favor of
|
|
319
|
-
* {@link RequestContext.getSignedKeyOwner} method.*
|
|
320
|
-
* The actor that owns the key that was used to sign the
|
|
321
|
-
* request, or `null` if the request was not signed or the
|
|
322
|
-
* signature was invalid, or if the key is not associated
|
|
323
|
-
* with an actor.
|
|
324
305
|
* @returns `true` if the request is authorized, `false` otherwise.
|
|
325
306
|
* @since 0.7.0
|
|
326
307
|
*/
|
|
327
|
-
type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: RequestContext<TContextData>, values: Record<TParam, string
|
|
308
|
+
type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => boolean | Promise<boolean>;
|
|
328
309
|
/**
|
|
329
310
|
* A callback that dispatches a custom collection.
|
|
330
311
|
*
|
|
@@ -291,21 +291,12 @@ type OutboxPermanentFailureHandler<TContextData> = (context: Context<TContextDat
|
|
|
291
291
|
*
|
|
292
292
|
* @template TContextData The context data to pass to the {@link Context}.
|
|
293
293
|
* @param context The request context.
|
|
294
|
-
* @param identifier The internal identifier of the actor that is being
|
|
295
|
-
*
|
|
296
|
-
* {@link RequestContext.getSignedKey} method.*
|
|
297
|
-
* The key that was used to sign the request, or `null` if
|
|
298
|
-
* the request was not signed or the signature was invalid.
|
|
299
|
-
* @param signedKeyOwner *Deprecated in Fedify 1.5.0 in favor of
|
|
300
|
-
* {@link RequestContext.getSignedKeyOwner} method.*
|
|
301
|
-
* The actor that owns the key that was used to sign the
|
|
302
|
-
* request, or `null` if the request was not signed or the
|
|
303
|
-
* signature was invalid, or if the key is not associated
|
|
304
|
-
* with an actor.
|
|
294
|
+
* @param identifier The internal identifier of the actor that is being
|
|
295
|
+
* requested.
|
|
305
296
|
* @returns `true` if the request is authorized, `false` otherwise.
|
|
306
297
|
* @since 0.7.0
|
|
307
298
|
*/
|
|
308
|
-
type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>, identifier: string
|
|
299
|
+
type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>, identifier: string) => boolean | Promise<boolean>;
|
|
309
300
|
/**
|
|
310
301
|
* A callback that determines if a request is authorized or not.
|
|
311
302
|
*
|
|
@@ -313,20 +304,10 @@ type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>,
|
|
|
313
304
|
* @template TParam The parameter names of the requested URL.
|
|
314
305
|
* @param context The request context.
|
|
315
306
|
* @param values The parameters of the requested URL.
|
|
316
|
-
* @param signedKey *Deprecated in Fedify 1.5.0 in favor of
|
|
317
|
-
* {@link RequestContext.getSignedKey} method.*
|
|
318
|
-
* The key that was used to sign the request, or `null` if
|
|
319
|
-
* the request was not signed or the signature was invalid.
|
|
320
|
-
* @param signedKeyOwner *Deprecated in Fedify 1.5.0 in favor of
|
|
321
|
-
* {@link RequestContext.getSignedKeyOwner} method.*
|
|
322
|
-
* The actor that owns the key that was used to sign the
|
|
323
|
-
* request, or `null` if the request was not signed or the
|
|
324
|
-
* signature was invalid, or if the key is not associated
|
|
325
|
-
* with an actor.
|
|
326
307
|
* @returns `true` if the request is authorized, `false` otherwise.
|
|
327
308
|
* @since 0.7.0
|
|
328
309
|
*/
|
|
329
|
-
type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: RequestContext<TContextData>, values: Record<TParam, string
|
|
310
|
+
type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => boolean | Promise<boolean>;
|
|
330
311
|
/**
|
|
331
312
|
* A callback that dispatches a custom collection.
|
|
332
313
|
*
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { validateCryptoKey } from "./key-BqMOdwtv.js";
|
|
7
|
+
import { doubleKnock } from "./http-Cvsk5Skd.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { curry } from "es-toolkit";
|
|
10
10
|
import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
@@ -8,10 +8,10 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
11
|
+
import "../deno-RllegzSG.js";
|
|
12
12
|
import "../router-D9eI0s4b.js";
|
|
13
|
-
import "../inbox-
|
|
14
|
-
import { createFederationBuilder } from "../builder-
|
|
13
|
+
import "../inbox-CYce8kRg.js";
|
|
14
|
+
import { createFederationBuilder } from "../builder-Dr8wJfzL.js";
|
|
15
15
|
import { assertExists } from "../std__assert-DWivtrGR.js";
|
|
16
16
|
import "../assert_rejects-Ce45JcFg.js";
|
|
17
17
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
@@ -8,25 +8,25 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
11
|
+
import "../deno-RllegzSG.js";
|
|
12
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-CpOJCVxU.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import { signRequest } from "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BqMOdwtv.js";
|
|
17
|
+
import { signRequest } from "../http-Cvsk5Skd.js";
|
|
18
|
+
import "../ld-BMgYSVTZ.js";
|
|
19
|
+
import "../owner-rwfm7c6o.js";
|
|
20
|
+
import "../proof-CV9ObID1.js";
|
|
21
|
+
import "../docloader-Bue7Ij3R.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import { InboxListenerSet } from "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import { InboxListenerSet } from "../inbox-CYce8kRg.js";
|
|
24
|
+
import "../builder-Dr8wJfzL.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BUsEdmU0.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -157,7 +157,7 @@ test("handleActor()", async () => {
|
|
|
157
157
|
context,
|
|
158
158
|
identifier: "someone",
|
|
159
159
|
actorDispatcher,
|
|
160
|
-
authorizePredicate: (
|
|
160
|
+
authorizePredicate: async (ctx, _handle) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null,
|
|
161
161
|
onNotFound,
|
|
162
162
|
onUnauthorized
|
|
163
163
|
});
|
|
@@ -174,7 +174,7 @@ test("handleActor()", async () => {
|
|
|
174
174
|
context,
|
|
175
175
|
identifier: "someone",
|
|
176
176
|
actorDispatcher,
|
|
177
|
-
authorizePredicate: (
|
|
177
|
+
authorizePredicate: async (ctx, _handle) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null,
|
|
178
178
|
onNotFound,
|
|
179
179
|
onUnauthorized
|
|
180
180
|
});
|
|
@@ -384,7 +384,7 @@ test("handleObject()", async () => {
|
|
|
384
384
|
id: "123"
|
|
385
385
|
},
|
|
386
386
|
objectDispatcher,
|
|
387
|
-
authorizePredicate: (
|
|
387
|
+
authorizePredicate: async (ctx, _values) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null,
|
|
388
388
|
onNotFound,
|
|
389
389
|
onUnauthorized
|
|
390
390
|
});
|
|
@@ -404,7 +404,7 @@ test("handleObject()", async () => {
|
|
|
404
404
|
id: "123"
|
|
405
405
|
},
|
|
406
406
|
objectDispatcher,
|
|
407
|
-
authorizePredicate: (
|
|
407
|
+
authorizePredicate: async (ctx, _values) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null,
|
|
408
408
|
onNotFound,
|
|
409
409
|
onUnauthorized
|
|
410
410
|
});
|
|
@@ -630,7 +630,7 @@ test("handleCollection()", async () => {
|
|
|
630
630
|
},
|
|
631
631
|
collectionCallbacks: {
|
|
632
632
|
dispatcher,
|
|
633
|
-
authorizePredicate: (
|
|
633
|
+
authorizePredicate: async (ctx, _handle) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null
|
|
634
634
|
},
|
|
635
635
|
onNotFound,
|
|
636
636
|
onUnauthorized
|
|
@@ -653,7 +653,7 @@ test("handleCollection()", async () => {
|
|
|
653
653
|
},
|
|
654
654
|
collectionCallbacks: {
|
|
655
655
|
dispatcher,
|
|
656
|
-
authorizePredicate: (
|
|
656
|
+
authorizePredicate: async (ctx, _handle) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null
|
|
657
657
|
},
|
|
658
658
|
onNotFound,
|
|
659
659
|
onUnauthorized
|
|
@@ -1356,7 +1356,7 @@ test("handleCustomCollection()", async () => {
|
|
|
1356
1356
|
values: { identifier: "someone" },
|
|
1357
1357
|
collectionCallbacks: {
|
|
1358
1358
|
dispatcher,
|
|
1359
|
-
authorizePredicate: (
|
|
1359
|
+
authorizePredicate: async (ctx, _values) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null
|
|
1360
1360
|
},
|
|
1361
1361
|
...errorHandlers
|
|
1362
1362
|
});
|
|
@@ -1375,7 +1375,7 @@ test("handleCustomCollection()", async () => {
|
|
|
1375
1375
|
values: { identifier: "someone" },
|
|
1376
1376
|
collectionCallbacks: {
|
|
1377
1377
|
dispatcher,
|
|
1378
|
-
authorizePredicate: (
|
|
1378
|
+
authorizePredicate: async (ctx, _values) => await ctx.getSignedKey() != null && await ctx.getSignedKeyOwner() != null
|
|
1379
1379
|
},
|
|
1380
1380
|
...errorHandlers
|
|
1381
1381
|
});
|
|
@@ -8,25 +8,25 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation } from "../middleware-
|
|
11
|
+
import "../deno-RllegzSG.js";
|
|
12
|
+
import { createFederation } from "../middleware-CpOJCVxU.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import { signObject } from "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BqMOdwtv.js";
|
|
17
|
+
import "../http-Cvsk5Skd.js";
|
|
18
|
+
import "../ld-BMgYSVTZ.js";
|
|
19
|
+
import "../owner-rwfm7c6o.js";
|
|
20
|
+
import { signObject } from "../proof-CV9ObID1.js";
|
|
21
|
+
import "../docloader-Bue7Ij3R.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CYce8kRg.js";
|
|
24
|
+
import "../builder-Dr8wJfzL.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BUsEdmU0.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../deno-
|
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
|
8
|
+
import "../deno-RllegzSG.js";
|
|
9
|
+
import { InboxListenerSet } from "../inbox-CYce8kRg.js";
|
|
10
10
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
11
11
|
import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
|
|
12
12
|
|
|
@@ -8,25 +8,25 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
11
|
+
import "../deno-RllegzSG.js";
|
|
12
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-CpOJCVxU.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import { RouterError } from "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import { signRequest, verifyRequest } from "../http-
|
|
18
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
19
|
-
import { doesActorOwnKey } from "../owner-
|
|
20
|
-
import { signObject, verifyObject } from "../proof-
|
|
21
|
-
import { getAuthenticatedDocumentLoader } from "../docloader-
|
|
16
|
+
import "../key-BqMOdwtv.js";
|
|
17
|
+
import { signRequest, verifyRequest } from "../http-Cvsk5Skd.js";
|
|
18
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-BMgYSVTZ.js";
|
|
19
|
+
import { doesActorOwnKey } from "../owner-rwfm7c6o.js";
|
|
20
|
+
import { signObject, verifyObject } from "../proof-CV9ObID1.js";
|
|
21
|
+
import { getAuthenticatedDocumentLoader } from "../docloader-Bue7Ij3R.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CYce8kRg.js";
|
|
24
|
+
import "../builder-Dr8wJfzL.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BUsEdmU0.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
@@ -35,7 +35,7 @@ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, r
|
|
|
35
35
|
import { esm_default } from "../esm-DGl7uK1r.js";
|
|
36
36
|
import * as vocab from "@fedify/vocab";
|
|
37
37
|
import { getTypeId, lookupObject } from "@fedify/vocab";
|
|
38
|
-
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
38
|
+
import { FetchError, getDocumentLoader } from "@fedify/vocab-runtime";
|
|
39
39
|
|
|
40
40
|
//#region ../fixture/src/fixtures/example.com/create.json
|
|
41
41
|
var __context$2 = "https://www.w3.org/ns/activitystreams";
|
|
@@ -728,6 +728,21 @@ test({
|
|
|
728
728
|
id: "123"
|
|
729
729
|
}), new vocab.Note({ summary: "Note 123 by john" }));
|
|
730
730
|
});
|
|
731
|
+
await t.step("RequestContext.getSignedKeyOwner() returns null on FetchError", async () => {
|
|
732
|
+
const customDocumentLoader = async (url) => {
|
|
733
|
+
if (url === "https://example.com/person2#key3") return await mockDocumentLoader("https://example.com/person2");
|
|
734
|
+
if (url === "https://example.com/person2") throw new FetchError(new URL(url), "HTTP 401: Unauthorized");
|
|
735
|
+
return mockDocumentLoader(url);
|
|
736
|
+
};
|
|
737
|
+
const signedReq = await signRequest(new Request("https://example.com/", { headers: { accept: "application/activity+json" } }), rsaPrivateKey3, rsaPublicKey3.id);
|
|
738
|
+
const fed = createFederation({
|
|
739
|
+
kv,
|
|
740
|
+
documentLoaderFactory: () => customDocumentLoader,
|
|
741
|
+
contextLoaderFactory: () => mockDocumentLoader
|
|
742
|
+
});
|
|
743
|
+
const ctx = fed.createContext(signedReq, void 0);
|
|
744
|
+
assertEquals(await ctx.getSignedKeyOwner(), null);
|
|
745
|
+
});
|
|
731
746
|
await t.step("RequestContext.clone()", () => {
|
|
732
747
|
const federation = createFederation({ kv });
|
|
733
748
|
const req = new Request("https://example.com/", { headers: { "accept": "application/ld+json" } });
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
require('../transformers-3g8GZwkZ.cjs');
|
|
6
|
-
require('../http-
|
|
7
|
-
const require_middleware = require('../middleware-
|
|
8
|
-
require('../proof-
|
|
6
|
+
require('../http-Due1pojF.cjs');
|
|
7
|
+
const require_middleware = require('../middleware-CfgAMF_j.cjs');
|
|
8
|
+
require('../proof-CVHxb_s9.cjs');
|
|
9
9
|
const require_federation = require('../federation-Bp3HI26G.cjs');
|
|
10
10
|
require('../types-Cd_hszr_.cjs');
|
|
11
|
-
require('../kv-cache-
|
|
11
|
+
require('../kv-cache-zyDjqzjm.cjs');
|
|
12
12
|
|
|
13
13
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
14
14
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../client-C97KOq3x.cjs";
|
|
2
2
|
import "../http-Cz3MlXAZ.cjs";
|
|
3
3
|
import "../owner-1AbPBOOZ.cjs";
|
|
4
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
4
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-D3QkEtZd.cjs";
|
|
5
5
|
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-BL4nlICN.cjs";
|
|
6
|
-
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-
|
|
6
|
+
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-Di3W5OdP.cjs";
|
|
7
7
|
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
|
3
3
|
import "../client-BxMZiQaD.js";
|
|
4
4
|
import "../http-DkHdFfrc.js";
|
|
5
5
|
import "../owner-gd0Q9FuU.js";
|
|
6
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
6
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-DZJhUmzF.js";
|
|
7
7
|
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-DXEUEP6z.js";
|
|
8
|
-
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-
|
|
8
|
+
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-DnSsduJF.js";
|
|
9
9
|
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-C3FLHUd6.js";
|
|
6
|
-
import "../http-
|
|
7
|
-
import { Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
8
|
-
import "../proof-
|
|
6
|
+
import "../http-BNiAwNU-.js";
|
|
7
|
+
import { Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BQ3c3mRY.js";
|
|
8
|
+
import "../proof-BSXD3gxs.js";
|
|
9
9
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-DaMfqRm4.js";
|
|
10
10
|
import "../types-C93Ob9cU.js";
|
|
11
|
-
import "../kv-cache-
|
|
11
|
+
import "../kv-cache-DjYerrCe.js";
|
|
12
12
|
|
|
13
13
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -7,11 +7,11 @@ import { createTestTracerProvider, mockDocumentLoader, test } from "../dist-B5f6
|
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../deno-
|
|
11
|
-
import "../key-
|
|
12
|
-
import { verifyRequest } from "../http-
|
|
13
|
-
import { doesActorOwnKey } from "../owner-
|
|
14
|
-
import { SendActivityError, extractInboxes, sendActivity } from "../send-
|
|
10
|
+
import "../deno-RllegzSG.js";
|
|
11
|
+
import "../key-BqMOdwtv.js";
|
|
12
|
+
import { verifyRequest } from "../http-Cvsk5Skd.js";
|
|
13
|
+
import { doesActorOwnKey } from "../owner-rwfm7c6o.js";
|
|
14
|
+
import { SendActivityError, extractInboxes, sendActivity } from "../send-BUsEdmU0.js";
|
|
15
15
|
import "../std__assert-DWivtrGR.js";
|
|
16
16
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
17
17
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -8,25 +8,25 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation, handleWebFinger } from "../middleware-
|
|
11
|
+
import "../deno-RllegzSG.js";
|
|
12
|
+
import { createFederation, handleWebFinger } from "../middleware-CpOJCVxU.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BqMOdwtv.js";
|
|
17
|
+
import "../http-Cvsk5Skd.js";
|
|
18
|
+
import "../ld-BMgYSVTZ.js";
|
|
19
|
+
import "../owner-rwfm7c6o.js";
|
|
20
|
+
import "../proof-CV9ObID1.js";
|
|
21
|
+
import "../docloader-Bue7Ij3R.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CYce8kRg.js";
|
|
24
|
+
import "../builder-Dr8wJfzL.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BUsEdmU0.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -13,7 +13,7 @@ import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
|
13
13
|
|
|
14
14
|
//#region deno.json
|
|
15
15
|
var name = "@fedify/fedify";
|
|
16
|
-
var version = "2.1.0-dev.
|
|
16
|
+
var version = "2.1.0-dev.418+6c060f4a";
|
|
17
17
|
var license = "MIT";
|
|
18
18
|
var exports = {
|
|
19
19
|
".": "./src/mod.ts",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./deno-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { deno_default } from "./deno-RllegzSG.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BqMOdwtv.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { CryptographicKey } from "@fedify/vocab";
|
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -14,7 +14,7 @@ const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runt
|
|
|
14
14
|
|
|
15
15
|
//#region deno.json
|
|
16
16
|
var name = "@fedify/fedify";
|
|
17
|
-
var version = "2.1.0-dev.
|
|
17
|
+
var version = "2.1.0-dev.418+6c060f4a";
|
|
18
18
|
var license = "MIT";
|
|
19
19
|
var exports$1 = {
|
|
20
20
|
".": "./src/mod.ts",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./deno-
|
|
6
|
+
import { deno_default } from "./deno-RllegzSG.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { Activity, getTypeId } from "@fedify/vocab";
|
|
9
9
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|