@fedify/fedify 1.7.0-dev.893 → 1.7.0-dev.897
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-C3adWLHo.js → actor-B7mRCgMD.js} +179 -179
- package/dist/{actor-Dv8qr9rc.js → actor-C252iJam.js} +3 -3
- package/dist/{actor-tT_B0pDn.d.ts → actor-CPpvuBKU.d.ts} +2 -2
- package/dist/{authdocloader-CkOdo5gV.js → authdocloader-BcH49dbJ.js} +3 -3
- package/dist/{authdocloader-CLRgxbyp.js → authdocloader-cfy-lsCi.js} +3 -3
- package/dist/{builder-ZpfHloFH.js → builder-CJxmmRh2.js} +3 -3
- package/dist/{client-Bkyh-Y77.js → client-Dorl5RX6.js} +2 -2
- package/dist/{client-Cd552pKL.d.ts → client-DvtwXO7t.d.ts} +1 -1
- package/dist/compat/mod.d.ts +11 -11
- package/dist/compat/transformers.test.js +21 -21
- package/dist/{context-DdICJaUT.d.ts → context-DPggmpB4.d.ts} +28 -9
- package/dist/{context-CLT6-1Sz.js → context-m0PPejcB.js} +2 -2
- package/dist/{docloader-DSiCgrLm.js → docloader-B1HjGfIK.js} +1 -1
- package/dist/{docloader-B0bm7EOo.js → docloader-COLEWRYA.js} +1 -1
- package/dist/{docloader-DlUDOVSe.d.ts → docloader-Q42SMRIB.d.ts} +2 -2
- package/dist/{esm-e_d5TL5c.js → esm-CASHO3OR.js} +2 -2
- package/dist/federation/builder.test.js +29 -7
- package/dist/federation/collection.test.js +1 -1
- package/dist/federation/handler.test.js +23 -23
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +5 -5
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +61 -24
- package/dist/federation/mod.d.ts +10 -10
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +1 -1
- package/dist/federation/retry.test.js +1 -1
- package/dist/federation/router.test.js +1 -1
- package/dist/federation/send.test.js +11 -11
- package/dist/{federation-lZOZyLAo.js → federation-BRIQn-GV.js} +1 -1
- package/dist/{http-BkUCISGt.d.ts → http-B8EiSgi2.d.ts} +2 -2
- package/dist/{http-De-b9bjC.js → http-Dm46wfJP.js} +3 -3
- package/dist/{http-MseFekx9.js → http-SDq05JZk.js} +3 -3
- package/dist/{inbox-BY6vPZcf.js → inbox-DtVnAA2z.js} +2 -2
- package/dist/{key-CmRKpLwe.js → key-BCO4lZY8.js} +4 -4
- package/dist/{key-Dofz8jJa.js → key-BLM1GVOV.js} +3 -3
- package/dist/{key-BZz0KSmk.js → key-BteSPCup.js} +5 -5
- package/dist/{key-BcPkzzIH.js → key-CdLgL5Rc.js} +2 -2
- package/dist/{keycache-D9t9UCrM.js → keycache-BlTMgkQi.js} +1 -1
- package/dist/{keys-CbDsdbvx.js → keys-XAVNR71b.js} +1 -1
- package/dist/{kv-DohFOP2C.js → kv-BMY6Qf_A.js} +1 -1
- package/dist/{kv-p8sC8PTT.d.ts → kv-DRaeSXco.d.ts} +4 -4
- package/dist/{ld-Dq9PjkKR.js → ld-B9cSmOEO.js} +3 -3
- package/dist/{lookup-Dz8VgsKQ.js → lookup-BbuwLIkD.js} +1 -1
- package/dist/{lookup-vJccIKCS.d.ts → lookup-Bf-K85bV.d.ts} +1 -1
- package/dist/{lookup-BCwKLGsa.js → lookup-DLE6RLMi.js} +3 -3
- package/dist/{lookup-HiiBJuJM.js → lookup-RebL9utk.js} +1 -1
- package/dist/middleware-BPlC1mb2.js +33 -0
- package/dist/middleware-BWIiFba0.js +17 -0
- package/dist/{middleware-z5RQLn4K.js → middleware-C7RWXthy.js} +22 -20
- package/dist/{middleware-BOhI33ac.js → middleware-T2FjsAYd.js} +16 -14
- package/dist/{mod-BTHfUeLo.d.ts → mod-C2drFqH8.d.ts} +2 -2
- package/dist/{mod-DSPyncxx.d.ts → mod-CDzlVCUF.d.ts} +2 -2
- package/dist/{mod-5orySGMZ.d.ts → mod-CbjCOiVh.d.ts} +2 -2
- package/dist/{mod-BUTm-sog.d.ts → mod-sEI6_uZ2.d.ts} +3 -3
- package/dist/mod.d.ts +13 -13
- package/dist/mod.js +11 -11
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +22 -22
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +2 -2
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-EJ3S1Sal.js → owner-C7C1jrA-.js} +3 -3
- package/dist/{owner-CbRc94FP.d.ts → owner-D0cOz8R5.d.ts} +3 -3
- package/dist/{proof-CRJVyuH1.js → proof-PRS_6qbS.js} +3 -3
- package/dist/{proof-BhrRK7yd.js → proof-u4fCkPT9.js} +3 -3
- package/dist/runtime/authdocloader.test.js +10 -10
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +6 -6
- package/dist/runtime/langstr.test.js +1 -1
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +1 -1
- package/dist/runtime/url.test.js +1 -1
- package/dist/{semver-CbbIgUsa.js → semver-DWClQt_5.js} +2 -2
- package/dist/{send-DD6dtRRG.js → send-DfS7xTZf.js} +2 -2
- package/dist/sig/http.test.js +15 -15
- package/dist/sig/key.test.js +7 -7
- package/dist/sig/ld.test.js +8 -8
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +9 -9
- package/dist/sig/proof.test.js +8 -8
- package/dist/testing/docloader.test.js +1 -1
- package/dist/testing/mod.js +1 -1
- package/dist/{testing-jcGLO9Lp.js → testing-BZ0dJ4qn.js} +1 -1
- package/dist/{types-CqoqWDkp.js → types-C7C_l-jz.js} +1 -1
- package/dist/{types-CgjsbFdI.js → types-jFXJQO9h.js} +3 -3
- package/dist/vocab/actor.test.js +6 -6
- package/dist/vocab/lookup.test.js +6 -6
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +8 -8
- package/dist/{vocab-BiYbNl-S.js → vocab-CQVUnYes.js} +3 -3
- package/dist/{vocab-DSFLLLe6.d.ts → vocab-CzEfWQk2.d.ts} +1 -1
- package/dist/{vocab-ByIVrnT5.js → vocab-DyxvjOdD.js} +178 -178
- package/dist/webfinger/handler.test.js +22 -22
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +1 -1
- package/dist/x/cfworkers.test.js +1 -1
- package/dist/x/hono.d.ts +10 -10
- package/dist/x/sveltekit.d.ts +10 -10
- package/package.json +1 -1
- package/dist/middleware-BV22URws.js +0 -17
- package/dist/middleware-Bfv68Ymw.js +0 -33
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader, GetUserAgentOptions } from "./docloader-
|
4
|
-
import { Collection, Link, Object as Object$1 } from "./vocab-
|
3
|
+
import { DocumentLoader, GetUserAgentOptions } from "./docloader-Q42SMRIB.js";
|
4
|
+
import { Collection, Link, Object as Object$1 } from "./vocab-CzEfWQk2.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region vocab/lookup.d.ts
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { Activity } from "./vocab-
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
3
|
+
import { Activity } from "./vocab-CzEfWQk2.js";
|
4
|
+
import { ActivityTransformer, Context } from "./context-DPggmpB4.js";
|
5
5
|
|
6
6
|
//#region compat/transformers.d.ts
|
7
7
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader } from "./docloader-
|
4
|
-
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-
|
5
|
-
import { KeyCache } from "./http-
|
3
|
+
import { DocumentLoader } from "./docloader-Q42SMRIB.js";
|
4
|
+
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-CzEfWQk2.js";
|
5
|
+
import { KeyCache } from "./http-B8EiSgi2.js";
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
7
7
|
|
8
8
|
//#region sig/ld.d.ts
|
package/dist/mod.d.ts
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-
|
4
|
-
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
5
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-
|
6
|
-
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, LanguageString, 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 } from "./vocab-
|
7
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-
|
8
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
9
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-
|
10
|
-
import { LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, lookupObject, traverseCollection } from "./mod-
|
11
|
-
import { ResourceDescriptor, lookupWebFinger } from "./lookup-
|
12
|
-
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-
|
3
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-DRaeSXco.js";
|
4
|
+
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-Q42SMRIB.js";
|
5
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-DvtwXO7t.js";
|
6
|
+
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, LanguageString, 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 } from "./vocab-CzEfWQk2.js";
|
7
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-CPpvuBKU.js";
|
8
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-B8EiSgi2.js";
|
9
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-D0cOz8R5.js";
|
10
|
+
import { LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, lookupObject, traverseCollection } from "./mod-CDzlVCUF.js";
|
11
|
+
import { ResourceDescriptor, lookupWebFinger } from "./lookup-Bf-K85bV.js";
|
12
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-DPggmpB4.js";
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DYKDDJmp.js";
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-CbjCOiVh.js";
|
15
15
|
import "./mod-g0xFzAP9.js";
|
16
16
|
import "./mod-1pDWKvUL.js";
|
17
|
-
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-
|
18
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-
|
17
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-C2drFqH8.js";
|
18
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-sEI6_uZ2.js";
|
19
19
|
import "./mod-GIh5OYxW.js";
|
20
20
|
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, 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, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, 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, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
6
6
|
import "./compat-Bb5myD13.js";
|
7
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
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, LanguageString, 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
10
|
-
import { lookupWebFinger } from "./lookup-
|
11
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-
|
12
|
-
import { signRequest, verifyRequest } from "./http-
|
13
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
14
|
-
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-
|
15
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-
|
16
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
17
|
-
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-
|
7
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-B1HjGfIK.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, LanguageString, 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-B7mRCgMD.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-T2FjsAYd.js";
|
10
|
+
import { lookupWebFinger } from "./lookup-BbuwLIkD.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-CdLgL5Rc.js";
|
12
|
+
import { signRequest, verifyRequest } from "./http-Dm46wfJP.js";
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-PRS_6qbS.js";
|
14
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-BRIQn-GV.js";
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-jFXJQO9h.js";
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-BcH49dbJ.js";
|
17
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-CQVUnYes.js";
|
18
18
|
import "./nodeinfo-CyEbLjHs.js";
|
19
19
|
import "./runtime-BSkOVUWM.js";
|
20
20
|
import "./sig-BXJO--F9.js";
|
@@ -6,17 +6,17 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-COLEWRYA.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
|
-
import "../semver-
|
12
|
-
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-
|
13
|
-
import { test } from "../testing-
|
11
|
+
import "../semver-DWClQt_5.js";
|
12
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-Dorl5RX6.js";
|
13
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
14
14
|
import "../std__assert-CHXwj7zk.js";
|
15
15
|
import "../assert_rejects-BZjUwo62.js";
|
16
16
|
import "../assert_is_error-jyzqjHud.js";
|
17
17
|
import "../assert_not_equals-wx-SRs4i.js";
|
18
18
|
import "../assert_throws-gBPv3v2V.js";
|
19
|
-
import { esm_default } from "../esm-
|
19
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
20
20
|
|
21
21
|
//#region nodeinfo/client.test.ts
|
22
22
|
test("getNodeInfo()", async (t) => {
|
@@ -6,41 +6,41 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import { MemoryKvStore } from "../kv-
|
10
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
11
|
-
import "../docloader-
|
9
|
+
import { MemoryKvStore } from "../kv-BMY6Qf_A.js";
|
10
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-C7RWXthy.js";
|
11
|
+
import "../docloader-COLEWRYA.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
|
-
import { parseSemVer } from "../semver-
|
14
|
-
import "../client-
|
13
|
+
import { parseSemVer } from "../semver-DWClQt_5.js";
|
14
|
+
import "../client-Dorl5RX6.js";
|
15
15
|
import "../router-D_aVZZUc.js";
|
16
|
-
import "../types-
|
16
|
+
import "../types-C7C_l-jz.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import "../vocab-
|
18
|
+
import "../vocab-DyxvjOdD.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-RebL9utk.js";
|
21
21
|
import "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import "../http-
|
25
|
-
import "../authdocloader-
|
26
|
-
import "../ld-
|
27
|
-
import "../owner-
|
28
|
-
import "../proof-
|
29
|
-
import "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-C252iJam.js";
|
23
|
+
import "../key-BLM1GVOV.js";
|
24
|
+
import "../http-SDq05JZk.js";
|
25
|
+
import "../authdocloader-cfy-lsCi.js";
|
26
|
+
import "../ld-B9cSmOEO.js";
|
27
|
+
import "../owner-C7C1jrA-.js";
|
28
|
+
import "../proof-u4fCkPT9.js";
|
29
|
+
import "../lookup-DLE6RLMi.js";
|
30
|
+
import "../inbox-DtVnAA2z.js";
|
31
|
+
import "../builder-CJxmmRh2.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-BlTMgkQi.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
36
|
-
import { test } from "../testing-
|
35
|
+
import "../send-DfS7xTZf.js";
|
36
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
37
37
|
import "../std__assert-CHXwj7zk.js";
|
38
38
|
import "../assert_rejects-BZjUwo62.js";
|
39
39
|
import "../assert_is_error-jyzqjHud.js";
|
40
40
|
import "../assert_not_equals-wx-SRs4i.js";
|
41
41
|
import "../assert_throws-gBPv3v2V.js";
|
42
42
|
import "../docloader-09nVWLAZ.js";
|
43
|
-
import { createRequestContext } from "../context-
|
43
|
+
import { createRequestContext } from "../context-m0PPejcB.js";
|
44
44
|
|
45
45
|
//#region nodeinfo/handler.test.ts
|
46
46
|
test("handleNodeInfo()", async () => {
|
package/dist/nodeinfo/mod.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../kv-
|
4
|
-
import "../docloader-
|
5
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-
|
3
|
+
import "../kv-DRaeSXco.js";
|
4
|
+
import "../docloader-Q42SMRIB.js";
|
5
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-DvtwXO7t.js";
|
6
6
|
import "../mod-1pDWKvUL.js";
|
7
7
|
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
package/dist/nodeinfo/mod.js
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-
|
5
|
+
import "../docloader-B1HjGfIK.js";
|
6
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-jFXJQO9h.js";
|
7
7
|
import "../nodeinfo-CyEbLjHs.js";
|
8
8
|
|
9
9
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
@@ -6,8 +6,8 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import { formatSemVer, parseSemVer } from "../semver-
|
10
|
-
import { test } from "../testing-
|
9
|
+
import { formatSemVer, parseSemVer } from "../semver-DWClQt_5.js";
|
10
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
11
11
|
import "../std__assert-CHXwj7zk.js";
|
12
12
|
import "../assert_rejects-BZjUwo62.js";
|
13
13
|
import "../assert_is_error-jyzqjHud.js";
|
@@ -6,9 +6,9 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../semver-
|
10
|
-
import { nodeInfoToJson } from "../types-
|
11
|
-
import { test } from "../testing-
|
9
|
+
import "../semver-DWClQt_5.js";
|
10
|
+
import { nodeInfoToJson } from "../types-C7C_l-jz.js";
|
11
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
12
12
|
import "../std__assert-CHXwj7zk.js";
|
13
13
|
import "../assert_rejects-BZjUwo62.js";
|
14
14
|
import "../assert_is_error-jyzqjHud.js";
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { getDocumentLoader } from "./docloader-
|
7
|
-
import { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { getDocumentLoader } from "./docloader-COLEWRYA.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-DyxvjOdD.js";
|
8
|
+
import { isActor } from "./actor-C252iJam.js";
|
9
9
|
import { trace } from "@opentelemetry/api";
|
10
10
|
|
11
11
|
//#region sig/owner.ts
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader } from "./docloader-
|
4
|
-
import { Activity, CryptographicKey } from "./vocab-
|
5
|
-
import { Actor } from "./actor-
|
3
|
+
import { DocumentLoader } from "./docloader-Q42SMRIB.js";
|
4
|
+
import { Activity, CryptographicKey } from "./vocab-CzEfWQk2.js";
|
5
|
+
import { Actor } from "./actor-CPpvuBKU.js";
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
7
7
|
|
8
8
|
//#region sig/owner.d.ts
|
@@ -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, getDocumentLoader } from "./docloader-
|
6
|
-
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-B1HjGfIK.js";
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-B7mRCgMD.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-CdLgL5Rc.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import jsonld from "jsonld";
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity, DataIntegrityProof, Multikey } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-COLEWRYA.js";
|
7
|
+
import { Activity, DataIntegrityProof, Multikey } from "./vocab-DyxvjOdD.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-BLM1GVOV.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
import { encodeHex } from "byte-encodings/hex";
|
@@ -6,26 +6,26 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-COLEWRYA.js";
|
10
10
|
import { UrlError } from "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import "../vocab-
|
12
|
+
import "../vocab-DyxvjOdD.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-RebL9utk.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { verifyRequest } from "../http-
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
20
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-C252iJam.js";
|
17
|
+
import "../key-BLM1GVOV.js";
|
18
|
+
import { verifyRequest } from "../http-SDq05JZk.js";
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-cfy-lsCi.js";
|
20
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
21
21
|
import "../std__assert-CHXwj7zk.js";
|
22
22
|
import { assertRejects } from "../assert_rejects-BZjUwo62.js";
|
23
23
|
import "../assert_is_error-jyzqjHud.js";
|
24
24
|
import "../assert_not_equals-wx-SRs4i.js";
|
25
25
|
import "../assert_throws-gBPv3v2V.js";
|
26
26
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
27
|
-
import { rsaPrivateKey2 } from "../keys-
|
28
|
-
import { esm_default } from "../esm-
|
27
|
+
import { rsaPrivateKey2 } from "../keys-XAVNR71b.js";
|
28
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
29
29
|
|
30
30
|
//#region runtime/authdocloader.test.ts
|
31
31
|
test("getAuthenticatedDocumentLoader()", async (t) => {
|
@@ -6,17 +6,17 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import { MemoryKvStore } from "../kv-
|
10
|
-
import { FetchError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../docloader-
|
9
|
+
import { MemoryKvStore } from "../kv-BMY6Qf_A.js";
|
10
|
+
import { FetchError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../docloader-COLEWRYA.js";
|
11
11
|
import { UrlError } from "../url-kTAI6_KP.js";
|
12
|
-
import { test } from "../testing-
|
12
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
13
13
|
import "../std__assert-CHXwj7zk.js";
|
14
14
|
import { assertRejects } from "../assert_rejects-BZjUwo62.js";
|
15
15
|
import "../assert_is_error-jyzqjHud.js";
|
16
16
|
import "../assert_not_equals-wx-SRs4i.js";
|
17
17
|
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
18
18
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
19
|
-
import { esm_default } from "../esm-
|
19
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
20
20
|
import process from "node:process";
|
21
21
|
|
22
22
|
//#region runtime/docloader.test.ts
|
package/dist/runtime/key.test.js
CHANGED
@@ -6,16 +6,16 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-COLEWRYA.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-
|
12
|
+
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-DyxvjOdD.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-RebL9utk.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk, importJwk } from "../key-
|
18
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-C252iJam.js";
|
17
|
+
import { exportJwk, importJwk } from "../key-BLM1GVOV.js";
|
18
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
19
19
|
import "../std__assert-CHXwj7zk.js";
|
20
20
|
import "../assert_rejects-BZjUwo62.js";
|
21
21
|
import "../assert_is_error-jyzqjHud.js";
|
@@ -7,7 +7,7 @@ import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
10
|
-
import { test } from "../testing-
|
10
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
11
11
|
import "../std__assert-CHXwj7zk.js";
|
12
12
|
import "../assert_rejects-BZjUwo62.js";
|
13
13
|
import "../assert_is_error-jyzqjHud.js";
|
package/dist/runtime/mod.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../kv-
|
4
|
-
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-
|
5
|
-
import { LanguageString } from "../vocab-
|
6
|
-
import "../http-
|
7
|
-
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-
|
3
|
+
import "../kv-DRaeSXco.js";
|
4
|
+
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-Q42SMRIB.js";
|
5
|
+
import { LanguageString } from "../vocab-CzEfWQk2.js";
|
6
|
+
import "../http-B8EiSgi2.js";
|
7
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-C2drFqH8.js";
|
8
8
|
export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, LanguageString, RemoteDocument, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
|
package/dist/runtime/mod.js
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-
|
6
|
-
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-
|
7
|
-
import "../lookup-
|
8
|
-
import "../key-
|
9
|
-
import "../http-
|
10
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
5
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-B1HjGfIK.js";
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-B7mRCgMD.js";
|
7
|
+
import "../lookup-BbuwLIkD.js";
|
8
|
+
import "../key-CdLgL5Rc.js";
|
9
|
+
import "../http-Dm46wfJP.js";
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-BcH49dbJ.js";
|
11
11
|
import "../runtime-BSkOVUWM.js";
|
12
12
|
|
13
13
|
export { FetchError, LanguageString, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
|
@@ -7,7 +7,7 @@ import { assertEquals } from "../../assert_equals-Dnj7ejjL.js";
|
|
7
7
|
import "../../assert-YJk-1DlZ.js";
|
8
8
|
import "../../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { codes, decode, decodeText, encode, encodeText, names } from "../../multibase-DeCHcK8L.js";
|
10
|
-
import { test } from "../../testing-
|
10
|
+
import { test } from "../../testing-BZ0dJ4qn.js";
|
11
11
|
import "../../std__assert-CHXwj7zk.js";
|
12
12
|
import "../../assert_rejects-BZjUwo62.js";
|
13
13
|
import "../../assert_is_error-jyzqjHud.js";
|
package/dist/runtime/url.test.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../url-kTAI6_KP.js";
|
9
|
-
import { test } from "../testing-
|
9
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
10
10
|
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
11
11
|
import "../assert_is_error-jyzqjHud.js";
|
12
12
|
|
@@ -39,7 +39,7 @@ const BUILD = `(?:\\+(?<buildmetadata>${BUILD_IDENTIFIER}(?:\\.${BUILD_IDENTIFIE
|
|
39
39
|
* A version, followed optionally by a pre-release version and build metadata.
|
40
40
|
*/
|
41
41
|
const FULL_VERSION = `v?${VERSION_CORE}${PRERELEASE}?${BUILD}?`;
|
42
|
-
const FULL_REGEXP = new RegExp(`^${FULL_VERSION}$`);
|
42
|
+
const FULL_REGEXP = /* @__PURE__ */ new RegExp(`^${FULL_VERSION}$`);
|
43
43
|
/**
|
44
44
|
* Attempt to parse a string as a semantic version, returning a SemVer object.
|
45
45
|
*
|
@@ -93,7 +93,7 @@ function parseSemVer(value) {
|
|
93
93
|
function isValidNumber(value) {
|
94
94
|
return typeof value === "number" && !Number.isNaN(value) && (!Number.isFinite(value) || 0 <= value && value <= Number.MAX_SAFE_INTEGER);
|
95
95
|
}
|
96
|
-
const NUMERIC_IDENTIFIER_REGEXP = new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
96
|
+
const NUMERIC_IDENTIFIER_REGEXP = /* @__PURE__ */ new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
97
97
|
function parsePrerelease(prerelease) {
|
98
98
|
return prerelease.split(".").filter(Boolean).map((id) => {
|
99
99
|
if (NUMERIC_IDENTIFIER_REGEXP.test(id)) {
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { doubleKnock } from "./http-
|
6
|
+
import { deno_default } from "./docloader-COLEWRYA.js";
|
7
|
+
import { doubleKnock } from "./http-SDq05JZk.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
@@ -6,25 +6,25 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-COLEWRYA.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { exportSpki } from "../vocab-
|
12
|
+
import { exportSpki } from "../vocab-DyxvjOdD.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-RebL9utk.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk } from "../key-
|
18
|
-
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-
|
19
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-C252iJam.js";
|
17
|
+
import { exportJwk } from "../key-BLM1GVOV.js";
|
18
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-SDq05JZk.js";
|
19
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
20
20
|
import { assertExists, assertStringIncludes } from "../std__assert-CHXwj7zk.js";
|
21
21
|
import { assertFalse } from "../assert_rejects-BZjUwo62.js";
|
22
22
|
import "../assert_is_error-jyzqjHud.js";
|
23
23
|
import "../assert_not_equals-wx-SRs4i.js";
|
24
24
|
import "../assert_throws-gBPv3v2V.js";
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
26
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-
|
27
|
-
import { esm_default } from "../esm-
|
26
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-XAVNR71b.js";
|
27
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
28
28
|
import { encodeBase64 } from "byte-encodings/base64";
|
29
29
|
|
30
30
|
//#region sig/http.test.ts
|
@@ -325,7 +325,7 @@ test("verifyRequest() [rfc9421] successful GET verification", async () => {
|
|
325
325
|
contextLoader: mockDocumentLoader,
|
326
326
|
documentLoader: mockDocumentLoader,
|
327
327
|
spec: "rfc9421",
|
328
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
328
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
329
329
|
});
|
330
330
|
assertEquals(verifiedKey, rsaPublicKey2, "Valid signature should verify to the correct public key");
|
331
331
|
});
|
@@ -449,7 +449,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
449
449
|
contextLoader: mockDocumentLoader,
|
450
450
|
documentLoader: mockDocumentLoader,
|
451
451
|
spec: "rfc9421",
|
452
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp + 2592e3) * 1e3).toISOString()}`),
|
452
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp + 2592e3) * 1e3)).toISOString()}`),
|
453
453
|
timeWindow: { hours: 1 }
|
454
454
|
});
|
455
455
|
assertEquals(expiredResult, null, "Should fail verification when signature timestamp is too old");
|
@@ -467,7 +467,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
467
467
|
contextLoader: mockDocumentLoader,
|
468
468
|
documentLoader: mockDocumentLoader,
|
469
469
|
spec: "rfc9421",
|
470
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp - 2592e3) * 1e3).toISOString()}`),
|
470
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp - 2592e3) * 1e3)).toISOString()}`),
|
471
471
|
timeWindow: { hours: 1 }
|
472
472
|
});
|
473
473
|
assertEquals(futureResult, null, "Should fail verification when signature timestamp is in the future");
|
@@ -485,7 +485,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
485
485
|
contextLoader: mockDocumentLoader,
|
486
486
|
documentLoader: mockDocumentLoader,
|
487
487
|
spec: "rfc9421",
|
488
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp + 31536e3) * 1e3).toISOString()}`),
|
488
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp + 31536e3) * 1e3)).toISOString()}`),
|
489
489
|
timeWindow: false
|
490
490
|
});
|
491
491
|
assertEquals(timeDisabledResult, rsaPublicKey2, "Should verify signature when time checking is disabled");
|
@@ -522,7 +522,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
522
522
|
contextLoader: mockDocumentLoader,
|
523
523
|
documentLoader: mockDocumentLoader,
|
524
524
|
spec: "rfc9421",
|
525
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
525
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
526
526
|
});
|
527
527
|
assertEquals(tamperDigestResult, null, "Should fail verification with invalid Content-Digest");
|
528
528
|
const testRequest = new Request("https://example.com/", { headers: new Headers({
|
@@ -590,7 +590,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
590
590
|
contextLoader: mockDocumentLoader,
|
591
591
|
documentLoader: mockDocumentLoader,
|
592
592
|
spec: "rfc9421",
|
593
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
593
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
594
594
|
});
|
595
595
|
assertEquals(mixedResult, rsaPublicKey2, "Should verify when at least one signature is valid");
|
596
596
|
});
|