@fedify/fedify 2.2.0-dev.610 → 2.2.0-dev.622
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/README.md +2 -5
- package/dist/{accept-D7sAxyNa.js → accept-Dd__NiUL.mjs} +10 -8
- package/dist/{assert-MZs1qjMx.js → assert-ddO5KLpe.mjs} +5 -9
- package/dist/{assert_equals-DSbWqCm3.js → assert_equals-Ew3jOFa3.mjs} +55 -69
- package/dist/{assert_instance_of-DHz7EHNU.js → assert_instance_of-C4Ri6VuN.mjs} +5 -9
- package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals--wG9hV7u.mjs} +6 -13
- package/dist/{assert_rejects-0h7I2Esa.js → assert_rejects-B-qJtC9Z.mjs} +6 -11
- package/dist/{assert_throws-rjdMBf31.js → assert_throws-4NwKEy2q.mjs} +5 -10
- package/dist/{builder-Bkqx5fo0.js → builder-DcSpny3g.mjs} +32 -41
- package/dist/{chunk-CGaQZ11T.cjs → chunk-DDcVe30Y.cjs} +23 -24
- package/dist/{chunk-DJNbSFdH.js → chunk-nlSIicah.js} +8 -8
- package/dist/{client-BxMZiQaD.d.ts → client-AtlibPOU.d.ts} +1 -1
- package/dist/{client-CoCIaTNO.js → client-DEpOVgY1.mjs} +9 -13
- package/dist/{client-C97KOq3x.d.cts → client-z-8dc-e1.d.cts} +1 -1
- package/dist/{collection-CSzG2j1P.js → collection-BD6-SZ6O.mjs} +7 -12
- package/dist/compat/mod.cjs +5 -8
- package/dist/compat/mod.d.cts +78 -6
- package/dist/compat/mod.d.ts +78 -6
- package/dist/compat/mod.js +4 -8
- package/dist/compat/transformers.test.mjs +62 -0
- package/dist/{context-DyJjQQ_H.d.ts → context-BOiMZBu5.d.ts} +9 -18
- package/dist/{context-BcqA-0BL.d.cts → context-BhZVy7RB.d.cts} +9 -18
- package/dist/{context-Aqenou7c.js → context-Juj6bdHC.mjs} +7 -11
- package/dist/deno-D682wzlW.mjs +8 -0
- package/dist/{docloader-ORTT1bPi.js → docloader-CCWf4tNV.mjs} +8 -14
- package/dist/{esm-nLm00z9V.js → esm-DVILvP5e.mjs} +50 -89
- package/dist/federation/builder.test.d.mts +2 -0
- package/dist/federation/{builder.test.js → builder.test.mjs} +21 -44
- package/dist/federation/collection.test.d.mts +2 -0
- package/dist/federation/collection.test.mjs +21 -0
- package/dist/federation/handler.test.d.mts +2 -0
- package/dist/federation/{handler.test.js → handler.test.mjs} +69 -131
- package/dist/federation/idempotency.test.d.mts +2 -0
- package/dist/federation/{idempotency.test.js → idempotency.test.mjs} +31 -63
- package/dist/federation/inbox.test.d.mts +2 -0
- package/dist/federation/{inbox.test.js → inbox.test.mjs} +8 -12
- package/dist/federation/keycache.test.d.mts +2 -0
- package/dist/federation/{keycache.test.js → keycache.test.mjs} +13 -19
- package/dist/federation/kv.test.d.mts +2 -0
- package/dist/federation/{kv.test.js → kv.test.mjs} +11 -22
- package/dist/federation/middleware.test.d.mts +2 -0
- package/dist/federation/{middleware.test.js → middleware.test.mjs} +173 -262
- package/dist/federation/mod.cjs +327 -16
- package/dist/federation/mod.d.cts +3 -6
- package/dist/federation/mod.d.ts +3 -6
- package/dist/federation/mod.js +322 -13
- package/dist/federation/mq.test.d.mts +2 -0
- package/dist/federation/{mq.test.js → mq.test.mjs} +21 -35
- package/dist/federation/negotiation.test.d.mts +2 -0
- package/dist/federation/{negotiation.test.js → negotiation.test.mjs} +9 -16
- package/dist/federation/retry.test.d.mts +2 -0
- package/dist/federation/{retry.test.js → retry.test.mjs} +8 -11
- package/dist/federation/router.test.d.mts +2 -0
- package/dist/federation/{router.test.js → router.test.mjs} +11 -16
- package/dist/federation/send.test.d.mts +2 -0
- package/dist/federation/{send.test.js → send.test.mjs} +22 -30
- package/dist/federation/webfinger.test.d.mts +2 -0
- package/dist/federation/{webfinger.test.js → webfinger.test.mjs} +22 -56
- package/dist/{http-BDf1pBmE.cjs → http-BQccxQlj.cjs} +177 -302
- package/dist/{http-By9CCocC.js → http-CNsnyqrO.mjs} +23 -43
- package/dist/{http-BudnHZE2.d.cts → http-CrGuipxe.d.cts} +1 -6
- package/dist/{http-DLQMXj_1.js → http-DhwEMhtv.js} +53 -184
- package/dist/{http-Dax_FIBo.d.ts → http-aQzN9Ayi.d.ts} +1 -6
- package/dist/{inbox-CTJeEur6.js → inbox-DegXbbbS.mjs} +18 -26
- package/dist/{key-OaS_196P.js → key-vL60OvqM.mjs} +29 -37
- package/dist/{keycache-CpGWAUbj.js → keycache-CCSwkQcY.mjs} +5 -10
- package/dist/{keys-BFve7QQv.js → keys-BAK-tUlf.mjs} +5 -9
- package/dist/{kv-BL4nlICN.d.cts → kv-CbLNp3zQ.d.cts} +1 -1
- package/dist/{kv-DXEUEP6z.d.ts → kv-GFYnFoOl.d.ts} +1 -1
- package/dist/{kv-cache-Bw2F2ABq.js → kv-cache-B01V7s3h.mjs} +4 -8
- package/dist/{kv-cache-COnBmjEC.js → kv-cache-CTj3iCix.js} +6 -13
- package/dist/{kv-cache-DG491NbS.cjs → kv-cache-DxdXJNbj.cjs} +27 -34
- package/dist/{kv-QzKcOQgP.js → kv-tL2TOE9X.mjs} +6 -10
- package/dist/{ld-5udwE1JY.js → ld-C3CO00YY.mjs} +17 -31
- package/dist/{middleware-3FSu2a2W.js → middleware-BmsVSOeS.js} +335 -382
- package/dist/middleware-C7shNcsp.cjs +4 -0
- package/dist/{middleware-CFuio6Y_.cjs → middleware-Cx0Ny6_7.cjs} +532 -587
- package/dist/middleware-DqVGYk56.mjs +5 -0
- package/dist/{middleware-DRWIaDqh.js → middleware-Du-vh7I_.mjs} +282 -317
- package/dist/{mod-em2Il1eD.d.cts → mod-Bp_CzKd4.d.cts} +2 -2
- package/dist/{mod-DCbh1JQ5.d.ts → mod-CLgIXe9w.d.ts} +3 -3
- package/dist/{mod-jfnweK2w.d.cts → mod-CMEbIaNh.d.cts} +3 -3
- package/dist/{mod-D6MdymW7.d.ts → mod-DKOAow7a.d.ts} +2 -2
- package/dist/{mod-Coe7KEgX.d.cts → mod-DoJBjjnO.d.cts} +2 -2
- package/dist/{mod-D6dOd--H.d.ts → mod-DvxszxXC.d.ts} +2 -2
- package/dist/mod.cjs +29 -74
- package/dist/mod.d.cts +11 -14
- package/dist/mod.d.ts +11 -15
- package/dist/mod.js +17 -71
- package/dist/{negotiation-BlAuS_nr.js → negotiation-DnsfFF8I.mjs} +7 -11
- package/dist/nodeinfo/client.test.d.mts +2 -0
- package/dist/nodeinfo/{client.test.js → client.test.mjs} +22 -40
- package/dist/nodeinfo/handler.test.d.mts +2 -0
- package/dist/nodeinfo/{handler.test.js → handler.test.mjs} +13 -43
- package/dist/nodeinfo/mod.cjs +5 -8
- package/dist/nodeinfo/mod.d.cts +2 -3
- package/dist/nodeinfo/mod.d.ts +2 -3
- package/dist/nodeinfo/mod.js +4 -8
- package/dist/nodeinfo/types.test.d.mts +2 -0
- package/dist/nodeinfo/{types.test.js → types.test.mjs} +9 -16
- package/dist/otel/exporter.test.d.mts +2 -0
- package/dist/otel/{exporter.test.js → exporter.test.mjs} +124 -178
- package/dist/otel/mod.cjs +15 -20
- package/dist/otel/mod.d.cts +2 -2
- package/dist/otel/mod.d.ts +2 -2
- package/dist/otel/mod.js +8 -14
- package/dist/{owner-gd0Q9FuU.d.ts → owner-74ARJ5TL.d.ts} +1 -1
- package/dist/{owner-1AbPBOOZ.d.cts → owner-CptqhsOy.d.cts} +1 -1
- package/dist/{owner-DuRG_QYg.js → owner-DF320w6K.mjs} +11 -16
- package/dist/{proof-DG0_Hm4d.js → proof-BCWk5oas.js} +32 -58
- package/dist/{proof-DFffIwhK.js → proof-IyDwwmzL.mjs} +21 -33
- package/dist/{proof-WJjJMjvC.cjs → proof-WhNxSv_N.cjs} +133 -157
- package/dist/{retry-mqLf4b-R.js → retry-B_E3V_Dx.mjs} +4 -7
- package/dist/{router-D9eI0s4b.js → router-CrMLXoOr.mjs} +4 -8
- package/dist/runtime/mod.cjs +11 -13
- package/dist/runtime/mod.d.cts +6 -2
- package/dist/runtime/mod.d.ts +0 -1
- package/dist/runtime/mod.js +4 -7
- package/dist/{send-CJAMZwWu.js → send-CJQubr5t.mjs} +8 -13
- package/dist/sig/accept.test.d.mts +2 -0
- package/dist/sig/{accept.test.js → accept.test.mjs} +35 -70
- package/dist/sig/http.test.d.mts +2 -0
- package/dist/sig/{http.test.js → http.test.mjs} +166 -280
- package/dist/sig/key.test.d.mts +2 -0
- package/dist/sig/{key.test.js → key.test.mjs} +11 -18
- package/dist/sig/ld.test.d.mts +2 -0
- package/dist/sig/{ld.test.js → ld.test.mjs} +22 -35
- package/dist/sig/mod.cjs +6 -9
- package/dist/sig/mod.d.cts +3 -3
- package/dist/sig/mod.d.ts +3 -3
- package/dist/sig/mod.js +5 -9
- package/dist/sig/owner.test.d.mts +2 -0
- package/dist/sig/{owner.test.js → owner.test.mjs} +19 -34
- package/dist/sig/proof.test.d.mts +2 -0
- package/dist/sig/{proof.test.js → proof.test.mjs} +16 -27
- package/dist/{std__assert-X-_kMxKM.js → std__assert-Duiq_YC9.mjs} +12 -24
- package/dist/testing/{mod.d.ts → mod.d.mts} +26 -90
- package/dist/testing/mod.mjs +6 -0
- package/dist/{transformers-3g8GZwkZ.cjs → transformers-NeAONrAq.cjs} +20 -25
- package/dist/{transformers-C3FLHUd6.js → transformers-ve6e2xcg.js} +3 -7
- package/dist/{types-CPz01LGH.js → types-DCP0WLdt.mjs} +4 -7
- package/dist/{types-Cd_hszr_.cjs → types-KC4QAoxe.cjs} +29 -34
- package/dist/{types-C93Ob9cU.js → types-hvL8ElAs.js} +8 -13
- package/dist/utils/docloader.test.d.mts +2 -0
- package/dist/utils/{docloader.test.js → docloader.test.mjs} +14 -25
- package/dist/utils/kv-cache.test.d.mts +2 -0
- package/dist/utils/{kv-cache.test.js → kv-cache.test.mjs} +25 -40
- package/dist/utils/mod.cjs +5 -9
- package/dist/utils/mod.d.cts +1 -3
- package/dist/utils/mod.d.ts +1 -3
- package/dist/utils/mod.js +4 -9
- package/dist/vocab/cjs.test.d.mts +2 -0
- package/dist/vocab/cjs.test.mjs +14 -0
- package/dist/vocab/mod.cjs +10 -12
- package/dist/vocab/mod.js +3 -5
- package/package.json +8 -8
- package/dist/compat/transformers.test.d.ts +0 -3
- package/dist/compat/transformers.test.js +0 -88
- package/dist/compat-Bb4NuTUO.js +0 -4
- package/dist/compat-DmDDELst.cjs +0 -4
- package/dist/deno-CMcbjYDs.js +0 -121
- package/dist/federation/builder.test.d.ts +0 -3
- package/dist/federation/collection.test.d.ts +0 -3
- package/dist/federation/collection.test.js +0 -32
- package/dist/federation/handler.test.d.ts +0 -3
- package/dist/federation/idempotency.test.d.ts +0 -3
- package/dist/federation/inbox.test.d.ts +0 -3
- package/dist/federation/keycache.test.d.ts +0 -3
- package/dist/federation/kv.test.d.ts +0 -3
- package/dist/federation/middleware.test.d.ts +0 -3
- package/dist/federation/mq.test.d.ts +0 -3
- package/dist/federation/negotiation.test.d.ts +0 -3
- package/dist/federation/retry.test.d.ts +0 -3
- package/dist/federation/router.test.d.ts +0 -3
- package/dist/federation/send.test.d.ts +0 -3
- package/dist/federation/webfinger.test.d.ts +0 -3
- package/dist/federation-Bp3HI26G.cjs +0 -350
- package/dist/federation-DaMfqRm4.js +0 -332
- package/dist/middleware-BzcyJjau.js +0 -12
- package/dist/middleware-HlNnBIDX.js +0 -27
- package/dist/middleware-i-8IYJwY.cjs +0 -12
- package/dist/mod-B7QkWzrL.d.cts +0 -80
- package/dist/mod-Bh8mqlYw.d.cts +0 -9
- package/dist/mod-D6HodEq7.d.ts +0 -7
- package/dist/mod-SMHOMNpZ.d.ts +0 -82
- package/dist/mod-gq_Xfdz8.d.cts +0 -1
- package/dist/nodeinfo/client.test.d.ts +0 -3
- package/dist/nodeinfo/handler.test.d.ts +0 -3
- package/dist/nodeinfo/types.test.d.ts +0 -3
- package/dist/nodeinfo-DoESQxq5.js +0 -4
- package/dist/nodeinfo-DuMYTpbZ.cjs +0 -4
- package/dist/otel/exporter.test.d.ts +0 -3
- package/dist/runtime-c2Njxsry.cjs +0 -17
- package/dist/runtime-poamPCMb.js +0 -13
- package/dist/sig/accept.test.d.ts +0 -3
- package/dist/sig/http.test.d.ts +0 -3
- package/dist/sig/key.test.d.ts +0 -3
- package/dist/sig/ld.test.d.ts +0 -3
- package/dist/sig/owner.test.d.ts +0 -3
- package/dist/sig/proof.test.d.ts +0 -3
- package/dist/sig-BNhspNOf.js +0 -4
- package/dist/sig-vX39WyWI.cjs +0 -4
- package/dist/testing/mod.js +0 -10
- package/dist/utils/docloader.test.d.ts +0 -3
- package/dist/utils/kv-cache.test.d.ts +0 -3
- package/dist/utils-BQ9KqEK9.cjs +0 -4
- package/dist/utils-Dn5OPdSW.js +0 -4
- /package/dist/{mod-AGjRfPjT.d.ts → compat/transformers.test.d.mts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActorAliasMapper, ActorDispatcher,
|
|
1
|
+
import { Q as ActorHandleMapper, X as ActorAliasMapper, Z as ActorDispatcher, _t as WebFingerLinksDispatcher, s as RequestContext } from "./context-BhZVy7RB.cjs";
|
|
2
2
|
import { Span, Tracer } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/federation/webfinger.d.ts
|
|
@@ -59,4 +59,4 @@ interface WebFingerHandlerParameters<TContextData> {
|
|
|
59
59
|
*/
|
|
60
60
|
declare function handleWebFinger<TContextData>(request: Request, options: WebFingerHandlerParameters<TContextData>): Promise<Response>;
|
|
61
61
|
//#endregion
|
|
62
|
-
export {
|
|
62
|
+
export { handleWebFinger as n, WebFingerHandlerParameters as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
|
4
|
-
import {
|
|
3
|
+
import { n as HttpMessageSignaturesSpecDeterminer } from "./http-aQzN9Ayi.js";
|
|
4
|
+
import { n as KvStore, t as KvKey } from "./kv-GFYnFoOl.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
|
|
7
7
|
|
|
@@ -89,4 +89,4 @@ declare function kvCache({
|
|
|
89
89
|
rules
|
|
90
90
|
}: KvCacheParameters): DocumentLoader;
|
|
91
91
|
//#endregion
|
|
92
|
-
export { getAuthenticatedDocumentLoader, kvCache };
|
|
92
|
+
export { getAuthenticatedDocumentLoader as n, kvCache as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
|
2
|
-
import {
|
|
1
|
+
import { n as HttpMessageSignaturesSpecDeterminer } from "./http-CrGuipxe.cjs";
|
|
2
|
+
import { n as KvStore, t as KvKey } from "./kv-CbLNp3zQ.cjs";
|
|
3
3
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
|
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
|
5
5
|
|
|
@@ -87,4 +87,4 @@ declare function kvCache({
|
|
|
87
87
|
rules
|
|
88
88
|
}: KvCacheParameters): DocumentLoader;
|
|
89
89
|
//#endregion
|
|
90
|
-
export { getAuthenticatedDocumentLoader, kvCache };
|
|
90
|
+
export { getAuthenticatedDocumentLoader as n, kvCache as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { ActorAliasMapper, ActorDispatcher,
|
|
3
|
+
import { Q as ActorHandleMapper, X as ActorAliasMapper, Z as ActorDispatcher, _t as WebFingerLinksDispatcher, s as RequestContext } from "./context-BOiMZBu5.js";
|
|
4
4
|
import { Span, Tracer } from "@opentelemetry/api";
|
|
5
5
|
|
|
6
6
|
//#region src/federation/webfinger.d.ts
|
|
@@ -61,4 +61,4 @@ interface WebFingerHandlerParameters<TContextData> {
|
|
|
61
61
|
*/
|
|
62
62
|
declare function handleWebFinger<TContextData>(request: Request, options: WebFingerHandlerParameters<TContextData>): Promise<Response>;
|
|
63
63
|
//#endregion
|
|
64
|
-
export {
|
|
64
|
+
export { handleWebFinger as n, WebFingerHandlerParameters as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyCache } from "./http-
|
|
1
|
+
import { S as KeyCache } from "./http-CrGuipxe.cjs";
|
|
2
2
|
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "@fedify/vocab";
|
|
3
3
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
|
@@ -263,4 +263,4 @@ declare function verifyObject<T extends Object$1>(cls: (new (...args: any[]) =>
|
|
|
263
263
|
fromJsonLd(jsonLd: unknown, options: VerifyObjectOptions): Promise<T>;
|
|
264
264
|
}, jsonLd: unknown, options?: VerifyObjectOptions): Promise<T | null>;
|
|
265
265
|
//#endregion
|
|
266
|
-
export {
|
|
266
|
+
export { verifyJsonLd as _, createProof as a, verifyProof as c, VerifyJsonLdOptions as d, VerifySignatureOptions as f, signJsonLd as g, detachSignature as h, VerifyProofOptions as i, CreateSignatureOptions as l, createSignature as m, SignObjectOptions as n, signObject as o, attachSignature as p, VerifyObjectOptions as r, verifyObject as s, CreateProofOptions as t, SignJsonLdOptions as u, verifySignature as v };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { KeyCache } from "./http-
|
|
3
|
+
import { S as KeyCache } from "./http-aQzN9Ayi.js";
|
|
4
4
|
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "@fedify/vocab";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
|
@@ -265,4 +265,4 @@ declare function verifyObject<T extends Object$1>(cls: (new (...args: any[]) =>
|
|
|
265
265
|
fromJsonLd(jsonLd: unknown, options: VerifyObjectOptions): Promise<T>;
|
|
266
266
|
}, jsonLd: unknown, options?: VerifyObjectOptions): Promise<T | null>;
|
|
267
267
|
//#endregion
|
|
268
|
-
export {
|
|
268
|
+
export { verifyJsonLd as _, createProof as a, verifyProof as c, VerifyJsonLdOptions as d, VerifySignatureOptions as f, signJsonLd as g, detachSignature as h, VerifyProofOptions as i, CreateSignatureOptions as l, createSignature as m, SignObjectOptions as n, signObject as o, attachSignature as p, VerifyObjectOptions as r, verifyObject as s, CreateProofOptions as t, SignJsonLdOptions as u, verifySignature as v };
|
package/dist/mod.cjs
CHANGED
|
@@ -1,77 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
require(
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
require(
|
|
15
|
-
|
|
16
|
-
require(
|
|
17
|
-
require('./utils-BQ9KqEK9.cjs');
|
|
18
|
-
|
|
19
|
-
//#region src/mod.ts
|
|
20
|
-
var src_exports = {};
|
|
21
|
-
require_chunk.__export(src_exports, {
|
|
22
|
-
InProcessMessageQueue: () => require_federation.InProcessMessageQueue,
|
|
23
|
-
MemoryKvStore: () => require_federation.MemoryKvStore,
|
|
24
|
-
ParallelMessageQueue: () => require_federation.ParallelMessageQueue,
|
|
25
|
-
Router: () => require_middleware.Router,
|
|
26
|
-
RouterError: () => require_middleware.RouterError,
|
|
27
|
-
SendActivityError: () => require_middleware.SendActivityError,
|
|
28
|
-
actorDehydrator: () => require_transformers.actorDehydrator,
|
|
29
|
-
attachSignature: () => require_proof.attachSignature,
|
|
30
|
-
autoIdAssigner: () => require_transformers.autoIdAssigner,
|
|
31
|
-
buildCollectionSynchronizationHeader: () => require_middleware.buildCollectionSynchronizationHeader,
|
|
32
|
-
createExponentialBackoffPolicy: () => require_middleware.createExponentialBackoffPolicy,
|
|
33
|
-
createFederation: () => require_middleware.createFederation,
|
|
34
|
-
createFederationBuilder: () => require_middleware.createFederationBuilder,
|
|
35
|
-
createProof: () => require_proof.createProof,
|
|
36
|
-
createSignature: () => require_proof.createSignature,
|
|
37
|
-
detachSignature: () => require_proof.detachSignature,
|
|
38
|
-
digest: () => require_middleware.digest,
|
|
39
|
-
doesActorOwnKey: () => require_proof.doesActorOwnKey,
|
|
40
|
-
exportJwk: () => require_http.exportJwk,
|
|
41
|
-
fetchKey: () => require_http.fetchKey,
|
|
42
|
-
fetchKeyDetailed: () => require_http.fetchKeyDetailed,
|
|
43
|
-
formatAcceptSignature: () => require_http.formatAcceptSignature,
|
|
44
|
-
fulfillAcceptSignature: () => require_http.fulfillAcceptSignature,
|
|
45
|
-
generateCryptoKeyPair: () => require_http.generateCryptoKeyPair,
|
|
46
|
-
getAuthenticatedDocumentLoader: () => require_kv_cache.getAuthenticatedDocumentLoader,
|
|
47
|
-
getDefaultActivityTransformers: () => require_transformers.getDefaultActivityTransformers,
|
|
48
|
-
getKeyOwner: () => require_proof.getKeyOwner,
|
|
49
|
-
getNodeInfo: () => require_types.getNodeInfo,
|
|
50
|
-
handleWebFinger: () => require_middleware.handleWebFinger,
|
|
51
|
-
importJwk: () => require_http.importJwk,
|
|
52
|
-
kvCache: () => require_kv_cache.kvCache,
|
|
53
|
-
nodeInfoToJson: () => require_types.nodeInfoToJson,
|
|
54
|
-
parseAcceptSignature: () => require_http.parseAcceptSignature,
|
|
55
|
-
parseNodeInfo: () => require_types.parseNodeInfo,
|
|
56
|
-
respondWithObject: () => require_middleware.respondWithObject,
|
|
57
|
-
respondWithObjectIfAcceptable: () => require_middleware.respondWithObjectIfAcceptable,
|
|
58
|
-
signJsonLd: () => require_proof.signJsonLd,
|
|
59
|
-
signObject: () => require_proof.signObject,
|
|
60
|
-
signRequest: () => require_http.signRequest,
|
|
61
|
-
validateAcceptSignature: () => require_http.validateAcceptSignature,
|
|
62
|
-
verifyJsonLd: () => require_proof.verifyJsonLd,
|
|
63
|
-
verifyObject: () => require_proof.verifyObject,
|
|
64
|
-
verifyProof: () => require_proof.verifyProof,
|
|
65
|
-
verifyRequest: () => require_http.verifyRequest,
|
|
66
|
-
verifyRequestDetailed: () => require_http.verifyRequestDetailed,
|
|
67
|
-
verifySignature: () => require_proof.verifySignature
|
|
68
|
-
});
|
|
69
|
-
require_chunk.__reExport(src_exports, require_runtime.runtime_exports);
|
|
70
|
-
|
|
1
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
require("./chunk-DDcVe30Y.cjs");
|
|
5
|
+
const require_transformers = require("./transformers-NeAONrAq.cjs");
|
|
6
|
+
require("./compat/mod.cjs");
|
|
7
|
+
const require_http = require("./http-BQccxQlj.cjs");
|
|
8
|
+
const require_middleware = require("./middleware-Cx0Ny6_7.cjs");
|
|
9
|
+
const require_proof = require("./proof-WhNxSv_N.cjs");
|
|
10
|
+
const require_types = require("./types-KC4QAoxe.cjs");
|
|
11
|
+
const require_kv_cache = require("./kv-cache-DxdXJNbj.cjs");
|
|
12
|
+
const require_federation_mod = require("./federation/mod.cjs");
|
|
13
|
+
require("./nodeinfo/mod.cjs");
|
|
14
|
+
require("./runtime/mod.cjs");
|
|
15
|
+
require("./sig/mod.cjs");
|
|
16
|
+
require("./utils/mod.cjs");
|
|
71
17
|
//#endregion
|
|
72
|
-
exports.InProcessMessageQueue =
|
|
73
|
-
exports.MemoryKvStore =
|
|
74
|
-
exports.ParallelMessageQueue =
|
|
18
|
+
exports.InProcessMessageQueue = require_federation_mod.InProcessMessageQueue;
|
|
19
|
+
exports.MemoryKvStore = require_federation_mod.MemoryKvStore;
|
|
20
|
+
exports.ParallelMessageQueue = require_federation_mod.ParallelMessageQueue;
|
|
75
21
|
exports.Router = require_middleware.Router;
|
|
76
22
|
exports.RouterError = require_middleware.RouterError;
|
|
77
23
|
exports.SendActivityError = require_middleware.SendActivityError;
|
|
@@ -114,4 +60,13 @@ exports.verifyObject = require_proof.verifyObject;
|
|
|
114
60
|
exports.verifyProof = require_proof.verifyProof;
|
|
115
61
|
exports.verifyRequest = require_http.verifyRequest;
|
|
116
62
|
exports.verifyRequestDetailed = require_http.verifyRequestDetailed;
|
|
117
|
-
exports.verifySignature = require_proof.verifySignature;
|
|
63
|
+
exports.verifySignature = require_proof.verifySignature;
|
|
64
|
+
var _fedify_vocab_runtime = require("@fedify/vocab-runtime");
|
|
65
|
+
Object.keys(_fedify_vocab_runtime).forEach(function(k) {
|
|
66
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function() {
|
|
69
|
+
return _fedify_vocab_runtime[k];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
});
|
package/dist/mod.d.cts
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./mod-
|
|
10
|
-
|
|
11
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-jfnweK2w.cjs";
|
|
1
|
+
import { a as InboundService, c as OutboundService, d as Software, f as Usage, i as parseNodeInfo, l as Protocol, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "./client-z-8dc-e1.cjs";
|
|
2
|
+
import { C as exportJwk, D as importJwk, E as generateCryptoKeyPair, S as KeyCache, T as fetchKeyDetailed, _ as validateAcceptSignature, a as VerifyRequestDetailedResult, b as FetchKeyOptions, c as signRequest, d as AcceptSignatureMember, f as AcceptSignatureParameters, g as parseAcceptSignature, h as fulfillAcceptSignature, i as SignRequestOptions, l as verifyRequest, m as formatAcceptSignature, n as HttpMessageSignaturesSpecDeterminer, o as VerifyRequestFailureReason, p as FulfillAcceptSignatureResult, r as Rfc9421SignRequestOptions, s as VerifyRequestOptions, t as HttpMessageSignaturesSpec, u as verifyRequestDetailed, v as FetchKeyDetailedResult, w as fetchKey, x as FetchKeyResult, y as FetchKeyErrorResult } from "./http-CrGuipxe.cjs";
|
|
3
|
+
import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-CptqhsOy.cjs";
|
|
4
|
+
import { $ as ActorKeyPairsDispatcher, A as createFederation, B as RouterRouteResult, C as InboxChallengePolicy, Ct as ActivityTransformer, D as FederationKvPrefixes, E as Rfc6570Expression, F as Message, G as InProcessMessageQueueOptions, H as respondWithObject, I as createFederationBuilder, J as MessageQueueListenOptions, K as MessageQueue, L as Router, M as RetryContext, N as RetryPolicy, O as FederationOrigin, P as createExponentialBackoffPolicy, Q as ActorHandleMapper, R as RouterError, S as IdempotencyStrategy, St as digest, T as ObjectCallbackSetters, U as respondWithObjectIfAcceptable, V as RespondWithObjectOptions, W as InProcessMessageQueue, X as ActorAliasMapper, Y as ParallelMessageQueue, Z as ActorDispatcher, _ as FederationBuilder, _t as WebFingerLinksDispatcher, a as InboxContext, at as CustomCollectionCursor, b as FederationStartQueueOptions, bt as PageItems, c as RouteActivityOptions, ct as InboxListener, d as ActorCallbackSetters, dt as ObjectDispatcher, et as AuthorizePredicate, f as CollectionCallbackSetters, ft as OutboxErrorHandler, g as Federation, gt as UnverifiedActivityReason, h as Federatable, ht as UnverifiedActivityHandler, i as GetSignedKeyOptions, it as CustomCollectionCounter, j as CreateExponentialBackoffPolicyOptions, k as FederationQueueOptions, l as SendActivityOptions, lt as NodeInfoDispatcher, m as CustomCollectionCallbackSetters, mt as SharedInboxKeyDispatcher, n as Context, nt as CollectionCursor, o as ParseUriResult, ot as CustomCollectionDispatcher, p as ConstructorWithTypeId, pt as OutboxPermanentFailureHandler, q as MessageQueueEnqueueOptions, r as ForwardActivityOptions, rt as CollectionDispatcher, s as RequestContext, st as InboxErrorHandler, t as ActorKeyPair, tt as CollectionCounter, u as SendActivityOptionsForCollection, ut as ObjectAuthorizePredicate, v as FederationFetchOptions, vt as SendActivityError, w as InboxListenerSetters, x as IdempotencyKeyCallback, xt as buildCollectionSynchronizationHeader, y as FederationOptions, yt as SenderKeyPair, z as RouterOptions } from "./context-BhZVy7RB.cjs";
|
|
5
|
+
import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-CbLNp3zQ.cjs";
|
|
6
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./compat/mod.cjs";
|
|
7
|
+
import { n as handleWebFinger, t as WebFingerHandlerParameters } from "./mod-Bp_CzKd4.cjs";
|
|
8
|
+
import { _ as verifyJsonLd, a as createProof, c as verifyProof, d as VerifyJsonLdOptions, f as VerifySignatureOptions, g as signJsonLd, h as detachSignature, i as VerifyProofOptions, l as CreateSignatureOptions, m as createSignature, n as SignObjectOptions, o as signObject, p as attachSignature, r as VerifyObjectOptions, s as verifyObject, t as CreateProofOptions, u as SignJsonLdOptions, v as verifySignature } from "./mod-DoJBjjnO.cjs";
|
|
9
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-CMEbIaNh.cjs";
|
|
10
|
+
export * from "@fedify/vocab-runtime";
|
|
12
11
|
|
|
13
12
|
//#region src/mod.d.ts
|
|
14
|
-
declare namespace mod_d_exports
|
|
13
|
+
declare namespace mod_d_exports {
|
|
15
14
|
export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseAcceptSignature, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
|
|
16
15
|
}
|
|
17
|
-
__reExport(mod_d_exports$1, mod_d_exports);
|
|
18
|
-
|
|
19
16
|
//#endregion
|
|
20
17
|
export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseAcceptSignature, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
|
package/dist/mod.d.ts
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "./mod-
|
|
12
|
-
|
|
13
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-D6dOd--H.js";
|
|
14
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-DCbh1JQ5.js";
|
|
3
|
+
import { a as InboundService, c as OutboundService, d as Software, f as Usage, i as parseNodeInfo, l as Protocol, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "./client-AtlibPOU.js";
|
|
4
|
+
import { C as exportJwk, D as importJwk, E as generateCryptoKeyPair, S as KeyCache, T as fetchKeyDetailed, _ as validateAcceptSignature, a as VerifyRequestDetailedResult, b as FetchKeyOptions, c as signRequest, d as AcceptSignatureMember, f as AcceptSignatureParameters, g as parseAcceptSignature, h as fulfillAcceptSignature, i as SignRequestOptions, l as verifyRequest, m as formatAcceptSignature, n as HttpMessageSignaturesSpecDeterminer, o as VerifyRequestFailureReason, p as FulfillAcceptSignatureResult, r as Rfc9421SignRequestOptions, s as VerifyRequestOptions, t as HttpMessageSignaturesSpec, u as verifyRequestDetailed, v as FetchKeyDetailedResult, w as fetchKey, x as FetchKeyResult, y as FetchKeyErrorResult } from "./http-aQzN9Ayi.js";
|
|
5
|
+
import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-74ARJ5TL.js";
|
|
6
|
+
import { $ as ActorKeyPairsDispatcher, A as createFederation, B as RouterRouteResult, C as InboxChallengePolicy, Ct as ActivityTransformer, D as FederationKvPrefixes, E as Rfc6570Expression, F as Message, G as InProcessMessageQueueOptions, H as respondWithObject, I as createFederationBuilder, J as MessageQueueListenOptions, K as MessageQueue, L as Router, M as RetryContext, N as RetryPolicy, O as FederationOrigin, P as createExponentialBackoffPolicy, Q as ActorHandleMapper, R as RouterError, S as IdempotencyStrategy, St as digest, T as ObjectCallbackSetters, U as respondWithObjectIfAcceptable, V as RespondWithObjectOptions, W as InProcessMessageQueue, X as ActorAliasMapper, Y as ParallelMessageQueue, Z as ActorDispatcher, _ as FederationBuilder, _t as WebFingerLinksDispatcher, a as InboxContext, at as CustomCollectionCursor, b as FederationStartQueueOptions, bt as PageItems, c as RouteActivityOptions, ct as InboxListener, d as ActorCallbackSetters, dt as ObjectDispatcher, et as AuthorizePredicate, f as CollectionCallbackSetters, ft as OutboxErrorHandler, g as Federation, gt as UnverifiedActivityReason, h as Federatable, ht as UnverifiedActivityHandler, i as GetSignedKeyOptions, it as CustomCollectionCounter, j as CreateExponentialBackoffPolicyOptions, k as FederationQueueOptions, l as SendActivityOptions, lt as NodeInfoDispatcher, m as CustomCollectionCallbackSetters, mt as SharedInboxKeyDispatcher, n as Context, nt as CollectionCursor, o as ParseUriResult, ot as CustomCollectionDispatcher, p as ConstructorWithTypeId, pt as OutboxPermanentFailureHandler, q as MessageQueueEnqueueOptions, r as ForwardActivityOptions, rt as CollectionDispatcher, s as RequestContext, st as InboxErrorHandler, t as ActorKeyPair, tt as CollectionCounter, u as SendActivityOptionsForCollection, ut as ObjectAuthorizePredicate, v as FederationFetchOptions, vt as SendActivityError, w as InboxListenerSetters, x as IdempotencyKeyCallback, xt as buildCollectionSynchronizationHeader, y as FederationOptions, yt as SenderKeyPair, z as RouterOptions } from "./context-BOiMZBu5.js";
|
|
7
|
+
import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-GFYnFoOl.js";
|
|
8
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./compat/mod.js";
|
|
9
|
+
import { n as handleWebFinger, t as WebFingerHandlerParameters } from "./mod-DKOAow7a.js";
|
|
10
|
+
import { _ as verifyJsonLd, a as createProof, c as verifyProof, d as VerifyJsonLdOptions, f as VerifySignatureOptions, g as signJsonLd, h as detachSignature, i as VerifyProofOptions, l as CreateSignatureOptions, m as createSignature, n as SignObjectOptions, o as signObject, p as attachSignature, r as VerifyObjectOptions, s as verifyObject, t as CreateProofOptions, u as SignJsonLdOptions, v as verifySignature } from "./mod-DvxszxXC.js";
|
|
11
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-CLgIXe9w.js";
|
|
12
|
+
export * from "@fedify/vocab-runtime";
|
|
15
13
|
|
|
16
14
|
//#region src/mod.d.ts
|
|
17
|
-
declare namespace mod_d_exports
|
|
15
|
+
declare namespace mod_d_exports {
|
|
18
16
|
export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseAcceptSignature, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
|
|
19
17
|
}
|
|
20
|
-
__reExport(mod_d_exports$1, mod_d_exports);
|
|
21
|
-
|
|
22
18
|
//#endregion
|
|
23
19
|
export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseAcceptSignature, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
|
package/dist/mod.js
CHANGED
|
@@ -1,72 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import "./
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import "./utils-Dn5OPdSW.js";
|
|
18
|
-
|
|
19
|
-
//#region src/mod.ts
|
|
20
|
-
var src_exports = {};
|
|
21
|
-
__export(src_exports, {
|
|
22
|
-
InProcessMessageQueue: () => InProcessMessageQueue,
|
|
23
|
-
MemoryKvStore: () => MemoryKvStore,
|
|
24
|
-
ParallelMessageQueue: () => ParallelMessageQueue,
|
|
25
|
-
Router: () => Router,
|
|
26
|
-
RouterError: () => RouterError,
|
|
27
|
-
SendActivityError: () => SendActivityError,
|
|
28
|
-
actorDehydrator: () => actorDehydrator,
|
|
29
|
-
attachSignature: () => attachSignature,
|
|
30
|
-
autoIdAssigner: () => autoIdAssigner,
|
|
31
|
-
buildCollectionSynchronizationHeader: () => buildCollectionSynchronizationHeader,
|
|
32
|
-
createExponentialBackoffPolicy: () => createExponentialBackoffPolicy,
|
|
33
|
-
createFederation: () => createFederation,
|
|
34
|
-
createFederationBuilder: () => createFederationBuilder,
|
|
35
|
-
createProof: () => createProof,
|
|
36
|
-
createSignature: () => createSignature,
|
|
37
|
-
detachSignature: () => detachSignature,
|
|
38
|
-
digest: () => digest,
|
|
39
|
-
doesActorOwnKey: () => doesActorOwnKey,
|
|
40
|
-
exportJwk: () => exportJwk,
|
|
41
|
-
fetchKey: () => fetchKey,
|
|
42
|
-
fetchKeyDetailed: () => fetchKeyDetailed,
|
|
43
|
-
formatAcceptSignature: () => formatAcceptSignature,
|
|
44
|
-
fulfillAcceptSignature: () => fulfillAcceptSignature,
|
|
45
|
-
generateCryptoKeyPair: () => generateCryptoKeyPair,
|
|
46
|
-
getAuthenticatedDocumentLoader: () => getAuthenticatedDocumentLoader,
|
|
47
|
-
getDefaultActivityTransformers: () => getDefaultActivityTransformers,
|
|
48
|
-
getKeyOwner: () => getKeyOwner,
|
|
49
|
-
getNodeInfo: () => getNodeInfo,
|
|
50
|
-
handleWebFinger: () => handleWebFinger,
|
|
51
|
-
importJwk: () => importJwk,
|
|
52
|
-
kvCache: () => kvCache,
|
|
53
|
-
nodeInfoToJson: () => nodeInfoToJson,
|
|
54
|
-
parseAcceptSignature: () => parseAcceptSignature,
|
|
55
|
-
parseNodeInfo: () => parseNodeInfo,
|
|
56
|
-
respondWithObject: () => respondWithObject,
|
|
57
|
-
respondWithObjectIfAcceptable: () => respondWithObjectIfAcceptable,
|
|
58
|
-
signJsonLd: () => signJsonLd,
|
|
59
|
-
signObject: () => signObject,
|
|
60
|
-
signRequest: () => signRequest,
|
|
61
|
-
validateAcceptSignature: () => validateAcceptSignature,
|
|
62
|
-
verifyJsonLd: () => verifyJsonLd,
|
|
63
|
-
verifyObject: () => verifyObject,
|
|
64
|
-
verifyProof: () => verifyProof,
|
|
65
|
-
verifyRequest: () => verifyRequest,
|
|
66
|
-
verifyRequestDetailed: () => verifyRequestDetailed,
|
|
67
|
-
verifySignature: () => verifySignature
|
|
68
|
-
});
|
|
69
|
-
__reExport(src_exports, runtime_exports);
|
|
70
|
-
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
import "./chunk-nlSIicah.js";
|
|
4
|
+
import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-ve6e2xcg.js";
|
|
5
|
+
import "./compat/mod.js";
|
|
6
|
+
import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "./http-DhwEMhtv.js";
|
|
7
|
+
import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "./middleware-BmsVSOeS.js";
|
|
8
|
+
import { a as doesActorOwnKey, c as createSignature, d as signJsonLd, f as verifyJsonLd, i as verifyProof, l as detachSignature, n as signObject, o as getKeyOwner, p as verifySignature, r as verifyObject, s as attachSignature, t as createProof } from "./proof-BCWk5oas.js";
|
|
9
|
+
import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-hvL8ElAs.js";
|
|
10
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-CTj3iCix.js";
|
|
11
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation/mod.js";
|
|
12
|
+
import "./nodeinfo/mod.js";
|
|
13
|
+
import "./runtime/mod.js";
|
|
14
|
+
import "./sig/mod.js";
|
|
15
|
+
import "./utils/mod.js";
|
|
16
|
+
export * from "@fedify/vocab-runtime";
|
|
71
17
|
//#endregion
|
|
72
|
-
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, SendActivityError, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseAcceptSignature, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
|
|
18
|
+
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, SendActivityError, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseAcceptSignature, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
globalThis.addEventListener = () => {};
|
|
5
|
-
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
globalThis.addEventListener = () => {};
|
|
6
4
|
//#region src/federation/negotiation.ts
|
|
7
5
|
function compareSpecs(a, b) {
|
|
8
6
|
return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
|
|
@@ -46,8 +44,8 @@ function parseMediaType(str, i) {
|
|
|
46
44
|
function parseAccept(accept) {
|
|
47
45
|
const accepts = accept.split(",").map((p) => p.trim());
|
|
48
46
|
const mediaTypes = [];
|
|
49
|
-
for (const [index, accept
|
|
50
|
-
const mediaType = parseMediaType(accept
|
|
47
|
+
for (const [index, accept] of accepts.entries()) {
|
|
48
|
+
const mediaType = parseMediaType(accept.trim(), index);
|
|
51
49
|
if (mediaType) mediaTypes.push(mediaType);
|
|
52
50
|
}
|
|
53
51
|
return mediaTypes;
|
|
@@ -56,8 +54,7 @@ function getFullType(spec) {
|
|
|
56
54
|
return `${spec.type}/${spec.subtype}`;
|
|
57
55
|
}
|
|
58
56
|
function preferredMediaTypes(accept) {
|
|
59
|
-
|
|
60
|
-
return accepts.filter(isQuality).sort(compareSpecs).map(getFullType);
|
|
57
|
+
return parseAccept(accept === void 0 ? "*/*" : accept ?? "").filter(isQuality).sort(compareSpecs).map(getFullType);
|
|
61
58
|
}
|
|
62
59
|
function acceptsJsonLd(request) {
|
|
63
60
|
const accept = request.headers.get("Accept");
|
|
@@ -66,6 +63,5 @@ function acceptsJsonLd(request) {
|
|
|
66
63
|
if (types[0] === "text/html" || types[0] === "application/xhtml+xml") return false;
|
|
67
64
|
return types.includes("application/activity+json") || types.includes("application/ld+json") || types.includes("application/json");
|
|
68
65
|
}
|
|
69
|
-
|
|
70
66
|
//#endregion
|
|
71
|
-
export { acceptsJsonLd };
|
|
67
|
+
export { acceptsJsonLd as t };
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import "../assert-MZs1qjMx.js";
|
|
9
|
-
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-CoCIaTNO.js";
|
|
11
|
-
import "../std__assert-X-_kMxKM.js";
|
|
12
|
-
import "../assert_rejects-0h7I2Esa.js";
|
|
13
|
-
import "../assert_throws-rjdMBf31.js";
|
|
14
|
-
import "../assert_not_equals-f3m3epl3.js";
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
globalThis.addEventListener = () => {};
|
|
4
|
+
import { t as esm_default } from "../esm-DVILvP5e.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
|
+
import "../std__assert-Duiq_YC9.mjs";
|
|
7
|
+
import { a as parseProtocol, c as parseUsage, i as parseOutboundService, n as parseInboundService, o as parseServices, r as parseNodeInfo, s as parseSoftware, t as getNodeInfo } from "../client-DEpOVgY1.mjs";
|
|
15
8
|
import { test } from "@fedify/fixture";
|
|
16
|
-
|
|
17
9
|
//#region src/nodeinfo/client.test.ts
|
|
18
10
|
test("getNodeInfo()", async (t) => {
|
|
19
11
|
esm_default.spyGlobal();
|
|
@@ -48,32 +40,25 @@ test("getNodeInfo()", async (t) => {
|
|
|
48
40
|
}
|
|
49
41
|
};
|
|
50
42
|
await t.step("indirect", async () => {
|
|
51
|
-
|
|
52
|
-
assertEquals(
|
|
53
|
-
const raw = await getNodeInfo("https://example.com/", { parse: "none" });
|
|
54
|
-
assertEquals(raw, rawExpected);
|
|
43
|
+
assertEquals(await getNodeInfo("https://example.com/"), expected);
|
|
44
|
+
assertEquals(await getNodeInfo("https://example.com/", { parse: "none" }), rawExpected);
|
|
55
45
|
});
|
|
56
46
|
await t.step("direct", async () => {
|
|
57
|
-
|
|
58
|
-
assertEquals(info, expected);
|
|
47
|
+
assertEquals(await getNodeInfo("https://example.com/nodeinfo/2.1", { direct: true }), expected);
|
|
59
48
|
});
|
|
60
49
|
esm_default.removeRoutes();
|
|
61
50
|
esm_default.get("https://example.com/.well-known/nodeinfo", { body: { links: [] } });
|
|
62
51
|
await t.step("indirect: no links", async () => {
|
|
63
|
-
|
|
64
|
-
assertEquals(info, void 0);
|
|
52
|
+
assertEquals(await getNodeInfo("https://example.com/"), void 0);
|
|
65
53
|
});
|
|
66
54
|
esm_default.removeRoutes();
|
|
67
55
|
esm_default.get("https://example.com/.well-known/nodeinfo", { status: 404 });
|
|
68
56
|
await t.step("indirect: 404", async () => {
|
|
69
|
-
|
|
70
|
-
assertEquals(info, void 0);
|
|
57
|
+
assertEquals(await getNodeInfo("https://example.com/"), void 0);
|
|
71
58
|
});
|
|
72
59
|
await t.step("direct: 404", async () => {
|
|
73
|
-
|
|
74
|
-
assertEquals(
|
|
75
|
-
const info2 = await getNodeInfo("https://example.com/404", { direct: true });
|
|
76
|
-
assertEquals(info2, void 0);
|
|
60
|
+
assertEquals(await getNodeInfo("https://example.com/nodeinfo/2.0", { direct: true }), void 0);
|
|
61
|
+
assertEquals(await getNodeInfo("https://example.com/404", { direct: true }), void 0);
|
|
77
62
|
});
|
|
78
63
|
esm_default.hardReset();
|
|
79
64
|
});
|
|
@@ -409,7 +394,7 @@ test("parseSoftware()", () => {
|
|
|
409
394
|
});
|
|
410
395
|
});
|
|
411
396
|
test("parseProtocol()", () => {
|
|
412
|
-
const
|
|
397
|
+
for (const protocol of [
|
|
413
398
|
"activitypub",
|
|
414
399
|
"buddycloud",
|
|
415
400
|
"dfrn",
|
|
@@ -420,8 +405,7 @@ test("parseProtocol()", () => {
|
|
|
420
405
|
"tent",
|
|
421
406
|
"xmpp",
|
|
422
407
|
"zot"
|
|
423
|
-
];
|
|
424
|
-
for (const protocol of protocols) assertEquals(parseProtocol(protocol), protocol);
|
|
408
|
+
]) assertEquals(parseProtocol(protocol), protocol);
|
|
425
409
|
assertEquals(parseProtocol("foo"), null);
|
|
426
410
|
});
|
|
427
411
|
test("parseServices()", () => {
|
|
@@ -522,7 +506,7 @@ test("parseServices()", () => {
|
|
|
522
506
|
});
|
|
523
507
|
});
|
|
524
508
|
test("parseInboundService()", () => {
|
|
525
|
-
const
|
|
509
|
+
for (const service of [
|
|
526
510
|
"atom1.0",
|
|
527
511
|
"gnusocial",
|
|
528
512
|
"imap",
|
|
@@ -531,12 +515,11 @@ test("parseInboundService()", () => {
|
|
|
531
515
|
"pumpio",
|
|
532
516
|
"rss2.0",
|
|
533
517
|
"twitter"
|
|
534
|
-
];
|
|
535
|
-
for (const service of services) assertEquals(parseInboundService(service), service);
|
|
518
|
+
]) assertEquals(parseInboundService(service), service);
|
|
536
519
|
assertEquals(parseInboundService("foo"), null);
|
|
537
520
|
});
|
|
538
521
|
test("parseOutboundService()", () => {
|
|
539
|
-
const
|
|
522
|
+
for (const service of [
|
|
540
523
|
"atom1.0",
|
|
541
524
|
"blogger",
|
|
542
525
|
"buddycloud",
|
|
@@ -565,8 +548,7 @@ test("parseOutboundService()", () => {
|
|
|
565
548
|
"twitter",
|
|
566
549
|
"wordpress",
|
|
567
550
|
"xmpp"
|
|
568
|
-
];
|
|
569
|
-
for (const service of services) assertEquals(parseOutboundService(service), service);
|
|
551
|
+
]) assertEquals(parseOutboundService(service), service);
|
|
570
552
|
assertEquals(parseOutboundService("foo"), null);
|
|
571
553
|
});
|
|
572
554
|
test("parseUsage()", () => {
|
|
@@ -925,5 +907,5 @@ test("parseUsage()", () => {
|
|
|
925
907
|
localComments: 456
|
|
926
908
|
});
|
|
927
909
|
});
|
|
928
|
-
|
|
929
|
-
|
|
910
|
+
//#endregion
|
|
911
|
+
export {};
|