@fedify/fedify 1.9.12 → 1.9.13-dev.2344
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/{actor-DbMPM7MA.cjs → actor-B2bgsOT5.cjs} +187 -187
- package/dist/{actor-Bapf7M7G.mjs → actor-DWfw2nxx.mjs} +1 -1
- package/dist/{actor-c1CsMwXN.js → actor-NkVQr224.js} +187 -187
- package/dist/{authdocloader-CtifebS7.cjs → authdocloader-BlkJJdEW.cjs} +3 -3
- package/dist/{authdocloader-DIKD7bwX.js → authdocloader-CiOaAMij.js} +3 -3
- package/dist/{authdocloader-CpMO32zq.mjs → authdocloader-DrnaVEJP.mjs} +3 -3
- package/dist/{builder-DC-GkZmh.mjs → builder-Cu8Iy5eZ.mjs} +4 -4
- package/dist/{client-CCadsk7N.mjs → client-Ck9Tn5iM.mjs} +63 -5
- package/dist/compat/mod.cjs +1 -1
- package/dist/compat/transformers.test.mjs +3 -3
- package/dist/{docloader-kZyrNwUH.js → docloader-B1OuNGno.js} +1 -1
- package/dist/{docloader-D4ctxKPG.cjs → docloader-CF7V0mC7.cjs} +1 -1
- package/dist/{esm-BxUjO5zX.mjs → esm-i8KtYbr9.mjs} +1 -1
- package/dist/federation/builder.test.mjs +3 -3
- package/dist/federation/collection.test.mjs +1 -1
- package/dist/federation/handler.test.mjs +7 -7
- package/dist/federation/idempotency.test.mjs +5 -5
- package/dist/federation/inbox.test.mjs +3 -3
- package/dist/federation/keycache.test.mjs +3 -3
- package/dist/federation/kv.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +11 -11
- package/dist/federation/mod.cjs +2 -2
- package/dist/federation/mod.js +1 -1
- package/dist/federation/mq.test.mjs +1 -1
- package/dist/federation/retry.test.mjs +1 -1
- package/dist/federation/router.test.mjs +2 -2
- package/dist/federation/send.test.mjs +7 -7
- package/dist/federation/temporal.test.mjs +2 -2
- package/dist/{http-DHDDqxdt.cjs → http-BEbcy3ax.cjs} +3 -3
- package/dist/{http-XbFxcG2g.mjs → http-CQ-6-sWA.mjs} +2 -2
- package/dist/{http-DM-MJijX.js → http-HjCIfzJC.js} +3 -3
- package/dist/{inbox-Uj6B6OKU.mjs → inbox-k8JQUnr6.mjs} +1 -1
- package/dist/{key-CLQ-3DyR.mjs → key-1GoRlbN4.mjs} +1 -1
- package/dist/{key-CPiCP_jy.cjs → key-CGuO8qJR.cjs} +1 -1
- package/dist/{key-DRbBpHOk.cjs → key-D-Oj5Zp2.cjs} +2 -2
- package/dist/{key-BiqmS6JT.mjs → key-DVX4QzuU.mjs} +2 -2
- package/dist/{key-Bgwa1_Vg.js → key-G8BkRalB.js} +2 -2
- package/dist/{keycache-FgycNH45.mjs → keycache-LnrJEGam.mjs} +1 -1
- package/dist/{keys-C9GAGpRb.mjs → keys-0Ff8761e.mjs} +1 -1
- package/dist/{ld-CrKje9FG.mjs → ld-Bftin5ZV.mjs} +2 -2
- package/dist/{lookup-C6mc3UXC.cjs → lookup-BSzQV-_k.cjs} +1 -1
- package/dist/{lookup-DkapKN3J.js → lookup-Ch5cERe_.js} +1 -1
- package/dist/{lookup-C4htfQ1_.mjs → lookup-HZr8nYiW.mjs} +1 -1
- package/dist/{middleware-ClNY6MUr.cjs → middleware-B58IZiSj.cjs} +1 -1
- package/dist/{middleware-CiiWngJ-.mjs → middleware-CDNI_5lz.mjs} +15 -15
- package/dist/{middleware--MqHhywy.mjs → middleware-DAMqqhFd.mjs} +1 -1
- package/dist/{middleware-Bs8fC5Th.js → middleware-DzaUMfHQ.js} +8 -8
- package/dist/{middleware-DjmGmYQz.cjs → middleware-MxfcK4vs.cjs} +10 -10
- package/dist/mod.cjs +10 -10
- package/dist/mod.js +9 -9
- package/dist/nodeinfo/client.test.mjs +63 -3
- package/dist/nodeinfo/handler.test.mjs +2 -2
- package/dist/nodeinfo/mod.cjs +1 -1
- package/dist/nodeinfo/mod.js +1 -1
- package/dist/nodeinfo/semver.test.mjs +1 -1
- package/dist/nodeinfo/types.test.mjs +1 -1
- package/dist/{owner-BxrTJWec.mjs → owner-DTdIjtoj.mjs} +3 -3
- package/dist/{proof-C-3TCOgT.cjs → proof-BeaoVMmb.cjs} +3 -3
- package/dist/{proof-CDFv0GLm.mjs → proof-DHg_8Rip.mjs} +2 -2
- package/dist/{proof-BCTTE8zz.js → proof-Dhn-fh6B.js} +3 -3
- package/dist/runtime/authdocloader.test.mjs +6 -6
- package/dist/runtime/docloader.test.mjs +3 -3
- package/dist/runtime/key.test.mjs +3 -3
- package/dist/runtime/langstr.test.mjs +2 -2
- package/dist/runtime/link.test.mjs +2 -2
- package/dist/runtime/mod.cjs +3 -3
- package/dist/runtime/mod.js +3 -3
- package/dist/runtime/multibase/multibase.test.mjs +2 -2
- package/dist/runtime/url.test.mjs +2 -2
- package/dist/{send-D8YQJCKA.mjs → send-5v8rpjgq.mjs} +2 -2
- package/dist/sig/http.test.mjs +6 -6
- package/dist/sig/key.test.mjs +4 -4
- package/dist/sig/ld.test.mjs +5 -5
- package/dist/sig/mod.cjs +3 -3
- package/dist/sig/mod.js +3 -3
- package/dist/sig/owner.test.mjs +5 -5
- package/dist/sig/proof.test.mjs +4 -4
- package/dist/{temporal-VtumSYrv.mjs → temporal-CJPJeb9T.mjs} +1 -1
- package/dist/testing/docloader.test.mjs +1 -1
- package/dist/testing/mod.mjs +1 -1
- package/dist/{testing-CZLFMsfn.mjs → testing-04hA-7q1.mjs} +2 -2
- package/dist/{transformers-CReap-SS.cjs → transformers-BQBtOzZ9.cjs} +1 -1
- package/dist/{types-uQdGoORv.cjs → types-Bgnn6Jz6.cjs} +63 -5
- package/dist/{types-CNhOmYHh.js → types-Cjuud6i7.js} +63 -5
- package/dist/vocab/actor.test.mjs +4 -4
- package/dist/vocab/cjs.test.mjs +1 -1
- package/dist/vocab/lookup.test.mjs +4 -4
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.mjs +2 -2
- package/dist/vocab/vocab.test.mjs +3 -3
- package/dist/{vocab-C071xkhv.mjs → vocab-DlRBSs8-.mjs} +186 -186
- package/dist/webfinger/handler.test.mjs +3 -3
- package/dist/webfinger/lookup.test.mjs +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/dist/x/cfworkers.cjs +1 -1
- package/dist/x/cfworkers.test.mjs +1 -1
- package/dist/x/hono.cjs +1 -1
- package/dist/x/sveltekit.cjs +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_docloader = require("./docloader-
|
|
3
|
+
const require_docloader = require("./docloader-CF7V0mC7.cjs");
|
|
4
4
|
let _logtape_logtape = require("@logtape/logtape");
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
6
6
|
//#region src/webfinger/lookup.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { d as name, f as version, l as UrlError, o as getUserAgent, u as validatePublicUrl } from "./docloader-
|
|
3
|
+
import { d as name, f as version, l as UrlError, o as getUserAgent, u as validatePublicUrl } from "./docloader-B1OuNGno.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
6
6
|
//#region src/webfinger/lookup.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { J as getDocumentLoader, U as getTypeId, W as lookupWebFinger, ot as name, st as version, v as Object$1 } from "./vocab-
|
|
4
|
+
import { J as getDocumentLoader, U as getTypeId, W as lookupWebFinger, ot as name, st as version, v as Object$1 } from "./vocab-DlRBSs8-.mjs";
|
|
5
5
|
import { getLogger } from "@logtape/logtape";
|
|
6
6
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
7
7
|
import { cloneDeep, delay } from "es-toolkit";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_middleware = require("./middleware-
|
|
3
|
+
const require_middleware = require("./middleware-MxfcK4vs.cjs");
|
|
4
4
|
exports.FederationImpl = require_middleware.FederationImpl;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { J as getDocumentLoader, U as getTypeId, W as lookupWebFinger, Z as kvCache, a as CollectionPage, b as OrderedCollection, g as Multikey, h as Link, i as Collection, ot as name, s as CryptographicKey, st as version, t as Activity, v as Object$1, x as OrderedCollectionPage } from "./vocab-
|
|
5
|
-
import { i as RouterError, n as traverseCollection, t as lookupObject } from "./lookup-
|
|
6
|
-
import { t as getNodeInfo } from "./client-
|
|
4
|
+
import { J as getDocumentLoader, U as getTypeId, W as lookupWebFinger, Z as kvCache, a as CollectionPage, b as OrderedCollection, g as Multikey, h as Link, i as Collection, ot as name, s as CryptographicKey, st as version, t as Activity, v as Object$1, x as OrderedCollectionPage } from "./vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { i as RouterError, n as traverseCollection, t as lookupObject } from "./lookup-HZr8nYiW.mjs";
|
|
6
|
+
import { t as getNodeInfo } from "./client-Ck9Tn5iM.mjs";
|
|
7
7
|
import { t as nodeInfoToJson } from "./types-CAnkAQGM.mjs";
|
|
8
|
-
import "./actor-
|
|
9
|
-
import { a as validateCryptoKey, i as importJwk, t as exportJwk } from "./key-
|
|
10
|
-
import { l as verifyRequest } from "./http-
|
|
11
|
-
import { t as getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
12
|
-
import { a as compactJsonLd, c as getNormalizationContextLoader, d as isInvalidUrlTypeError, f as signJsonLd, g as wrapContextLoaderForJsonLd, l as hasSignature, p as verifyCompactJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as isClearlyMalformedContextReference } from "./ld-
|
|
13
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-
|
|
14
|
-
import { n as signObject, r as verifyObject } from "./proof-
|
|
15
|
-
import { n as routeActivity } from "./inbox-
|
|
16
|
-
import { t as FederationBuilderImpl } from "./builder-
|
|
8
|
+
import "./actor-DWfw2nxx.mjs";
|
|
9
|
+
import { a as validateCryptoKey, i as importJwk, t as exportJwk } from "./key-DVX4QzuU.mjs";
|
|
10
|
+
import { l as verifyRequest } from "./http-CQ-6-sWA.mjs";
|
|
11
|
+
import { t as getAuthenticatedDocumentLoader } from "./authdocloader-DrnaVEJP.mjs";
|
|
12
|
+
import { a as compactJsonLd, c as getNormalizationContextLoader, d as isInvalidUrlTypeError, f as signJsonLd, g as wrapContextLoaderForJsonLd, l as hasSignature, p as verifyCompactJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as isClearlyMalformedContextReference } from "./ld-Bftin5ZV.mjs";
|
|
13
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-DTdIjtoj.mjs";
|
|
14
|
+
import { n as signObject, r as verifyObject } from "./proof-DHg_8Rip.mjs";
|
|
15
|
+
import { n as routeActivity } from "./inbox-k8JQUnr6.mjs";
|
|
16
|
+
import { t as FederationBuilderImpl } from "./builder-Cu8Iy5eZ.mjs";
|
|
17
17
|
import { t as buildCollectionSynchronizationHeader } from "./collection-BD6-SZ6O.mjs";
|
|
18
|
-
import { t as KvKeyCache } from "./keycache-
|
|
19
|
-
import { t as hasMalformedKnownTemporalLiteral } from "./temporal-
|
|
18
|
+
import { t as KvKeyCache } from "./keycache-LnrJEGam.mjs";
|
|
19
|
+
import { t as hasMalformedKnownTemporalLiteral } from "./temporal-CJPJeb9T.mjs";
|
|
20
20
|
import { t as createExponentialBackoffPolicy } from "./retry-B_E3V_Dx.mjs";
|
|
21
|
-
import { n as sendActivity, t as extractInboxes } from "./send-
|
|
21
|
+
import { n as sendActivity, t as extractInboxes } from "./send-5v8rpjgq.mjs";
|
|
22
22
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
23
23
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
24
24
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -2,14 +2,14 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
import { t as __exportAll } from "./rolldown-runtime-C7fyD9f2.js";
|
|
4
4
|
import { r as getDefaultActivityTransformers } from "./transformers-BV4OeK9o.js";
|
|
5
|
-
import { d as name, f as version, i as getDocumentLoader, s as kvCache } from "./docloader-
|
|
6
|
-
import { G as Multikey, Tt as getTypeId, V as Link, X as OrderedCollectionPage, Y as OrderedCollection, _ as CollectionPage, g as Collection, q as Object$1, s as Activity, y as CryptographicKey } from "./actor-
|
|
7
|
-
import { t as lookupWebFinger } from "./lookup-
|
|
8
|
-
import { i as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-
|
|
9
|
-
import { r as verifyRequest, t as doubleKnock } from "./http-
|
|
10
|
-
import { _ as signJsonLd, a as doesActorOwnKey, c as assertSafeJsonLd, f as detachSignature, g as isInvalidUrlTypeError, h as isClearlyMalformedContextReference, m as hasSignature, n as signObject, o as getKeyOwner, p as getNormalizationContextLoader, r as verifyObject, s as InvalidContextReferenceError, u as compactJsonLd, v as verifyCompactJsonLd, x as wrapContextLoaderForJsonLd } from "./proof-
|
|
11
|
-
import { n as getNodeInfo, t as nodeInfoToJson } from "./types-
|
|
12
|
-
import { t as getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
5
|
+
import { d as name, f as version, i as getDocumentLoader, s as kvCache } from "./docloader-B1OuNGno.js";
|
|
6
|
+
import { G as Multikey, Tt as getTypeId, V as Link, X as OrderedCollectionPage, Y as OrderedCollection, _ as CollectionPage, g as Collection, q as Object$1, s as Activity, y as CryptographicKey } from "./actor-NkVQr224.js";
|
|
7
|
+
import { t as lookupWebFinger } from "./lookup-Ch5cERe_.js";
|
|
8
|
+
import { i as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-G8BkRalB.js";
|
|
9
|
+
import { r as verifyRequest, t as doubleKnock } from "./http-HjCIfzJC.js";
|
|
10
|
+
import { _ as signJsonLd, a as doesActorOwnKey, c as assertSafeJsonLd, f as detachSignature, g as isInvalidUrlTypeError, h as isClearlyMalformedContextReference, m as hasSignature, n as signObject, o as getKeyOwner, p as getNormalizationContextLoader, r as verifyObject, s as InvalidContextReferenceError, u as compactJsonLd, v as verifyCompactJsonLd, x as wrapContextLoaderForJsonLd } from "./proof-Dhn-fh6B.js";
|
|
11
|
+
import { n as getNodeInfo, t as nodeInfoToJson } from "./types-Cjuud6i7.js";
|
|
12
|
+
import { t as getAuthenticatedDocumentLoader } from "./authdocloader-CiOaAMij.js";
|
|
13
13
|
import { lookupObject, traverseCollection } from "./vocab/mod.js";
|
|
14
14
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
15
15
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_docloader = require("./docloader-
|
|
4
|
-
const require_transformers = require("./transformers-
|
|
5
|
-
const require_actor = require("./actor-
|
|
6
|
-
const require_lookup = require("./lookup-
|
|
7
|
-
const require_key = require("./key-
|
|
8
|
-
const require_http = require("./http-
|
|
9
|
-
const require_proof = require("./proof-
|
|
10
|
-
const require_types = require("./types-
|
|
11
|
-
const require_authdocloader = require("./authdocloader-
|
|
3
|
+
const require_docloader = require("./docloader-CF7V0mC7.cjs");
|
|
4
|
+
const require_transformers = require("./transformers-BQBtOzZ9.cjs");
|
|
5
|
+
const require_actor = require("./actor-B2bgsOT5.cjs");
|
|
6
|
+
const require_lookup = require("./lookup-BSzQV-_k.cjs");
|
|
7
|
+
const require_key = require("./key-D-Oj5Zp2.cjs");
|
|
8
|
+
const require_http = require("./http-BEbcy3ax.cjs");
|
|
9
|
+
const require_proof = require("./proof-BeaoVMmb.cjs");
|
|
10
|
+
const require_types = require("./types-Bgnn6Jz6.cjs");
|
|
11
|
+
const require_authdocloader = require("./authdocloader-BlkJJdEW.cjs");
|
|
12
12
|
const require_vocab_mod = require("./vocab/mod.cjs");
|
|
13
13
|
let _logtape_logtape = require("@logtape/logtape");
|
|
14
14
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
@@ -340,7 +340,7 @@ var FederationBuilderImpl = class {
|
|
|
340
340
|
this.collectionTypeIds = {};
|
|
341
341
|
}
|
|
342
342
|
async build(options) {
|
|
343
|
-
const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-
|
|
343
|
+
const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-B58IZiSj.cjs"));
|
|
344
344
|
const f = new FederationImpl(options);
|
|
345
345
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
346
346
|
f.router = this.router.clone();
|
package/dist/mod.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const require_docloader = require("./docloader-
|
|
5
|
-
const require_transformers = require("./transformers-
|
|
4
|
+
const require_docloader = require("./docloader-CF7V0mC7.cjs");
|
|
5
|
+
const require_transformers = require("./transformers-BQBtOzZ9.cjs");
|
|
6
6
|
require("./compat/mod.cjs");
|
|
7
|
-
const require_actor = require("./actor-
|
|
8
|
-
const require_middleware = require("./middleware-
|
|
9
|
-
const require_lookup = require("./lookup-
|
|
10
|
-
const require_key = require("./key-
|
|
11
|
-
const require_http = require("./http-
|
|
12
|
-
const require_proof = require("./proof-
|
|
13
|
-
const require_types = require("./types-
|
|
14
|
-
const require_authdocloader = require("./authdocloader-
|
|
7
|
+
const require_actor = require("./actor-B2bgsOT5.cjs");
|
|
8
|
+
const require_middleware = require("./middleware-MxfcK4vs.cjs");
|
|
9
|
+
const require_lookup = require("./lookup-BSzQV-_k.cjs");
|
|
10
|
+
const require_key = require("./key-D-Oj5Zp2.cjs");
|
|
11
|
+
const require_http = require("./http-BEbcy3ax.cjs");
|
|
12
|
+
const require_proof = require("./proof-BeaoVMmb.cjs");
|
|
13
|
+
const require_types = require("./types-Bgnn6Jz6.cjs");
|
|
14
|
+
const require_authdocloader = require("./authdocloader-BlkJJdEW.cjs");
|
|
15
15
|
const require_vocab_mod = require("./vocab/mod.cjs");
|
|
16
16
|
const require_federation_mod = require("./federation/mod.cjs");
|
|
17
17
|
require("./nodeinfo/mod.cjs");
|
package/dist/mod.js
CHANGED
|
@@ -2,15 +2,15 @@ import "@js-temporal/polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-BV4OeK9o.js";
|
|
4
4
|
import "./compat/mod.js";
|
|
5
|
-
import { i as getDocumentLoader, o as getUserAgent, r as fetchDocumentLoader, s as kvCache, t as FetchError } from "./docloader-
|
|
6
|
-
import { $ as Person, A as Flag, B as Like, C as Dislike, Ct as importPkcs1, D as Endpoints, E as EmojiReact, F as Image, G as Multikey, H as Listen, I as IntransitiveActivity, J as Offer, K as Note, L as Invite, M as Group, N as Hashtag, O as Event, P as Ignore, Q as Page, R as Join, S as DidService, St as importPem, T as Emoji, Tt as getTypeId, U as Mention, V as Link, W as Move, X as OrderedCollectionPage, Y as OrderedCollection, Z as Organization, _ as CollectionPage, _t as View, a as normalizeActorHandle, at as Reject, b as DataIntegrityProof, bt as exportSpki, c as Add, ct as Service, d as Arrive, dt as TentativeReject, et as Place, f as Article, ft as Tombstone, g as Collection, gt as Video, h as ChatMessage, ht as Update, i as isActor, it as Read, j as Follow, k as Export, l as Announce, lt as Source, m as Block, mt as Undo, n as getActorHandle, nt as PropertyValue, o as Accept, ot as Relationship, p as Audio, pt as Travel, q as Object$1, r as getActorTypeName, rt as Question, s as Activity, st as Remove, t as getActorClassByTypeName, tt as Profile, u as Application, ut as TentativeAccept, v as Create, vt as LanguageString, w as Document, wt as importSpki, x as Delete, xt as importMultibaseKey, y as CryptographicKey, yt as exportMultibaseKey, z as Leave } from "./actor-
|
|
7
|
-
import { a as respondWithObjectIfAcceptable, c as createFederationBuilder, i as respondWithObject, l as Router, o as buildCollectionSynchronizationHeader, r as createExponentialBackoffPolicy, s as digest, t as createFederation, u as RouterError } from "./middleware-
|
|
8
|
-
import { t as lookupWebFinger } from "./lookup-
|
|
9
|
-
import { i as importJwk, n as fetchKey, r as generateCryptoKeyPair, t as exportJwk } from "./key-
|
|
10
|
-
import { n as signRequest, r as verifyRequest } from "./http-
|
|
11
|
-
import { _ as signJsonLd, a as doesActorOwnKey, b as verifySignature, d as createSignature, f as detachSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, r as verifyObject, t as createProof, y as verifyJsonLd } from "./proof-
|
|
12
|
-
import { a as parseSemVer, i as formatSemVer, n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-
|
|
13
|
-
import { t as getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
5
|
+
import { i as getDocumentLoader, o as getUserAgent, r as fetchDocumentLoader, s as kvCache, t as FetchError } from "./docloader-B1OuNGno.js";
|
|
6
|
+
import { $ as Person, A as Flag, B as Like, C as Dislike, Ct as importPkcs1, D as Endpoints, E as EmojiReact, F as Image, G as Multikey, H as Listen, I as IntransitiveActivity, J as Offer, K as Note, L as Invite, M as Group, N as Hashtag, O as Event, P as Ignore, Q as Page, R as Join, S as DidService, St as importPem, T as Emoji, Tt as getTypeId, U as Mention, V as Link, W as Move, X as OrderedCollectionPage, Y as OrderedCollection, Z as Organization, _ as CollectionPage, _t as View, a as normalizeActorHandle, at as Reject, b as DataIntegrityProof, bt as exportSpki, c as Add, ct as Service, d as Arrive, dt as TentativeReject, et as Place, f as Article, ft as Tombstone, g as Collection, gt as Video, h as ChatMessage, ht as Update, i as isActor, it as Read, j as Follow, k as Export, l as Announce, lt as Source, m as Block, mt as Undo, n as getActorHandle, nt as PropertyValue, o as Accept, ot as Relationship, p as Audio, pt as Travel, q as Object$1, r as getActorTypeName, rt as Question, s as Activity, st as Remove, t as getActorClassByTypeName, tt as Profile, u as Application, ut as TentativeAccept, v as Create, vt as LanguageString, w as Document, wt as importSpki, x as Delete, xt as importMultibaseKey, y as CryptographicKey, yt as exportMultibaseKey, z as Leave } from "./actor-NkVQr224.js";
|
|
7
|
+
import { a as respondWithObjectIfAcceptable, c as createFederationBuilder, i as respondWithObject, l as Router, o as buildCollectionSynchronizationHeader, r as createExponentialBackoffPolicy, s as digest, t as createFederation, u as RouterError } from "./middleware-DzaUMfHQ.js";
|
|
8
|
+
import { t as lookupWebFinger } from "./lookup-Ch5cERe_.js";
|
|
9
|
+
import { i as importJwk, n as fetchKey, r as generateCryptoKeyPair, t as exportJwk } from "./key-G8BkRalB.js";
|
|
10
|
+
import { n as signRequest, r as verifyRequest } from "./http-HjCIfzJC.js";
|
|
11
|
+
import { _ as signJsonLd, a as doesActorOwnKey, b as verifySignature, d as createSignature, f as detachSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, r as verifyObject, t as createProof, y as verifyJsonLd } from "./proof-Dhn-fh6B.js";
|
|
12
|
+
import { a as parseSemVer, i as formatSemVer, n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-Cjuud6i7.js";
|
|
13
|
+
import { t as getAuthenticatedDocumentLoader } from "./authdocloader-CiOaAMij.js";
|
|
14
14
|
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab/mod.js";
|
|
15
15
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation/mod.js";
|
|
16
16
|
import "./nodeinfo/mod.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { t as test } from "../testing-04hA-7q1.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-2v7gYiZp.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-
|
|
8
|
-
import { t as esm_default } from "../esm-
|
|
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-Ck9Tn5iM.mjs";
|
|
8
|
+
import { t as esm_default } from "../esm-i8KtYbr9.mjs";
|
|
9
9
|
//#region src/nodeinfo/client.test.ts
|
|
10
10
|
test("getNodeInfo()", async (t) => {
|
|
11
11
|
esm_default.spyGlobal();
|
|
@@ -68,6 +68,66 @@ test("getNodeInfo()", async (t) => {
|
|
|
68
68
|
});
|
|
69
69
|
esm_default.hardReset();
|
|
70
70
|
});
|
|
71
|
+
test("getNodeInfo() blocks SSRF", async (t) => {
|
|
72
|
+
esm_default.spyGlobal();
|
|
73
|
+
await t.step("link href pointing to a loopback address", async () => {
|
|
74
|
+
esm_default.removeRoutes();
|
|
75
|
+
esm_default.get("https://example.com/.well-known/nodeinfo", { body: { links: [{
|
|
76
|
+
rel: "http://nodeinfo.diaspora.software/ns/schema/2.1",
|
|
77
|
+
href: "http://127.0.0.1:8080/internal"
|
|
78
|
+
}] } });
|
|
79
|
+
let internalFetched = false;
|
|
80
|
+
esm_default.get("http://127.0.0.1:8080/internal", () => {
|
|
81
|
+
internalFetched = true;
|
|
82
|
+
return { body: { secret: "INTERNAL_DATA_LEAKED" } };
|
|
83
|
+
});
|
|
84
|
+
assertEquals(await getNodeInfo("https://example.com/", { parse: "none" }), void 0);
|
|
85
|
+
assertEquals(internalFetched, false);
|
|
86
|
+
});
|
|
87
|
+
await t.step("link href using a data: URL", async () => {
|
|
88
|
+
esm_default.removeRoutes();
|
|
89
|
+
esm_default.get("https://example.com/.well-known/nodeinfo", { body: { links: [{
|
|
90
|
+
rel: "http://nodeinfo.diaspora.software/ns/schema/2.0",
|
|
91
|
+
href: "data:application/json,{\"software\":{\"name\":\"x\"}}"
|
|
92
|
+
}] } });
|
|
93
|
+
assertEquals(await getNodeInfo("https://example.com/", { parse: "none" }), void 0);
|
|
94
|
+
});
|
|
95
|
+
await t.step("redirect to a private address", async () => {
|
|
96
|
+
esm_default.removeRoutes();
|
|
97
|
+
esm_default.get("https://example.com/.well-known/nodeinfo", { body: { links: [{
|
|
98
|
+
rel: "http://nodeinfo.diaspora.software/ns/schema/2.1",
|
|
99
|
+
href: "https://example.com/nodeinfo/2.1"
|
|
100
|
+
}] } });
|
|
101
|
+
esm_default.get("https://example.com/nodeinfo/2.1", {
|
|
102
|
+
status: 302,
|
|
103
|
+
headers: { Location: "https://127.0.0.1:8080/internal" }
|
|
104
|
+
});
|
|
105
|
+
let internalFetched = false;
|
|
106
|
+
esm_default.get("https://127.0.0.1:8080/internal", () => {
|
|
107
|
+
internalFetched = true;
|
|
108
|
+
return { body: { secret: "INTERNAL_DATA_LEAKED" } };
|
|
109
|
+
});
|
|
110
|
+
assertEquals(await getNodeInfo("https://example.com/", { parse: "none" }), void 0);
|
|
111
|
+
assertEquals(internalFetched, false);
|
|
112
|
+
});
|
|
113
|
+
await t.step("direct fetch of a private address", async () => {
|
|
114
|
+
esm_default.removeRoutes();
|
|
115
|
+
let internalFetched = false;
|
|
116
|
+
esm_default.get("http://127.0.0.1:8080/nodeinfo", () => {
|
|
117
|
+
internalFetched = true;
|
|
118
|
+
return { body: { software: {
|
|
119
|
+
name: "x",
|
|
120
|
+
version: "1.0.0"
|
|
121
|
+
} } };
|
|
122
|
+
});
|
|
123
|
+
assertEquals(await getNodeInfo("http://127.0.0.1:8080/nodeinfo", {
|
|
124
|
+
direct: true,
|
|
125
|
+
parse: "none"
|
|
126
|
+
}), void 0);
|
|
127
|
+
assertEquals(internalFetched, false);
|
|
128
|
+
});
|
|
129
|
+
esm_default.hardReset();
|
|
130
|
+
});
|
|
71
131
|
test("parseNodeInfo()", () => {
|
|
72
132
|
const input = {
|
|
73
133
|
software: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { i as createRequestContext, t as test } from "../testing-
|
|
4
|
+
import { i as createRequestContext, t as test } from "../testing-04hA-7q1.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-2v7gYiZp.mjs";
|
|
7
7
|
import { t as MemoryKvStore } from "../kv-DM1zFCtL.mjs";
|
|
8
|
-
import { a as createFederation, g as handleNodeInfoJrd, h as handleNodeInfo } from "../middleware-
|
|
8
|
+
import { a as createFederation, g as handleNodeInfoJrd, h as handleNodeInfo } from "../middleware-CDNI_5lz.mjs";
|
|
9
9
|
import { n as parseSemVer } from "../semver-CgD82xxg.mjs";
|
|
10
10
|
//#region src/nodeinfo/handler.test.ts
|
|
11
11
|
test("handleNodeInfo()", async () => {
|
package/dist/nodeinfo/mod.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const require_types = require("../types-
|
|
4
|
+
const require_types = require("../types-Bgnn6Jz6.cjs");
|
|
5
5
|
exports.formatSemVer = require_types.formatSemVer;
|
|
6
6
|
exports.getNodeInfo = require_types.getNodeInfo;
|
|
7
7
|
exports.nodeInfoToJson = require_types.nodeInfoToJson;
|
package/dist/nodeinfo/mod.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { a as parseSemVer, i as formatSemVer, n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "../types-
|
|
3
|
+
import { a as parseSemVer, i as formatSemVer, n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "../types-Cjuud6i7.js";
|
|
4
4
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { t as test } from "../testing-04hA-7q1.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-2v7gYiZp.mjs";
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { t as test } from "../testing-04hA-7q1.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-2v7gYiZp.mjs";
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { J as getDocumentLoader, s as CryptographicKey, v as Object$1 } from "./vocab-
|
|
5
|
-
import { i as isActor } from "./actor-
|
|
6
|
-
import "./key-
|
|
4
|
+
import { J as getDocumentLoader, s as CryptographicKey, v as Object$1 } from "./vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { i as isActor } from "./actor-DWfw2nxx.mjs";
|
|
6
|
+
import "./key-DVX4QzuU.mjs";
|
|
7
7
|
import { trace } from "@opentelemetry/api";
|
|
8
8
|
//#region src/sig/owner.ts
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_docloader = require("./docloader-
|
|
4
|
-
const require_actor = require("./actor-
|
|
5
|
-
const require_key = require("./key-
|
|
3
|
+
const require_docloader = require("./docloader-CF7V0mC7.cjs");
|
|
4
|
+
const require_actor = require("./actor-B2bgsOT5.cjs");
|
|
5
|
+
const require_key = require("./key-D-Oj5Zp2.cjs");
|
|
6
6
|
let _logtape_logtape = require("@logtape/logtape");
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
8
8
|
let jsonld = require("jsonld");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { U as getTypeId, c as DataIntegrityProof, g as Multikey, ot as name, st as version, t as Activity } from "./vocab-
|
|
5
|
-
import { a as validateCryptoKey, n as fetchKey } from "./key-
|
|
4
|
+
import { U as getTypeId, c as DataIntegrityProof, g as Multikey, ot as name, st as version, t as Activity } from "./vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { a as validateCryptoKey, n as fetchKey } from "./key-DVX4QzuU.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import { encodeHex } from "byte-encodings/hex";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { d as name, f as version, i as getDocumentLoader } from "./docloader-
|
|
4
|
-
import { G as Multikey, Tt as getTypeId, b as DataIntegrityProof, i as isActor, q as Object$1, s as Activity, y as CryptographicKey } from "./actor-
|
|
5
|
-
import { n as fetchKey, o as validateCryptoKey } from "./key-
|
|
3
|
+
import { d as name, f as version, i as getDocumentLoader } from "./docloader-B1OuNGno.js";
|
|
4
|
+
import { G as Multikey, Tt as getTypeId, b as DataIntegrityProof, i as isActor, q as Object$1, s as Activity, y as CryptographicKey } from "./actor-NkVQr224.js";
|
|
5
|
+
import { n as fetchKey, o as validateCryptoKey } from "./key-G8BkRalB.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import jsonld from "jsonld";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { $ as UrlError } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { $ as UrlError } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
|
-
import { l as verifyRequest } from "../http-
|
|
10
|
-
import { t as getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
11
|
-
import { t as esm_default } from "../esm-
|
|
12
|
-
import { i as rsaPrivateKey2 } from "../keys-
|
|
9
|
+
import { l as verifyRequest } from "../http-CQ-6-sWA.mjs";
|
|
10
|
+
import { t as getAuthenticatedDocumentLoader } from "../authdocloader-DrnaVEJP.mjs";
|
|
11
|
+
import { t as esm_default } from "../esm-i8KtYbr9.mjs";
|
|
12
|
+
import { i as rsaPrivateKey2 } from "../keys-0Ff8761e.mjs";
|
|
13
13
|
//#region src/runtime/authdocloader.test.ts
|
|
14
14
|
test("getAuthenticatedDocumentLoader()", async (t) => {
|
|
15
15
|
esm_default.spyGlobal();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { $ as UrlError, G as FetchError, J as getDocumentLoader, X as getUserAgent, Z as kvCache, at as preloadedContexts, st as version } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { $ as UrlError, G as FetchError, J as getDocumentLoader, X as getUserAgent, Z as kvCache, at as preloadedContexts, st as version } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
9
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
10
10
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
11
11
|
import { t as MemoryKvStore } from "../kv-DM1zFCtL.mjs";
|
|
12
|
-
import { t as esm_default } from "../esm-
|
|
12
|
+
import { t as esm_default } from "../esm-i8KtYbr9.mjs";
|
|
13
13
|
import process from "node:process";
|
|
14
14
|
//#region src/runtime/docloader.test.ts
|
|
15
15
|
test("new FetchError()", () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { F as importPkcs1, I as importSpki, M as exportSpki, N as importMultibaseKey, P as importPem, j as exportMultibaseKey } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { F as importPkcs1, I as importSpki, M as exportSpki, N as importMultibaseKey, P as importPem, j as exportMultibaseKey } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
|
-
import { i as importJwk, t as exportJwk } from "../key-
|
|
8
|
+
import { i as importJwk, t as exportJwk } from "../key-DVX4QzuU.mjs";
|
|
9
9
|
//#region src/runtime/key.test.ts
|
|
10
10
|
const rsaSpki = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxsRuvCkgJtflBTl4OVsm\nnt/J1mQfZasfJtN33dcZ3d1lJroxmgmMu69zjGEAwkNbMQaWNLqC4eogkJaeJ4RR\n5MHYXkL9nNilVoTkjX5BVit3puzs7XJ7WQnKQgQMI+ezn24GHsZ/v1JIo77lerX5\nk4HNwTNVt+yaZVQWaOMR3+6FwziQR6kd0VuG9/a9dgAnz2cEoORRC1i4W7IZaB1s\nZnh1WbHbevlGd72HSXll5rocPIHn8gq6xpBgpHwRphlRsgn4KHaJ6brXDIJjrnQh\nIe/YUBOGj/ImSEXhRwlFerKsoAVnZ0Hwbfa46qk44TAt8CyoPMWmpK6pt0ng4pQ2\nuwIDAQAB\n-----END PUBLIC KEY-----\n";
|
|
11
11
|
const rsaPkcs1 = "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAxsRuvCkgJtflBTl4OVsmnt/J1mQfZasfJtN33dcZ3d1lJroxmgmM\nu69zjGEAwkNbMQaWNLqC4eogkJaeJ4RR5MHYXkL9nNilVoTkjX5BVit3puzs7XJ7\nWQnKQgQMI+ezn24GHsZ/v1JIo77lerX5k4HNwTNVt+yaZVQWaOMR3+6FwziQR6kd\n0VuG9/a9dgAnz2cEoORRC1i4W7IZaB1sZnh1WbHbevlGd72HSXll5rocPIHn8gq6\nxpBgpHwRphlRsgn4KHaJ6brXDIJjrnQhIe/YUBOGj/ImSEXhRwlFerKsoAVnZ0Hw\nbfa46qk44TAt8CyoPMWmpK6pt0ng4pQ2uwIDAQAB\n-----END RSA PUBLIC KEY-----\n";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { A as LanguageString } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { A as LanguageString } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { it as HttpHeaderLink } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { it as HttpHeaderLink } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { deepStrictEqual, throws } from "node:assert";
|
|
7
7
|
//#region src/runtime/link.test.ts
|
|
8
8
|
test("String Good 1", () => {
|
package/dist/runtime/mod.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const require_docloader = require("../docloader-
|
|
5
|
-
const require_actor = require("../actor-
|
|
6
|
-
const require_authdocloader = require("../authdocloader-
|
|
4
|
+
const require_docloader = require("../docloader-CF7V0mC7.cjs");
|
|
5
|
+
const require_actor = require("../actor-B2bgsOT5.cjs");
|
|
6
|
+
const require_authdocloader = require("../authdocloader-BlkJJdEW.cjs");
|
|
7
7
|
exports.FetchError = require_docloader.FetchError;
|
|
8
8
|
exports.LanguageString = require_actor.LanguageString;
|
|
9
9
|
exports.exportMultibaseKey = require_actor.exportMultibaseKey;
|
package/dist/runtime/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { i as getDocumentLoader, o as getUserAgent, r as fetchDocumentLoader, s as kvCache, t as FetchError } from "../docloader-
|
|
4
|
-
import { Ct as importPkcs1, St as importPem, bt as exportSpki, vt as LanguageString, wt as importSpki, xt as importMultibaseKey, yt as exportMultibaseKey } from "../actor-
|
|
5
|
-
import { t as getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
3
|
+
import { i as getDocumentLoader, o as getUserAgent, r as fetchDocumentLoader, s as kvCache, t as FetchError } from "../docloader-B1OuNGno.js";
|
|
4
|
+
import { Ct as importPkcs1, St as importPem, bt as exportSpki, vt as LanguageString, wt as importSpki, xt as importMultibaseKey, yt as exportMultibaseKey } from "../actor-NkVQr224.js";
|
|
5
|
+
import { t as getAuthenticatedDocumentLoader } from "../authdocloader-CiOaAMij.js";
|
|
6
6
|
export { FetchError, LanguageString, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { B as names, H as encodeText, L as decode, R as encode, V as decodeText, z as codes } from "../../vocab-
|
|
5
|
-
import { t as test } from "../../testing-
|
|
4
|
+
import { B as names, H as encodeText, L as decode, R as encode, V as decodeText, z as codes } from "../../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { t as test } from "../../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
//#region src/runtime/multibase/multibase.test.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { $ as UrlError, et as expandIPv6Address, nt as isValidPublicIPv6Address, rt as validatePublicUrl, tt as isValidPublicIPv4Address } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { $ as UrlError, et as expandIPv6Address, nt as isValidPublicIPv6Address, rt as validatePublicUrl, tt as isValidPublicIPv4Address } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
8
8
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { ot as name, st as version } from "./vocab-
|
|
5
|
-
import { n as doubleKnock } from "./http-
|
|
4
|
+
import { ot as name, st as version } from "./vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { n as doubleKnock } from "./http-CQ-6-sWA.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
//#region src/federation/send.ts
|
package/dist/sig/http.test.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { M as exportSpki } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { M as exportSpki } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import { a as assertExists, t as assertStringIncludes } from "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
9
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
10
10
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
11
|
-
import { t as exportJwk } from "../key-
|
|
12
|
-
import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase } from "../http-
|
|
13
|
-
import { t as esm_default } from "../esm-
|
|
14
|
-
import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-
|
|
11
|
+
import { t as exportJwk } from "../key-DVX4QzuU.mjs";
|
|
12
|
+
import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase } from "../http-CQ-6-sWA.mjs";
|
|
13
|
+
import { t as esm_default } from "../esm-i8KtYbr9.mjs";
|
|
14
|
+
import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-0Ff8761e.mjs";
|
|
15
15
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
16
16
|
//#region src/sig/http.test.ts
|
|
17
17
|
test("signRequest() [draft-cavage]", async () => {
|
package/dist/sig/key.test.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { g as Multikey, s as CryptographicKey } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { g as Multikey, s as CryptographicKey } from "../vocab-DlRBSs8-.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-04hA-7q1.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
9
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
10
|
-
import { a as validateCryptoKey, i as importJwk, n as fetchKey, r as generateCryptoKeyPair, t as exportJwk } from "../key-
|
|
11
|
-
import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-
|
|
10
|
+
import { a as validateCryptoKey, i as importJwk, n as fetchKey, r as generateCryptoKeyPair, t as exportJwk } from "../key-DVX4QzuU.mjs";
|
|
11
|
+
import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-0Ff8761e.mjs";
|
|
12
12
|
//#region src/sig/key.test.ts
|
|
13
13
|
test("validateCryptoKey()", async () => {
|
|
14
14
|
const pkcs1v15 = await crypto.subtle.generateKey({
|