@fedify/fedify 2.5.0-dev.2758 → 2.5.0-dev.2766
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/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/{context-CuLvR1Os.d.ts → context-CgIOZfHW.d.ts} +1 -1
- package/dist/{context-apq0IBg2.d.cts → context-ZtE85CT_.d.cts} +1 -1
- package/dist/federation/mod.cjs +2 -1
- package/dist/federation/mod.d.cts +4 -4
- package/dist/federation/mod.d.ts +4 -4
- package/dist/federation/mod.js +125 -54
- package/dist/{federation-yC0wXSla.cjs → federation-COgnjnjr.cjs} +132 -55
- package/dist/{http-C1F-sW0Z.cjs → http-BqrOCUOK.cjs} +1 -1
- package/dist/{http-bjnB3G93.js → http-CZfnujnl.js} +1 -1
- package/dist/kv-B0eIwj06.d.cts +238 -0
- package/dist/kv-B0eIwj06.d.ts +238 -0
- package/dist/{kv-cache-MVXUHOtN.cjs → kv-cache-DFpIzPHz.cjs} +1 -1
- package/dist/{kv-cache-KQ9dNdBF.js → kv-cache-DT7zGfKY.js} +1 -1
- package/dist/{middleware-DcZbCWUu.js → middleware-Dz8iJh0H.js} +3 -3
- package/dist/{mod-BkTi19dI.d.ts → mod-BD6xjFNY.d.ts} +1 -1
- package/dist/{mod-DB2NOzQF.d.cts → mod-Bl1EEZMj.d.cts} +1 -1
- package/dist/{mod-CMtF0VVy.d.ts → mod-SgCN1wPF.d.ts} +1 -1
- package/dist/{mod-D2Z9MiCm.d.cts → mod-rDDnkuR8.d.cts} +1 -1
- package/dist/mod.cjs +5 -4
- package/dist/mod.d.cts +6 -6
- package/dist/mod.d.ts +6 -6
- package/dist/mod.js +6 -6
- package/dist/otel/mod.d.cts +1 -1
- package/dist/otel/mod.d.ts +1 -1
- package/dist/{portable-collection-dSrn_Flq.js → portable-collection-BrBFw0DP.js} +1 -1
- package/dist/{portable-collection-DoWiXH0U.cjs → portable-collection-CJ6-QUgP.cjs} +1 -1
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +6 -6
- package/skills/fedify/SKILL.md +71 -5
- package/dist/kv-B2mzK5tl.d.cts +0 -112
- package/dist/kv-B2mzK5tl.d.ts +0 -112
package/dist/compat/mod.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { in as ActivityTransformer, n as Context } from "../context-
|
|
2
|
+
import { in as ActivityTransformer, n as Context } from "../context-ZtE85CT_.cjs";
|
|
3
3
|
import { Activity } from "@fedify/vocab";
|
|
4
4
|
|
|
5
5
|
//#region src/compat/transformers.d.ts
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { in as ActivityTransformer, n as Context } from "../context-
|
|
2
|
+
import { in as ActivityTransformer, n as Context } from "../context-CgIOZfHW.js";
|
|
3
3
|
import { Activity } from "@fedify/vocab";
|
|
4
4
|
|
|
5
5
|
//#region src/compat/transformers.d.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client-3InDZbba.js";
|
|
3
3
|
import { _ as InboxVerificationKey, d as InboxProofPolicyFailureReason, h as InboxVerificationAttempt, w as VerifyRequestFailureReason, y as HttpMessageSignaturesSpec } from "./key-BZw-YiK5.js";
|
|
4
4
|
import { m as GetKeyOwnerOptions, n as EffectiveContextLoaderPolicy } from "./ld-DlC78ioJ.js";
|
|
5
|
-
import { n as
|
|
5
|
+
import { n as KvKey, r as KvStore } from "./kv-B0eIwj06.js";
|
|
6
6
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions, PortableObjectVerifier, RemoteDocument } from "@fedify/vocab-runtime";
|
|
7
7
|
import { Router } from "@fedify/uri-template";
|
|
8
8
|
import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, Tombstone, TraverseCollectionOptions } from "@fedify/vocab";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client-3InDZbba.cjs";
|
|
3
3
|
import { _ as InboxVerificationKey, d as InboxProofPolicyFailureReason, h as InboxVerificationAttempt, w as VerifyRequestFailureReason, y as HttpMessageSignaturesSpec } from "./key-D5fbQkKM.cjs";
|
|
4
4
|
import { m as GetKeyOwnerOptions, n as EffectiveContextLoaderPolicy } from "./ld-DEi9ERHf.cjs";
|
|
5
|
-
import { n as
|
|
5
|
+
import { n as KvKey, r as KvStore } from "./kv-B0eIwj06.cjs";
|
|
6
6
|
import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, Tombstone, TraverseCollectionOptions } from "@fedify/vocab";
|
|
7
7
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions, PortableObjectVerifier, RemoteDocument } from "@fedify/vocab-runtime";
|
|
8
8
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "@fedify/webfinger";
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_federation = require("../federation-
|
|
3
|
+
const require_federation = require("../federation-COgnjnjr.cjs");
|
|
4
4
|
exports.CircuitBreaker = require_federation.CircuitBreaker;
|
|
5
5
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
6
6
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
|
@@ -15,6 +15,7 @@ exports.createFederationBuilder = require_federation.createFederationBuilder;
|
|
|
15
15
|
exports.digest = require_federation.digest;
|
|
16
16
|
exports.handleWebFinger = require_federation.handleWebFinger;
|
|
17
17
|
exports.isActorAuthenticated = require_federation.isActorAuthenticated;
|
|
18
|
+
exports.isAtomicKvStore = require_federation.isAtomicKvStore;
|
|
18
19
|
exports.normalizeCircuitBreakerOptions = require_federation.normalizeCircuitBreakerOptions;
|
|
19
20
|
exports.parseCircuitBreakerKvState = require_federation.parseCircuitBreakerKvState;
|
|
20
21
|
exports.respondWithObject = require_federation.respondWithObject;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { _ as InboxVerificationKey, d as InboxProofPolicyFailureReason, f as InboxSignatureCheck, g as InboxVerificationFailureReason, h as InboxVerificationAttempt, m as InboxSignatureIdentity, p as InboxSignatureFailureReason } from "../key-D5fbQkKM.cjs";
|
|
3
|
-
import { $ as respondWithObjectIfAcceptable, $t as IsActorAuthenticatedOptions, A as InboxChallengePolicy, An as OutboundResponseBodyEvent, At as HashlinkMediaDispatcher, B as createFederation, Bt as OutboxListenerErrorHandler, C as FederationBenchmarkOptions, Cn as OutboundInboxRequest, Ct as AuthorizePredicate, D as FederationStartQueueOptions, Dn as OutboundPreparationResult, Dt as CustomCollectionCounter, E as FederationOptions, En as OutboundObservers, Et as CollectionDispatcher, F as PortableInboxForwardingOptions, Fn as OutboundWorkerPreparationDiagnostic, Ft as NodeInfoDispatcher, G as TaskHandler, Gt as UnverifiedActivityHandler, H as TaskDefinition, Ht as PortableActorIdMapper, I as Rfc6570Expression, In as OutboundWorkerReport, It as ObjectAuthorizePredicate, J as RetryContext, Jt as SendActivityError, K as TaskRegistry, Kt as UnverifiedActivityReason, L as FederationKvPrefixes, Ln as OutboundWorkerSchedule, Lt as ObjectDispatcher, M as MediaUploaderSetters, Mn as OutboundSourceMetadata, Mt as InboxErrorHandler, N as ObjectCallbackSetters, Nn as OutboundWorkerAction, Nt as InboxListener, O as IdempotencyKeyCallback, On as OutboundProvenance, Ot as CustomCollectionCursor, P as OutboxListenerSetters, Pn as OutboundWorkerChild, Pt as MediaUploaderCallback, Q as respondWithObject, Qt as InboxPrincipal, R as FederationOrigin, Rt as OutboxErrorHandler, S as Federation, Sn as OutboundHttpResponseMetadata, St as ActorKeyPairsDispatcher, T as FederationFetchOptions, Tn as OutboundLocalContext, Tt as CollectionCursor, U as TaskDefinitionOptions, Ut as PortableCollectionOwnerMapper, V as createFederationBuilder, Vt as OutboxPermanentFailureHandler, W as TaskEnqueueOptions, Wt as SharedInboxKeyDispatcher, X as createExponentialBackoffPolicy, Xt as Message, Y as RetryPolicy, Yt as SenderKeyPair, Z as RespondWithObjectOptions, Zt as InboxAuthenticationEvidence, _ as ActorCallbackSetters, _n as OutboundBroadcastEvent, _t as normalizeCircuitBreakerOptions, a as GetObjectOptions, an as InboxAuthentication, at as MessageQueueListenOptions, b as CustomCollectionCallbackSetters, bn as OutboundHeaderSnapshot, bt as ActorDispatcher, c as IsSignedByAudienceOptions, cn as InboxRequestFinishedHandler, ct as CircuitBreakerActivityDrop, d as ParseUriResult, dn as InboxListenerOptions, dt as CircuitBreakerFailurePolicy, en as isActorAuthenticated, et as InProcessMessageQueue, f as PortableRequest, fn as OutboundActivityReference, ft as CircuitBreakerKvState, g as SendActivityOptionsForCollection, gn as OutboundBodyCaptureSummary, gt as NormalizedCircuitBreakerOptions, h as SendActivityOptions, hn as OutboundAttemptResponse, ht as CircuitBreakerStateChange, i as GetActorOptions, it as MessageQueueEnqueueOptions, j as InboxListenerSetters, jn as OutboundSenderPayload, jt as HashlinkMediaRequest, k as IdempotencyStrategy, kn as OutboundResponseBodyCapture, kt as CustomCollectionDispatcher, l as OutboxContext, ln as InboxRequestOutcome, lt as CircuitBreakerBeforeSendDecision, m as RouteActivityOptions, mn as OutboundAttemptReport, mt as CircuitBreakerState, n as Context, nn as buildCollectionSynchronizationHeader, nt as MessageQueue, o as GetSignedKeyOptions, on as InboxJsonValue, ot as ParallelMessageQueue, p as RequestContext, pn as OutboundAttemptFailure, pt as CircuitBreakerOptions, q as CreateExponentialBackoffPolicyOptions, qt as WebFingerLinksDispatcher, r as ForwardActivityOptions, rn as digest, rt as MessageQueueDepth, s as InboxContext, sn as InboxRequestCancellation, st as CircuitBreaker, t as ActorKeyPair, tn as PageItems, tt as InProcessMessageQueueOptions, u as ParseUriOptions, un as InboxRequestReport, ut as CircuitBreakerCreateOptions, v as CollectionCallbackSetters, vn as OutboundDeliveryEvent, vt as parseCircuitBreakerKvState, w as FederationBuilder, wn as OutboundJsonValue, wt as CollectionCounter, x as Federatable, xn as OutboundHttpExchangeReport, xt as ActorHandleMapper, y as ConstructorWithTypeId, yn as OutboundHeaderPolicy, yt as ActorAliasMapper, z as FederationQueueOptions, zt as OutboxListener } from "../context-
|
|
4
|
-
import { a as MemoryKvStore, i as
|
|
5
|
-
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-
|
|
6
|
-
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetObjectOptions, GetSignedKeyOptions, HashlinkMediaDispatcher, HashlinkMediaRequest, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxAuthentication, InboxAuthenticationEvidence, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxJsonValue, InboxListener, InboxListenerOptions, InboxListenerSetters, InboxPrincipal, InboxProofPolicyFailureReason, InboxRequestCancellation, InboxRequestFinishedHandler, InboxRequestOutcome, InboxRequestReport, InboxSignatureCheck, InboxSignatureFailureReason, InboxSignatureIdentity, InboxVerificationAttempt, InboxVerificationFailureReason, InboxVerificationKey, IsActorAuthenticatedOptions, IsSignedByAudienceOptions, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundActivityReference, OutboundAttemptFailure, OutboundAttemptReport, OutboundAttemptResponse, OutboundBodyCaptureSummary, OutboundBroadcastEvent, OutboundDeliveryEvent, OutboundHeaderPolicy, OutboundHeaderSnapshot, OutboundHttpExchangeReport, OutboundHttpResponseMetadata, OutboundInboxRequest, OutboundJsonValue, OutboundLocalContext, OutboundObservers, OutboundPreparationResult, OutboundProvenance, OutboundResponseBodyCapture, OutboundResponseBodyEvent, OutboundSenderPayload, OutboundSourceMetadata, OutboundWorkerAction, OutboundWorkerChild, OutboundWorkerPreparationDiagnostic, OutboundWorkerReport, OutboundWorkerSchedule, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriOptions, ParseUriResult, PortableActorIdMapper, PortableCollectionOwnerMapper, PortableInboxForwardingOptions, PortableRequest, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, isActorAuthenticated, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
|
3
|
+
import { $ as respondWithObjectIfAcceptable, $t as IsActorAuthenticatedOptions, A as InboxChallengePolicy, An as OutboundResponseBodyEvent, At as HashlinkMediaDispatcher, B as createFederation, Bt as OutboxListenerErrorHandler, C as FederationBenchmarkOptions, Cn as OutboundInboxRequest, Ct as AuthorizePredicate, D as FederationStartQueueOptions, Dn as OutboundPreparationResult, Dt as CustomCollectionCounter, E as FederationOptions, En as OutboundObservers, Et as CollectionDispatcher, F as PortableInboxForwardingOptions, Fn as OutboundWorkerPreparationDiagnostic, Ft as NodeInfoDispatcher, G as TaskHandler, Gt as UnverifiedActivityHandler, H as TaskDefinition, Ht as PortableActorIdMapper, I as Rfc6570Expression, In as OutboundWorkerReport, It as ObjectAuthorizePredicate, J as RetryContext, Jt as SendActivityError, K as TaskRegistry, Kt as UnverifiedActivityReason, L as FederationKvPrefixes, Ln as OutboundWorkerSchedule, Lt as ObjectDispatcher, M as MediaUploaderSetters, Mn as OutboundSourceMetadata, Mt as InboxErrorHandler, N as ObjectCallbackSetters, Nn as OutboundWorkerAction, Nt as InboxListener, O as IdempotencyKeyCallback, On as OutboundProvenance, Ot as CustomCollectionCursor, P as OutboxListenerSetters, Pn as OutboundWorkerChild, Pt as MediaUploaderCallback, Q as respondWithObject, Qt as InboxPrincipal, R as FederationOrigin, Rt as OutboxErrorHandler, S as Federation, Sn as OutboundHttpResponseMetadata, St as ActorKeyPairsDispatcher, T as FederationFetchOptions, Tn as OutboundLocalContext, Tt as CollectionCursor, U as TaskDefinitionOptions, Ut as PortableCollectionOwnerMapper, V as createFederationBuilder, Vt as OutboxPermanentFailureHandler, W as TaskEnqueueOptions, Wt as SharedInboxKeyDispatcher, X as createExponentialBackoffPolicy, Xt as Message, Y as RetryPolicy, Yt as SenderKeyPair, Z as RespondWithObjectOptions, Zt as InboxAuthenticationEvidence, _ as ActorCallbackSetters, _n as OutboundBroadcastEvent, _t as normalizeCircuitBreakerOptions, a as GetObjectOptions, an as InboxAuthentication, at as MessageQueueListenOptions, b as CustomCollectionCallbackSetters, bn as OutboundHeaderSnapshot, bt as ActorDispatcher, c as IsSignedByAudienceOptions, cn as InboxRequestFinishedHandler, ct as CircuitBreakerActivityDrop, d as ParseUriResult, dn as InboxListenerOptions, dt as CircuitBreakerFailurePolicy, en as isActorAuthenticated, et as InProcessMessageQueue, f as PortableRequest, fn as OutboundActivityReference, ft as CircuitBreakerKvState, g as SendActivityOptionsForCollection, gn as OutboundBodyCaptureSummary, gt as NormalizedCircuitBreakerOptions, h as SendActivityOptions, hn as OutboundAttemptResponse, ht as CircuitBreakerStateChange, i as GetActorOptions, it as MessageQueueEnqueueOptions, j as InboxListenerSetters, jn as OutboundSenderPayload, jt as HashlinkMediaRequest, k as IdempotencyStrategy, kn as OutboundResponseBodyCapture, kt as CustomCollectionDispatcher, l as OutboxContext, ln as InboxRequestOutcome, lt as CircuitBreakerBeforeSendDecision, m as RouteActivityOptions, mn as OutboundAttemptReport, mt as CircuitBreakerState, n as Context, nn as buildCollectionSynchronizationHeader, nt as MessageQueue, o as GetSignedKeyOptions, on as InboxJsonValue, ot as ParallelMessageQueue, p as RequestContext, pn as OutboundAttemptFailure, pt as CircuitBreakerOptions, q as CreateExponentialBackoffPolicyOptions, qt as WebFingerLinksDispatcher, r as ForwardActivityOptions, rn as digest, rt as MessageQueueDepth, s as InboxContext, sn as InboxRequestCancellation, st as CircuitBreaker, t as ActorKeyPair, tn as PageItems, tt as InProcessMessageQueueOptions, u as ParseUriOptions, un as InboxRequestReport, ut as CircuitBreakerCreateOptions, v as CollectionCallbackSetters, vn as OutboundDeliveryEvent, vt as parseCircuitBreakerKvState, w as FederationBuilder, wn as OutboundJsonValue, wt as CollectionCounter, x as Federatable, xn as OutboundHttpExchangeReport, xt as ActorHandleMapper, y as ConstructorWithTypeId, yn as OutboundHeaderPolicy, yt as ActorAliasMapper, z as FederationQueueOptions, zt as OutboxListener } from "../context-ZtE85CT_.cjs";
|
|
4
|
+
import { a as KvStoreListEntry, c as MemoryKvStore, i as KvStoreCasEntry, l as isAtomicKvStore, n as KvKey, o as KvStoreSetEntry, r as KvStore, s as KvStoreSetOptions, t as AtomicKvStore } from "../kv-B0eIwj06.cjs";
|
|
5
|
+
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-Bl1EEZMj.cjs";
|
|
6
|
+
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AtomicKvStore, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetObjectOptions, GetSignedKeyOptions, HashlinkMediaDispatcher, HashlinkMediaRequest, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxAuthentication, InboxAuthenticationEvidence, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxJsonValue, InboxListener, InboxListenerOptions, InboxListenerSetters, InboxPrincipal, InboxProofPolicyFailureReason, InboxRequestCancellation, InboxRequestFinishedHandler, InboxRequestOutcome, InboxRequestReport, InboxSignatureCheck, InboxSignatureFailureReason, InboxSignatureIdentity, InboxVerificationAttempt, InboxVerificationFailureReason, InboxVerificationKey, IsActorAuthenticatedOptions, IsSignedByAudienceOptions, KvKey, KvStore, KvStoreCasEntry, KvStoreListEntry, KvStoreSetEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundActivityReference, OutboundAttemptFailure, OutboundAttemptReport, OutboundAttemptResponse, OutboundBodyCaptureSummary, OutboundBroadcastEvent, OutboundDeliveryEvent, OutboundHeaderPolicy, OutboundHeaderSnapshot, OutboundHttpExchangeReport, OutboundHttpResponseMetadata, OutboundInboxRequest, OutboundJsonValue, OutboundLocalContext, OutboundObservers, OutboundPreparationResult, OutboundProvenance, OutboundResponseBodyCapture, OutboundResponseBodyEvent, OutboundSenderPayload, OutboundSourceMetadata, OutboundWorkerAction, OutboundWorkerChild, OutboundWorkerPreparationDiagnostic, OutboundWorkerReport, OutboundWorkerSchedule, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriOptions, ParseUriResult, PortableActorIdMapper, PortableCollectionOwnerMapper, PortableInboxForwardingOptions, PortableRequest, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, isActorAuthenticated, isAtomicKvStore, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { _ as InboxVerificationKey, d as InboxProofPolicyFailureReason, f as InboxSignatureCheck, g as InboxVerificationFailureReason, h as InboxVerificationAttempt, m as InboxSignatureIdentity, p as InboxSignatureFailureReason } from "../key-BZw-YiK5.js";
|
|
3
|
-
import { $ as respondWithObjectIfAcceptable, $t as IsActorAuthenticatedOptions, A as InboxChallengePolicy, An as OutboundResponseBodyEvent, At as HashlinkMediaDispatcher, B as createFederation, Bt as OutboxListenerErrorHandler, C as FederationBenchmarkOptions, Cn as OutboundInboxRequest, Ct as AuthorizePredicate, D as FederationStartQueueOptions, Dn as OutboundPreparationResult, Dt as CustomCollectionCounter, E as FederationOptions, En as OutboundObservers, Et as CollectionDispatcher, F as PortableInboxForwardingOptions, Fn as OutboundWorkerPreparationDiagnostic, Ft as NodeInfoDispatcher, G as TaskHandler, Gt as UnverifiedActivityHandler, H as TaskDefinition, Ht as PortableActorIdMapper, I as Rfc6570Expression, In as OutboundWorkerReport, It as ObjectAuthorizePredicate, J as RetryContext, Jt as SendActivityError, K as TaskRegistry, Kt as UnverifiedActivityReason, L as FederationKvPrefixes, Ln as OutboundWorkerSchedule, Lt as ObjectDispatcher, M as MediaUploaderSetters, Mn as OutboundSourceMetadata, Mt as InboxErrorHandler, N as ObjectCallbackSetters, Nn as OutboundWorkerAction, Nt as InboxListener, O as IdempotencyKeyCallback, On as OutboundProvenance, Ot as CustomCollectionCursor, P as OutboxListenerSetters, Pn as OutboundWorkerChild, Pt as MediaUploaderCallback, Q as respondWithObject, Qt as InboxPrincipal, R as FederationOrigin, Rt as OutboxErrorHandler, S as Federation, Sn as OutboundHttpResponseMetadata, St as ActorKeyPairsDispatcher, T as FederationFetchOptions, Tn as OutboundLocalContext, Tt as CollectionCursor, U as TaskDefinitionOptions, Ut as PortableCollectionOwnerMapper, V as createFederationBuilder, Vt as OutboxPermanentFailureHandler, W as TaskEnqueueOptions, Wt as SharedInboxKeyDispatcher, X as createExponentialBackoffPolicy, Xt as Message, Y as RetryPolicy, Yt as SenderKeyPair, Z as RespondWithObjectOptions, Zt as InboxAuthenticationEvidence, _ as ActorCallbackSetters, _n as OutboundBroadcastEvent, _t as normalizeCircuitBreakerOptions, a as GetObjectOptions, an as InboxAuthentication, at as MessageQueueListenOptions, b as CustomCollectionCallbackSetters, bn as OutboundHeaderSnapshot, bt as ActorDispatcher, c as IsSignedByAudienceOptions, cn as InboxRequestFinishedHandler, ct as CircuitBreakerActivityDrop, d as ParseUriResult, dn as InboxListenerOptions, dt as CircuitBreakerFailurePolicy, en as isActorAuthenticated, et as InProcessMessageQueue, f as PortableRequest, fn as OutboundActivityReference, ft as CircuitBreakerKvState, g as SendActivityOptionsForCollection, gn as OutboundBodyCaptureSummary, gt as NormalizedCircuitBreakerOptions, h as SendActivityOptions, hn as OutboundAttemptResponse, ht as CircuitBreakerStateChange, i as GetActorOptions, it as MessageQueueEnqueueOptions, j as InboxListenerSetters, jn as OutboundSenderPayload, jt as HashlinkMediaRequest, k as IdempotencyStrategy, kn as OutboundResponseBodyCapture, kt as CustomCollectionDispatcher, l as OutboxContext, ln as InboxRequestOutcome, lt as CircuitBreakerBeforeSendDecision, m as RouteActivityOptions, mn as OutboundAttemptReport, mt as CircuitBreakerState, n as Context, nn as buildCollectionSynchronizationHeader, nt as MessageQueue, o as GetSignedKeyOptions, on as InboxJsonValue, ot as ParallelMessageQueue, p as RequestContext, pn as OutboundAttemptFailure, pt as CircuitBreakerOptions, q as CreateExponentialBackoffPolicyOptions, qt as WebFingerLinksDispatcher, r as ForwardActivityOptions, rn as digest, rt as MessageQueueDepth, s as InboxContext, sn as InboxRequestCancellation, st as CircuitBreaker, t as ActorKeyPair, tn as PageItems, tt as InProcessMessageQueueOptions, u as ParseUriOptions, un as InboxRequestReport, ut as CircuitBreakerCreateOptions, v as CollectionCallbackSetters, vn as OutboundDeliveryEvent, vt as parseCircuitBreakerKvState, w as FederationBuilder, wn as OutboundJsonValue, wt as CollectionCounter, x as Federatable, xn as OutboundHttpExchangeReport, xt as ActorHandleMapper, y as ConstructorWithTypeId, yn as OutboundHeaderPolicy, yt as ActorAliasMapper, z as FederationQueueOptions, zt as OutboxListener } from "../context-
|
|
4
|
-
import { a as MemoryKvStore, i as
|
|
5
|
-
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-
|
|
6
|
-
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetObjectOptions, GetSignedKeyOptions, HashlinkMediaDispatcher, HashlinkMediaRequest, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxAuthentication, InboxAuthenticationEvidence, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxJsonValue, InboxListener, InboxListenerOptions, InboxListenerSetters, InboxPrincipal, InboxProofPolicyFailureReason, InboxRequestCancellation, InboxRequestFinishedHandler, InboxRequestOutcome, InboxRequestReport, InboxSignatureCheck, InboxSignatureFailureReason, InboxSignatureIdentity, InboxVerificationAttempt, InboxVerificationFailureReason, InboxVerificationKey, IsActorAuthenticatedOptions, IsSignedByAudienceOptions, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundActivityReference, OutboundAttemptFailure, OutboundAttemptReport, OutboundAttemptResponse, OutboundBodyCaptureSummary, OutboundBroadcastEvent, OutboundDeliveryEvent, OutboundHeaderPolicy, OutboundHeaderSnapshot, OutboundHttpExchangeReport, OutboundHttpResponseMetadata, OutboundInboxRequest, OutboundJsonValue, OutboundLocalContext, OutboundObservers, OutboundPreparationResult, OutboundProvenance, OutboundResponseBodyCapture, OutboundResponseBodyEvent, OutboundSenderPayload, OutboundSourceMetadata, OutboundWorkerAction, OutboundWorkerChild, OutboundWorkerPreparationDiagnostic, OutboundWorkerReport, OutboundWorkerSchedule, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriOptions, ParseUriResult, PortableActorIdMapper, PortableCollectionOwnerMapper, PortableInboxForwardingOptions, PortableRequest, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, isActorAuthenticated, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
|
3
|
+
import { $ as respondWithObjectIfAcceptable, $t as IsActorAuthenticatedOptions, A as InboxChallengePolicy, An as OutboundResponseBodyEvent, At as HashlinkMediaDispatcher, B as createFederation, Bt as OutboxListenerErrorHandler, C as FederationBenchmarkOptions, Cn as OutboundInboxRequest, Ct as AuthorizePredicate, D as FederationStartQueueOptions, Dn as OutboundPreparationResult, Dt as CustomCollectionCounter, E as FederationOptions, En as OutboundObservers, Et as CollectionDispatcher, F as PortableInboxForwardingOptions, Fn as OutboundWorkerPreparationDiagnostic, Ft as NodeInfoDispatcher, G as TaskHandler, Gt as UnverifiedActivityHandler, H as TaskDefinition, Ht as PortableActorIdMapper, I as Rfc6570Expression, In as OutboundWorkerReport, It as ObjectAuthorizePredicate, J as RetryContext, Jt as SendActivityError, K as TaskRegistry, Kt as UnverifiedActivityReason, L as FederationKvPrefixes, Ln as OutboundWorkerSchedule, Lt as ObjectDispatcher, M as MediaUploaderSetters, Mn as OutboundSourceMetadata, Mt as InboxErrorHandler, N as ObjectCallbackSetters, Nn as OutboundWorkerAction, Nt as InboxListener, O as IdempotencyKeyCallback, On as OutboundProvenance, Ot as CustomCollectionCursor, P as OutboxListenerSetters, Pn as OutboundWorkerChild, Pt as MediaUploaderCallback, Q as respondWithObject, Qt as InboxPrincipal, R as FederationOrigin, Rt as OutboxErrorHandler, S as Federation, Sn as OutboundHttpResponseMetadata, St as ActorKeyPairsDispatcher, T as FederationFetchOptions, Tn as OutboundLocalContext, Tt as CollectionCursor, U as TaskDefinitionOptions, Ut as PortableCollectionOwnerMapper, V as createFederationBuilder, Vt as OutboxPermanentFailureHandler, W as TaskEnqueueOptions, Wt as SharedInboxKeyDispatcher, X as createExponentialBackoffPolicy, Xt as Message, Y as RetryPolicy, Yt as SenderKeyPair, Z as RespondWithObjectOptions, Zt as InboxAuthenticationEvidence, _ as ActorCallbackSetters, _n as OutboundBroadcastEvent, _t as normalizeCircuitBreakerOptions, a as GetObjectOptions, an as InboxAuthentication, at as MessageQueueListenOptions, b as CustomCollectionCallbackSetters, bn as OutboundHeaderSnapshot, bt as ActorDispatcher, c as IsSignedByAudienceOptions, cn as InboxRequestFinishedHandler, ct as CircuitBreakerActivityDrop, d as ParseUriResult, dn as InboxListenerOptions, dt as CircuitBreakerFailurePolicy, en as isActorAuthenticated, et as InProcessMessageQueue, f as PortableRequest, fn as OutboundActivityReference, ft as CircuitBreakerKvState, g as SendActivityOptionsForCollection, gn as OutboundBodyCaptureSummary, gt as NormalizedCircuitBreakerOptions, h as SendActivityOptions, hn as OutboundAttemptResponse, ht as CircuitBreakerStateChange, i as GetActorOptions, it as MessageQueueEnqueueOptions, j as InboxListenerSetters, jn as OutboundSenderPayload, jt as HashlinkMediaRequest, k as IdempotencyStrategy, kn as OutboundResponseBodyCapture, kt as CustomCollectionDispatcher, l as OutboxContext, ln as InboxRequestOutcome, lt as CircuitBreakerBeforeSendDecision, m as RouteActivityOptions, mn as OutboundAttemptReport, mt as CircuitBreakerState, n as Context, nn as buildCollectionSynchronizationHeader, nt as MessageQueue, o as GetSignedKeyOptions, on as InboxJsonValue, ot as ParallelMessageQueue, p as RequestContext, pn as OutboundAttemptFailure, pt as CircuitBreakerOptions, q as CreateExponentialBackoffPolicyOptions, qt as WebFingerLinksDispatcher, r as ForwardActivityOptions, rn as digest, rt as MessageQueueDepth, s as InboxContext, sn as InboxRequestCancellation, st as CircuitBreaker, t as ActorKeyPair, tn as PageItems, tt as InProcessMessageQueueOptions, u as ParseUriOptions, un as InboxRequestReport, ut as CircuitBreakerCreateOptions, v as CollectionCallbackSetters, vn as OutboundDeliveryEvent, vt as parseCircuitBreakerKvState, w as FederationBuilder, wn as OutboundJsonValue, wt as CollectionCounter, x as Federatable, xn as OutboundHttpExchangeReport, xt as ActorHandleMapper, y as ConstructorWithTypeId, yn as OutboundHeaderPolicy, yt as ActorAliasMapper, z as FederationQueueOptions, zt as OutboxListener } from "../context-CgIOZfHW.js";
|
|
4
|
+
import { a as KvStoreListEntry, c as MemoryKvStore, i as KvStoreCasEntry, l as isAtomicKvStore, n as KvKey, o as KvStoreSetEntry, r as KvStore, s as KvStoreSetOptions, t as AtomicKvStore } from "../kv-B0eIwj06.js";
|
|
5
|
+
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-BD6xjFNY.js";
|
|
6
|
+
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AtomicKvStore, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetObjectOptions, GetSignedKeyOptions, HashlinkMediaDispatcher, HashlinkMediaRequest, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxAuthentication, InboxAuthenticationEvidence, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxJsonValue, InboxListener, InboxListenerOptions, InboxListenerSetters, InboxPrincipal, InboxProofPolicyFailureReason, InboxRequestCancellation, InboxRequestFinishedHandler, InboxRequestOutcome, InboxRequestReport, InboxSignatureCheck, InboxSignatureFailureReason, InboxSignatureIdentity, InboxVerificationAttempt, InboxVerificationFailureReason, InboxVerificationKey, IsActorAuthenticatedOptions, IsSignedByAudienceOptions, KvKey, KvStore, KvStoreCasEntry, KvStoreListEntry, KvStoreSetEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundActivityReference, OutboundAttemptFailure, OutboundAttemptReport, OutboundAttemptResponse, OutboundBodyCaptureSummary, OutboundBroadcastEvent, OutboundDeliveryEvent, OutboundHeaderPolicy, OutboundHeaderSnapshot, OutboundHttpExchangeReport, OutboundHttpResponseMetadata, OutboundInboxRequest, OutboundJsonValue, OutboundLocalContext, OutboundObservers, OutboundPreparationResult, OutboundProvenance, OutboundResponseBodyCapture, OutboundResponseBodyEvent, OutboundSenderPayload, OutboundSourceMetadata, OutboundWorkerAction, OutboundWorkerChild, OutboundWorkerPreparationDiagnostic, OutboundWorkerReport, OutboundWorkerSchedule, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriOptions, ParseUriResult, PortableActorIdMapper, PortableCollectionOwnerMapper, PortableInboxForwardingOptions, PortableRequest, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, isActorAuthenticated, isAtomicKvStore, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -1,75 +1,146 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "../middleware-
|
|
3
|
+
import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "../middleware-Dz8iJh0H.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { Router as Router$1, RouterError as RouterError$1, assertPath, isPath } from "@fedify/uri-template";
|
|
6
6
|
import { isEqual } from "es-toolkit";
|
|
7
7
|
//#region src/federation/kv.ts
|
|
8
8
|
/**
|
|
9
|
+
* Checks that all five atomic methods are functions. This checks capabilities
|
|
10
|
+
* only, not their correctness, supported scope, or persistence.
|
|
11
|
+
* @param store The store to check.
|
|
12
|
+
* @returns Whether the store exposes the required atomic methods.
|
|
13
|
+
* @since 2.5.0
|
|
14
|
+
*/
|
|
15
|
+
function isAtomicKvStore(store) {
|
|
16
|
+
return typeof store.cas === "function" && typeof store.getMany === "function" && typeof store.setMany === "function" && typeof store.deleteMany === "function" && typeof store.casMany === "function";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
9
19
|
* A key–value store that stores values in memory.
|
|
10
20
|
* Do not use this in production as it does not persist values.
|
|
11
21
|
*
|
|
22
|
+
* All keys within one instance share an atomic scope, with no fixed batch
|
|
23
|
+
* size limit other than available memory/runtime resources. Values use
|
|
24
|
+
* {@link https://es-toolkit.dev/reference/predicate/isEqual.html | structural
|
|
25
|
+
* equality} for CAS, including object member order independence. TTLs are
|
|
26
|
+
* normalized to hours without losing subhour precision; calendar durations
|
|
27
|
+
* requiring a reference date reject. Non-positive TTLs expire immediately.
|
|
28
|
+
*
|
|
29
|
+
* Values are retained and returned by reference for compatibility. Treat
|
|
30
|
+
* inputs and returned objects as immutable, passive data: accessors, proxies,
|
|
31
|
+
* or other behavior that reenters the store during an operation are unsupported.
|
|
32
|
+
* Mutating an object, including one shared across several keys, changes the
|
|
33
|
+
* stored state outside the atomic API and invalidates snapshot guarantees.
|
|
34
|
+
* Persistent adapters usually serialize values, so this differs from them.
|
|
35
|
+
*
|
|
12
36
|
* @since 0.5.0
|
|
13
37
|
*/
|
|
14
38
|
var MemoryKvStore = class {
|
|
15
39
|
#values = {};
|
|
16
40
|
#encodeKey(key) {
|
|
41
|
+
if (!Array.isArray(key) || key.length < 1 || !Array.from(key).every((part) => typeof part === "string")) throw new TypeError("A KV key must be a non-empty array of strings.");
|
|
17
42
|
return JSON.stringify(key);
|
|
18
43
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
44
|
+
#encodeKeyList(keys) {
|
|
45
|
+
if (!Array.isArray(keys)) throw new TypeError("A KV batch must be an array.");
|
|
46
|
+
return Array.from(keys, (key) => this.#encodeKey(key));
|
|
47
|
+
}
|
|
48
|
+
#encodeKeys(keys) {
|
|
49
|
+
const encoded = this.#encodeKeyList(keys);
|
|
50
|
+
if (new Set(encoded).size !== encoded.length) throw new TypeError("Duplicate keys in an atomic mutation.");
|
|
51
|
+
return encoded;
|
|
52
|
+
}
|
|
53
|
+
#read(key, now) {
|
|
54
|
+
const entry = this.#values[key];
|
|
55
|
+
if (entry == null || entry[1] != null && Temporal.Instant.compare(entry[1], now) <= 0) return void 0;
|
|
56
|
+
return entry[0];
|
|
57
|
+
}
|
|
58
|
+
#prepare(entries, now) {
|
|
59
|
+
const keys = this.#encodeKeys(entries.map((entry) => entry.key));
|
|
60
|
+
return entries.map((entry, index) => {
|
|
61
|
+
const value = entry.value;
|
|
62
|
+
const ttl = entry.options?.ttl;
|
|
63
|
+
if (value === void 0) throw new TypeError("undefined is not a storable KV value.");
|
|
64
|
+
const expiration = ttl == null ? null : now.add(ttl.round({ largestUnit: "hour" }));
|
|
65
|
+
return [keys[index], [value, expiration]];
|
|
66
|
+
});
|
|
32
67
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
68
|
+
#apply(entries) {
|
|
69
|
+
for (const [key, entry] of entries) this.#values[key] = entry;
|
|
70
|
+
}
|
|
71
|
+
#compareAndSwap(entries) {
|
|
72
|
+
const captured = entries.map((entry) => ({
|
|
73
|
+
key: entry.key,
|
|
74
|
+
expectedValue: entry.expectedValue,
|
|
75
|
+
newValue: entry.newValue,
|
|
76
|
+
ttl: entry.options?.ttl
|
|
77
|
+
}));
|
|
78
|
+
const keys = this.#encodeKeys(captured.map((entry) => entry.key));
|
|
79
|
+
const now = Temporal.Now.instant();
|
|
80
|
+
const prepared = captured.map((entry, index) => {
|
|
81
|
+
if (entry.newValue === void 0 && entry.ttl != null) throw new TypeError("A CAS deletion must not specify a TTL.");
|
|
82
|
+
const expiration = entry.ttl == null ? null : now.add(entry.ttl.round({ largestUnit: "hour" }));
|
|
83
|
+
return {
|
|
84
|
+
key: keys[index],
|
|
85
|
+
expectedValue: entry.expectedValue,
|
|
86
|
+
value: entry.newValue,
|
|
87
|
+
expiration
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
for (const entry of prepared) if (!isEqual(this.#read(entry.key, now), entry.expectedValue)) return false;
|
|
91
|
+
for (const entry of prepared) if (entry.value === void 0) delete this.#values[entry.key];
|
|
92
|
+
else this.#values[entry.key] = [entry.value, entry.expiration];
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
/** {@inheritDoc KvStore.get} */
|
|
96
|
+
async get(key) {
|
|
97
|
+
const encoded = this.#encodeKey(key);
|
|
98
|
+
const now = Temporal.Now.instant();
|
|
99
|
+
const value = this.#read(encoded, now);
|
|
100
|
+
if (value === void 0) delete this.#values[encoded];
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
/** {@inheritDoc AtomicKvStore.set} */
|
|
104
|
+
async set(key, value, options) {
|
|
105
|
+
this.#apply(this.#prepare([{
|
|
106
|
+
key,
|
|
107
|
+
value,
|
|
108
|
+
options
|
|
109
|
+
}], Temporal.Now.instant()));
|
|
110
|
+
}
|
|
111
|
+
/** {@inheritDoc KvStore.delete} */
|
|
112
|
+
async delete(key) {
|
|
113
|
+
delete this.#values[this.#encodeKey(key)];
|
|
114
|
+
}
|
|
115
|
+
/** {@inheritDoc AtomicKvStore.cas} */
|
|
116
|
+
async cas(key, expectedValue, newValue, options) {
|
|
117
|
+
return this.#compareAndSwap([{
|
|
118
|
+
key,
|
|
119
|
+
expectedValue,
|
|
120
|
+
newValue,
|
|
121
|
+
options
|
|
122
|
+
}]);
|
|
123
|
+
}
|
|
124
|
+
/** {@inheritDoc AtomicKvStore.getMany} */
|
|
125
|
+
async getMany(keys) {
|
|
126
|
+
const encoded = this.#encodeKeyList(keys);
|
|
127
|
+
const now = Temporal.Now.instant();
|
|
128
|
+
return encoded.map((key) => this.#read(key, now));
|
|
41
129
|
}
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
delete(key) {
|
|
46
|
-
const encodedKey = this.#encodeKey(key);
|
|
47
|
-
delete this.#values[encodedKey];
|
|
48
|
-
return Promise.resolve();
|
|
130
|
+
/** {@inheritDoc AtomicKvStore.setMany} */
|
|
131
|
+
async setMany(entries) {
|
|
132
|
+
this.#apply(this.#prepare(entries, Temporal.Now.instant()));
|
|
49
133
|
}
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const encodedKey = this.#encodeKey(key);
|
|
55
|
-
const entry = this.#values[encodedKey];
|
|
56
|
-
let currentValue;
|
|
57
|
-
if (entry == null) currentValue = void 0;
|
|
58
|
-
else {
|
|
59
|
-
const [value, expiration] = entry;
|
|
60
|
-
if (expiration != null && Temporal.Now.instant().until(expiration).sign < 0) {
|
|
61
|
-
delete this.#values[encodedKey];
|
|
62
|
-
currentValue = void 0;
|
|
63
|
-
} else currentValue = value;
|
|
64
|
-
}
|
|
65
|
-
if (!isEqual(currentValue, expectedValue)) return Promise.resolve(false);
|
|
66
|
-
const expiration = options?.ttl == null ? null : Temporal.Now.instant().add(options.ttl.round({ largestUnit: "hour" }));
|
|
67
|
-
this.#values[encodedKey] = [newValue, expiration];
|
|
68
|
-
return Promise.resolve(true);
|
|
134
|
+
/** {@inheritDoc AtomicKvStore.deleteMany} */
|
|
135
|
+
async deleteMany(keys) {
|
|
136
|
+
const encoded = this.#encodeKeys(keys);
|
|
137
|
+
for (const key of encoded) delete this.#values[key];
|
|
69
138
|
}
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
|
|
139
|
+
/** {@inheritDoc AtomicKvStore.casMany} */
|
|
140
|
+
async casMany(entries) {
|
|
141
|
+
return this.#compareAndSwap(entries);
|
|
142
|
+
}
|
|
143
|
+
/** {@inheritDoc KvStore.list} */
|
|
73
144
|
async *list(prefix) {
|
|
74
145
|
const now = Temporal.Now.instant();
|
|
75
146
|
for (const [encodedKey, entry] of Object.entries(this.#values)) {
|
|
@@ -79,8 +150,8 @@ var MemoryKvStore = class {
|
|
|
79
150
|
if (!prefix.every((p, i) => key[i] === p)) continue;
|
|
80
151
|
}
|
|
81
152
|
const [value, expiration] = entry;
|
|
82
|
-
if (expiration != null &&
|
|
83
|
-
delete this.#values[encodedKey];
|
|
153
|
+
if (expiration != null && Temporal.Instant.compare(expiration, now) <= 0) {
|
|
154
|
+
if (this.#values[encodedKey] === entry) delete this.#values[encodedKey];
|
|
84
155
|
continue;
|
|
85
156
|
}
|
|
86
157
|
yield {
|
|
@@ -525,4 +596,4 @@ function convertRouterError(func) {
|
|
|
525
596
|
}
|
|
526
597
|
}
|
|
527
598
|
//#endregion
|
|
528
|
-
export { CircuitBreaker, InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, isActorAuthenticated, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
|
599
|
+
export { CircuitBreaker, InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, isActorAuthenticated, isAtomicKvStore, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Dmm3t92W.cjs");
|
|
3
3
|
const require_transformers = require("./transformers-BalCrSsr.cjs");
|
|
4
|
-
const require_http = require("./http-
|
|
4
|
+
const require_http = require("./http-BqrOCUOK.cjs");
|
|
5
5
|
const require_types = require("./types-hKCCjii0.cjs");
|
|
6
|
-
const require_portable_collection = require("./portable-collection-
|
|
7
|
-
const require_kv_cache = require("./kv-cache-
|
|
6
|
+
const require_portable_collection = require("./portable-collection-CJ6-QUgP.cjs");
|
|
7
|
+
const require_kv_cache = require("./kv-cache-DFpIzPHz.cjs");
|
|
8
8
|
let _logtape_logtape = require("@logtape/logtape");
|
|
9
9
|
let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
|
|
10
10
|
let _fedify_uri_template = require("@fedify/uri-template");
|
|
@@ -8662,70 +8662,141 @@ async function verifyPortableActivityId(activityId, jsonLd, options) {
|
|
|
8662
8662
|
//#region src/federation/kv.ts
|
|
8663
8663
|
const Temporal$6 = require_http.Temporal;
|
|
8664
8664
|
/**
|
|
8665
|
+
* Checks that all five atomic methods are functions. This checks capabilities
|
|
8666
|
+
* only, not their correctness, supported scope, or persistence.
|
|
8667
|
+
* @param store The store to check.
|
|
8668
|
+
* @returns Whether the store exposes the required atomic methods.
|
|
8669
|
+
* @since 2.5.0
|
|
8670
|
+
*/
|
|
8671
|
+
function isAtomicKvStore(store) {
|
|
8672
|
+
return typeof store.cas === "function" && typeof store.getMany === "function" && typeof store.setMany === "function" && typeof store.deleteMany === "function" && typeof store.casMany === "function";
|
|
8673
|
+
}
|
|
8674
|
+
/**
|
|
8665
8675
|
* A key–value store that stores values in memory.
|
|
8666
8676
|
* Do not use this in production as it does not persist values.
|
|
8667
8677
|
*
|
|
8678
|
+
* All keys within one instance share an atomic scope, with no fixed batch
|
|
8679
|
+
* size limit other than available memory/runtime resources. Values use
|
|
8680
|
+
* {@link https://es-toolkit.dev/reference/predicate/isEqual.html | structural
|
|
8681
|
+
* equality} for CAS, including object member order independence. TTLs are
|
|
8682
|
+
* normalized to hours without losing subhour precision; calendar durations
|
|
8683
|
+
* requiring a reference date reject. Non-positive TTLs expire immediately.
|
|
8684
|
+
*
|
|
8685
|
+
* Values are retained and returned by reference for compatibility. Treat
|
|
8686
|
+
* inputs and returned objects as immutable, passive data: accessors, proxies,
|
|
8687
|
+
* or other behavior that reenters the store during an operation are unsupported.
|
|
8688
|
+
* Mutating an object, including one shared across several keys, changes the
|
|
8689
|
+
* stored state outside the atomic API and invalidates snapshot guarantees.
|
|
8690
|
+
* Persistent adapters usually serialize values, so this differs from them.
|
|
8691
|
+
*
|
|
8668
8692
|
* @since 0.5.0
|
|
8669
8693
|
*/
|
|
8670
8694
|
var MemoryKvStore = class {
|
|
8671
8695
|
#values = {};
|
|
8672
8696
|
#encodeKey(key) {
|
|
8697
|
+
if (!Array.isArray(key) || key.length < 1 || !Array.from(key).every((part) => typeof part === "string")) throw new TypeError("A KV key must be a non-empty array of strings.");
|
|
8673
8698
|
return JSON.stringify(key);
|
|
8674
8699
|
}
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
const
|
|
8681
|
-
if (
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
return
|
|
8700
|
+
#encodeKeyList(keys) {
|
|
8701
|
+
if (!Array.isArray(keys)) throw new TypeError("A KV batch must be an array.");
|
|
8702
|
+
return Array.from(keys, (key) => this.#encodeKey(key));
|
|
8703
|
+
}
|
|
8704
|
+
#encodeKeys(keys) {
|
|
8705
|
+
const encoded = this.#encodeKeyList(keys);
|
|
8706
|
+
if (new Set(encoded).size !== encoded.length) throw new TypeError("Duplicate keys in an atomic mutation.");
|
|
8707
|
+
return encoded;
|
|
8708
|
+
}
|
|
8709
|
+
#read(key, now) {
|
|
8710
|
+
const entry = this.#values[key];
|
|
8711
|
+
if (entry == null || entry[1] != null && Temporal$6.Instant.compare(entry[1], now) <= 0) return void 0;
|
|
8712
|
+
return entry[0];
|
|
8713
|
+
}
|
|
8714
|
+
#prepare(entries, now) {
|
|
8715
|
+
const keys = this.#encodeKeys(entries.map((entry) => entry.key));
|
|
8716
|
+
return entries.map((entry, index) => {
|
|
8717
|
+
const value = entry.value;
|
|
8718
|
+
const ttl = entry.options?.ttl;
|
|
8719
|
+
if (value === void 0) throw new TypeError("undefined is not a storable KV value.");
|
|
8720
|
+
const expiration = ttl == null ? null : now.add(ttl.round({ largestUnit: "hour" }));
|
|
8721
|
+
return [keys[index], [value, expiration]];
|
|
8722
|
+
});
|
|
8723
|
+
}
|
|
8724
|
+
#apply(entries) {
|
|
8725
|
+
for (const [key, entry] of entries) this.#values[key] = entry;
|
|
8726
|
+
}
|
|
8727
|
+
#compareAndSwap(entries) {
|
|
8728
|
+
const captured = entries.map((entry) => ({
|
|
8729
|
+
key: entry.key,
|
|
8730
|
+
expectedValue: entry.expectedValue,
|
|
8731
|
+
newValue: entry.newValue,
|
|
8732
|
+
ttl: entry.options?.ttl
|
|
8733
|
+
}));
|
|
8734
|
+
const keys = this.#encodeKeys(captured.map((entry) => entry.key));
|
|
8735
|
+
const now = Temporal$6.Now.instant();
|
|
8736
|
+
const prepared = captured.map((entry, index) => {
|
|
8737
|
+
if (entry.newValue === void 0 && entry.ttl != null) throw new TypeError("A CAS deletion must not specify a TTL.");
|
|
8738
|
+
const expiration = entry.ttl == null ? null : now.add(entry.ttl.round({ largestUnit: "hour" }));
|
|
8739
|
+
return {
|
|
8740
|
+
key: keys[index],
|
|
8741
|
+
expectedValue: entry.expectedValue,
|
|
8742
|
+
value: entry.newValue,
|
|
8743
|
+
expiration
|
|
8744
|
+
};
|
|
8745
|
+
});
|
|
8746
|
+
for (const entry of prepared) if (!(0, es_toolkit.isEqual)(this.#read(entry.key, now), entry.expectedValue)) return false;
|
|
8747
|
+
for (const entry of prepared) if (entry.value === void 0) delete this.#values[entry.key];
|
|
8748
|
+
else this.#values[entry.key] = [entry.value, entry.expiration];
|
|
8749
|
+
return true;
|
|
8688
8750
|
}
|
|
8689
|
-
/**
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
const
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
return Promise.resolve();
|
|
8751
|
+
/** {@inheritDoc KvStore.get} */
|
|
8752
|
+
async get(key) {
|
|
8753
|
+
const encoded = this.#encodeKey(key);
|
|
8754
|
+
const now = Temporal$6.Now.instant();
|
|
8755
|
+
const value = this.#read(encoded, now);
|
|
8756
|
+
if (value === void 0) delete this.#values[encoded];
|
|
8757
|
+
return value;
|
|
8697
8758
|
}
|
|
8698
|
-
/**
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8759
|
+
/** {@inheritDoc AtomicKvStore.set} */
|
|
8760
|
+
async set(key, value, options) {
|
|
8761
|
+
this.#apply(this.#prepare([{
|
|
8762
|
+
key,
|
|
8763
|
+
value,
|
|
8764
|
+
options
|
|
8765
|
+
}], Temporal$6.Now.instant()));
|
|
8766
|
+
}
|
|
8767
|
+
/** {@inheritDoc KvStore.delete} */
|
|
8768
|
+
async delete(key) {
|
|
8769
|
+
delete this.#values[this.#encodeKey(key)];
|
|
8770
|
+
}
|
|
8771
|
+
/** {@inheritDoc AtomicKvStore.cas} */
|
|
8772
|
+
async cas(key, expectedValue, newValue, options) {
|
|
8773
|
+
return this.#compareAndSwap([{
|
|
8774
|
+
key,
|
|
8775
|
+
expectedValue,
|
|
8776
|
+
newValue,
|
|
8777
|
+
options
|
|
8778
|
+
}]);
|
|
8705
8779
|
}
|
|
8706
|
-
/**
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
const entry = this.#values[encodedKey];
|
|
8712
|
-
let currentValue;
|
|
8713
|
-
if (entry == null) currentValue = void 0;
|
|
8714
|
-
else {
|
|
8715
|
-
const [value, expiration] = entry;
|
|
8716
|
-
if (expiration != null && Temporal$6.Now.instant().until(expiration).sign < 0) {
|
|
8717
|
-
delete this.#values[encodedKey];
|
|
8718
|
-
currentValue = void 0;
|
|
8719
|
-
} else currentValue = value;
|
|
8720
|
-
}
|
|
8721
|
-
if (!(0, es_toolkit.isEqual)(currentValue, expectedValue)) return Promise.resolve(false);
|
|
8722
|
-
const expiration = options?.ttl == null ? null : Temporal$6.Now.instant().add(options.ttl.round({ largestUnit: "hour" }));
|
|
8723
|
-
this.#values[encodedKey] = [newValue, expiration];
|
|
8724
|
-
return Promise.resolve(true);
|
|
8780
|
+
/** {@inheritDoc AtomicKvStore.getMany} */
|
|
8781
|
+
async getMany(keys) {
|
|
8782
|
+
const encoded = this.#encodeKeyList(keys);
|
|
8783
|
+
const now = Temporal$6.Now.instant();
|
|
8784
|
+
return encoded.map((key) => this.#read(key, now));
|
|
8725
8785
|
}
|
|
8726
|
-
/**
|
|
8727
|
-
|
|
8728
|
-
|
|
8786
|
+
/** {@inheritDoc AtomicKvStore.setMany} */
|
|
8787
|
+
async setMany(entries) {
|
|
8788
|
+
this.#apply(this.#prepare(entries, Temporal$6.Now.instant()));
|
|
8789
|
+
}
|
|
8790
|
+
/** {@inheritDoc AtomicKvStore.deleteMany} */
|
|
8791
|
+
async deleteMany(keys) {
|
|
8792
|
+
const encoded = this.#encodeKeys(keys);
|
|
8793
|
+
for (const key of encoded) delete this.#values[key];
|
|
8794
|
+
}
|
|
8795
|
+
/** {@inheritDoc AtomicKvStore.casMany} */
|
|
8796
|
+
async casMany(entries) {
|
|
8797
|
+
return this.#compareAndSwap(entries);
|
|
8798
|
+
}
|
|
8799
|
+
/** {@inheritDoc KvStore.list} */
|
|
8729
8800
|
async *list(prefix) {
|
|
8730
8801
|
const now = Temporal$6.Now.instant();
|
|
8731
8802
|
for (const [encodedKey, entry] of Object.entries(this.#values)) {
|
|
@@ -8735,8 +8806,8 @@ var MemoryKvStore = class {
|
|
|
8735
8806
|
if (!prefix.every((p, i) => key[i] === p)) continue;
|
|
8736
8807
|
}
|
|
8737
8808
|
const [value, expiration] = entry;
|
|
8738
|
-
if (expiration != null &&
|
|
8739
|
-
delete this.#values[encodedKey];
|
|
8809
|
+
if (expiration != null && Temporal$6.Instant.compare(expiration, now) <= 0) {
|
|
8810
|
+
if (this.#values[encodedKey] === entry) delete this.#values[encodedKey];
|
|
8740
8811
|
continue;
|
|
8741
8812
|
}
|
|
8742
8813
|
yield {
|
|
@@ -15722,6 +15793,12 @@ Object.defineProperty(exports, "isActorAuthenticated", {
|
|
|
15722
15793
|
return isActorAuthenticated;
|
|
15723
15794
|
}
|
|
15724
15795
|
});
|
|
15796
|
+
Object.defineProperty(exports, "isAtomicKvStore", {
|
|
15797
|
+
enumerable: true,
|
|
15798
|
+
get: function() {
|
|
15799
|
+
return isAtomicKvStore;
|
|
15800
|
+
}
|
|
15801
|
+
});
|
|
15725
15802
|
Object.defineProperty(exports, "normalizeCircuitBreakerOptions", {
|
|
15726
15803
|
enumerable: true,
|
|
15727
15804
|
get: function() {
|
|
@@ -17,7 +17,7 @@ json_canon = require_rolldown_runtime.__toESM(json_canon, 1);
|
|
|
17
17
|
let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conventions");
|
|
18
18
|
//#region deno.json
|
|
19
19
|
var name = "@fedify/fedify";
|
|
20
|
-
var version = "2.5.0-dev.
|
|
20
|
+
var version = "2.5.0-dev.2766+dd42882b";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/sig/portable-key-id.ts
|
|
23
23
|
const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
|
|
@@ -15,7 +15,7 @@ import serialize from "json-canon";
|
|
|
15
15
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
16
16
|
//#region deno.json
|
|
17
17
|
var name = "@fedify/fedify";
|
|
18
|
-
var version = "2.5.0-dev.
|
|
18
|
+
var version = "2.5.0-dev.2766+dd42882b";
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/sig/portable-key-id.ts
|
|
21
21
|
const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
|