@fedify/testing 1.9.0-dev.1415 → 1.9.0-dev.1425
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 +20 -2
- package/dist/mod.js +1 -1
- 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, 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 } 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";
|
|
@@ -274,4 +274,22 @@ declare class MockContext<TContextData> implements Context<TContextData> {
|
|
|
274
274
|
reset(): void;
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
|
-
|
|
277
|
+
//#region src/context.d.ts
|
|
278
|
+
declare function createContext<TContextData>(values: Partial<Context<TContextData>> & {
|
|
279
|
+
url?: URL;
|
|
280
|
+
data: TContextData;
|
|
281
|
+
federation: Federation<TContextData>;
|
|
282
|
+
}): Context<TContextData>;
|
|
283
|
+
declare function createRequestContext<TContextData>(args: Partial<RequestContext<TContextData>> & {
|
|
284
|
+
url: URL;
|
|
285
|
+
data: TContextData;
|
|
286
|
+
federation: Federation<TContextData>;
|
|
287
|
+
}): RequestContext<TContextData>;
|
|
288
|
+
declare function createInboxContext<TContextData>(args: Partial<InboxContext<TContextData>> & {
|
|
289
|
+
url?: URL;
|
|
290
|
+
data: TContextData;
|
|
291
|
+
recipient?: string | null;
|
|
292
|
+
federation: Federation<TContextData>;
|
|
293
|
+
}): InboxContext<TContextData>;
|
|
294
|
+
//#endregion
|
|
295
|
+
export { MockContext, MockFederation, SentActivity, createContext, createInboxContext, createRequestContext };
|
package/dist/mod.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/testing",
|
|
3
|
-
"version": "1.9.0-dev.
|
|
3
|
+
"version": "1.9.0-dev.1425+2ae57cf6",
|
|
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": "1.9.0-dev.
|
|
48
|
+
"@fedify/fedify": "1.9.0-dev.1425+2ae57cf6"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@opentelemetry/api": "^1.9.0"
|