@fedify/relay 2.5.0-dev.2370 → 2.5.0-dev.2420
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-Fx4KHxxH.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-Fx4KHxxH.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";
|
|
@@ -26124,7 +26124,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26124
26124
|
require_build();
|
|
26125
26125
|
var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
26126
26126
|
var name = "@fedify/vocab-runtime";
|
|
26127
|
-
var version = "2.5.0-dev.
|
|
26127
|
+
var version = "2.5.0-dev.2420+4db1db92";
|
|
26128
26128
|
/**
|
|
26129
26129
|
* Error thrown when fetching a JSON-LD document failed.
|
|
26130
26130
|
*/
|
|
@@ -26788,7 +26788,9 @@ function getDocumentLoader({ allowPrivateAddress, maxRedirection, skipPreloadedC
|
|
|
26788
26788
|
const maximumRedirection = maxRedirection ?? DEFAULT_MAX_REDIRECTION;
|
|
26789
26789
|
async function load(url, options, redirected = 0, visited = /* @__PURE__ */ new Set()) {
|
|
26790
26790
|
options?.signal?.throwIfAborted();
|
|
26791
|
-
const
|
|
26791
|
+
const parsedUrl = new URL(url);
|
|
26792
|
+
if (parsedUrl.protocol !== "http:" && parsedUrl.protocol !== "https:") throw new UrlError(`Unsupported protocol: ${parsedUrl.protocol}`);
|
|
26793
|
+
const currentUrl = parsedUrl.href;
|
|
26792
26794
|
if (!skipPreloadedContexts && currentUrl in preloadedContexts) {
|
|
26793
26795
|
logger.debug("Using preloaded context: {url}.", { url: currentUrl });
|
|
26794
26796
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2420+4db1db92",
|
|
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.5.0-dev.
|
|
51
|
-
"@fedify/vocab": "2.5.0-dev.
|
|
50
|
+
"@fedify/fedify": "^2.5.0-dev.2420+4db1db92",
|
|
51
|
+
"@fedify/vocab": "2.5.0-dev.2420+4db1db92"
|
|
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.5.0-dev.
|
|
57
|
+
"@fedify/vocab-runtime": "^2.5.0-dev.2420+4db1db92"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build:self": "tsdown",
|