@fedify/relay 2.5.0-dev.2687 → 2.5.0-dev.2726
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/package.json +20 -7
- package/dist/factory.test.d.ts +0 -2
- package/dist/factory.test.js +0 -21
- package/dist/litepub.test.d.ts +0 -2
- package/dist/litepub.test.js +0 -891
- package/dist/mastodon.test.d.ts +0 -2
- package/dist/mastodon.test.js +0 -710
- package/dist/rolldown-runtime-BoYiifaO.js +0 -29
- package/dist/types-Bg90GFuF.js +0 -27762
- package/dist/undici-7BbNHW-y.js +0 -22899
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2726+da549263",
|
|
4
4
|
"description": "ActivityPub relay support for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -42,27 +42,40 @@
|
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist/",
|
|
45
|
-
"package.json"
|
|
45
|
+
"package.json",
|
|
46
|
+
"!dist/**/*.test.{js,cjs,mjs,ts,cts,mts}",
|
|
47
|
+
"!dist/**/*.test.d.{ts,cts,mts}",
|
|
48
|
+
"!dist/**/*.test.*.map",
|
|
49
|
+
"!dist/**/*.bench.{js,cjs,mjs,ts,cts,mts}",
|
|
50
|
+
"!dist/**/*.bench.d.{ts,cts,mts}",
|
|
51
|
+
"!dist/**/*.bench.*.map",
|
|
52
|
+
"!dist/**/*.snap",
|
|
53
|
+
"!dist/**/__snapshots__/**",
|
|
54
|
+
"!dist/**/__fixtures__/**",
|
|
55
|
+
"!dist/**/test/**",
|
|
56
|
+
"!dist/**/tests/**",
|
|
57
|
+
"!dist/**/testdata/**",
|
|
58
|
+
"!dist/**/fixtures/**"
|
|
46
59
|
],
|
|
47
60
|
"dependencies": {
|
|
48
61
|
"@logtape/logtape": "2.4.2",
|
|
49
62
|
"temporal-polyfill": "^1.0.1",
|
|
50
|
-
"@fedify/
|
|
51
|
-
"@fedify/
|
|
63
|
+
"@fedify/fedify": "^2.5.0-dev.2726+da549263",
|
|
64
|
+
"@fedify/vocab": "2.5.0-dev.2726+da549263"
|
|
52
65
|
},
|
|
53
66
|
"devDependencies": {
|
|
54
67
|
"tsdown": "^0.22.0",
|
|
55
68
|
"typescript": "^6.0.3",
|
|
56
69
|
"urlpattern-polyfill": "^10.1.0",
|
|
57
|
-
"@fedify/vocab-runtime": "^2.5.0-dev.
|
|
70
|
+
"@fedify/vocab-runtime": "^2.5.0-dev.2726+da549263"
|
|
58
71
|
},
|
|
59
72
|
"scripts": {
|
|
60
73
|
"build:self": "tsdown",
|
|
61
74
|
"build": "pnpm --filter @fedify/relay... run build:self",
|
|
62
75
|
"prepublish": "pnpm build",
|
|
63
76
|
"pretest": "pnpm build",
|
|
64
|
-
"test": "cd dist/ && node --test",
|
|
77
|
+
"test": "cd dist-tests/ && node --test",
|
|
65
78
|
"pretest:bun": "pnpm build",
|
|
66
|
-
"test:bun": "cd dist/ && bun test --timeout 60000"
|
|
79
|
+
"test:bun": "cd dist-tests/ && bun test --timeout 60000"
|
|
67
80
|
}
|
|
68
81
|
}
|
package/dist/factory.test.d.ts
DELETED
package/dist/factory.test.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "temporal-polyfill";
|
|
2
|
-
import "urlpattern-polyfill";
|
|
3
|
-
globalThis.addEventListener = () => {};
|
|
4
|
-
import { MemoryKvStore } from "@fedify/fedify";
|
|
5
|
-
import { createRelay } from "@fedify/relay";
|
|
6
|
-
import { strictEqual } from "node:assert";
|
|
7
|
-
import test, { describe } from "node:test";
|
|
8
|
-
//#region src/factory.test.ts
|
|
9
|
-
describe("createRelay", () => {
|
|
10
|
-
for (const type of ["mastodon", "litepub"]) test(`${type} exposes the canonical relay URIs`, async () => {
|
|
11
|
-
const relay = createRelay(type, {
|
|
12
|
-
kv: new MemoryKvStore(),
|
|
13
|
-
origin: "https://relay.example.com",
|
|
14
|
-
subscriptionHandler: () => Promise.resolve(true)
|
|
15
|
-
});
|
|
16
|
-
strictEqual((await relay.getActorUri()).href, "https://relay.example.com/users/relay");
|
|
17
|
-
strictEqual((await relay.getSharedInboxUri()).href, "https://relay.example.com/inbox");
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export {};
|
package/dist/litepub.test.d.ts
DELETED