@fedify/relay 2.1.1 → 2.2.0-dev.610
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
|
@@ -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-BtK4yx3p.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-BtK4yx3p.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";
|
|
@@ -25677,7 +25677,7 @@ const preloadedContexts = {
|
|
|
25677
25677
|
};
|
|
25678
25678
|
var contexts_default = preloadedContexts;
|
|
25679
25679
|
var name = "@fedify/vocab-runtime";
|
|
25680
|
-
var version = "2.
|
|
25680
|
+
var version = "2.2.0-dev.610+2d418352";
|
|
25681
25681
|
var license = "MIT";
|
|
25682
25682
|
var exports$1 = {
|
|
25683
25683
|
".": "./src/mod.ts",
|
|
@@ -26140,9 +26140,10 @@ async function getRemoteDocument(url, response, fetch$1) {
|
|
|
26140
26140
|
* @returns The document loader.
|
|
26141
26141
|
* @since 1.3.0
|
|
26142
26142
|
*/
|
|
26143
|
-
function getDocumentLoader({ allowPrivateAddress, skipPreloadedContexts, userAgent } = {}) {
|
|
26143
|
+
function getDocumentLoader({ allowPrivateAddress, maxRedirection, skipPreloadedContexts, userAgent } = {}) {
|
|
26144
26144
|
const tracerProvider = trace.getTracerProvider();
|
|
26145
26145
|
const tracer = tracerProvider.getTracer(deno_default.name, deno_default.version);
|
|
26146
|
+
const maximumRedirection = maxRedirection ?? DEFAULT_MAX_REDIRECTION;
|
|
26146
26147
|
async function load(url, options, redirected = 0, visited = /* @__PURE__ */ new Set()) {
|
|
26147
26148
|
options?.signal?.throwIfAborted();
|
|
26148
26149
|
const currentUrl = new URL(url).href;
|
|
@@ -26177,7 +26178,7 @@ function getDocumentLoader({ allowPrivateAddress, skipPreloadedContexts, userAge
|
|
|
26177
26178
|
});
|
|
26178
26179
|
span.setAttribute("http.response.status_code", response.status);
|
|
26179
26180
|
if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
|
|
26180
|
-
if (redirected >=
|
|
26181
|
+
if (redirected >= maximumRedirection) {
|
|
26181
26182
|
logger.error("Too many redirections ({redirections}) while fetching document.", {
|
|
26182
26183
|
redirections: redirected + 1,
|
|
26183
26184
|
url: currentUrl
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-dev.610+2d418352",
|
|
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.
|
|
54
|
-
"@fedify/vocab": "2.
|
|
53
|
+
"@fedify/fedify": "^2.2.0-dev.610+2d418352",
|
|
54
|
+
"@fedify/vocab": "2.2.0-dev.610+2d418352"
|
|
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.
|
|
60
|
+
"@fedify/vocab-runtime": "^2.2.0-dev.610+2d418352"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build:self": "tsdown",
|