@fedify/relay 2.2.0-pr.695.16 → 2.2.0-pr.695.23
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/litepub.test.js +1 -2
- package/dist/mastodon.test.js +1 -2
- package/dist/mod.d.cts +118 -2
- package/dist/mod.d.ts +118 -2
- package/dist/types-CepXNn7F.js +26349 -0
- package/package.json +4 -4
- package/dist/types-BcFcxptW.js +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.2.0-pr.695.
|
|
3
|
+
"version": "2.2.0-pr.695.23+d0b31ca2",
|
|
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.5",
|
|
53
|
-
"@fedify/fedify": "^2.2.0-pr.695.
|
|
54
|
-
"@fedify/vocab": "2.2.0-pr.695.
|
|
53
|
+
"@fedify/fedify": "^2.2.0-pr.695.23+d0b31ca2",
|
|
54
|
+
"@fedify/vocab": "2.2.0-pr.695.23+d0b31ca2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"tsdown": "^0.21.6",
|
|
58
58
|
"typescript": "^5.9.2",
|
|
59
59
|
"urlpattern-polyfill": "^10.1.0",
|
|
60
|
-
"@fedify/vocab-runtime": "^2.2.0-pr.695.
|
|
60
|
+
"@fedify/vocab-runtime": "^2.2.0-pr.695.23+d0b31ca2"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build:self": "tsdown",
|
package/dist/types-BcFcxptW.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "@js-temporal/polyfill";
|
|
2
|
-
import "urlpattern-polyfill";
|
|
3
|
-
globalThis.addEventListener = () => {};
|
|
4
|
-
//#region src/types.ts
|
|
5
|
-
/**
|
|
6
|
-
* Type predicate to check if a value is valid RelayFollowerData from KV store.
|
|
7
|
-
* Validates the storage format (JSON-LD), not the deserialized Actor instance.
|
|
8
|
-
*
|
|
9
|
-
* @param value The value to check
|
|
10
|
-
* @returns true if the value is a RelayFollowerData
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
function isRelayFollowerData(value) {
|
|
14
|
-
if (!value || typeof value !== "object") return false;
|
|
15
|
-
const obj = value;
|
|
16
|
-
return "actor" in obj && "state" in obj && typeof obj.state === "string" && (obj.state === "pending" || obj.state === "accepted");
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { isRelayFollowerData as t };
|