@fedify/relay 2.5.0-dev.2687 → 2.5.0-dev.2710

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/relay",
3
- "version": "2.5.0-dev.2687+924da5ce",
3
+ "version": "2.5.0-dev.2710+c394b8f2",
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/vocab": "2.5.0-dev.2687+924da5ce",
51
- "@fedify/fedify": "^2.5.0-dev.2687+924da5ce"
63
+ "@fedify/fedify": "^2.5.0-dev.2710+c394b8f2",
64
+ "@fedify/vocab": "2.5.0-dev.2710+c394b8f2"
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.2687+924da5ce"
70
+ "@fedify/vocab-runtime": "^2.5.0-dev.2710+c394b8f2"
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
  }
@@ -1,2 +0,0 @@
1
- import { Temporal } from "temporal-polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
@@ -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 {};
@@ -1,2 +0,0 @@
1
- import { Temporal } from "temporal-polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";