@fedify/relay 2.4.0-dev.2030 → 2.4.0-dev.2047
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-
|
|
4
|
+
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-jWJR-4HC.js";
|
|
5
5
|
import { MemoryKvStore, signRequest } from "@fedify/fedify";
|
|
6
6
|
import { createRelay } from "@fedify/relay";
|
|
7
7
|
import { deepStrictEqual, ok, strictEqual } from "node:assert";
|
package/dist/mastodon.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-
|
|
4
|
+
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-jWJR-4HC.js";
|
|
5
5
|
import { MemoryKvStore, signJsonLd, signRequest } from "@fedify/fedify";
|
|
6
6
|
import { createRelay } from "@fedify/relay";
|
|
7
7
|
import { deepStrictEqual, ok, strictEqual } from "node:assert";
|
|
@@ -4536,7 +4536,7 @@ const preloadedContexts = {
|
|
|
4536
4536
|
} }
|
|
4537
4537
|
};
|
|
4538
4538
|
//#endregion
|
|
4539
|
-
//#region ../vocab-runtime/dist/url-
|
|
4539
|
+
//#region ../vocab-runtime/dist/url-CEhi4hb4.js
|
|
4540
4540
|
var UrlError = class extends Error {
|
|
4541
4541
|
constructor(message, options) {
|
|
4542
4542
|
super(message, options);
|
|
@@ -26104,7 +26104,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26104
26104
|
require_build();
|
|
26105
26105
|
var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
26106
26106
|
var name = "@fedify/vocab-runtime";
|
|
26107
|
-
var version = "2.4.0-dev.
|
|
26107
|
+
var version = "2.4.0-dev.2047+140b94db";
|
|
26108
26108
|
/**
|
|
26109
26109
|
* Error thrown when fetching a JSON-LD document failed.
|
|
26110
26110
|
*/
|
|
@@ -26132,6 +26132,12 @@ var FetchError = class extends Error {
|
|
|
26132
26132
|
}
|
|
26133
26133
|
};
|
|
26134
26134
|
/**
|
|
26135
|
+
* The `Accept` header value for fetching ActivityPub objects. ActivityPub
|
|
26136
|
+
* and FEP-ef61 gateways require the ActivityStreams profile on the JSON-LD
|
|
26137
|
+
* media type.
|
|
26138
|
+
*/
|
|
26139
|
+
const ACTIVITYPUB_ACCEPT = "application/activity+json, application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"";
|
|
26140
|
+
/**
|
|
26135
26141
|
* Creates a request for the given URL.
|
|
26136
26142
|
* @param url The URL to create the request for.
|
|
26137
26143
|
* @param options The options for the request.
|
|
@@ -26141,7 +26147,7 @@ var FetchError = class extends Error {
|
|
|
26141
26147
|
function createActivityPubRequest(url, options = {}) {
|
|
26142
26148
|
return new Request(url, {
|
|
26143
26149
|
headers: {
|
|
26144
|
-
Accept:
|
|
26150
|
+
Accept: ACTIVITYPUB_ACCEPT,
|
|
26145
26151
|
"User-Agent": typeof options.userAgent === "string" ? options.userAgent : getUserAgent(options.userAgent)
|
|
26146
26152
|
},
|
|
26147
26153
|
redirect: "manual"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.4.0-dev.
|
|
3
|
+
"version": "2.4.0-dev.2047+140b94db",
|
|
4
4
|
"description": "ActivityPub relay support for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@logtape/logtape": "^2.2.0",
|
|
49
49
|
"temporal-polyfill": "^1.0.1",
|
|
50
|
-
"@fedify/
|
|
51
|
-
"@fedify/
|
|
50
|
+
"@fedify/fedify": "^2.4.0-dev.2047+140b94db",
|
|
51
|
+
"@fedify/vocab": "2.4.0-dev.2047+140b94db"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"tsdown": "^0.22.0",
|
|
55
55
|
"typescript": "^6.0.0",
|
|
56
56
|
"urlpattern-polyfill": "^10.1.0",
|
|
57
|
-
"@fedify/vocab-runtime": "^2.4.0-dev.
|
|
57
|
+
"@fedify/vocab-runtime": "^2.4.0-dev.2047+140b94db"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build:self": "tsdown",
|