@fedify/relay 2.0.29-dev.2020 → 2.0.29-dev.2053
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 "@js-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-CWFk7GmP.js";
|
|
5
5
|
import { MemoryKvStore, signRequest } from "@fedify/fedify";
|
|
6
6
|
import { createRelay } from "@fedify/relay";
|
|
7
7
|
import { Accept, Announce, Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
|
package/dist/mastodon.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-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-CWFk7GmP.js";
|
|
5
5
|
import { MemoryKvStore, signRequest } from "@fedify/fedify";
|
|
6
6
|
import { createRelay } from "@fedify/relay";
|
|
7
7
|
import { Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
|
|
@@ -21349,6 +21349,28 @@ var cid_v1_default = { "@context": {
|
|
|
21349
21349
|
}
|
|
21350
21350
|
}
|
|
21351
21351
|
} };
|
|
21352
|
+
var fep_7aa9_default = { "@context": {
|
|
21353
|
+
"FeaturedCollection": "https://w3id.org/fep/7aa9#FeaturedCollection",
|
|
21354
|
+
"FeaturedItem": "https://w3id.org/fep/7aa9#FeaturedItem",
|
|
21355
|
+
"FeatureRequest": "https://w3id.org/fep/7aa9#FeatureRequest",
|
|
21356
|
+
"FeatureAuthorization": "https://w3id.org/fep/7aa9#FeatureAuthorization",
|
|
21357
|
+
"topic": {
|
|
21358
|
+
"@id": "https://w3id.org/fep/7aa9#topic",
|
|
21359
|
+
"@type": "@id"
|
|
21360
|
+
},
|
|
21361
|
+
"featuredObject": {
|
|
21362
|
+
"@id": "https://w3id.org/fep/7aa9#featuredObject",
|
|
21363
|
+
"@type": "@id"
|
|
21364
|
+
},
|
|
21365
|
+
"canFeature": {
|
|
21366
|
+
"@id": "https://w3id.org/fep/7aa9#canFeature",
|
|
21367
|
+
"@type": "@id"
|
|
21368
|
+
},
|
|
21369
|
+
"featureAuthorization": {
|
|
21370
|
+
"@id": "https://w3id.org/fep/7aa9#featureAuthorization",
|
|
21371
|
+
"@type": "@id"
|
|
21372
|
+
}
|
|
21373
|
+
} };
|
|
21352
21374
|
var fep_ef61_default = { "@context": {
|
|
21353
21375
|
"gateways": {
|
|
21354
21376
|
"@id": "https://w3id.org/fep/ef61/gateways",
|
|
@@ -25617,6 +25639,7 @@ const preloadedContexts = {
|
|
|
25617
25639
|
} },
|
|
25618
25640
|
"https://www.w3.org/ns/cid/v1": cid_v1_default,
|
|
25619
25641
|
"https://w3id.org/fep/ef61": fep_ef61_default,
|
|
25642
|
+
"https://w3id.org/fep/7aa9": fep_7aa9_default,
|
|
25620
25643
|
"https://join-lemmy.org/context.json": join_lemmy_default,
|
|
25621
25644
|
"http://joinmastodon.org/ns": { "@context": {
|
|
25622
25645
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -25647,7 +25670,7 @@ const preloadedContexts = {
|
|
|
25647
25670
|
"https://purl.archive.org/miscellany": miscellany_default
|
|
25648
25671
|
};
|
|
25649
25672
|
var name = "@fedify/vocab-runtime";
|
|
25650
|
-
var version = "2.0.29-dev.
|
|
25673
|
+
var version = "2.0.29-dev.2053+58b638b4";
|
|
25651
25674
|
/**
|
|
25652
25675
|
* Error thrown when fetching a JSON-LD document failed.
|
|
25653
25676
|
*/
|
|
@@ -26276,6 +26299,7 @@ async function getRemoteDocument(url, response, fetch) {
|
|
|
26276
26299
|
* - <https://www.w3.org/ns/cid/v1>
|
|
26277
26300
|
* - <https://w3id.org/security/multikey/v1>
|
|
26278
26301
|
* - <https://w3id.org/fep/ef61>
|
|
26302
|
+
* - <https://w3id.org/fep/7aa9>
|
|
26279
26303
|
* - <https://purl.archive.org/socialweb/webfinger>
|
|
26280
26304
|
* - <http://schema.org/>
|
|
26281
26305
|
* @param options Options for the document loader.
|
|
@@ -26298,7 +26322,11 @@ function getDocumentLoader({ allowPrivateAddress, skipPreloadedContexts, userAge
|
|
|
26298
26322
|
if (!allowPrivateAddress) try {
|
|
26299
26323
|
await validatePublicUrl(currentUrl);
|
|
26300
26324
|
} catch (error) {
|
|
26301
|
-
if (error instanceof UrlError) logger.
|
|
26325
|
+
if (error instanceof UrlError) if (error.reason === "dns") logger.debug("DNS lookup failed for {url}", {
|
|
26326
|
+
url: currentUrl,
|
|
26327
|
+
error
|
|
26328
|
+
});
|
|
26329
|
+
else logger.error("Disallowed private URL: {url}", {
|
|
26302
26330
|
url: currentUrl,
|
|
26303
26331
|
error
|
|
26304
26332
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.0.29-dev.
|
|
3
|
+
"version": "2.0.29-dev.2053+58b638b4",
|
|
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/vocab": "2.0.29-dev.
|
|
54
|
-
"@fedify/fedify": "^2.0.29-dev.
|
|
53
|
+
"@fedify/vocab": "2.0.29-dev.2053+58b638b4",
|
|
54
|
+
"@fedify/fedify": "^2.0.29-dev.2053+58b638b4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"tsdown": "^0.21.6",
|
|
58
58
|
"typescript": "^6.0.0",
|
|
59
59
|
"urlpattern-polyfill": "^10.1.0",
|
|
60
|
-
"@fedify/vocab-runtime": "^2.0.29-dev.
|
|
60
|
+
"@fedify/vocab-runtime": "^2.0.29-dev.2053+58b638b4"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build:self": "tsdown",
|