@fedify/vocab-runtime 2.2.0-dev.881 → 2.2.0-dev.885
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/deno.json +1 -1
- package/dist/mod.cjs +32 -1
- package/dist/mod.js +32 -1
- package/dist/tests/decimal.test.cjs +1 -1
- package/dist/tests/decimal.test.mjs +1 -1
- package/dist/tests/{docloader-COYnApvC.mjs → docloader-BY3H4OQM.mjs} +32 -1
- package/dist/tests/{docloader-B-MAWGGv.cjs → docloader-BehiA2lF.cjs} +32 -1
- package/dist/tests/docloader.test.cjs +2 -2
- package/dist/tests/docloader.test.mjs +2 -2
- package/dist/tests/{request-IuMiY8w3.cjs → request-B38OMNrl.cjs} +1 -1
- package/dist/tests/{request-fd61EB0x.mjs → request-CPUx8H9z.mjs} +1 -1
- package/dist/tests/request.test.cjs +1 -1
- package/dist/tests/request.test.mjs +1 -1
- package/package.json +1 -1
- package/src/contexts/join-lemmy.json +33 -0
- package/src/contexts.ts +10 -1
package/deno.json
CHANGED
package/dist/mod.cjs
CHANGED
|
@@ -723,6 +723,36 @@ var identity_v1_default = { "@context": {
|
|
|
723
723
|
}
|
|
724
724
|
} };
|
|
725
725
|
//#endregion
|
|
726
|
+
//#region src/contexts/join-lemmy.json
|
|
727
|
+
var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
728
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
729
|
+
"lemmy": "https://join-lemmy.org/ns#",
|
|
730
|
+
"litepub": "http://litepub.social/ns#",
|
|
731
|
+
"pt": "https://joinpeertube.org/ns#",
|
|
732
|
+
"sc": "http://schema.org/",
|
|
733
|
+
"mastodon": "http://joinmastodon.org/ns#",
|
|
734
|
+
"ChatMessage": "litepub:ChatMessage",
|
|
735
|
+
"commentsEnabled": "pt:commentsEnabled",
|
|
736
|
+
"sensitive": "as:sensitive",
|
|
737
|
+
"matrixUserId": "lemmy:matrixUserId",
|
|
738
|
+
"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
|
|
739
|
+
"removeData": "lemmy:removeData",
|
|
740
|
+
"stickied": "lemmy:stickied",
|
|
741
|
+
"moderators": {
|
|
742
|
+
"@type": "@id",
|
|
743
|
+
"@id": "lemmy:moderators"
|
|
744
|
+
},
|
|
745
|
+
"expires": "as:endTime",
|
|
746
|
+
"distinguished": "lemmy:distinguished",
|
|
747
|
+
"language": "sc:inLanguage",
|
|
748
|
+
"identifier": "sc:identifier",
|
|
749
|
+
"Hashtag": "as:Hashtag",
|
|
750
|
+
"featured": {
|
|
751
|
+
"@type": "@id",
|
|
752
|
+
"@id": "mastodon:featured"
|
|
753
|
+
}
|
|
754
|
+
}] };
|
|
755
|
+
//#endregion
|
|
726
756
|
//#region src/contexts/joinmastodon.json
|
|
727
757
|
var joinmastodon_default = { "@context": {
|
|
728
758
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -4347,12 +4377,13 @@ const preloadedContexts = {
|
|
|
4347
4377
|
"http://schema.org/": schemaorg_default,
|
|
4348
4378
|
"https://gotosocial.org/ns": gotosocial_default,
|
|
4349
4379
|
"https://w3id.org/fep/5711": fep_5711_default,
|
|
4380
|
+
"https://join-lemmy.org/context.json": join_lemmy_default,
|
|
4350
4381
|
"http://joinmastodon.org/ns": joinmastodon_default
|
|
4351
4382
|
};
|
|
4352
4383
|
//#endregion
|
|
4353
4384
|
//#region deno.json
|
|
4354
4385
|
var name = "@fedify/vocab-runtime";
|
|
4355
|
-
var version = "2.2.0-dev.
|
|
4386
|
+
var version = "2.2.0-dev.885+cf6bb048";
|
|
4356
4387
|
//#endregion
|
|
4357
4388
|
//#region src/link.ts
|
|
4358
4389
|
const parametersNeedLowerCase = ["rel", "type"];
|
package/dist/mod.js
CHANGED
|
@@ -719,6 +719,36 @@ var identity_v1_default = { "@context": {
|
|
|
719
719
|
}
|
|
720
720
|
} };
|
|
721
721
|
//#endregion
|
|
722
|
+
//#region src/contexts/join-lemmy.json
|
|
723
|
+
var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
724
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
725
|
+
"lemmy": "https://join-lemmy.org/ns#",
|
|
726
|
+
"litepub": "http://litepub.social/ns#",
|
|
727
|
+
"pt": "https://joinpeertube.org/ns#",
|
|
728
|
+
"sc": "http://schema.org/",
|
|
729
|
+
"mastodon": "http://joinmastodon.org/ns#",
|
|
730
|
+
"ChatMessage": "litepub:ChatMessage",
|
|
731
|
+
"commentsEnabled": "pt:commentsEnabled",
|
|
732
|
+
"sensitive": "as:sensitive",
|
|
733
|
+
"matrixUserId": "lemmy:matrixUserId",
|
|
734
|
+
"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
|
|
735
|
+
"removeData": "lemmy:removeData",
|
|
736
|
+
"stickied": "lemmy:stickied",
|
|
737
|
+
"moderators": {
|
|
738
|
+
"@type": "@id",
|
|
739
|
+
"@id": "lemmy:moderators"
|
|
740
|
+
},
|
|
741
|
+
"expires": "as:endTime",
|
|
742
|
+
"distinguished": "lemmy:distinguished",
|
|
743
|
+
"language": "sc:inLanguage",
|
|
744
|
+
"identifier": "sc:identifier",
|
|
745
|
+
"Hashtag": "as:Hashtag",
|
|
746
|
+
"featured": {
|
|
747
|
+
"@type": "@id",
|
|
748
|
+
"@id": "mastodon:featured"
|
|
749
|
+
}
|
|
750
|
+
}] };
|
|
751
|
+
//#endregion
|
|
722
752
|
//#region src/contexts/joinmastodon.json
|
|
723
753
|
var joinmastodon_default = { "@context": {
|
|
724
754
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -4343,12 +4373,13 @@ const preloadedContexts = {
|
|
|
4343
4373
|
"http://schema.org/": schemaorg_default,
|
|
4344
4374
|
"https://gotosocial.org/ns": gotosocial_default,
|
|
4345
4375
|
"https://w3id.org/fep/5711": fep_5711_default,
|
|
4376
|
+
"https://join-lemmy.org/context.json": join_lemmy_default,
|
|
4346
4377
|
"http://joinmastodon.org/ns": joinmastodon_default
|
|
4347
4378
|
};
|
|
4348
4379
|
//#endregion
|
|
4349
4380
|
//#region deno.json
|
|
4350
4381
|
var name = "@fedify/vocab-runtime";
|
|
4351
|
-
var version = "2.2.0-dev.
|
|
4382
|
+
var version = "2.2.0-dev.885+cf6bb048";
|
|
4352
4383
|
//#endregion
|
|
4353
4384
|
//#region src/link.ts
|
|
4354
4385
|
const parametersNeedLowerCase = ["rel", "type"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-
|
|
1
|
+
import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-CPUx8H9z.mjs";
|
|
2
2
|
import { t as HttpHeaderLink } from "./link-NUUWCdnK.mjs";
|
|
3
3
|
import { a as validatePublicUrl, t as UrlError } from "./url-BQ_kgmCk.mjs";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
@@ -713,6 +713,36 @@ var identity_v1_default = { "@context": {
|
|
|
713
713
|
}
|
|
714
714
|
} };
|
|
715
715
|
//#endregion
|
|
716
|
+
//#region src/contexts/join-lemmy.json
|
|
717
|
+
var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
718
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
719
|
+
"lemmy": "https://join-lemmy.org/ns#",
|
|
720
|
+
"litepub": "http://litepub.social/ns#",
|
|
721
|
+
"pt": "https://joinpeertube.org/ns#",
|
|
722
|
+
"sc": "http://schema.org/",
|
|
723
|
+
"mastodon": "http://joinmastodon.org/ns#",
|
|
724
|
+
"ChatMessage": "litepub:ChatMessage",
|
|
725
|
+
"commentsEnabled": "pt:commentsEnabled",
|
|
726
|
+
"sensitive": "as:sensitive",
|
|
727
|
+
"matrixUserId": "lemmy:matrixUserId",
|
|
728
|
+
"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
|
|
729
|
+
"removeData": "lemmy:removeData",
|
|
730
|
+
"stickied": "lemmy:stickied",
|
|
731
|
+
"moderators": {
|
|
732
|
+
"@type": "@id",
|
|
733
|
+
"@id": "lemmy:moderators"
|
|
734
|
+
},
|
|
735
|
+
"expires": "as:endTime",
|
|
736
|
+
"distinguished": "lemmy:distinguished",
|
|
737
|
+
"language": "sc:inLanguage",
|
|
738
|
+
"identifier": "sc:identifier",
|
|
739
|
+
"Hashtag": "as:Hashtag",
|
|
740
|
+
"featured": {
|
|
741
|
+
"@type": "@id",
|
|
742
|
+
"@id": "mastodon:featured"
|
|
743
|
+
}
|
|
744
|
+
}] };
|
|
745
|
+
//#endregion
|
|
716
746
|
//#region src/contexts/joinmastodon.json
|
|
717
747
|
var joinmastodon_default = { "@context": {
|
|
718
748
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -4337,6 +4367,7 @@ const preloadedContexts = {
|
|
|
4337
4367
|
"http://schema.org/": schemaorg_default,
|
|
4338
4368
|
"https://gotosocial.org/ns": gotosocial_default,
|
|
4339
4369
|
"https://w3id.org/fep/5711": fep_5711_default,
|
|
4370
|
+
"https://join-lemmy.org/context.json": join_lemmy_default,
|
|
4340
4371
|
"http://joinmastodon.org/ns": joinmastodon_default
|
|
4341
4372
|
};
|
|
4342
4373
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Do9eywBl.cjs");
|
|
2
|
-
const require_request = require("./request-
|
|
2
|
+
const require_request = require("./request-B38OMNrl.cjs");
|
|
3
3
|
const require_link = require("./link-FguCydMA.cjs");
|
|
4
4
|
const require_url = require("./url-pFuSds44.cjs");
|
|
5
5
|
let _logtape_logtape = require("@logtape/logtape");
|
|
@@ -714,6 +714,36 @@ var identity_v1_default = { "@context": {
|
|
|
714
714
|
}
|
|
715
715
|
} };
|
|
716
716
|
//#endregion
|
|
717
|
+
//#region src/contexts/join-lemmy.json
|
|
718
|
+
var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
719
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
720
|
+
"lemmy": "https://join-lemmy.org/ns#",
|
|
721
|
+
"litepub": "http://litepub.social/ns#",
|
|
722
|
+
"pt": "https://joinpeertube.org/ns#",
|
|
723
|
+
"sc": "http://schema.org/",
|
|
724
|
+
"mastodon": "http://joinmastodon.org/ns#",
|
|
725
|
+
"ChatMessage": "litepub:ChatMessage",
|
|
726
|
+
"commentsEnabled": "pt:commentsEnabled",
|
|
727
|
+
"sensitive": "as:sensitive",
|
|
728
|
+
"matrixUserId": "lemmy:matrixUserId",
|
|
729
|
+
"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
|
|
730
|
+
"removeData": "lemmy:removeData",
|
|
731
|
+
"stickied": "lemmy:stickied",
|
|
732
|
+
"moderators": {
|
|
733
|
+
"@type": "@id",
|
|
734
|
+
"@id": "lemmy:moderators"
|
|
735
|
+
},
|
|
736
|
+
"expires": "as:endTime",
|
|
737
|
+
"distinguished": "lemmy:distinguished",
|
|
738
|
+
"language": "sc:inLanguage",
|
|
739
|
+
"identifier": "sc:identifier",
|
|
740
|
+
"Hashtag": "as:Hashtag",
|
|
741
|
+
"featured": {
|
|
742
|
+
"@type": "@id",
|
|
743
|
+
"@id": "mastodon:featured"
|
|
744
|
+
}
|
|
745
|
+
}] };
|
|
746
|
+
//#endregion
|
|
717
747
|
//#region src/contexts/joinmastodon.json
|
|
718
748
|
var joinmastodon_default = { "@context": {
|
|
719
749
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -4338,6 +4368,7 @@ const preloadedContexts = {
|
|
|
4338
4368
|
"http://schema.org/": schemaorg_default,
|
|
4339
4369
|
"https://gotosocial.org/ns": gotosocial_default,
|
|
4340
4370
|
"https://w3id.org/fep/5711": fep_5711_default,
|
|
4371
|
+
"https://join-lemmy.org/context.json": join_lemmy_default,
|
|
4341
4372
|
"http://joinmastodon.org/ns": joinmastodon_default
|
|
4342
4373
|
};
|
|
4343
4374
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Do9eywBl.cjs");
|
|
2
|
-
const require_docloader = require("./docloader-
|
|
3
|
-
const require_request = require("./request-
|
|
2
|
+
const require_docloader = require("./docloader-BehiA2lF.cjs");
|
|
3
|
+
const require_request = require("./request-B38OMNrl.cjs");
|
|
4
4
|
const require_url = require("./url-pFuSds44.cjs");
|
|
5
5
|
let node_assert = require("node:assert");
|
|
6
6
|
let node_test = require("node:test");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as preloadedContexts, t as getDocumentLoader } from "./docloader-
|
|
2
|
-
import { t as FetchError } from "./request-
|
|
1
|
+
import { n as preloadedContexts, t as getDocumentLoader } from "./docloader-BY3H4OQM.mjs";
|
|
2
|
+
import { t as FetchError } from "./request-CPUx8H9z.mjs";
|
|
3
3
|
import { t as UrlError } from "./url-BQ_kgmCk.mjs";
|
|
4
4
|
import { deepStrictEqual, ok, rejects } from "node:assert";
|
|
5
5
|
import { test } from "node:test";
|
|
@@ -3,7 +3,7 @@ let node_process = require("node:process");
|
|
|
3
3
|
node_process = require_chunk.__toESM(node_process);
|
|
4
4
|
//#region deno.json
|
|
5
5
|
var name = "@fedify/vocab-runtime";
|
|
6
|
-
var version = "2.2.0-dev.
|
|
6
|
+
var version = "2.2.0-dev.885+cf6bb048";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/request.ts
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Do9eywBl.cjs");
|
|
2
|
-
const require_request = require("./request-
|
|
2
|
+
const require_request = require("./request-B38OMNrl.cjs");
|
|
3
3
|
let node_assert = require("node:assert");
|
|
4
4
|
let node_test = require("node:test");
|
|
5
5
|
let node_process = require("node:process");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as version, r as getUserAgent } from "./request-
|
|
1
|
+
import { o as version, r as getUserAgent } from "./request-CPUx8H9z.mjs";
|
|
2
2
|
import { deepStrictEqual } from "node:assert";
|
|
3
3
|
import { test } from "node:test";
|
|
4
4
|
import process from "node:process";
|
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://w3id.org/security/v1",
|
|
4
|
+
{
|
|
5
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
6
|
+
"lemmy": "https://join-lemmy.org/ns#",
|
|
7
|
+
"litepub": "http://litepub.social/ns#",
|
|
8
|
+
"pt": "https://joinpeertube.org/ns#",
|
|
9
|
+
"sc": "http://schema.org/",
|
|
10
|
+
"mastodon": "http://joinmastodon.org/ns#",
|
|
11
|
+
"ChatMessage": "litepub:ChatMessage",
|
|
12
|
+
"commentsEnabled": "pt:commentsEnabled",
|
|
13
|
+
"sensitive": "as:sensitive",
|
|
14
|
+
"matrixUserId": "lemmy:matrixUserId",
|
|
15
|
+
"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
|
|
16
|
+
"removeData": "lemmy:removeData",
|
|
17
|
+
"stickied": "lemmy:stickied",
|
|
18
|
+
"moderators": {
|
|
19
|
+
"@type": "@id",
|
|
20
|
+
"@id": "lemmy:moderators"
|
|
21
|
+
},
|
|
22
|
+
"expires": "as:endTime",
|
|
23
|
+
"distinguished": "lemmy:distinguished",
|
|
24
|
+
"language": "sc:inLanguage",
|
|
25
|
+
"identifier": "sc:identifier",
|
|
26
|
+
"Hashtag": "as:Hashtag",
|
|
27
|
+
"featured": {
|
|
28
|
+
"@type": "@id",
|
|
29
|
+
"@id": "mastodon:featured"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
package/src/contexts.ts
CHANGED
|
@@ -9,6 +9,7 @@ import didV1 from "./contexts/did-v1.json" with { type: "json" };
|
|
|
9
9
|
import fep5711 from "./contexts/fep-5711.json" with { type: "json" };
|
|
10
10
|
import gotosocial from "./contexts/gotosocial.json" with { type: "json" };
|
|
11
11
|
import identityV1 from "./contexts/identity-v1.json" with { type: "json" };
|
|
12
|
+
import joinLemmyContext from "./contexts/join-lemmy.json" with { type: "json" };
|
|
12
13
|
import joinmastodon from "./contexts/joinmastodon.json" with { type: "json" };
|
|
13
14
|
import schemaorg from "./contexts/schemaorg.json" with { type: "json" };
|
|
14
15
|
import securityDataIntegrityV1 from "./contexts/security-data-integrity-v1.json" with {
|
|
@@ -22,7 +23,6 @@ import securityMultikeyV1 from "./contexts/security-multikey-v1.json" with {
|
|
|
22
23
|
};
|
|
23
24
|
import securityV1 from "./contexts/security-v1.json" with { type: "json" };
|
|
24
25
|
import webfinger from "./contexts/webfinger.json" with { type: "json" };
|
|
25
|
-
|
|
26
26
|
const preloadedContexts: Record<string, unknown> = {
|
|
27
27
|
"https://www.w3.org/ns/activitystreams": activitystreams,
|
|
28
28
|
"https://w3id.org/security/v1": securityV1,
|
|
@@ -36,6 +36,15 @@ const preloadedContexts: Record<string, unknown> = {
|
|
|
36
36
|
"https://gotosocial.org/ns": gotosocial,
|
|
37
37
|
"https://w3id.org/fep/5711": fep5711,
|
|
38
38
|
|
|
39
|
+
// Lemmy's context document is served as application/json without the JSON-LD
|
|
40
|
+
// context Link header. The default document loader treats that as a regular
|
|
41
|
+
// JSON response instead of a JSON-LD context, so every Lemmy activity that
|
|
42
|
+
// references this URL fails before application handlers run. We ship a
|
|
43
|
+
// built-in copy here so Fedify can parse Lemmy-originated activities without
|
|
44
|
+
// application-level document loader workarounds.
|
|
45
|
+
// See: https://github.com/fedify-dev/fedify/issues/714
|
|
46
|
+
"https://join-lemmy.org/context.json": joinLemmyContext,
|
|
47
|
+
|
|
39
48
|
// Mastodon's "toot:" namespace. The URL http://joinmastodon.org/ns has
|
|
40
49
|
// *never* served a real JSON-LD context document—Mastodon has always inlined
|
|
41
50
|
// these term definitions directly in every outgoing @context array. However,
|