@fedify/fedify 2.0.0-dev.1750 → 2.0.0-dev.1757
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-CRS7Dbo1.js → actor-B1XixARF.js} +1 -1
- package/dist/{actor-CMgHXjhs.js → actor-B5xBQBHW.js} +185 -185
- package/dist/{actor-JG822JBi.cjs → actor-C8aiDtHR.cjs} +185 -185
- package/dist/{builder-D44QzfuD.js → builder-BSoQ_693.js} +3 -3
- package/dist/compat/transformers.test.js +15 -15
- package/dist/{docloader-BvlqkI1M.js → docloader-D0cDE_0-.js} +2 -2
- package/dist/{esm-BZMLn6gu.js → esm-CREefKe4.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +16 -16
- package/dist/federation/idempotency.test.js +16 -16
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +17 -17
- package/dist/federation/mod.cjs +7 -7
- package/dist/federation/mod.js +7 -7
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-BPsXiq3Y.js → http-D-sXN7e3.js} +2 -2
- package/dist/{http-CPqfuthT.cjs → http-DOpbUoCs.cjs} +2 -2
- package/dist/{http-DIsJckI7.js → http-_pg7reDM.js} +2 -2
- package/dist/{inbox-24__vIeD.js → inbox-B7U1_nbv.js} +1 -1
- package/dist/{key-CcqQC_vj.js → key-Cn9xkrls.js} +2 -2
- package/dist/{keycache-BUF-P0-V.js → keycache-CLpLYCBP.js} +1 -1
- package/dist/{keys-DSikT9wk.js → keys-KHNC1-23.js} +1 -1
- package/dist/{kv-cache-CBOkGH5t.js → kv-cache-4mdqs8Fy.js} +3 -2
- package/dist/{kv-cache-gyMh96Y-.cjs → kv-cache-D3ZEHSte.cjs} +3 -2
- package/dist/{kv-cache-z0lgwFi_.js → kv-cache-DN9pfMBe.js} +2 -1
- package/dist/{ld-C5wht8V2.js → ld-CxRWVxwM.js} +2 -2
- package/dist/{lookup-BE8ZMmug.js → lookup-5-a0dREg.js} +1 -2
- package/dist/{lookup-Doq5XdGY.cjs → lookup-DOkQbxxz.cjs} +1 -2
- package/dist/{lookup-CxJLpHHf.js → lookup-Niidr_x6.js} +185 -186
- package/dist/middleware-BJWcGTAt.js +15 -0
- package/dist/middleware-BTN20PaK.cjs +15 -0
- package/dist/middleware-Bf6wGb5z.js +26 -0
- package/dist/{middleware-BImvTjdU.js → middleware-Bu1abnwB.js} +12 -12
- package/dist/{middleware-ClcQM1de.cjs → middleware-CGjZqfu-.cjs} +7 -7
- package/dist/{middleware-D5NFjhOL.js → middleware-DNTnyjtZ.js} +7 -7
- package/dist/{mod-VastcQsk.d.cts → mod-0noXw66R.d.cts} +2 -2
- package/dist/{mod-BYynOiJG.d.ts → mod-B9M-8jm2.d.ts} +2 -2
- package/dist/mod.cjs +7 -7
- package/dist/mod.d.cts +1 -1
- package/dist/mod.d.ts +1 -1
- package/dist/mod.js +7 -7
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +15 -15
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/{owner-DIa5WpbP.js → owner-BuoPuVCi.js} +2 -2
- package/dist/{proof-DTKtjEh_.cjs → proof-CVEy_xQq.cjs} +3 -3
- package/dist/{proof-D0ak0hhc.js → proof-DCSiCUo8.js} +3 -3
- package/dist/{proof-CCzhKDDB.js → proof-DHUqm_3l.js} +2 -2
- package/dist/{send-BWfkS2zO.js → send-b3ODUYb5.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +5 -5
- package/dist/sig/ld.test.js +6 -6
- package/dist/sig/mod.cjs +4 -4
- package/dist/sig/mod.js +4 -4
- package/dist/sig/owner.test.js +6 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-BHLtJbQx.js → testing-CLZWJJwj.js} +1 -1
- package/dist/utils/docloader.test.js +8 -8
- package/dist/utils/kv-cache.test.js +3 -3
- package/dist/utils/mod.cjs +4 -4
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +4 -4
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +3 -3
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-C3ZbIV8S.cjs → vocab-8v-rt5vu.cjs} +2 -2
- package/dist/{vocab-CjheaIIe.js → vocab-DuDJyN7P.js} +2 -2
- package/dist/webfinger/handler.test.js +15 -15
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/dist/x/cfworkers.test.js +2 -2
- package/package.json +4 -4
- package/dist/middleware-BsLmqSNx.cjs +0 -15
- package/dist/middleware-CdFqipch.js +0 -15
- package/dist/middleware-ZZJaIUDZ.js +0 -26
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "./transformers-BFT6d7J5.js";
|
6
|
+
import "./lookup-5-a0dREg.js";
|
7
|
+
import "./actor-B5xBQBHW.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-DNTnyjtZ.js";
|
9
|
+
import "./http-D-sXN7e3.js";
|
10
|
+
import "./proof-DCSiCUo8.js";
|
11
|
+
import "./types-BtUjyi5y.js";
|
12
|
+
import "./kv-cache-4mdqs8Fy.js";
|
13
|
+
import "./vocab-DuDJyN7P.js";
|
14
|
+
|
15
|
+
export { FederationImpl };
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
4
|
+
|
5
|
+
require('./transformers-CoBS-oFG.cjs');
|
6
|
+
require('./lookup-DOkQbxxz.cjs');
|
7
|
+
require('./actor-C8aiDtHR.cjs');
|
8
|
+
const require_middleware = require('./middleware-CGjZqfu-.cjs');
|
9
|
+
require('./http-DOpbUoCs.cjs');
|
10
|
+
require('./proof-CVEy_xQq.cjs');
|
11
|
+
require('./types-CWgzGaqk.cjs');
|
12
|
+
require('./kv-cache-D3ZEHSte.cjs');
|
13
|
+
require('./vocab-8v-rt5vu.cjs');
|
14
|
+
|
15
|
+
exports.FederationImpl = require_middleware.FederationImpl;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import "./lookup-Niidr_x6.js";
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-Bu1abnwB.js";
|
8
|
+
import "./client-pY7-3icS.js";
|
9
|
+
import "./types-C2XVl6gj.js";
|
10
|
+
import "./actor-B1XixARF.js";
|
11
|
+
import "./key-Cn9xkrls.js";
|
12
|
+
import "./http-_pg7reDM.js";
|
13
|
+
import "./ld-CxRWVxwM.js";
|
14
|
+
import "./owner-BuoPuVCi.js";
|
15
|
+
import "./proof-DHUqm_3l.js";
|
16
|
+
import "./docloader-D0cDE_0-.js";
|
17
|
+
import "./kv-cache-DN9pfMBe.js";
|
18
|
+
import "./inbox-B7U1_nbv.js";
|
19
|
+
import "./builder-BSoQ_693.js";
|
20
|
+
import "./collection-BzWsN9pB.js";
|
21
|
+
import "./keycache-CLpLYCBP.js";
|
22
|
+
import "./negotiation-C4nFufNk.js";
|
23
|
+
import "./retry-CfF8Gn4d.js";
|
24
|
+
import "./send-b3ODUYb5.js";
|
25
|
+
|
26
|
+
export { FederationImpl };
|
@@ -3,23 +3,23 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, RouterError, deno_default, getTypeId, lookupObject, lookupWebFinger, traverseCollection } from "./lookup-
|
6
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, RouterError, deno_default, getTypeId, lookupObject, lookupWebFinger, traverseCollection } from "./lookup-Niidr_x6.js";
|
7
7
|
import { getNodeInfo } from "./client-pY7-3icS.js";
|
8
8
|
import { nodeInfoToJson } from "./types-C2XVl6gj.js";
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
10
|
-
import { verifyRequest } from "./http-
|
11
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
12
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
13
|
-
import { signObject, verifyObject } from "./proof-
|
14
|
-
import { getAuthenticatedDocumentLoader } from "./docloader-
|
15
|
-
import { kvCache } from "./kv-cache-
|
16
|
-
import { routeActivity } from "./inbox-
|
17
|
-
import { FederationBuilderImpl } from "./builder-
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-Cn9xkrls.js";
|
10
|
+
import { verifyRequest } from "./http-_pg7reDM.js";
|
11
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-CxRWVxwM.js";
|
12
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-BuoPuVCi.js";
|
13
|
+
import { signObject, verifyObject } from "./proof-DHUqm_3l.js";
|
14
|
+
import { getAuthenticatedDocumentLoader } from "./docloader-D0cDE_0-.js";
|
15
|
+
import { kvCache } from "./kv-cache-DN9pfMBe.js";
|
16
|
+
import { routeActivity } from "./inbox-B7U1_nbv.js";
|
17
|
+
import { FederationBuilderImpl } from "./builder-BSoQ_693.js";
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-BzWsN9pB.js";
|
19
|
-
import { KvKeyCache } from "./keycache-
|
19
|
+
import { KvKeyCache } from "./keycache-CLpLYCBP.js";
|
20
20
|
import { acceptsJsonLd } from "./negotiation-C4nFufNk.js";
|
21
21
|
import { createExponentialBackoffPolicy } from "./retry-CfF8Gn4d.js";
|
22
|
-
import { extractInboxes, sendActivity } from "./send-
|
22
|
+
import { extractInboxes, sendActivity } from "./send-b3ODUYb5.js";
|
23
23
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
24
24
|
import { getLogger, withContext } from "@logtape/logtape";
|
25
25
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
6
6
|
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
7
|
-
const require_lookup = require('./lookup-
|
8
|
-
const require_actor = require('./actor-
|
9
|
-
const require_http = require('./http-
|
10
|
-
const require_proof = require('./proof-
|
7
|
+
const require_lookup = require('./lookup-DOkQbxxz.cjs');
|
8
|
+
const require_actor = require('./actor-C8aiDtHR.cjs');
|
9
|
+
const require_http = require('./http-DOpbUoCs.cjs');
|
10
|
+
const require_proof = require('./proof-CVEy_xQq.cjs');
|
11
11
|
const require_types = require('./types-CWgzGaqk.cjs');
|
12
|
-
const require_kv_cache = require('./kv-cache-
|
13
|
-
const require_vocab = require('./vocab-
|
12
|
+
const require_kv_cache = require('./kv-cache-D3ZEHSte.cjs');
|
13
|
+
const require_vocab = require('./vocab-8v-rt5vu.cjs');
|
14
14
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
15
15
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
16
16
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
@@ -339,7 +339,7 @@ var FederationBuilderImpl = class {
|
|
339
339
|
this.collectionTypeIds = {};
|
340
340
|
}
|
341
341
|
async build(options) {
|
342
|
-
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-
|
342
|
+
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-BTN20PaK.cjs"));
|
343
343
|
const f = new FederationImpl$1(options);
|
344
344
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
345
345
|
f.router = this.router.clone();
|
@@ -3,13 +3,13 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
|
6
|
-
import { deno_default, lookupWebFinger } from "./lookup-
|
7
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
8
|
-
import { doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-
|
9
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
6
|
+
import { deno_default, lookupWebFinger } from "./lookup-5-a0dREg.js";
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-B5xBQBHW.js";
|
8
|
+
import { doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-D-sXN7e3.js";
|
9
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DCSiCUo8.js";
|
10
10
|
import { getNodeInfo, nodeInfoToJson } from "./types-BtUjyi5y.js";
|
11
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-
|
12
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
11
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-4mdqs8Fy.js";
|
12
|
+
import { lookupObject, traverseCollection } from "./vocab-DuDJyN7P.js";
|
13
13
|
import { getLogger, withContext } from "@logtape/logtape";
|
14
14
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
15
15
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
@@ -338,7 +338,7 @@ var FederationBuilderImpl = class {
|
|
338
338
|
this.collectionTypeIds = {};
|
339
339
|
}
|
340
340
|
async build(options) {
|
341
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
341
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-BJWcGTAt.js");
|
342
342
|
const f = new FederationImpl$1(options);
|
343
343
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
344
344
|
f.router = this.router.clone();
|
@@ -85,12 +85,12 @@ interface KvCacheParameters {
|
|
85
85
|
/**
|
86
86
|
* The per-URL cache rules in the array of `[urlPattern, duration]` pairs
|
87
87
|
* where `urlPattern` is either a string, a {@link URL}, or
|
88
|
-
* a {@link URLPattern} and `duration` is a {@link Temporal.
|
88
|
+
* a {@link URLPattern} and `duration` is a {@link Temporal.DurationLike}.
|
89
89
|
* The `duration` is allowed to be at most 30 days.
|
90
90
|
*
|
91
91
|
* By default, 5 minutes for all URLs.
|
92
92
|
*/
|
93
|
-
rules?: [string | URL | URLPattern, Temporal.Duration][];
|
93
|
+
rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
94
94
|
}
|
95
95
|
/**
|
96
96
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
@@ -87,12 +87,12 @@ interface KvCacheParameters {
|
|
87
87
|
/**
|
88
88
|
* The per-URL cache rules in the array of `[urlPattern, duration]` pairs
|
89
89
|
* where `urlPattern` is either a string, a {@link URL}, or
|
90
|
-
* a {@link URLPattern} and `duration` is a {@link Temporal.
|
90
|
+
* a {@link URLPattern} and `duration` is a {@link Temporal.DurationLike}.
|
91
91
|
* The `duration` is allowed to be at most 30 days.
|
92
92
|
*
|
93
93
|
* By default, 5 minutes for all URLs.
|
94
94
|
*/
|
95
|
-
rules?: [string | URL | URLPattern, Temporal.Duration][];
|
95
|
+
rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
96
96
|
}
|
97
97
|
/**
|
98
98
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
package/dist/mod.cjs
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
|
5
5
|
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
6
6
|
require('./compat-DmDDELst.cjs');
|
7
|
-
const require_lookup = require('./lookup-
|
8
|
-
const require_actor = require('./actor-
|
9
|
-
const require_middleware = require('./middleware-
|
10
|
-
const require_http = require('./http-
|
11
|
-
const require_proof = require('./proof-
|
7
|
+
const require_lookup = require('./lookup-DOkQbxxz.cjs');
|
8
|
+
const require_actor = require('./actor-C8aiDtHR.cjs');
|
9
|
+
const require_middleware = require('./middleware-CGjZqfu-.cjs');
|
10
|
+
const require_http = require('./http-DOpbUoCs.cjs');
|
11
|
+
const require_proof = require('./proof-CVEy_xQq.cjs');
|
12
12
|
const require_federation = require('./federation-CRpdnOMS.cjs');
|
13
13
|
const require_types = require('./types-CWgzGaqk.cjs');
|
14
|
-
const require_kv_cache = require('./kv-cache-
|
15
|
-
const require_vocab = require('./vocab-
|
14
|
+
const require_kv_cache = require('./kv-cache-D3ZEHSte.cjs');
|
15
|
+
const require_vocab = require('./vocab-8v-rt5vu.cjs');
|
16
16
|
require('./nodeinfo-CdN0rEnZ.cjs');
|
17
17
|
require('./sig-YYj5tCnr.cjs');
|
18
18
|
require('./utils-DyRU1gdZ.cjs');
|
package/dist/mod.d.cts
CHANGED
@@ -12,5 +12,5 @@ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from
|
|
12
12
|
import "./mod-B-hUPT2N.cjs";
|
13
13
|
import "./mod-C2tOeRkN.cjs";
|
14
14
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DgdBYYa0.cjs";
|
15
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-
|
15
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-0noXw66R.cjs";
|
16
16
|
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvKey, KvStore, KvStoreSetOptions, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.d.ts
CHANGED
@@ -14,5 +14,5 @@ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from
|
|
14
14
|
import "./mod-CVgZgliM.js";
|
15
15
|
import "./mod-xIj-IT58.js";
|
16
16
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-B2iOw50L.js";
|
17
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-
|
17
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-B9M-8jm2.js";
|
18
18
|
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvKey, KvStore, KvStoreSetOptions, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
|
6
6
|
import "./compat-nxUqe4Z-.js";
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
8
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "./actor-
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
10
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
11
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
7
|
+
import { lookupWebFinger } from "./lookup-5-a0dREg.js";
|
8
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "./actor-B5xBQBHW.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-DNTnyjtZ.js";
|
10
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-D-sXN7e3.js";
|
11
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-DCSiCUo8.js";
|
12
12
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-jcR8-ZxP.js";
|
13
13
|
import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./types-BtUjyi5y.js";
|
14
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-
|
15
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-
|
14
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-4mdqs8Fy.js";
|
15
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-DuDJyN7P.js";
|
16
16
|
import "./nodeinfo-BnthBobC.js";
|
17
17
|
import "./sig-C34-oHBl.js";
|
18
18
|
import "./utils-D-Va7aXC.js";
|
@@ -3,17 +3,17 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-pY7-3icS.js";
|
11
|
-
import { test } from "../testing-
|
11
|
+
import { test } from "../testing-CLZWJJwj.js";
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
15
15
|
import "../assert_not_equals-C80BG-_5.js";
|
16
|
-
import { esm_default } from "../esm-
|
16
|
+
import { esm_default } from "../esm-CREefKe4.js";
|
17
17
|
|
18
18
|
//#region src/nodeinfo/client.test.ts
|
19
19
|
test("getNodeInfo()", async (t) => {
|
@@ -3,30 +3,30 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
11
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-Bu1abnwB.js";
|
12
12
|
import "../client-pY7-3icS.js";
|
13
13
|
import "../types-C2XVl6gj.js";
|
14
|
-
import "../actor-
|
15
|
-
import "../key-
|
16
|
-
import "../http-
|
17
|
-
import "../ld-
|
18
|
-
import "../owner-
|
19
|
-
import "../proof-
|
20
|
-
import "../docloader-
|
21
|
-
import "../kv-cache-
|
22
|
-
import "../inbox-
|
23
|
-
import "../builder-
|
14
|
+
import "../actor-B1XixARF.js";
|
15
|
+
import "../key-Cn9xkrls.js";
|
16
|
+
import "../http-_pg7reDM.js";
|
17
|
+
import "../ld-CxRWVxwM.js";
|
18
|
+
import "../owner-BuoPuVCi.js";
|
19
|
+
import "../proof-DHUqm_3l.js";
|
20
|
+
import "../docloader-D0cDE_0-.js";
|
21
|
+
import "../kv-cache-DN9pfMBe.js";
|
22
|
+
import "../inbox-B7U1_nbv.js";
|
23
|
+
import "../builder-BSoQ_693.js";
|
24
24
|
import "../collection-BzWsN9pB.js";
|
25
|
-
import "../keycache-
|
25
|
+
import "../keycache-CLpLYCBP.js";
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
28
|
-
import "../send-
|
29
|
-
import { createRequestContext, test } from "../testing-
|
28
|
+
import "../send-b3ODUYb5.js";
|
29
|
+
import { createRequestContext, test } from "../testing-CLZWJJwj.js";
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { nodeInfoToJson } from "../types-C2XVl6gj.js";
|
11
|
-
import { test } from "../testing-
|
11
|
+
import { test } from "../testing-CLZWJJwj.js";
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Object as Object$1 } from "./lookup-
|
7
|
-
import { isActor } from "./actor-
|
6
|
+
import { CryptographicKey, Object as Object$1 } from "./lookup-Niidr_x6.js";
|
7
|
+
import { isActor } from "./actor-B1XixARF.js";
|
8
8
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
9
9
|
import { trace } from "@opentelemetry/api";
|
10
10
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
6
|
-
const require_lookup = require('./lookup-
|
7
|
-
const require_actor = require('./actor-
|
8
|
-
const require_http = require('./http-
|
6
|
+
const require_lookup = require('./lookup-DOkQbxxz.cjs');
|
7
|
+
const require_actor = require('./actor-C8aiDtHR.cjs');
|
8
|
+
const require_http = require('./http-DOpbUoCs.cjs');
|
9
9
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
10
10
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
11
11
|
const jsonld = require_chunk.__toESM(require("jsonld"));
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { deno_default } from "./lookup-
|
6
|
-
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./http-
|
5
|
+
import { deno_default } from "./lookup-5-a0dREg.js";
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-B5xBQBHW.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./http-D-sXN7e3.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import jsonld from "jsonld";
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./lookup-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
6
|
+
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./lookup-Niidr_x6.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-Cn9xkrls.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import { encodeHex } from "byte-encodings/hex";
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./lookup-
|
7
|
-
import { doubleKnock } from "./http-
|
6
|
+
import { deno_default } from "./lookup-Niidr_x6.js";
|
7
|
+
import { doubleKnock } from "./http-_pg7reDM.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
|
package/dist/sig/http.test.js
CHANGED
@@ -3,20 +3,20 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../actor-
|
11
|
-
import { exportJwk } from "../key-
|
12
|
-
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor-B1XixARF.js";
|
11
|
+
import { exportJwk } from "../key-Cn9xkrls.js";
|
12
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-_pg7reDM.js";
|
13
|
+
import { mockDocumentLoader, test } from "../testing-CLZWJJwj.js";
|
14
14
|
import { assertExists, assertStringIncludes } from "../std__assert-DWivtrGR.js";
|
15
15
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
16
16
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
17
17
|
import "../assert_not_equals-C80BG-_5.js";
|
18
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-
|
19
|
-
import { esm_default } from "../esm-
|
18
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-KHNC1-23.js";
|
19
|
+
import { esm_default } from "../esm-CREefKe4.js";
|
20
20
|
import { exportSpki } from "@fedify/vocab-runtime";
|
21
21
|
import { encodeBase64 } from "byte-encodings/base64";
|
22
22
|
|
package/dist/sig/key.test.js
CHANGED
@@ -3,18 +3,18 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "../lookup-
|
6
|
+
import { CryptographicKey, Multikey } from "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../actor-
|
11
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
12
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor-B1XixARF.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-Cn9xkrls.js";
|
12
|
+
import { mockDocumentLoader, test } from "../testing-CLZWJJwj.js";
|
13
13
|
import "../std__assert-DWivtrGR.js";
|
14
14
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
15
15
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
16
16
|
import "../assert_not_equals-C80BG-_5.js";
|
17
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
17
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-KHNC1-23.js";
|
18
18
|
|
19
19
|
//#region src/sig/key.test.ts
|
20
20
|
test("validateCryptoKey()", async () => {
|
package/dist/sig/ld.test.js
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey } from "../lookup-
|
6
|
+
import { CryptographicKey } from "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
|
-
import "../actor-
|
10
|
-
import { generateCryptoKeyPair } from "../key-
|
11
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-
|
12
|
-
import { mockDocumentLoader, test } from "../testing-
|
9
|
+
import "../actor-B1XixARF.js";
|
10
|
+
import { generateCryptoKeyPair } from "../key-Cn9xkrls.js";
|
11
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-CxRWVxwM.js";
|
12
|
+
import { mockDocumentLoader, test } from "../testing-CLZWJJwj.js";
|
13
13
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
15
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
15
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-KHNC1-23.js";
|
16
16
|
import { encodeBase64 } from "byte-encodings/base64";
|
17
17
|
|
18
18
|
//#region src/sig/ld.test.ts
|
package/dist/sig/mod.cjs
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
|
-
require('../lookup-
|
6
|
-
require('../actor-
|
7
|
-
const require_http = require('../http-
|
8
|
-
const require_proof = require('../proof-
|
5
|
+
require('../lookup-DOkQbxxz.cjs');
|
6
|
+
require('../actor-C8aiDtHR.cjs');
|
7
|
+
const require_http = require('../http-DOpbUoCs.cjs');
|
8
|
+
const require_proof = require('../proof-CVEy_xQq.cjs');
|
9
9
|
require('../sig-YYj5tCnr.cjs');
|
10
10
|
|
11
11
|
exports.attachSignature = require_proof.attachSignature;
|
package/dist/sig/mod.js
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../lookup-
|
6
|
-
import "../actor-
|
7
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-
|
8
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
5
|
+
import "../lookup-5-a0dREg.js";
|
6
|
+
import "../actor-B5xBQBHW.js";
|
7
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-D-sXN7e3.js";
|
8
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-DCSiCUo8.js";
|
9
9
|
import "../sig-C34-oHBl.js";
|
10
10
|
|
11
11
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/owner.test.js
CHANGED
@@ -3,19 +3,19 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, lookupObject } from "../lookup-
|
6
|
+
import { Create, lookupObject } from "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../actor-
|
11
|
-
import "../key-
|
12
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor-B1XixARF.js";
|
11
|
+
import "../key-Cn9xkrls.js";
|
12
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-BuoPuVCi.js";
|
13
|
+
import { mockDocumentLoader, test } from "../testing-CLZWJJwj.js";
|
14
14
|
import "../std__assert-DWivtrGR.js";
|
15
15
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
16
16
|
import "../assert_throws-BNXdRGWP.js";
|
17
17
|
import "../assert_not_equals-C80BG-_5.js";
|
18
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
18
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-KHNC1-23.js";
|
19
19
|
|
20
20
|
//#region src/sig/owner.test.ts
|
21
21
|
test("doesActorOwnKey()", async () => {
|
package/dist/sig/proof.test.js
CHANGED
@@ -3,19 +3,19 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place } from "../lookup-
|
6
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place } from "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../actor-
|
11
|
-
import "../key-
|
12
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor-B1XixARF.js";
|
11
|
+
import "../key-Cn9xkrls.js";
|
12
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-DHUqm_3l.js";
|
13
|
+
import { mockDocumentLoader, test } from "../testing-CLZWJJwj.js";
|
14
14
|
import "../std__assert-DWivtrGR.js";
|
15
15
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
16
16
|
import "../assert_throws-BNXdRGWP.js";
|
17
17
|
import "../assert_not_equals-C80BG-_5.js";
|
18
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
18
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-KHNC1-23.js";
|
19
19
|
import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
|
20
20
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
21
21
|
|
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-Niidr_x6.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import { mockDocumentLoader, test } from "../testing-CLZWJJwj.js";
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
12
12
|
import "../assert_rejects-Ce45JcFg.js";
|
13
13
|
import "../assert_throws-BNXdRGWP.js";
|