@fedify/relay 2.4.0-dev.2035 → 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.
@@ -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-BmVcWAnW.js";
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";
@@ -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-BmVcWAnW.js";
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";
@@ -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.2035+d1f8f8e2";
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: "application/activity+json, application/ld+json",
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.2035+d1f8f8e2",
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/fedify": "^2.4.0-dev.2035+d1f8f8e2",
51
- "@fedify/vocab": "2.4.0-dev.2035+d1f8f8e2"
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.2035+d1f8f8e2"
57
+ "@fedify/vocab-runtime": "^2.4.0-dev.2047+140b94db"
58
58
  },
59
59
  "scripts": {
60
60
  "build:self": "tsdown",