@fedify/relay 2.0.0-dev.323 → 2.0.0-dev.372

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.0.0-dev.323+1d796545",
3
+ "version": "2.0.0-dev.372+33936bb9",
4
4
  "description": "ActivityPub relay support for Fedify",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -50,14 +50,14 @@
50
50
  "dependencies": {
51
51
  "@js-temporal/polyfill": "^0.5.1",
52
52
  "@logtape/logtape": "^2.0.0",
53
- "@fedify/fedify": "^2.0.0-dev.323+1d796545",
54
- "@fedify/vocab": "2.0.0-dev.323+1d796545"
53
+ "@fedify/fedify": "^2.0.0-dev.372+33936bb9",
54
+ "@fedify/vocab": "2.0.0-dev.372+33936bb9"
55
55
  },
56
56
  "devDependencies": {
57
57
  "tsdown": "^0.12.9",
58
58
  "typescript": "^5.9.3",
59
59
  "urlpattern-polyfill": "^10.1.0",
60
- "@fedify/vocab-runtime": "^2.0.0-dev.323+1d796545"
60
+ "@fedify/vocab-runtime": "^2.0.0-dev.372+33936bb9"
61
61
  },
62
62
  "scripts": {
63
63
  "build:self": "tsdown",
@@ -1,22 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- //#region src/types.ts
7
- /**
8
- * Type predicate to check if a value is valid RelayFollowerData from KV store.
9
- * Validates the storage format (JSON-LD), not the deserialized Actor instance.
10
- *
11
- * @param value The value to check
12
- * @returns true if the value is a RelayFollowerData
13
- * @internal
14
- */
15
- function isRelayFollowerData(value) {
16
- if (!value || typeof value !== "object") return false;
17
- const obj = value;
18
- return "actor" in obj && "state" in obj && typeof obj.state === "string" && (obj.state === "pending" || obj.state === "accepted");
19
- }
20
-
21
- //#endregion
22
- export { isRelayFollowerData };