@fedify/testing 2.0.0-dev.1514 → 2.0.0-dev.1561
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/mod.d.ts +3 -1
- package/dist/mod.js +4 -0
- package/package.json +2 -2
package/dist/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TracerProvider } from "@opentelemetry/api";
|
|
2
|
-
import { ActorCallbackSetters, ActorDispatcher, ActorKeyPair, CollectionCallbackSetters, CollectionDispatcher, Context, Federation, FederationFetchOptions, FederationStartQueueOptions, InboxContext, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectCallbackSetters, ObjectDispatcher, ParseUriResult, RequestContext, RouteActivityOptions, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair } from "@fedify/fedify/federation";
|
|
2
|
+
import { ActorCallbackSetters, ActorDispatcher, ActorKeyPair, CollectionCallbackSetters, CollectionDispatcher, Context, Federation, FederationFetchOptions, FederationStartQueueOptions, InboxContext, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectCallbackSetters, ObjectDispatcher, ParseUriResult, RequestContext, RouteActivityOptions, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, WebFingerLinksDispatcher } from "@fedify/fedify/federation";
|
|
3
3
|
import { Activity, Actor, Collection, Hashtag, LookupObjectOptions, Object as Object$1, Recipient, TraverseCollectionOptions } from "@fedify/fedify/vocab";
|
|
4
4
|
import { ResourceDescriptor } from "@fedify/fedify/webfinger";
|
|
5
5
|
import { JsonValue, NodeInfo } from "@fedify/fedify/nodeinfo";
|
|
@@ -61,6 +61,7 @@ declare class MockFederation<TContextData> implements Federation<TContextData> {
|
|
|
61
61
|
private activeQueues;
|
|
62
62
|
sentCounter: number;
|
|
63
63
|
private nodeInfoDispatcher?;
|
|
64
|
+
private webFingerDispatcher?;
|
|
64
65
|
private actorDispatchers;
|
|
65
66
|
actorPath?: string;
|
|
66
67
|
inboxPath?: string;
|
|
@@ -90,6 +91,7 @@ declare class MockFederation<TContextData> implements Federation<TContextData> {
|
|
|
90
91
|
tracerProvider?: TracerProvider;
|
|
91
92
|
});
|
|
92
93
|
setNodeInfoDispatcher(path: string, dispatcher: NodeInfoDispatcher<TContextData>): void;
|
|
94
|
+
setWebFingerLinksDispatcher(dispatcher: WebFingerLinksDispatcher<TContextData>): void;
|
|
93
95
|
setActorDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
|
|
94
96
|
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
|
|
95
97
|
typeId: URL;
|
package/dist/mod.js
CHANGED
|
@@ -160,6 +160,7 @@ var MockFederation = class {
|
|
|
160
160
|
activeQueues = /* @__PURE__ */ new Set();
|
|
161
161
|
sentCounter = 0;
|
|
162
162
|
nodeInfoDispatcher;
|
|
163
|
+
webFingerDispatcher;
|
|
163
164
|
actorDispatchers = /* @__PURE__ */ new Map();
|
|
164
165
|
actorPath;
|
|
165
166
|
inboxPath;
|
|
@@ -191,6 +192,9 @@ var MockFederation = class {
|
|
|
191
192
|
this.nodeInfoDispatcher = dispatcher;
|
|
192
193
|
this.nodeInfoPath = path;
|
|
193
194
|
}
|
|
195
|
+
setWebFingerLinksDispatcher(dispatcher) {
|
|
196
|
+
this.webFingerDispatcher = dispatcher;
|
|
197
|
+
}
|
|
194
198
|
setActorDispatcher(path, dispatcher) {
|
|
195
199
|
this.actorDispatchers.set(path, dispatcher);
|
|
196
200
|
this.actorPath = path;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/testing",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.1561+4bb27050",
|
|
4
4
|
"description": "Testing utilities for Fedify applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"package.json"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@fedify/fedify": "2.0.0-dev.
|
|
48
|
+
"@fedify/fedify": "2.0.0-dev.1561+4bb27050"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@opentelemetry/api": "^1.9.0"
|