@fedify/relay 2.1.0-dev.421 → 2.1.0-dev.513
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/README.md
CHANGED
|
@@ -254,11 +254,12 @@ Any `KvStore` implementation from Fedify can be used, including:
|
|
|
254
254
|
- `DenoKvStore` (Deno KV)
|
|
255
255
|
- `RedisKvStore` (Redis)
|
|
256
256
|
- `PostgresKvStore` (PostgreSQL)
|
|
257
|
+
- `MysqlKvStore` (MySQL/MariaDB)
|
|
257
258
|
- `SqliteKvStore` (SQLite)
|
|
258
259
|
|
|
259
|
-
For production use, choose a persistent storage backend like Redis
|
|
260
|
-
PostgreSQL. See the
|
|
261
|
-
details.
|
|
260
|
+
For production use, choose a persistent storage backend like Redis,
|
|
261
|
+
PostgreSQL, or MySQL/MariaDB. See the
|
|
262
|
+
[Fedify documentation on key–value stores] for more details.
|
|
262
263
|
|
|
263
264
|
[Fedify documentation on key–value stores]: https://fedify.dev/manual/kv
|
|
264
265
|
|
package/dist/litepub.test.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { exportSpki, getDocumentLoader, isRelayFollowerData } from "./types-
|
|
6
|
+
import { exportSpki, getDocumentLoader, isRelayFollowerData } from "./types-39MnAnqY.js";
|
|
7
7
|
import { MemoryKvStore, signRequest } from "@fedify/fedify";
|
|
8
8
|
import { createRelay } from "@fedify/relay";
|
|
9
9
|
import { Accept, Announce, Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
|
package/dist/mastodon.test.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { exportSpki, getDocumentLoader, isRelayFollowerData } from "./types-
|
|
6
|
+
import { exportSpki, getDocumentLoader, isRelayFollowerData } from "./types-39MnAnqY.js";
|
|
7
7
|
import { MemoryKvStore, signRequest } from "@fedify/fedify";
|
|
8
8
|
import { createRelay } from "@fedify/relay";
|
|
9
9
|
import { Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
|
|
@@ -27515,7 +27515,7 @@ const preloadedContexts = {
|
|
|
27515
27515
|
};
|
|
27516
27516
|
var contexts_default = preloadedContexts;
|
|
27517
27517
|
var name = "@fedify/vocab-runtime";
|
|
27518
|
-
var version = "2.1.0-dev.
|
|
27518
|
+
var version = "2.1.0-dev.513+f5543fca";
|
|
27519
27519
|
var license = "MIT";
|
|
27520
27520
|
var exports$1 = { ".": "./src/mod.ts" };
|
|
27521
27521
|
var description = "Runtime library for @fedify/vocab";
|
|
@@ -27738,15 +27738,21 @@ var FetchError = class extends Error {
|
|
|
27738
27738
|
*/
|
|
27739
27739
|
url;
|
|
27740
27740
|
/**
|
|
27741
|
+
* The HTTP response that failed, if available.
|
|
27742
|
+
*/
|
|
27743
|
+
response;
|
|
27744
|
+
/**
|
|
27741
27745
|
* Constructs a new `FetchError`.
|
|
27742
27746
|
*
|
|
27743
27747
|
* @param url The URL that failed to fetch.
|
|
27744
27748
|
* @param message Error message.
|
|
27749
|
+
* @param response The failed HTTP response, if available.
|
|
27745
27750
|
*/
|
|
27746
|
-
constructor(url, message) {
|
|
27751
|
+
constructor(url, message, response) {
|
|
27747
27752
|
super(message == null ? url.toString() : `${url}: ${message}`);
|
|
27748
27753
|
this.name = "FetchError";
|
|
27749
27754
|
this.url = typeof url === "string" ? new URL(url) : url;
|
|
27755
|
+
this.response = response;
|
|
27750
27756
|
}
|
|
27751
27757
|
};
|
|
27752
27758
|
/**
|
|
@@ -27871,7 +27877,7 @@ async function getRemoteDocument(url, response, fetch$1) {
|
|
|
27871
27877
|
url: documentUrl,
|
|
27872
27878
|
headers: Object.fromEntries(response.headers.entries())
|
|
27873
27879
|
});
|
|
27874
|
-
throw new FetchError(documentUrl, `HTTP ${response.status}: ${documentUrl}
|
|
27880
|
+
throw new FetchError(documentUrl, `HTTP ${response.status}: ${documentUrl}`, response.clone());
|
|
27875
27881
|
}
|
|
27876
27882
|
const contentType = response.headers.get("Content-Type");
|
|
27877
27883
|
const jsonLd = contentType == null || contentType === "application/activity+json" || contentType.startsWith("application/activity+json;") || contentType === "application/ld+json" || contentType.startsWith("application/ld+json;");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.1.0-dev.
|
|
3
|
+
"version": "2.1.0-dev.513+f5543fca",
|
|
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.1.0-dev.
|
|
54
|
-
"@fedify/vocab": "2.1.0-dev.
|
|
53
|
+
"@fedify/fedify": "^2.1.0-dev.513+f5543fca",
|
|
54
|
+
"@fedify/vocab": "2.1.0-dev.513+f5543fca"
|
|
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.1.0-dev.
|
|
60
|
+
"@fedify/vocab-runtime": "^2.1.0-dev.513+f5543fca"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build:self": "tsdown",
|