@fedify/vocab 2.0.29-dev.2121 → 2.0.29-dev.2139
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 +1626 -158
- package/dist/mod.js +1626 -158
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-tYO0enck.mjs → deno-B94Rd98_.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-C_YFgzlY.mjs → vocab-CLB8P-Fw.mjs} +1625 -157
- package/dist-tests/vocab.test.mjs +67 -1
- package/package.json +4 -4
- package/src/vocab.test.ts +98 -0
package/dist/mod.cjs
CHANGED
|
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
33
33
|
let es_toolkit = require("es-toolkit");
|
|
34
34
|
//#region deno.json
|
|
35
35
|
var name = "@fedify/vocab";
|
|
36
|
-
var version = "2.0.29-dev.
|
|
36
|
+
var version = "2.0.29-dev.2139+7e5d091d";
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/type.ts
|
|
39
39
|
function getTypeId(object) {
|
|
@@ -805,7 +805,17 @@ var Object$1 = class Object$1 {
|
|
|
805
805
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
|
|
806
806
|
const prop = this._cachedJsonLd["attachment"];
|
|
807
807
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
808
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
808
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
809
|
+
v = await this.#attachment_fromJsonLd(obj, options);
|
|
810
|
+
} catch (error) {
|
|
811
|
+
if (!options.suppressError) throw error;
|
|
812
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
813
|
+
property: "https://www.w3.org/ns/activitystreams#attachment",
|
|
814
|
+
index: i,
|
|
815
|
+
error
|
|
816
|
+
});
|
|
817
|
+
continue;
|
|
818
|
+
}
|
|
809
819
|
}
|
|
810
820
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
|
|
811
821
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -974,7 +984,16 @@ var Object$1 = class Object$1 {
|
|
|
974
984
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
975
985
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
976
986
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
977
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
987
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
988
|
+
v = await this.#attribution_fromJsonLd(doc, options);
|
|
989
|
+
} catch (error) {
|
|
990
|
+
if (!options.suppressError) throw error;
|
|
991
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
992
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
993
|
+
error
|
|
994
|
+
});
|
|
995
|
+
return null;
|
|
996
|
+
}
|
|
978
997
|
}
|
|
979
998
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
980
999
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1017,7 +1036,17 @@ var Object$1 = class Object$1 {
|
|
|
1017
1036
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
1018
1037
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
1019
1038
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1020
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1039
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1040
|
+
v = await this.#attribution_fromJsonLd(obj, options);
|
|
1041
|
+
} catch (error) {
|
|
1042
|
+
if (!options.suppressError) throw error;
|
|
1043
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1044
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
1045
|
+
index: i,
|
|
1046
|
+
error
|
|
1047
|
+
});
|
|
1048
|
+
continue;
|
|
1049
|
+
}
|
|
1021
1050
|
}
|
|
1022
1051
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
1023
1052
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1139,7 +1168,16 @@ var Object$1 = class Object$1 {
|
|
|
1139
1168
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1140
1169
|
const prop = this._cachedJsonLd["audience"];
|
|
1141
1170
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1142
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1171
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1172
|
+
v = await this.#audience_fromJsonLd(doc, options);
|
|
1173
|
+
} catch (error) {
|
|
1174
|
+
if (!options.suppressError) throw error;
|
|
1175
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1176
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1177
|
+
error
|
|
1178
|
+
});
|
|
1179
|
+
return null;
|
|
1180
|
+
}
|
|
1143
1181
|
}
|
|
1144
1182
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1145
1183
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1181,7 +1219,17 @@ var Object$1 = class Object$1 {
|
|
|
1181
1219
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1182
1220
|
const prop = this._cachedJsonLd["audience"];
|
|
1183
1221
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1184
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1222
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1223
|
+
v = await this.#audience_fromJsonLd(obj, options);
|
|
1224
|
+
} catch (error) {
|
|
1225
|
+
if (!options.suppressError) throw error;
|
|
1226
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1227
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1228
|
+
index: i,
|
|
1229
|
+
error
|
|
1230
|
+
});
|
|
1231
|
+
continue;
|
|
1232
|
+
}
|
|
1185
1233
|
}
|
|
1186
1234
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1187
1235
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1337,7 +1385,17 @@ var Object$1 = class Object$1 {
|
|
|
1337
1385
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
|
|
1338
1386
|
const prop = this._cachedJsonLd["context"];
|
|
1339
1387
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1340
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1388
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1389
|
+
v = await this.#context_fromJsonLd(obj, options);
|
|
1390
|
+
} catch (error) {
|
|
1391
|
+
if (!options.suppressError) throw error;
|
|
1392
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1393
|
+
property: "https://www.w3.org/ns/activitystreams#context",
|
|
1394
|
+
index: i,
|
|
1395
|
+
error
|
|
1396
|
+
});
|
|
1397
|
+
continue;
|
|
1398
|
+
}
|
|
1341
1399
|
}
|
|
1342
1400
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
|
|
1343
1401
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1493,7 +1551,17 @@ var Object$1 = class Object$1 {
|
|
|
1493
1551
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
|
|
1494
1552
|
const prop = this._cachedJsonLd["generator"];
|
|
1495
1553
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1496
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1554
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1555
|
+
v = await this.#generator_fromJsonLd(obj, options);
|
|
1556
|
+
} catch (error) {
|
|
1557
|
+
if (!options.suppressError) throw error;
|
|
1558
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1559
|
+
property: "https://www.w3.org/ns/activitystreams#generator",
|
|
1560
|
+
index: i,
|
|
1561
|
+
error
|
|
1562
|
+
});
|
|
1563
|
+
continue;
|
|
1564
|
+
}
|
|
1497
1565
|
}
|
|
1498
1566
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
|
|
1499
1567
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1616,7 +1684,16 @@ var Object$1 = class Object$1 {
|
|
|
1616
1684
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1617
1685
|
const prop = this._cachedJsonLd["icon"];
|
|
1618
1686
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1619
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1687
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1688
|
+
v = await this.#icon_fromJsonLd(doc, options);
|
|
1689
|
+
} catch (error) {
|
|
1690
|
+
if (!options.suppressError) throw error;
|
|
1691
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1692
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1693
|
+
error
|
|
1694
|
+
});
|
|
1695
|
+
return null;
|
|
1696
|
+
}
|
|
1620
1697
|
}
|
|
1621
1698
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1622
1699
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1659,7 +1736,17 @@ var Object$1 = class Object$1 {
|
|
|
1659
1736
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1660
1737
|
const prop = this._cachedJsonLd["icon"];
|
|
1661
1738
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1662
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1739
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1740
|
+
v = await this.#icon_fromJsonLd(obj, options);
|
|
1741
|
+
} catch (error) {
|
|
1742
|
+
if (!options.suppressError) throw error;
|
|
1743
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1744
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1745
|
+
index: i,
|
|
1746
|
+
error
|
|
1747
|
+
});
|
|
1748
|
+
continue;
|
|
1749
|
+
}
|
|
1663
1750
|
}
|
|
1664
1751
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1665
1752
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1782,7 +1869,16 @@ var Object$1 = class Object$1 {
|
|
|
1782
1869
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
1783
1870
|
const prop = this._cachedJsonLd["image"];
|
|
1784
1871
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1785
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1872
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1873
|
+
v = await this.#image_fromJsonLd(doc, options);
|
|
1874
|
+
} catch (error) {
|
|
1875
|
+
if (!options.suppressError) throw error;
|
|
1876
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1877
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
1878
|
+
error
|
|
1879
|
+
});
|
|
1880
|
+
return null;
|
|
1881
|
+
}
|
|
1786
1882
|
}
|
|
1787
1883
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
1788
1884
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1825,7 +1921,17 @@ var Object$1 = class Object$1 {
|
|
|
1825
1921
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
1826
1922
|
const prop = this._cachedJsonLd["image"];
|
|
1827
1923
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1828
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1924
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1925
|
+
v = await this.#image_fromJsonLd(obj, options);
|
|
1926
|
+
} catch (error) {
|
|
1927
|
+
if (!options.suppressError) throw error;
|
|
1928
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1929
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
1930
|
+
index: i,
|
|
1931
|
+
error
|
|
1932
|
+
});
|
|
1933
|
+
continue;
|
|
1934
|
+
}
|
|
1829
1935
|
}
|
|
1830
1936
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
1831
1937
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1957,7 +2063,16 @@ var Object$1 = class Object$1 {
|
|
|
1957
2063
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
1958
2064
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
1959
2065
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1960
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2066
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2067
|
+
v = await this.#replyTarget_fromJsonLd(doc, options);
|
|
2068
|
+
} catch (error) {
|
|
2069
|
+
if (!options.suppressError) throw error;
|
|
2070
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2071
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2072
|
+
error
|
|
2073
|
+
});
|
|
2074
|
+
return null;
|
|
2075
|
+
}
|
|
1961
2076
|
}
|
|
1962
2077
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
1963
2078
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1999,7 +2114,17 @@ var Object$1 = class Object$1 {
|
|
|
1999
2114
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
2000
2115
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
2001
2116
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2002
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2117
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2118
|
+
v = await this.#replyTarget_fromJsonLd(obj, options);
|
|
2119
|
+
} catch (error) {
|
|
2120
|
+
if (!options.suppressError) throw error;
|
|
2121
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2122
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2123
|
+
index: i,
|
|
2124
|
+
error
|
|
2125
|
+
});
|
|
2126
|
+
continue;
|
|
2127
|
+
}
|
|
2003
2128
|
}
|
|
2004
2129
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
2005
2130
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2131,7 +2256,16 @@ var Object$1 = class Object$1 {
|
|
|
2131
2256
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2132
2257
|
const prop = this._cachedJsonLd["location"];
|
|
2133
2258
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2134
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2259
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2260
|
+
v = await this.#location_fromJsonLd(doc, options);
|
|
2261
|
+
} catch (error) {
|
|
2262
|
+
if (!options.suppressError) throw error;
|
|
2263
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2264
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2265
|
+
error
|
|
2266
|
+
});
|
|
2267
|
+
return null;
|
|
2268
|
+
}
|
|
2135
2269
|
}
|
|
2136
2270
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2137
2271
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2173,7 +2307,17 @@ var Object$1 = class Object$1 {
|
|
|
2173
2307
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2174
2308
|
const prop = this._cachedJsonLd["location"];
|
|
2175
2309
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2176
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2310
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2311
|
+
v = await this.#location_fromJsonLd(obj, options);
|
|
2312
|
+
} catch (error) {
|
|
2313
|
+
if (!options.suppressError) throw error;
|
|
2314
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2315
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2316
|
+
index: i,
|
|
2317
|
+
error
|
|
2318
|
+
});
|
|
2319
|
+
continue;
|
|
2320
|
+
}
|
|
2177
2321
|
}
|
|
2178
2322
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2179
2323
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2304,7 +2448,16 @@ var Object$1 = class Object$1 {
|
|
|
2304
2448
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2305
2449
|
const prop = this._cachedJsonLd["preview"];
|
|
2306
2450
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2307
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2451
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2452
|
+
v = await this.#preview_fromJsonLd(doc, options);
|
|
2453
|
+
} catch (error) {
|
|
2454
|
+
if (!options.suppressError) throw error;
|
|
2455
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2456
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2457
|
+
error
|
|
2458
|
+
});
|
|
2459
|
+
return null;
|
|
2460
|
+
}
|
|
2308
2461
|
}
|
|
2309
2462
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2310
2463
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2345,7 +2498,17 @@ var Object$1 = class Object$1 {
|
|
|
2345
2498
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2346
2499
|
const prop = this._cachedJsonLd["preview"];
|
|
2347
2500
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2348
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2501
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2502
|
+
v = await this.#preview_fromJsonLd(obj, options);
|
|
2503
|
+
} catch (error) {
|
|
2504
|
+
if (!options.suppressError) throw error;
|
|
2505
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2506
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2507
|
+
index: i,
|
|
2508
|
+
error
|
|
2509
|
+
});
|
|
2510
|
+
continue;
|
|
2511
|
+
}
|
|
2349
2512
|
}
|
|
2350
2513
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2351
2514
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2474,7 +2637,16 @@ var Object$1 = class Object$1 {
|
|
|
2474
2637
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
|
|
2475
2638
|
const prop = this._cachedJsonLd["replies"];
|
|
2476
2639
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2477
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2640
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2641
|
+
v = await this.#replies_fromJsonLd(doc, options);
|
|
2642
|
+
} catch (error) {
|
|
2643
|
+
if (!options.suppressError) throw error;
|
|
2644
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2645
|
+
property: "https://www.w3.org/ns/activitystreams#replies",
|
|
2646
|
+
error
|
|
2647
|
+
});
|
|
2648
|
+
return null;
|
|
2649
|
+
}
|
|
2478
2650
|
}
|
|
2479
2651
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
|
|
2480
2652
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2601,7 +2773,16 @@ var Object$1 = class Object$1 {
|
|
|
2601
2773
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
|
|
2602
2774
|
const prop = this._cachedJsonLd["shares"];
|
|
2603
2775
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2604
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2776
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2777
|
+
v = await this.#shares_fromJsonLd(doc, options);
|
|
2778
|
+
} catch (error) {
|
|
2779
|
+
if (!options.suppressError) throw error;
|
|
2780
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2781
|
+
property: "https://www.w3.org/ns/activitystreams#shares",
|
|
2782
|
+
error
|
|
2783
|
+
});
|
|
2784
|
+
return null;
|
|
2785
|
+
}
|
|
2605
2786
|
}
|
|
2606
2787
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
|
|
2607
2788
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2728,7 +2909,16 @@ var Object$1 = class Object$1 {
|
|
|
2728
2909
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
|
|
2729
2910
|
const prop = this._cachedJsonLd["likes"];
|
|
2730
2911
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2731
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2912
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2913
|
+
v = await this.#likes_fromJsonLd(doc, options);
|
|
2914
|
+
} catch (error) {
|
|
2915
|
+
if (!options.suppressError) throw error;
|
|
2916
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2917
|
+
property: "https://www.w3.org/ns/activitystreams#likes",
|
|
2918
|
+
error
|
|
2919
|
+
});
|
|
2920
|
+
return null;
|
|
2921
|
+
}
|
|
2732
2922
|
}
|
|
2733
2923
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
|
|
2734
2924
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2849,7 +3039,16 @@ var Object$1 = class Object$1 {
|
|
|
2849
3039
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
|
|
2850
3040
|
const prop = this._cachedJsonLd["emojiReactions"];
|
|
2851
3041
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2852
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3042
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3043
|
+
v = await this.#emojiReactions_fromJsonLd(doc, options);
|
|
3044
|
+
} catch (error) {
|
|
3045
|
+
if (!options.suppressError) throw error;
|
|
3046
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3047
|
+
property: "http://fedibird.com/ns#emojiReactions",
|
|
3048
|
+
error
|
|
3049
|
+
});
|
|
3050
|
+
return null;
|
|
3051
|
+
}
|
|
2853
3052
|
}
|
|
2854
3053
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
|
|
2855
3054
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3005,7 +3204,17 @@ var Object$1 = class Object$1 {
|
|
|
3005
3204
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
|
|
3006
3205
|
const prop = this._cachedJsonLd["tag"];
|
|
3007
3206
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3008
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3207
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3208
|
+
v = await this.#tag_fromJsonLd(obj, options);
|
|
3209
|
+
} catch (error) {
|
|
3210
|
+
if (!options.suppressError) throw error;
|
|
3211
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3212
|
+
property: "https://www.w3.org/ns/activitystreams#tag",
|
|
3213
|
+
index: i,
|
|
3214
|
+
error
|
|
3215
|
+
});
|
|
3216
|
+
continue;
|
|
3217
|
+
}
|
|
3009
3218
|
}
|
|
3010
3219
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
|
|
3011
3220
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3146,7 +3355,16 @@ var Object$1 = class Object$1 {
|
|
|
3146
3355
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3147
3356
|
const prop = this._cachedJsonLd["to"];
|
|
3148
3357
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3149
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3358
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3359
|
+
v = await this.#to_fromJsonLd(doc, options);
|
|
3360
|
+
} catch (error) {
|
|
3361
|
+
if (!options.suppressError) throw error;
|
|
3362
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3363
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3364
|
+
error
|
|
3365
|
+
});
|
|
3366
|
+
return null;
|
|
3367
|
+
}
|
|
3150
3368
|
}
|
|
3151
3369
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3152
3370
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3188,7 +3406,17 @@ var Object$1 = class Object$1 {
|
|
|
3188
3406
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3189
3407
|
const prop = this._cachedJsonLd["to"];
|
|
3190
3408
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3191
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3409
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3410
|
+
v = await this.#to_fromJsonLd(obj, options);
|
|
3411
|
+
} catch (error) {
|
|
3412
|
+
if (!options.suppressError) throw error;
|
|
3413
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3414
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3415
|
+
index: i,
|
|
3416
|
+
error
|
|
3417
|
+
});
|
|
3418
|
+
continue;
|
|
3419
|
+
}
|
|
3192
3420
|
}
|
|
3193
3421
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3194
3422
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3310,7 +3538,16 @@ var Object$1 = class Object$1 {
|
|
|
3310
3538
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3311
3539
|
const prop = this._cachedJsonLd["bto"];
|
|
3312
3540
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3313
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3541
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3542
|
+
v = await this.#bto_fromJsonLd(doc, options);
|
|
3543
|
+
} catch (error) {
|
|
3544
|
+
if (!options.suppressError) throw error;
|
|
3545
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3546
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3547
|
+
error
|
|
3548
|
+
});
|
|
3549
|
+
return null;
|
|
3550
|
+
}
|
|
3314
3551
|
}
|
|
3315
3552
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3316
3553
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3352,7 +3589,17 @@ var Object$1 = class Object$1 {
|
|
|
3352
3589
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3353
3590
|
const prop = this._cachedJsonLd["bto"];
|
|
3354
3591
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3355
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3592
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3593
|
+
v = await this.#bto_fromJsonLd(obj, options);
|
|
3594
|
+
} catch (error) {
|
|
3595
|
+
if (!options.suppressError) throw error;
|
|
3596
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3597
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3598
|
+
index: i,
|
|
3599
|
+
error
|
|
3600
|
+
});
|
|
3601
|
+
continue;
|
|
3602
|
+
}
|
|
3356
3603
|
}
|
|
3357
3604
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3358
3605
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3474,7 +3721,16 @@ var Object$1 = class Object$1 {
|
|
|
3474
3721
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3475
3722
|
const prop = this._cachedJsonLd["cc"];
|
|
3476
3723
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3477
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3724
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3725
|
+
v = await this.#cc_fromJsonLd(doc, options);
|
|
3726
|
+
} catch (error) {
|
|
3727
|
+
if (!options.suppressError) throw error;
|
|
3728
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3729
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
3730
|
+
error
|
|
3731
|
+
});
|
|
3732
|
+
return null;
|
|
3733
|
+
}
|
|
3478
3734
|
}
|
|
3479
3735
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3480
3736
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3516,7 +3772,17 @@ var Object$1 = class Object$1 {
|
|
|
3516
3772
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3517
3773
|
const prop = this._cachedJsonLd["cc"];
|
|
3518
3774
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3519
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3775
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3776
|
+
v = await this.#cc_fromJsonLd(obj, options);
|
|
3777
|
+
} catch (error) {
|
|
3778
|
+
if (!options.suppressError) throw error;
|
|
3779
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3780
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
3781
|
+
index: i,
|
|
3782
|
+
error
|
|
3783
|
+
});
|
|
3784
|
+
continue;
|
|
3785
|
+
}
|
|
3520
3786
|
}
|
|
3521
3787
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3522
3788
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3638,7 +3904,16 @@ var Object$1 = class Object$1 {
|
|
|
3638
3904
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3639
3905
|
const prop = this._cachedJsonLd["bcc"];
|
|
3640
3906
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3641
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3907
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3908
|
+
v = await this.#bcc_fromJsonLd(doc, options);
|
|
3909
|
+
} catch (error) {
|
|
3910
|
+
if (!options.suppressError) throw error;
|
|
3911
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3912
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
3913
|
+
error
|
|
3914
|
+
});
|
|
3915
|
+
return null;
|
|
3916
|
+
}
|
|
3642
3917
|
}
|
|
3643
3918
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3644
3919
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3680,7 +3955,17 @@ var Object$1 = class Object$1 {
|
|
|
3680
3955
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3681
3956
|
const prop = this._cachedJsonLd["bcc"];
|
|
3682
3957
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3683
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3958
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3959
|
+
v = await this.#bcc_fromJsonLd(obj, options);
|
|
3960
|
+
} catch (error) {
|
|
3961
|
+
if (!options.suppressError) throw error;
|
|
3962
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3963
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
3964
|
+
index: i,
|
|
3965
|
+
error
|
|
3966
|
+
});
|
|
3967
|
+
continue;
|
|
3968
|
+
}
|
|
3684
3969
|
}
|
|
3685
3970
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3686
3971
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3838,7 +4123,16 @@ var Object$1 = class Object$1 {
|
|
|
3838
4123
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
3839
4124
|
const prop = this._cachedJsonLd["proof"];
|
|
3840
4125
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3841
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4126
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4127
|
+
v = await this.#proof_fromJsonLd(doc, options);
|
|
4128
|
+
} catch (error) {
|
|
4129
|
+
if (!options.suppressError) throw error;
|
|
4130
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4131
|
+
property: "https://w3id.org/security#proof",
|
|
4132
|
+
error
|
|
4133
|
+
});
|
|
4134
|
+
return null;
|
|
4135
|
+
}
|
|
3842
4136
|
}
|
|
3843
4137
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
3844
4138
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3879,7 +4173,17 @@ var Object$1 = class Object$1 {
|
|
|
3879
4173
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
3880
4174
|
const prop = this._cachedJsonLd["proof"];
|
|
3881
4175
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3882
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
4176
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4177
|
+
v = await this.#proof_fromJsonLd(obj, options);
|
|
4178
|
+
} catch (error) {
|
|
4179
|
+
if (!options.suppressError) throw error;
|
|
4180
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4181
|
+
property: "https://w3id.org/security#proof",
|
|
4182
|
+
index: i,
|
|
4183
|
+
error
|
|
4184
|
+
});
|
|
4185
|
+
continue;
|
|
4186
|
+
}
|
|
3883
4187
|
}
|
|
3884
4188
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
3885
4189
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -6537,7 +6841,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
6537
6841
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
6538
6842
|
const prop = this._cachedJsonLd["actor"];
|
|
6539
6843
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
6540
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
6844
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
6845
|
+
v = await this.#actor_fromJsonLd(doc, options);
|
|
6846
|
+
} catch (error) {
|
|
6847
|
+
if (!options.suppressError) throw error;
|
|
6848
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
6849
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
6850
|
+
error
|
|
6851
|
+
});
|
|
6852
|
+
return null;
|
|
6853
|
+
}
|
|
6541
6854
|
}
|
|
6542
6855
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
6543
6856
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -6580,7 +6893,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
6580
6893
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
6581
6894
|
const prop = this._cachedJsonLd["actor"];
|
|
6582
6895
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
6583
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
6896
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
6897
|
+
v = await this.#actor_fromJsonLd(obj, options);
|
|
6898
|
+
} catch (error) {
|
|
6899
|
+
if (!options.suppressError) throw error;
|
|
6900
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
6901
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
6902
|
+
index: i,
|
|
6903
|
+
error
|
|
6904
|
+
});
|
|
6905
|
+
continue;
|
|
6906
|
+
}
|
|
6584
6907
|
}
|
|
6585
6908
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
6586
6909
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -6703,7 +7026,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
6703
7026
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
6704
7027
|
const prop = this._cachedJsonLd["object"];
|
|
6705
7028
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
6706
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7029
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7030
|
+
v = await this.#object_fromJsonLd(doc, options);
|
|
7031
|
+
} catch (error) {
|
|
7032
|
+
if (!options.suppressError) throw error;
|
|
7033
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7034
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
7035
|
+
error
|
|
7036
|
+
});
|
|
7037
|
+
return null;
|
|
7038
|
+
}
|
|
6707
7039
|
}
|
|
6708
7040
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
6709
7041
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -6746,7 +7078,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
6746
7078
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
6747
7079
|
const prop = this._cachedJsonLd["object"];
|
|
6748
7080
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
6749
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
7081
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
7082
|
+
v = await this.#object_fromJsonLd(obj, options);
|
|
7083
|
+
} catch (error) {
|
|
7084
|
+
if (!options.suppressError) throw error;
|
|
7085
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
7086
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
7087
|
+
index: i,
|
|
7088
|
+
error
|
|
7089
|
+
});
|
|
7090
|
+
continue;
|
|
7091
|
+
}
|
|
6750
7092
|
}
|
|
6751
7093
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
6752
7094
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -6872,7 +7214,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
6872
7214
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
6873
7215
|
const prop = this._cachedJsonLd["target"];
|
|
6874
7216
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
6875
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7217
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7218
|
+
v = await this.#target_fromJsonLd(doc, options);
|
|
7219
|
+
} catch (error) {
|
|
7220
|
+
if (!options.suppressError) throw error;
|
|
7221
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7222
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
7223
|
+
error
|
|
7224
|
+
});
|
|
7225
|
+
return null;
|
|
7226
|
+
}
|
|
6876
7227
|
}
|
|
6877
7228
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
6878
7229
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -6918,7 +7269,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
6918
7269
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
6919
7270
|
const prop = this._cachedJsonLd["target"];
|
|
6920
7271
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
6921
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
7272
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
7273
|
+
v = await this.#target_fromJsonLd(obj, options);
|
|
7274
|
+
} catch (error) {
|
|
7275
|
+
if (!options.suppressError) throw error;
|
|
7276
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
7277
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
7278
|
+
index: i,
|
|
7279
|
+
error
|
|
7280
|
+
});
|
|
7281
|
+
continue;
|
|
7282
|
+
}
|
|
6922
7283
|
}
|
|
6923
7284
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
6924
7285
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7041,7 +7402,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
7041
7402
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
7042
7403
|
const prop = this._cachedJsonLd["result"];
|
|
7043
7404
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7044
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7405
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7406
|
+
v = await this.#result_fromJsonLd(doc, options);
|
|
7407
|
+
} catch (error) {
|
|
7408
|
+
if (!options.suppressError) throw error;
|
|
7409
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7410
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
7411
|
+
error
|
|
7412
|
+
});
|
|
7413
|
+
return null;
|
|
7414
|
+
}
|
|
7045
7415
|
}
|
|
7046
7416
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
7047
7417
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7084,7 +7454,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
7084
7454
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
7085
7455
|
const prop = this._cachedJsonLd["result"];
|
|
7086
7456
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7087
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
7457
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
7458
|
+
v = await this.#result_fromJsonLd(obj, options);
|
|
7459
|
+
} catch (error) {
|
|
7460
|
+
if (!options.suppressError) throw error;
|
|
7461
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
7462
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
7463
|
+
index: i,
|
|
7464
|
+
error
|
|
7465
|
+
});
|
|
7466
|
+
continue;
|
|
7467
|
+
}
|
|
7088
7468
|
}
|
|
7089
7469
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
7090
7470
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7208,7 +7588,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
7208
7588
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
7209
7589
|
const prop = this._cachedJsonLd["origin"];
|
|
7210
7590
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7211
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7591
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7592
|
+
v = await this.#origin_fromJsonLd(doc, options);
|
|
7593
|
+
} catch (error) {
|
|
7594
|
+
if (!options.suppressError) throw error;
|
|
7595
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7596
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
7597
|
+
error
|
|
7598
|
+
});
|
|
7599
|
+
return null;
|
|
7600
|
+
}
|
|
7212
7601
|
}
|
|
7213
7602
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
7214
7603
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7252,7 +7641,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
7252
7641
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
7253
7642
|
const prop = this._cachedJsonLd["origin"];
|
|
7254
7643
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7255
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
7644
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
7645
|
+
v = await this.#origin_fromJsonLd(obj, options);
|
|
7646
|
+
} catch (error) {
|
|
7647
|
+
if (!options.suppressError) throw error;
|
|
7648
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
7649
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
7650
|
+
index: i,
|
|
7651
|
+
error
|
|
7652
|
+
});
|
|
7653
|
+
continue;
|
|
7654
|
+
}
|
|
7256
7655
|
}
|
|
7257
7656
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
7258
7657
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7374,7 +7773,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
7374
7773
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
7375
7774
|
const prop = this._cachedJsonLd["instrument"];
|
|
7376
7775
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7377
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7776
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7777
|
+
v = await this.#instrument_fromJsonLd(doc, options);
|
|
7778
|
+
} catch (error) {
|
|
7779
|
+
if (!options.suppressError) throw error;
|
|
7780
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7781
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
7782
|
+
error
|
|
7783
|
+
});
|
|
7784
|
+
return null;
|
|
7785
|
+
}
|
|
7378
7786
|
}
|
|
7379
7787
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
7380
7788
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7416,7 +7824,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
7416
7824
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
7417
7825
|
const prop = this._cachedJsonLd["instrument"];
|
|
7418
7826
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7419
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
7827
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
7828
|
+
v = await this.#instrument_fromJsonLd(obj, options);
|
|
7829
|
+
} catch (error) {
|
|
7830
|
+
if (!options.suppressError) throw error;
|
|
7831
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
7832
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
7833
|
+
index: i,
|
|
7834
|
+
error
|
|
7835
|
+
});
|
|
7836
|
+
continue;
|
|
7837
|
+
}
|
|
7420
7838
|
}
|
|
7421
7839
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
7422
7840
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -9321,7 +9739,16 @@ var CryptographicKey = class {
|
|
|
9321
9739
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
|
|
9322
9740
|
const prop = this._cachedJsonLd["owner"];
|
|
9323
9741
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
9324
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
9742
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
9743
|
+
v = await this.#owner_fromJsonLd(doc, options);
|
|
9744
|
+
} catch (error) {
|
|
9745
|
+
if (!options.suppressError) throw error;
|
|
9746
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
9747
|
+
property: "https://w3id.org/security#owner",
|
|
9748
|
+
error
|
|
9749
|
+
});
|
|
9750
|
+
return null;
|
|
9751
|
+
}
|
|
9325
9752
|
}
|
|
9326
9753
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
|
|
9327
9754
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -9798,7 +10225,16 @@ var Multikey = class {
|
|
|
9798
10225
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
|
|
9799
10226
|
const prop = this._cachedJsonLd["controller"];
|
|
9800
10227
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
9801
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
10228
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
10229
|
+
v = await this.#controller_fromJsonLd(doc, options);
|
|
10230
|
+
} catch (error) {
|
|
10231
|
+
if (!options.suppressError) throw error;
|
|
10232
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
10233
|
+
property: "https://w3id.org/security#controller",
|
|
10234
|
+
error
|
|
10235
|
+
});
|
|
10236
|
+
return null;
|
|
10237
|
+
}
|
|
9802
10238
|
}
|
|
9803
10239
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
|
|
9804
10240
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -10942,7 +11378,16 @@ var Application = class Application extends Object$1 {
|
|
|
10942
11378
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
10943
11379
|
const prop = this._cachedJsonLd["publicKey"];
|
|
10944
11380
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
10945
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11381
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
11382
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
11383
|
+
} catch (error) {
|
|
11384
|
+
if (!options.suppressError) throw error;
|
|
11385
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
11386
|
+
property: "https://w3id.org/security#publicKey",
|
|
11387
|
+
error
|
|
11388
|
+
});
|
|
11389
|
+
return null;
|
|
11390
|
+
}
|
|
10946
11391
|
}
|
|
10947
11392
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
10948
11393
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -10983,7 +11428,17 @@ var Application = class Application extends Object$1 {
|
|
|
10983
11428
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
10984
11429
|
const prop = this._cachedJsonLd["publicKey"];
|
|
10985
11430
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
10986
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
11431
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
11432
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
11433
|
+
} catch (error) {
|
|
11434
|
+
if (!options.suppressError) throw error;
|
|
11435
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
11436
|
+
property: "https://w3id.org/security#publicKey",
|
|
11437
|
+
index: i,
|
|
11438
|
+
error
|
|
11439
|
+
});
|
|
11440
|
+
continue;
|
|
11441
|
+
}
|
|
10987
11442
|
}
|
|
10988
11443
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
10989
11444
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11107,7 +11562,16 @@ var Application = class Application extends Object$1 {
|
|
|
11107
11562
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
11108
11563
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
11109
11564
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11110
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11565
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
11566
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
11567
|
+
} catch (error) {
|
|
11568
|
+
if (!options.suppressError) throw error;
|
|
11569
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
11570
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
11571
|
+
error
|
|
11572
|
+
});
|
|
11573
|
+
return null;
|
|
11574
|
+
}
|
|
11111
11575
|
}
|
|
11112
11576
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
11113
11577
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11151,7 +11615,17 @@ var Application = class Application extends Object$1 {
|
|
|
11151
11615
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
11152
11616
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
11153
11617
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
11154
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
11618
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
11619
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
11620
|
+
} catch (error) {
|
|
11621
|
+
if (!options.suppressError) throw error;
|
|
11622
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
11623
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
11624
|
+
index: i,
|
|
11625
|
+
error
|
|
11626
|
+
});
|
|
11627
|
+
continue;
|
|
11628
|
+
}
|
|
11155
11629
|
}
|
|
11156
11630
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
11157
11631
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11306,7 +11780,16 @@ var Application = class Application extends Object$1 {
|
|
|
11306
11780
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
11307
11781
|
const prop = this._cachedJsonLd["inbox"];
|
|
11308
11782
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11309
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11783
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
11784
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
11785
|
+
} catch (error) {
|
|
11786
|
+
if (!options.suppressError) throw error;
|
|
11787
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
11788
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
11789
|
+
error
|
|
11790
|
+
});
|
|
11791
|
+
return null;
|
|
11792
|
+
}
|
|
11310
11793
|
}
|
|
11311
11794
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
11312
11795
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11445,7 +11928,16 @@ var Application = class Application extends Object$1 {
|
|
|
11445
11928
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
11446
11929
|
const prop = this._cachedJsonLd["outbox"];
|
|
11447
11930
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11448
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11931
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
11932
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
11933
|
+
} catch (error) {
|
|
11934
|
+
if (!options.suppressError) throw error;
|
|
11935
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
11936
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
11937
|
+
error
|
|
11938
|
+
});
|
|
11939
|
+
return null;
|
|
11940
|
+
}
|
|
11449
11941
|
}
|
|
11450
11942
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
11451
11943
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11569,7 +12061,16 @@ var Application = class Application extends Object$1 {
|
|
|
11569
12061
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
11570
12062
|
const prop = this._cachedJsonLd["following"];
|
|
11571
12063
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11572
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12064
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12065
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
12066
|
+
} catch (error) {
|
|
12067
|
+
if (!options.suppressError) throw error;
|
|
12068
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12069
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
12070
|
+
error
|
|
12071
|
+
});
|
|
12072
|
+
return null;
|
|
12073
|
+
}
|
|
11573
12074
|
}
|
|
11574
12075
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
11575
12076
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11696,7 +12197,16 @@ var Application = class Application extends Object$1 {
|
|
|
11696
12197
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
11697
12198
|
const prop = this._cachedJsonLd["followers"];
|
|
11698
12199
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11699
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12200
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12201
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
12202
|
+
} catch (error) {
|
|
12203
|
+
if (!options.suppressError) throw error;
|
|
12204
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12205
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
12206
|
+
error
|
|
12207
|
+
});
|
|
12208
|
+
return null;
|
|
12209
|
+
}
|
|
11700
12210
|
}
|
|
11701
12211
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
11702
12212
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11821,7 +12331,16 @@ var Application = class Application extends Object$1 {
|
|
|
11821
12331
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
11822
12332
|
const prop = this._cachedJsonLd["liked"];
|
|
11823
12333
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11824
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12334
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12335
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
12336
|
+
} catch (error) {
|
|
12337
|
+
if (!options.suppressError) throw error;
|
|
12338
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12339
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
12340
|
+
error
|
|
12341
|
+
});
|
|
12342
|
+
return null;
|
|
12343
|
+
}
|
|
11825
12344
|
}
|
|
11826
12345
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
11827
12346
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11944,7 +12463,16 @@ var Application = class Application extends Object$1 {
|
|
|
11944
12463
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
11945
12464
|
const prop = this._cachedJsonLd["featured"];
|
|
11946
12465
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11947
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12466
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12467
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
12468
|
+
} catch (error) {
|
|
12469
|
+
if (!options.suppressError) throw error;
|
|
12470
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12471
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
12472
|
+
error
|
|
12473
|
+
});
|
|
12474
|
+
return null;
|
|
12475
|
+
}
|
|
11948
12476
|
}
|
|
11949
12477
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
11950
12478
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12067,7 +12595,16 @@ var Application = class Application extends Object$1 {
|
|
|
12067
12595
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
12068
12596
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
12069
12597
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12070
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12598
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12599
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
12600
|
+
} catch (error) {
|
|
12601
|
+
if (!options.suppressError) throw error;
|
|
12602
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12603
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
12604
|
+
error
|
|
12605
|
+
});
|
|
12606
|
+
return null;
|
|
12607
|
+
}
|
|
12071
12608
|
}
|
|
12072
12609
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
12073
12610
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12186,7 +12723,17 @@ var Application = class Application extends Object$1 {
|
|
|
12186
12723
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
12187
12724
|
const prop = this._cachedJsonLd["streams"];
|
|
12188
12725
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
12189
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
12726
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
12727
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
12728
|
+
} catch (error) {
|
|
12729
|
+
if (!options.suppressError) throw error;
|
|
12730
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
12731
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
12732
|
+
index: i,
|
|
12733
|
+
error
|
|
12734
|
+
});
|
|
12735
|
+
continue;
|
|
12736
|
+
}
|
|
12190
12737
|
}
|
|
12191
12738
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
12192
12739
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12395,7 +12942,16 @@ var Application = class Application extends Object$1 {
|
|
|
12395
12942
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
12396
12943
|
const prop = this._cachedJsonLd["movedTo"];
|
|
12397
12944
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12398
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12945
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12946
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
12947
|
+
} catch (error) {
|
|
12948
|
+
if (!options.suppressError) throw error;
|
|
12949
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12950
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
12951
|
+
error
|
|
12952
|
+
});
|
|
12953
|
+
return null;
|
|
12954
|
+
}
|
|
12399
12955
|
}
|
|
12400
12956
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
12401
12957
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12564,7 +13120,16 @@ var Application = class Application extends Object$1 {
|
|
|
12564
13120
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
12565
13121
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
12566
13122
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12567
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
13123
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13124
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
13125
|
+
} catch (error) {
|
|
13126
|
+
if (!options.suppressError) throw error;
|
|
13127
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13128
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
13129
|
+
error
|
|
13130
|
+
});
|
|
13131
|
+
return null;
|
|
13132
|
+
}
|
|
12568
13133
|
}
|
|
12569
13134
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
12570
13135
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12608,7 +13173,17 @@ var Application = class Application extends Object$1 {
|
|
|
12608
13173
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
12609
13174
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
12610
13175
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
12611
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
13176
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
13177
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
13178
|
+
} catch (error) {
|
|
13179
|
+
if (!options.suppressError) throw error;
|
|
13180
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
13181
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
13182
|
+
index: i,
|
|
13183
|
+
error
|
|
13184
|
+
});
|
|
13185
|
+
continue;
|
|
13186
|
+
}
|
|
12612
13187
|
}
|
|
12613
13188
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
12614
13189
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12732,7 +13307,16 @@ var Application = class Application extends Object$1 {
|
|
|
12732
13307
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
12733
13308
|
const prop = this._cachedJsonLd["service"];
|
|
12734
13309
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12735
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
13310
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13311
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
13312
|
+
} catch (error) {
|
|
13313
|
+
if (!options.suppressError) throw error;
|
|
13314
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13315
|
+
property: "https://www.w3.org/ns/did#service",
|
|
13316
|
+
error
|
|
13317
|
+
});
|
|
13318
|
+
return null;
|
|
13319
|
+
}
|
|
12736
13320
|
}
|
|
12737
13321
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
12738
13322
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12776,7 +13360,17 @@ var Application = class Application extends Object$1 {
|
|
|
12776
13360
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
12777
13361
|
const prop = this._cachedJsonLd["service"];
|
|
12778
13362
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
12779
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
13363
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
13364
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
13365
|
+
} catch (error) {
|
|
13366
|
+
if (!options.suppressError) throw error;
|
|
13367
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
13368
|
+
property: "https://www.w3.org/ns/did#service",
|
|
13369
|
+
index: i,
|
|
13370
|
+
error
|
|
13371
|
+
});
|
|
13372
|
+
continue;
|
|
13373
|
+
}
|
|
12780
13374
|
}
|
|
12781
13375
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
12782
13376
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -15408,7 +16002,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
15408
16002
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
|
|
15409
16003
|
const prop = this._cachedJsonLd["current"];
|
|
15410
16004
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15411
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
16005
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
16006
|
+
v = await this.#current_fromJsonLd(doc, options);
|
|
16007
|
+
} catch (error) {
|
|
16008
|
+
if (!options.suppressError) throw error;
|
|
16009
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
16010
|
+
property: "https://www.w3.org/ns/activitystreams#current",
|
|
16011
|
+
error
|
|
16012
|
+
});
|
|
16013
|
+
return null;
|
|
16014
|
+
}
|
|
15412
16015
|
}
|
|
15413
16016
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
|
|
15414
16017
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -15529,7 +16132,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
15529
16132
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
|
|
15530
16133
|
const prop = this._cachedJsonLd["first"];
|
|
15531
16134
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15532
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
16135
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
16136
|
+
v = await this.#first_fromJsonLd(doc, options);
|
|
16137
|
+
} catch (error) {
|
|
16138
|
+
if (!options.suppressError) throw error;
|
|
16139
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
16140
|
+
property: "https://www.w3.org/ns/activitystreams#first",
|
|
16141
|
+
error
|
|
16142
|
+
});
|
|
16143
|
+
return null;
|
|
16144
|
+
}
|
|
15533
16145
|
}
|
|
15534
16146
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
|
|
15535
16147
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -15650,7 +16262,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
15650
16262
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
|
|
15651
16263
|
const prop = this._cachedJsonLd["last"];
|
|
15652
16264
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15653
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
16265
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
16266
|
+
v = await this.#last_fromJsonLd(doc, options);
|
|
16267
|
+
} catch (error) {
|
|
16268
|
+
if (!options.suppressError) throw error;
|
|
16269
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
16270
|
+
property: "https://www.w3.org/ns/activitystreams#last",
|
|
16271
|
+
error
|
|
16272
|
+
});
|
|
16273
|
+
return null;
|
|
16274
|
+
}
|
|
15654
16275
|
}
|
|
15655
16276
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
|
|
15656
16277
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -15780,7 +16401,17 @@ var Collection = class Collection extends Object$1 {
|
|
|
15780
16401
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
|
|
15781
16402
|
const prop = this._cachedJsonLd["items"];
|
|
15782
16403
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
15783
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
16404
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
16405
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
16406
|
+
} catch (error) {
|
|
16407
|
+
if (!options.suppressError) throw error;
|
|
16408
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
16409
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
16410
|
+
index: i,
|
|
16411
|
+
error
|
|
16412
|
+
});
|
|
16413
|
+
continue;
|
|
16414
|
+
}
|
|
15784
16415
|
}
|
|
15785
16416
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
15786
16417
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -15901,7 +16532,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
15901
16532
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
|
|
15902
16533
|
const prop = this._cachedJsonLd["likesOf"];
|
|
15903
16534
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15904
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
16535
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
16536
|
+
v = await this.#likesOf_fromJsonLd(doc, options);
|
|
16537
|
+
} catch (error) {
|
|
16538
|
+
if (!options.suppressError) throw error;
|
|
16539
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
16540
|
+
property: "https://w3id.org/fep/5711#likesOf",
|
|
16541
|
+
error
|
|
16542
|
+
});
|
|
16543
|
+
return null;
|
|
16544
|
+
}
|
|
15905
16545
|
}
|
|
15906
16546
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
|
|
15907
16547
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16021,7 +16661,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
16021
16661
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
|
|
16022
16662
|
const prop = this._cachedJsonLd["sharesOf"];
|
|
16023
16663
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16024
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
16664
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
16665
|
+
v = await this.#sharesOf_fromJsonLd(doc, options);
|
|
16666
|
+
} catch (error) {
|
|
16667
|
+
if (!options.suppressError) throw error;
|
|
16668
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
16669
|
+
property: "https://w3id.org/fep/5711#sharesOf",
|
|
16670
|
+
error
|
|
16671
|
+
});
|
|
16672
|
+
return null;
|
|
16673
|
+
}
|
|
16025
16674
|
}
|
|
16026
16675
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
|
|
16027
16676
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16141,7 +16790,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
16141
16790
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
|
|
16142
16791
|
const prop = this._cachedJsonLd["repliesOf"];
|
|
16143
16792
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16144
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
16793
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
16794
|
+
v = await this.#repliesOf_fromJsonLd(doc, options);
|
|
16795
|
+
} catch (error) {
|
|
16796
|
+
if (!options.suppressError) throw error;
|
|
16797
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
16798
|
+
property: "https://w3id.org/fep/5711#repliesOf",
|
|
16799
|
+
error
|
|
16800
|
+
});
|
|
16801
|
+
return null;
|
|
16802
|
+
}
|
|
16145
16803
|
}
|
|
16146
16804
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
|
|
16147
16805
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16261,7 +16919,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
16261
16919
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
|
|
16262
16920
|
const prop = this._cachedJsonLd["inboxOf"];
|
|
16263
16921
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16264
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
16922
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
16923
|
+
v = await this.#inboxOf_fromJsonLd(doc, options);
|
|
16924
|
+
} catch (error) {
|
|
16925
|
+
if (!options.suppressError) throw error;
|
|
16926
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
16927
|
+
property: "https://w3id.org/fep/5711#inboxOf",
|
|
16928
|
+
error
|
|
16929
|
+
});
|
|
16930
|
+
return null;
|
|
16931
|
+
}
|
|
16265
16932
|
}
|
|
16266
16933
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
|
|
16267
16934
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16381,7 +17048,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
16381
17048
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
|
|
16382
17049
|
const prop = this._cachedJsonLd["outboxOf"];
|
|
16383
17050
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16384
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17051
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17052
|
+
v = await this.#outboxOf_fromJsonLd(doc, options);
|
|
17053
|
+
} catch (error) {
|
|
17054
|
+
if (!options.suppressError) throw error;
|
|
17055
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17056
|
+
property: "https://w3id.org/fep/5711#outboxOf",
|
|
17057
|
+
error
|
|
17058
|
+
});
|
|
17059
|
+
return null;
|
|
17060
|
+
}
|
|
16385
17061
|
}
|
|
16386
17062
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
|
|
16387
17063
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16501,7 +17177,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
16501
17177
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
|
|
16502
17178
|
const prop = this._cachedJsonLd["followersOf"];
|
|
16503
17179
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16504
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17180
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17181
|
+
v = await this.#followersOf_fromJsonLd(doc, options);
|
|
17182
|
+
} catch (error) {
|
|
17183
|
+
if (!options.suppressError) throw error;
|
|
17184
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17185
|
+
property: "https://w3id.org/fep/5711#followersOf",
|
|
17186
|
+
error
|
|
17187
|
+
});
|
|
17188
|
+
return null;
|
|
17189
|
+
}
|
|
16505
17190
|
}
|
|
16506
17191
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
|
|
16507
17192
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16621,7 +17306,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
16621
17306
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
|
|
16622
17307
|
const prop = this._cachedJsonLd["followingOf"];
|
|
16623
17308
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16624
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17309
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17310
|
+
v = await this.#followingOf_fromJsonLd(doc, options);
|
|
17311
|
+
} catch (error) {
|
|
17312
|
+
if (!options.suppressError) throw error;
|
|
17313
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17314
|
+
property: "https://w3id.org/fep/5711#followingOf",
|
|
17315
|
+
error
|
|
17316
|
+
});
|
|
17317
|
+
return null;
|
|
17318
|
+
}
|
|
16625
17319
|
}
|
|
16626
17320
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
|
|
16627
17321
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16741,7 +17435,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
16741
17435
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
|
|
16742
17436
|
const prop = this._cachedJsonLd["likedOf"];
|
|
16743
17437
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16744
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17438
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17439
|
+
v = await this.#likedOf_fromJsonLd(doc, options);
|
|
17440
|
+
} catch (error) {
|
|
17441
|
+
if (!options.suppressError) throw error;
|
|
17442
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17443
|
+
property: "https://w3id.org/fep/5711#likedOf",
|
|
17444
|
+
error
|
|
17445
|
+
});
|
|
17446
|
+
return null;
|
|
17447
|
+
}
|
|
16745
17448
|
}
|
|
16746
17449
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
|
|
16747
17450
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17646,7 +18349,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17646
18349
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
|
|
17647
18350
|
const prop = this._cachedJsonLd["partOf"];
|
|
17648
18351
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17649
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18352
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18353
|
+
v = await this.#partOf_fromJsonLd(doc, options);
|
|
18354
|
+
} catch (error) {
|
|
18355
|
+
if (!options.suppressError) throw error;
|
|
18356
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18357
|
+
property: "https://www.w3.org/ns/activitystreams#partOf",
|
|
18358
|
+
error
|
|
18359
|
+
});
|
|
18360
|
+
return null;
|
|
18361
|
+
}
|
|
17650
18362
|
}
|
|
17651
18363
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
|
|
17652
18364
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17766,7 +18478,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17766
18478
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
|
|
17767
18479
|
const prop = this._cachedJsonLd["next"];
|
|
17768
18480
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17769
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18481
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18482
|
+
v = await this.#next_fromJsonLd(doc, options);
|
|
18483
|
+
} catch (error) {
|
|
18484
|
+
if (!options.suppressError) throw error;
|
|
18485
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18486
|
+
property: "https://www.w3.org/ns/activitystreams#next",
|
|
18487
|
+
error
|
|
18488
|
+
});
|
|
18489
|
+
return null;
|
|
18490
|
+
}
|
|
17770
18491
|
}
|
|
17771
18492
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
|
|
17772
18493
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17886,7 +18607,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17886
18607
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
|
|
17887
18608
|
const prop = this._cachedJsonLd["prev"];
|
|
17888
18609
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17889
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18610
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18611
|
+
v = await this.#prev_fromJsonLd(doc, options);
|
|
18612
|
+
} catch (error) {
|
|
18613
|
+
if (!options.suppressError) throw error;
|
|
18614
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18615
|
+
property: "https://www.w3.org/ns/activitystreams#prev",
|
|
18616
|
+
error
|
|
18617
|
+
});
|
|
18618
|
+
return null;
|
|
18619
|
+
}
|
|
17890
18620
|
}
|
|
17891
18621
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
|
|
17892
18622
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20007,7 +20737,16 @@ var Group = class Group extends Object$1 {
|
|
|
20007
20737
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
20008
20738
|
const prop = this._cachedJsonLd["publicKey"];
|
|
20009
20739
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20010
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
20740
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20741
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
20742
|
+
} catch (error) {
|
|
20743
|
+
if (!options.suppressError) throw error;
|
|
20744
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20745
|
+
property: "https://w3id.org/security#publicKey",
|
|
20746
|
+
error
|
|
20747
|
+
});
|
|
20748
|
+
return null;
|
|
20749
|
+
}
|
|
20011
20750
|
}
|
|
20012
20751
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
20013
20752
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20048,7 +20787,17 @@ var Group = class Group extends Object$1 {
|
|
|
20048
20787
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
20049
20788
|
const prop = this._cachedJsonLd["publicKey"];
|
|
20050
20789
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
20051
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
20790
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
20791
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
20792
|
+
} catch (error) {
|
|
20793
|
+
if (!options.suppressError) throw error;
|
|
20794
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
20795
|
+
property: "https://w3id.org/security#publicKey",
|
|
20796
|
+
index: i,
|
|
20797
|
+
error
|
|
20798
|
+
});
|
|
20799
|
+
continue;
|
|
20800
|
+
}
|
|
20052
20801
|
}
|
|
20053
20802
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
20054
20803
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20172,7 +20921,16 @@ var Group = class Group extends Object$1 {
|
|
|
20172
20921
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
20173
20922
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
20174
20923
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20175
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
20924
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20925
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
20926
|
+
} catch (error) {
|
|
20927
|
+
if (!options.suppressError) throw error;
|
|
20928
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20929
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
20930
|
+
error
|
|
20931
|
+
});
|
|
20932
|
+
return null;
|
|
20933
|
+
}
|
|
20176
20934
|
}
|
|
20177
20935
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
20178
20936
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20216,7 +20974,17 @@ var Group = class Group extends Object$1 {
|
|
|
20216
20974
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
20217
20975
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
20218
20976
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
20219
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
20977
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
20978
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
20979
|
+
} catch (error) {
|
|
20980
|
+
if (!options.suppressError) throw error;
|
|
20981
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
20982
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
20983
|
+
index: i,
|
|
20984
|
+
error
|
|
20985
|
+
});
|
|
20986
|
+
continue;
|
|
20987
|
+
}
|
|
20220
20988
|
}
|
|
20221
20989
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
20222
20990
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20371,7 +21139,16 @@ var Group = class Group extends Object$1 {
|
|
|
20371
21139
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
20372
21140
|
const prop = this._cachedJsonLd["inbox"];
|
|
20373
21141
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20374
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21142
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21143
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
21144
|
+
} catch (error) {
|
|
21145
|
+
if (!options.suppressError) throw error;
|
|
21146
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21147
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
21148
|
+
error
|
|
21149
|
+
});
|
|
21150
|
+
return null;
|
|
21151
|
+
}
|
|
20375
21152
|
}
|
|
20376
21153
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
20377
21154
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20510,7 +21287,16 @@ var Group = class Group extends Object$1 {
|
|
|
20510
21287
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
20511
21288
|
const prop = this._cachedJsonLd["outbox"];
|
|
20512
21289
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20513
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21290
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21291
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
21292
|
+
} catch (error) {
|
|
21293
|
+
if (!options.suppressError) throw error;
|
|
21294
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21295
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
21296
|
+
error
|
|
21297
|
+
});
|
|
21298
|
+
return null;
|
|
21299
|
+
}
|
|
20514
21300
|
}
|
|
20515
21301
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
20516
21302
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20634,7 +21420,16 @@ var Group = class Group extends Object$1 {
|
|
|
20634
21420
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
20635
21421
|
const prop = this._cachedJsonLd["following"];
|
|
20636
21422
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20637
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21423
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21424
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
21425
|
+
} catch (error) {
|
|
21426
|
+
if (!options.suppressError) throw error;
|
|
21427
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21428
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
21429
|
+
error
|
|
21430
|
+
});
|
|
21431
|
+
return null;
|
|
21432
|
+
}
|
|
20638
21433
|
}
|
|
20639
21434
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
20640
21435
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20761,7 +21556,16 @@ var Group = class Group extends Object$1 {
|
|
|
20761
21556
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
20762
21557
|
const prop = this._cachedJsonLd["followers"];
|
|
20763
21558
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20764
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21559
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21560
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
21561
|
+
} catch (error) {
|
|
21562
|
+
if (!options.suppressError) throw error;
|
|
21563
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21564
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
21565
|
+
error
|
|
21566
|
+
});
|
|
21567
|
+
return null;
|
|
21568
|
+
}
|
|
20765
21569
|
}
|
|
20766
21570
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
20767
21571
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20886,7 +21690,16 @@ var Group = class Group extends Object$1 {
|
|
|
20886
21690
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
20887
21691
|
const prop = this._cachedJsonLd["liked"];
|
|
20888
21692
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20889
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21693
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21694
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
21695
|
+
} catch (error) {
|
|
21696
|
+
if (!options.suppressError) throw error;
|
|
21697
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21698
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
21699
|
+
error
|
|
21700
|
+
});
|
|
21701
|
+
return null;
|
|
21702
|
+
}
|
|
20890
21703
|
}
|
|
20891
21704
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
20892
21705
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21009,7 +21822,16 @@ var Group = class Group extends Object$1 {
|
|
|
21009
21822
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
21010
21823
|
const prop = this._cachedJsonLd["featured"];
|
|
21011
21824
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21012
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21825
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21826
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
21827
|
+
} catch (error) {
|
|
21828
|
+
if (!options.suppressError) throw error;
|
|
21829
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21830
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
21831
|
+
error
|
|
21832
|
+
});
|
|
21833
|
+
return null;
|
|
21834
|
+
}
|
|
21013
21835
|
}
|
|
21014
21836
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
21015
21837
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21132,7 +21954,16 @@ var Group = class Group extends Object$1 {
|
|
|
21132
21954
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
21133
21955
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
21134
21956
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21135
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21957
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21958
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
21959
|
+
} catch (error) {
|
|
21960
|
+
if (!options.suppressError) throw error;
|
|
21961
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21962
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
21963
|
+
error
|
|
21964
|
+
});
|
|
21965
|
+
return null;
|
|
21966
|
+
}
|
|
21136
21967
|
}
|
|
21137
21968
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
21138
21969
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21251,7 +22082,17 @@ var Group = class Group extends Object$1 {
|
|
|
21251
22082
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
21252
22083
|
const prop = this._cachedJsonLd["streams"];
|
|
21253
22084
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
21254
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
22085
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
22086
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
22087
|
+
} catch (error) {
|
|
22088
|
+
if (!options.suppressError) throw error;
|
|
22089
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
22090
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
22091
|
+
index: i,
|
|
22092
|
+
error
|
|
22093
|
+
});
|
|
22094
|
+
continue;
|
|
22095
|
+
}
|
|
21255
22096
|
}
|
|
21256
22097
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
21257
22098
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21460,7 +22301,16 @@ var Group = class Group extends Object$1 {
|
|
|
21460
22301
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
21461
22302
|
const prop = this._cachedJsonLd["movedTo"];
|
|
21462
22303
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21463
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22304
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22305
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
22306
|
+
} catch (error) {
|
|
22307
|
+
if (!options.suppressError) throw error;
|
|
22308
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22309
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
22310
|
+
error
|
|
22311
|
+
});
|
|
22312
|
+
return null;
|
|
22313
|
+
}
|
|
21464
22314
|
}
|
|
21465
22315
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
21466
22316
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21629,7 +22479,16 @@ var Group = class Group extends Object$1 {
|
|
|
21629
22479
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
21630
22480
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
21631
22481
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21632
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22482
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22483
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
22484
|
+
} catch (error) {
|
|
22485
|
+
if (!options.suppressError) throw error;
|
|
22486
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22487
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
22488
|
+
error
|
|
22489
|
+
});
|
|
22490
|
+
return null;
|
|
22491
|
+
}
|
|
21633
22492
|
}
|
|
21634
22493
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
21635
22494
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21673,7 +22532,17 @@ var Group = class Group extends Object$1 {
|
|
|
21673
22532
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
21674
22533
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
21675
22534
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
21676
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
22535
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
22536
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
22537
|
+
} catch (error) {
|
|
22538
|
+
if (!options.suppressError) throw error;
|
|
22539
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
22540
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
22541
|
+
index: i,
|
|
22542
|
+
error
|
|
22543
|
+
});
|
|
22544
|
+
continue;
|
|
22545
|
+
}
|
|
21677
22546
|
}
|
|
21678
22547
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
21679
22548
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21797,7 +22666,16 @@ var Group = class Group extends Object$1 {
|
|
|
21797
22666
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
21798
22667
|
const prop = this._cachedJsonLd["service"];
|
|
21799
22668
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21800
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22669
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22670
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
22671
|
+
} catch (error) {
|
|
22672
|
+
if (!options.suppressError) throw error;
|
|
22673
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22674
|
+
property: "https://www.w3.org/ns/did#service",
|
|
22675
|
+
error
|
|
22676
|
+
});
|
|
22677
|
+
return null;
|
|
22678
|
+
}
|
|
21801
22679
|
}
|
|
21802
22680
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
21803
22681
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21841,7 +22719,17 @@ var Group = class Group extends Object$1 {
|
|
|
21841
22719
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
21842
22720
|
const prop = this._cachedJsonLd["service"];
|
|
21843
22721
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
21844
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
22722
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
22723
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
22724
|
+
} catch (error) {
|
|
22725
|
+
if (!options.suppressError) throw error;
|
|
22726
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
22727
|
+
property: "https://www.w3.org/ns/did#service",
|
|
22728
|
+
index: i,
|
|
22729
|
+
error
|
|
22730
|
+
});
|
|
22731
|
+
continue;
|
|
22732
|
+
}
|
|
21845
22733
|
}
|
|
21846
22734
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
21847
22735
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23246,7 +24134,17 @@ var Link = class Link {
|
|
|
23246
24134
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
23247
24135
|
const prop = this._cachedJsonLd["preview"];
|
|
23248
24136
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
23249
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
24137
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
24138
|
+
v = await this.#preview_fromJsonLd(obj, options);
|
|
24139
|
+
} catch (error) {
|
|
24140
|
+
if (!options.suppressError) throw error;
|
|
24141
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
24142
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
24143
|
+
index: i,
|
|
24144
|
+
error
|
|
24145
|
+
});
|
|
24146
|
+
continue;
|
|
24147
|
+
}
|
|
23250
24148
|
}
|
|
23251
24149
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
23252
24150
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -25628,7 +26526,17 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25628
26526
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
25629
26527
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
25630
26528
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
25631
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
26529
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
26530
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
26531
|
+
} catch (error) {
|
|
26532
|
+
if (!options.suppressError) throw error;
|
|
26533
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
26534
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
26535
|
+
index: i,
|
|
26536
|
+
error
|
|
26537
|
+
});
|
|
26538
|
+
continue;
|
|
26539
|
+
}
|
|
25632
26540
|
}
|
|
25633
26541
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
25634
26542
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26088,7 +26996,17 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
26088
26996
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
26089
26997
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
26090
26998
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
26091
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
26999
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
27000
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
27001
|
+
} catch (error) {
|
|
27002
|
+
if (!options.suppressError) throw error;
|
|
27003
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
27004
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
27005
|
+
index: i,
|
|
27006
|
+
error
|
|
27007
|
+
});
|
|
27008
|
+
continue;
|
|
27009
|
+
}
|
|
26092
27010
|
}
|
|
26093
27011
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
26094
27012
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26849,7 +27767,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
26849
27767
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
26850
27768
|
const prop = this._cachedJsonLd["publicKey"];
|
|
26851
27769
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
26852
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27770
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
27771
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
27772
|
+
} catch (error) {
|
|
27773
|
+
if (!options.suppressError) throw error;
|
|
27774
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
27775
|
+
property: "https://w3id.org/security#publicKey",
|
|
27776
|
+
error
|
|
27777
|
+
});
|
|
27778
|
+
return null;
|
|
27779
|
+
}
|
|
26853
27780
|
}
|
|
26854
27781
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
26855
27782
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26890,7 +27817,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
26890
27817
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
26891
27818
|
const prop = this._cachedJsonLd["publicKey"];
|
|
26892
27819
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
26893
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
27820
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
27821
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
27822
|
+
} catch (error) {
|
|
27823
|
+
if (!options.suppressError) throw error;
|
|
27824
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
27825
|
+
property: "https://w3id.org/security#publicKey",
|
|
27826
|
+
index: i,
|
|
27827
|
+
error
|
|
27828
|
+
});
|
|
27829
|
+
continue;
|
|
27830
|
+
}
|
|
26894
27831
|
}
|
|
26895
27832
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
26896
27833
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27014,7 +27951,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27014
27951
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
27015
27952
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
27016
27953
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27017
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27954
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
27955
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
27956
|
+
} catch (error) {
|
|
27957
|
+
if (!options.suppressError) throw error;
|
|
27958
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
27959
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
27960
|
+
error
|
|
27961
|
+
});
|
|
27962
|
+
return null;
|
|
27963
|
+
}
|
|
27018
27964
|
}
|
|
27019
27965
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
27020
27966
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27058,7 +28004,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
27058
28004
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
27059
28005
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
27060
28006
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
27061
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
28007
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
28008
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
28009
|
+
} catch (error) {
|
|
28010
|
+
if (!options.suppressError) throw error;
|
|
28011
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
28012
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
28013
|
+
index: i,
|
|
28014
|
+
error
|
|
28015
|
+
});
|
|
28016
|
+
continue;
|
|
28017
|
+
}
|
|
27062
28018
|
}
|
|
27063
28019
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
27064
28020
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27213,7 +28169,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27213
28169
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
27214
28170
|
const prop = this._cachedJsonLd["inbox"];
|
|
27215
28171
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27216
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28172
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28173
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
28174
|
+
} catch (error) {
|
|
28175
|
+
if (!options.suppressError) throw error;
|
|
28176
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28177
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
28178
|
+
error
|
|
28179
|
+
});
|
|
28180
|
+
return null;
|
|
28181
|
+
}
|
|
27217
28182
|
}
|
|
27218
28183
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
27219
28184
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27352,7 +28317,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27352
28317
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
27353
28318
|
const prop = this._cachedJsonLd["outbox"];
|
|
27354
28319
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27355
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28320
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28321
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
28322
|
+
} catch (error) {
|
|
28323
|
+
if (!options.suppressError) throw error;
|
|
28324
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28325
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
28326
|
+
error
|
|
28327
|
+
});
|
|
28328
|
+
return null;
|
|
28329
|
+
}
|
|
27356
28330
|
}
|
|
27357
28331
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
27358
28332
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27476,7 +28450,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27476
28450
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
27477
28451
|
const prop = this._cachedJsonLd["following"];
|
|
27478
28452
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27479
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28453
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28454
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
28455
|
+
} catch (error) {
|
|
28456
|
+
if (!options.suppressError) throw error;
|
|
28457
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28458
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
28459
|
+
error
|
|
28460
|
+
});
|
|
28461
|
+
return null;
|
|
28462
|
+
}
|
|
27480
28463
|
}
|
|
27481
28464
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
27482
28465
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27603,7 +28586,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27603
28586
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
27604
28587
|
const prop = this._cachedJsonLd["followers"];
|
|
27605
28588
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27606
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28589
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28590
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
28591
|
+
} catch (error) {
|
|
28592
|
+
if (!options.suppressError) throw error;
|
|
28593
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28594
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
28595
|
+
error
|
|
28596
|
+
});
|
|
28597
|
+
return null;
|
|
28598
|
+
}
|
|
27607
28599
|
}
|
|
27608
28600
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
27609
28601
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27728,7 +28720,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27728
28720
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
27729
28721
|
const prop = this._cachedJsonLd["liked"];
|
|
27730
28722
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27731
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28723
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28724
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
28725
|
+
} catch (error) {
|
|
28726
|
+
if (!options.suppressError) throw error;
|
|
28727
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28728
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
28729
|
+
error
|
|
28730
|
+
});
|
|
28731
|
+
return null;
|
|
28732
|
+
}
|
|
27732
28733
|
}
|
|
27733
28734
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
27734
28735
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27851,7 +28852,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27851
28852
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
27852
28853
|
const prop = this._cachedJsonLd["featured"];
|
|
27853
28854
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27854
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28855
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28856
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
28857
|
+
} catch (error) {
|
|
28858
|
+
if (!options.suppressError) throw error;
|
|
28859
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28860
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
28861
|
+
error
|
|
28862
|
+
});
|
|
28863
|
+
return null;
|
|
28864
|
+
}
|
|
27855
28865
|
}
|
|
27856
28866
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
27857
28867
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27974,7 +28984,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
27974
28984
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
27975
28985
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
27976
28986
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27977
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28987
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28988
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
28989
|
+
} catch (error) {
|
|
28990
|
+
if (!options.suppressError) throw error;
|
|
28991
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28992
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
28993
|
+
error
|
|
28994
|
+
});
|
|
28995
|
+
return null;
|
|
28996
|
+
}
|
|
27978
28997
|
}
|
|
27979
28998
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
27980
28999
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28093,7 +29112,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
28093
29112
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
28094
29113
|
const prop = this._cachedJsonLd["streams"];
|
|
28095
29114
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
28096
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29115
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
29116
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
29117
|
+
} catch (error) {
|
|
29118
|
+
if (!options.suppressError) throw error;
|
|
29119
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
29120
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
29121
|
+
index: i,
|
|
29122
|
+
error
|
|
29123
|
+
});
|
|
29124
|
+
continue;
|
|
29125
|
+
}
|
|
28097
29126
|
}
|
|
28098
29127
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
28099
29128
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28302,7 +29331,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
28302
29331
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
28303
29332
|
const prop = this._cachedJsonLd["movedTo"];
|
|
28304
29333
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28305
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29334
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29335
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
29336
|
+
} catch (error) {
|
|
29337
|
+
if (!options.suppressError) throw error;
|
|
29338
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29339
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
29340
|
+
error
|
|
29341
|
+
});
|
|
29342
|
+
return null;
|
|
29343
|
+
}
|
|
28306
29344
|
}
|
|
28307
29345
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
28308
29346
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28471,7 +29509,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
28471
29509
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
28472
29510
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
28473
29511
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28474
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29512
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29513
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
29514
|
+
} catch (error) {
|
|
29515
|
+
if (!options.suppressError) throw error;
|
|
29516
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29517
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
29518
|
+
error
|
|
29519
|
+
});
|
|
29520
|
+
return null;
|
|
29521
|
+
}
|
|
28475
29522
|
}
|
|
28476
29523
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
28477
29524
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28515,7 +29562,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
28515
29562
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
28516
29563
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
28517
29564
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
28518
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29565
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
29566
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
29567
|
+
} catch (error) {
|
|
29568
|
+
if (!options.suppressError) throw error;
|
|
29569
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
29570
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
29571
|
+
index: i,
|
|
29572
|
+
error
|
|
29573
|
+
});
|
|
29574
|
+
continue;
|
|
29575
|
+
}
|
|
28519
29576
|
}
|
|
28520
29577
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
28521
29578
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28639,7 +29696,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
28639
29696
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
28640
29697
|
const prop = this._cachedJsonLd["service"];
|
|
28641
29698
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28642
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29699
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29700
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
29701
|
+
} catch (error) {
|
|
29702
|
+
if (!options.suppressError) throw error;
|
|
29703
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29704
|
+
property: "https://www.w3.org/ns/did#service",
|
|
29705
|
+
error
|
|
29706
|
+
});
|
|
29707
|
+
return null;
|
|
29708
|
+
}
|
|
28643
29709
|
}
|
|
28644
29710
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
28645
29711
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28683,7 +29749,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
28683
29749
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
28684
29750
|
const prop = this._cachedJsonLd["service"];
|
|
28685
29751
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
28686
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29752
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
29753
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
29754
|
+
} catch (error) {
|
|
29755
|
+
if (!options.suppressError) throw error;
|
|
29756
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
29757
|
+
property: "https://www.w3.org/ns/did#service",
|
|
29758
|
+
index: i,
|
|
29759
|
+
error
|
|
29760
|
+
});
|
|
29761
|
+
continue;
|
|
29762
|
+
}
|
|
28687
29763
|
}
|
|
28688
29764
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
28689
29765
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -30330,7 +31406,16 @@ var Person = class Person extends Object$1 {
|
|
|
30330
31406
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
30331
31407
|
const prop = this._cachedJsonLd["publicKey"];
|
|
30332
31408
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30333
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
31409
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
31410
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
31411
|
+
} catch (error) {
|
|
31412
|
+
if (!options.suppressError) throw error;
|
|
31413
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
31414
|
+
property: "https://w3id.org/security#publicKey",
|
|
31415
|
+
error
|
|
31416
|
+
});
|
|
31417
|
+
return null;
|
|
31418
|
+
}
|
|
30334
31419
|
}
|
|
30335
31420
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
30336
31421
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -30371,7 +31456,17 @@ var Person = class Person extends Object$1 {
|
|
|
30371
31456
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
30372
31457
|
const prop = this._cachedJsonLd["publicKey"];
|
|
30373
31458
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
30374
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
31459
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
31460
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
31461
|
+
} catch (error) {
|
|
31462
|
+
if (!options.suppressError) throw error;
|
|
31463
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
31464
|
+
property: "https://w3id.org/security#publicKey",
|
|
31465
|
+
index: i,
|
|
31466
|
+
error
|
|
31467
|
+
});
|
|
31468
|
+
continue;
|
|
31469
|
+
}
|
|
30375
31470
|
}
|
|
30376
31471
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
30377
31472
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -30495,7 +31590,16 @@ var Person = class Person extends Object$1 {
|
|
|
30495
31590
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
30496
31591
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
30497
31592
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30498
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
31593
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
31594
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
31595
|
+
} catch (error) {
|
|
31596
|
+
if (!options.suppressError) throw error;
|
|
31597
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
31598
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
31599
|
+
error
|
|
31600
|
+
});
|
|
31601
|
+
return null;
|
|
31602
|
+
}
|
|
30499
31603
|
}
|
|
30500
31604
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
30501
31605
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -30539,7 +31643,17 @@ var Person = class Person extends Object$1 {
|
|
|
30539
31643
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
30540
31644
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
30541
31645
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
30542
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
31646
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
31647
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
31648
|
+
} catch (error) {
|
|
31649
|
+
if (!options.suppressError) throw error;
|
|
31650
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
31651
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
31652
|
+
index: i,
|
|
31653
|
+
error
|
|
31654
|
+
});
|
|
31655
|
+
continue;
|
|
31656
|
+
}
|
|
30543
31657
|
}
|
|
30544
31658
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
30545
31659
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -30694,7 +31808,16 @@ var Person = class Person extends Object$1 {
|
|
|
30694
31808
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
30695
31809
|
const prop = this._cachedJsonLd["inbox"];
|
|
30696
31810
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30697
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
31811
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
31812
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
31813
|
+
} catch (error) {
|
|
31814
|
+
if (!options.suppressError) throw error;
|
|
31815
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
31816
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
31817
|
+
error
|
|
31818
|
+
});
|
|
31819
|
+
return null;
|
|
31820
|
+
}
|
|
30698
31821
|
}
|
|
30699
31822
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
30700
31823
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -30833,7 +31956,16 @@ var Person = class Person extends Object$1 {
|
|
|
30833
31956
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
30834
31957
|
const prop = this._cachedJsonLd["outbox"];
|
|
30835
31958
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30836
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
31959
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
31960
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
31961
|
+
} catch (error) {
|
|
31962
|
+
if (!options.suppressError) throw error;
|
|
31963
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
31964
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
31965
|
+
error
|
|
31966
|
+
});
|
|
31967
|
+
return null;
|
|
31968
|
+
}
|
|
30837
31969
|
}
|
|
30838
31970
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
30839
31971
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -30957,7 +32089,16 @@ var Person = class Person extends Object$1 {
|
|
|
30957
32089
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
30958
32090
|
const prop = this._cachedJsonLd["following"];
|
|
30959
32091
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30960
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
32092
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
32093
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
32094
|
+
} catch (error) {
|
|
32095
|
+
if (!options.suppressError) throw error;
|
|
32096
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
32097
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
32098
|
+
error
|
|
32099
|
+
});
|
|
32100
|
+
return null;
|
|
32101
|
+
}
|
|
30961
32102
|
}
|
|
30962
32103
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
30963
32104
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31084,7 +32225,16 @@ var Person = class Person extends Object$1 {
|
|
|
31084
32225
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
31085
32226
|
const prop = this._cachedJsonLd["followers"];
|
|
31086
32227
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31087
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
32228
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
32229
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
32230
|
+
} catch (error) {
|
|
32231
|
+
if (!options.suppressError) throw error;
|
|
32232
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
32233
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
32234
|
+
error
|
|
32235
|
+
});
|
|
32236
|
+
return null;
|
|
32237
|
+
}
|
|
31088
32238
|
}
|
|
31089
32239
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
31090
32240
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31209,7 +32359,16 @@ var Person = class Person extends Object$1 {
|
|
|
31209
32359
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
31210
32360
|
const prop = this._cachedJsonLd["liked"];
|
|
31211
32361
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31212
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
32362
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
32363
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
32364
|
+
} catch (error) {
|
|
32365
|
+
if (!options.suppressError) throw error;
|
|
32366
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
32367
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
32368
|
+
error
|
|
32369
|
+
});
|
|
32370
|
+
return null;
|
|
32371
|
+
}
|
|
31213
32372
|
}
|
|
31214
32373
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
31215
32374
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31332,7 +32491,16 @@ var Person = class Person extends Object$1 {
|
|
|
31332
32491
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
31333
32492
|
const prop = this._cachedJsonLd["featured"];
|
|
31334
32493
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31335
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
32494
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
32495
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
32496
|
+
} catch (error) {
|
|
32497
|
+
if (!options.suppressError) throw error;
|
|
32498
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
32499
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
32500
|
+
error
|
|
32501
|
+
});
|
|
32502
|
+
return null;
|
|
32503
|
+
}
|
|
31336
32504
|
}
|
|
31337
32505
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
31338
32506
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31455,7 +32623,16 @@ var Person = class Person extends Object$1 {
|
|
|
31455
32623
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
31456
32624
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
31457
32625
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31458
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
32626
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
32627
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
32628
|
+
} catch (error) {
|
|
32629
|
+
if (!options.suppressError) throw error;
|
|
32630
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
32631
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
32632
|
+
error
|
|
32633
|
+
});
|
|
32634
|
+
return null;
|
|
32635
|
+
}
|
|
31459
32636
|
}
|
|
31460
32637
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
31461
32638
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31574,7 +32751,17 @@ var Person = class Person extends Object$1 {
|
|
|
31574
32751
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
31575
32752
|
const prop = this._cachedJsonLd["streams"];
|
|
31576
32753
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
31577
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
32754
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
32755
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
32756
|
+
} catch (error) {
|
|
32757
|
+
if (!options.suppressError) throw error;
|
|
32758
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
32759
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
32760
|
+
index: i,
|
|
32761
|
+
error
|
|
32762
|
+
});
|
|
32763
|
+
continue;
|
|
32764
|
+
}
|
|
31578
32765
|
}
|
|
31579
32766
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
31580
32767
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31783,7 +32970,16 @@ var Person = class Person extends Object$1 {
|
|
|
31783
32970
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
31784
32971
|
const prop = this._cachedJsonLd["movedTo"];
|
|
31785
32972
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31786
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
32973
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
32974
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
32975
|
+
} catch (error) {
|
|
32976
|
+
if (!options.suppressError) throw error;
|
|
32977
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
32978
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
32979
|
+
error
|
|
32980
|
+
});
|
|
32981
|
+
return null;
|
|
32982
|
+
}
|
|
31787
32983
|
}
|
|
31788
32984
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
31789
32985
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31952,7 +33148,16 @@ var Person = class Person extends Object$1 {
|
|
|
31952
33148
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
31953
33149
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
31954
33150
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31955
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
33151
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
33152
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
33153
|
+
} catch (error) {
|
|
33154
|
+
if (!options.suppressError) throw error;
|
|
33155
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
33156
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
33157
|
+
error
|
|
33158
|
+
});
|
|
33159
|
+
return null;
|
|
33160
|
+
}
|
|
31956
33161
|
}
|
|
31957
33162
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
31958
33163
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31996,7 +33201,17 @@ var Person = class Person extends Object$1 {
|
|
|
31996
33201
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
31997
33202
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
31998
33203
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
31999
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
33204
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
33205
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
33206
|
+
} catch (error) {
|
|
33207
|
+
if (!options.suppressError) throw error;
|
|
33208
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
33209
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
33210
|
+
index: i,
|
|
33211
|
+
error
|
|
33212
|
+
});
|
|
33213
|
+
continue;
|
|
33214
|
+
}
|
|
32000
33215
|
}
|
|
32001
33216
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
32002
33217
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -32120,7 +33335,16 @@ var Person = class Person extends Object$1 {
|
|
|
32120
33335
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
32121
33336
|
const prop = this._cachedJsonLd["service"];
|
|
32122
33337
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
32123
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
33338
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
33339
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
33340
|
+
} catch (error) {
|
|
33341
|
+
if (!options.suppressError) throw error;
|
|
33342
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
33343
|
+
property: "https://www.w3.org/ns/did#service",
|
|
33344
|
+
error
|
|
33345
|
+
});
|
|
33346
|
+
return null;
|
|
33347
|
+
}
|
|
32124
33348
|
}
|
|
32125
33349
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
32126
33350
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -32164,7 +33388,17 @@ var Person = class Person extends Object$1 {
|
|
|
32164
33388
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
32165
33389
|
const prop = this._cachedJsonLd["service"];
|
|
32166
33390
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
32167
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
33391
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
33392
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
33393
|
+
} catch (error) {
|
|
33394
|
+
if (!options.suppressError) throw error;
|
|
33395
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
33396
|
+
property: "https://www.w3.org/ns/did#service",
|
|
33397
|
+
index: i,
|
|
33398
|
+
error
|
|
33399
|
+
});
|
|
33400
|
+
continue;
|
|
33401
|
+
}
|
|
32168
33402
|
}
|
|
32169
33403
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
32170
33404
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -33799,7 +35033,16 @@ var Profile = class Profile extends Object$1 {
|
|
|
33799
35033
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
|
|
33800
35034
|
const prop = this._cachedJsonLd["describes"];
|
|
33801
35035
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
33802
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35036
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
35037
|
+
v = await this.#describes_fromJsonLd(doc, options);
|
|
35038
|
+
} catch (error) {
|
|
35039
|
+
if (!options.suppressError) throw error;
|
|
35040
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
35041
|
+
property: "https://www.w3.org/ns/activitystreams#describes",
|
|
35042
|
+
error
|
|
35043
|
+
});
|
|
35044
|
+
return null;
|
|
35045
|
+
}
|
|
33803
35046
|
}
|
|
33804
35047
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
|
|
33805
35048
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34167,7 +35410,17 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
34167
35410
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
|
|
34168
35411
|
const prop = this._cachedJsonLd["oneOf"];
|
|
34169
35412
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
34170
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
35413
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
35414
|
+
v = await this.#exclusiveOption_fromJsonLd(obj, options);
|
|
35415
|
+
} catch (error) {
|
|
35416
|
+
if (!options.suppressError) throw error;
|
|
35417
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
35418
|
+
property: "https://www.w3.org/ns/activitystreams#oneOf",
|
|
35419
|
+
index: i,
|
|
35420
|
+
error
|
|
35421
|
+
});
|
|
35422
|
+
continue;
|
|
35423
|
+
}
|
|
34171
35424
|
}
|
|
34172
35425
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
|
|
34173
35426
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34289,7 +35542,17 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
34289
35542
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
|
|
34290
35543
|
const prop = this._cachedJsonLd["anyOf"];
|
|
34291
35544
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
34292
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
35545
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
35546
|
+
v = await this.#inclusiveOption_fromJsonLd(obj, options);
|
|
35547
|
+
} catch (error) {
|
|
35548
|
+
if (!options.suppressError) throw error;
|
|
35549
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
35550
|
+
property: "https://www.w3.org/ns/activitystreams#anyOf",
|
|
35551
|
+
index: i,
|
|
35552
|
+
error
|
|
35553
|
+
});
|
|
35554
|
+
continue;
|
|
35555
|
+
}
|
|
34293
35556
|
}
|
|
34294
35557
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
|
|
34295
35558
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35123,7 +36386,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
35123
36386
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
|
|
35124
36387
|
const prop = this._cachedJsonLd["subject"];
|
|
35125
36388
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35126
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36389
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36390
|
+
v = await this.#subject_fromJsonLd(doc, options);
|
|
36391
|
+
} catch (error) {
|
|
36392
|
+
if (!options.suppressError) throw error;
|
|
36393
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36394
|
+
property: "https://www.w3.org/ns/activitystreams#subject",
|
|
36395
|
+
error
|
|
36396
|
+
});
|
|
36397
|
+
return null;
|
|
36398
|
+
}
|
|
35127
36399
|
}
|
|
35128
36400
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
|
|
35129
36401
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35243,7 +36515,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
35243
36515
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
35244
36516
|
const prop = this._cachedJsonLd["object"];
|
|
35245
36517
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35246
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36518
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36519
|
+
v = await this.#object_fromJsonLd(doc, options);
|
|
36520
|
+
} catch (error) {
|
|
36521
|
+
if (!options.suppressError) throw error;
|
|
36522
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36523
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
36524
|
+
error
|
|
36525
|
+
});
|
|
36526
|
+
return null;
|
|
36527
|
+
}
|
|
35247
36528
|
}
|
|
35248
36529
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
35249
36530
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35284,7 +36565,17 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
35284
36565
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
35285
36566
|
const prop = this._cachedJsonLd["object"];
|
|
35286
36567
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35287
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36568
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36569
|
+
v = await this.#object_fromJsonLd(obj, options);
|
|
36570
|
+
} catch (error) {
|
|
36571
|
+
if (!options.suppressError) throw error;
|
|
36572
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36573
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
36574
|
+
index: i,
|
|
36575
|
+
error
|
|
36576
|
+
});
|
|
36577
|
+
continue;
|
|
36578
|
+
}
|
|
35288
36579
|
}
|
|
35289
36580
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
35290
36581
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35407,7 +36698,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
35407
36698
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
35408
36699
|
const prop = this._cachedJsonLd["relationship"];
|
|
35409
36700
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35410
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36701
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36702
|
+
v = await this.#relationship_fromJsonLd(doc, options);
|
|
36703
|
+
} catch (error) {
|
|
36704
|
+
if (!options.suppressError) throw error;
|
|
36705
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36706
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
36707
|
+
error
|
|
36708
|
+
});
|
|
36709
|
+
return null;
|
|
36710
|
+
}
|
|
35411
36711
|
}
|
|
35412
36712
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
35413
36713
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35450,7 +36750,17 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
35450
36750
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
35451
36751
|
const prop = this._cachedJsonLd["relationship"];
|
|
35452
36752
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35453
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36753
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36754
|
+
v = await this.#relationship_fromJsonLd(obj, options);
|
|
36755
|
+
} catch (error) {
|
|
36756
|
+
if (!options.suppressError) throw error;
|
|
36757
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36758
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
36759
|
+
index: i,
|
|
36760
|
+
error
|
|
36761
|
+
});
|
|
36762
|
+
continue;
|
|
36763
|
+
}
|
|
35454
36764
|
}
|
|
35455
36765
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
35456
36766
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36288,7 +37598,16 @@ var Service = class Service extends Object$1 {
|
|
|
36288
37598
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
36289
37599
|
const prop = this._cachedJsonLd["publicKey"];
|
|
36290
37600
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36291
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
37601
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37602
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
37603
|
+
} catch (error) {
|
|
37604
|
+
if (!options.suppressError) throw error;
|
|
37605
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37606
|
+
property: "https://w3id.org/security#publicKey",
|
|
37607
|
+
error
|
|
37608
|
+
});
|
|
37609
|
+
return null;
|
|
37610
|
+
}
|
|
36292
37611
|
}
|
|
36293
37612
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
36294
37613
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36329,7 +37648,17 @@ var Service = class Service extends Object$1 {
|
|
|
36329
37648
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
36330
37649
|
const prop = this._cachedJsonLd["publicKey"];
|
|
36331
37650
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
36332
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
37651
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
37652
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
37653
|
+
} catch (error) {
|
|
37654
|
+
if (!options.suppressError) throw error;
|
|
37655
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
37656
|
+
property: "https://w3id.org/security#publicKey",
|
|
37657
|
+
index: i,
|
|
37658
|
+
error
|
|
37659
|
+
});
|
|
37660
|
+
continue;
|
|
37661
|
+
}
|
|
36333
37662
|
}
|
|
36334
37663
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
36335
37664
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36453,7 +37782,16 @@ var Service = class Service extends Object$1 {
|
|
|
36453
37782
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
36454
37783
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
36455
37784
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36456
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
37785
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37786
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
37787
|
+
} catch (error) {
|
|
37788
|
+
if (!options.suppressError) throw error;
|
|
37789
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37790
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
37791
|
+
error
|
|
37792
|
+
});
|
|
37793
|
+
return null;
|
|
37794
|
+
}
|
|
36457
37795
|
}
|
|
36458
37796
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
36459
37797
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36497,7 +37835,17 @@ var Service = class Service extends Object$1 {
|
|
|
36497
37835
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
36498
37836
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
36499
37837
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
36500
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
37838
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
37839
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
37840
|
+
} catch (error) {
|
|
37841
|
+
if (!options.suppressError) throw error;
|
|
37842
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
37843
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
37844
|
+
index: i,
|
|
37845
|
+
error
|
|
37846
|
+
});
|
|
37847
|
+
continue;
|
|
37848
|
+
}
|
|
36501
37849
|
}
|
|
36502
37850
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
36503
37851
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36652,7 +38000,16 @@ var Service = class Service extends Object$1 {
|
|
|
36652
38000
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
36653
38001
|
const prop = this._cachedJsonLd["inbox"];
|
|
36654
38002
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36655
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38003
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38004
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
38005
|
+
} catch (error) {
|
|
38006
|
+
if (!options.suppressError) throw error;
|
|
38007
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38008
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
38009
|
+
error
|
|
38010
|
+
});
|
|
38011
|
+
return null;
|
|
38012
|
+
}
|
|
36656
38013
|
}
|
|
36657
38014
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
36658
38015
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36791,7 +38148,16 @@ var Service = class Service extends Object$1 {
|
|
|
36791
38148
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
36792
38149
|
const prop = this._cachedJsonLd["outbox"];
|
|
36793
38150
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36794
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38151
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38152
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
38153
|
+
} catch (error) {
|
|
38154
|
+
if (!options.suppressError) throw error;
|
|
38155
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38156
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
38157
|
+
error
|
|
38158
|
+
});
|
|
38159
|
+
return null;
|
|
38160
|
+
}
|
|
36795
38161
|
}
|
|
36796
38162
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
36797
38163
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36915,7 +38281,16 @@ var Service = class Service extends Object$1 {
|
|
|
36915
38281
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
36916
38282
|
const prop = this._cachedJsonLd["following"];
|
|
36917
38283
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36918
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38284
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38285
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
38286
|
+
} catch (error) {
|
|
38287
|
+
if (!options.suppressError) throw error;
|
|
38288
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38289
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
38290
|
+
error
|
|
38291
|
+
});
|
|
38292
|
+
return null;
|
|
38293
|
+
}
|
|
36919
38294
|
}
|
|
36920
38295
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
36921
38296
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37042,7 +38417,16 @@ var Service = class Service extends Object$1 {
|
|
|
37042
38417
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
37043
38418
|
const prop = this._cachedJsonLd["followers"];
|
|
37044
38419
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37045
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38420
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38421
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
38422
|
+
} catch (error) {
|
|
38423
|
+
if (!options.suppressError) throw error;
|
|
38424
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38425
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
38426
|
+
error
|
|
38427
|
+
});
|
|
38428
|
+
return null;
|
|
38429
|
+
}
|
|
37046
38430
|
}
|
|
37047
38431
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
37048
38432
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37167,7 +38551,16 @@ var Service = class Service extends Object$1 {
|
|
|
37167
38551
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
37168
38552
|
const prop = this._cachedJsonLd["liked"];
|
|
37169
38553
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37170
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38554
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38555
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
38556
|
+
} catch (error) {
|
|
38557
|
+
if (!options.suppressError) throw error;
|
|
38558
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38559
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
38560
|
+
error
|
|
38561
|
+
});
|
|
38562
|
+
return null;
|
|
38563
|
+
}
|
|
37171
38564
|
}
|
|
37172
38565
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
37173
38566
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37290,7 +38683,16 @@ var Service = class Service extends Object$1 {
|
|
|
37290
38683
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
37291
38684
|
const prop = this._cachedJsonLd["featured"];
|
|
37292
38685
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37293
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38686
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38687
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
38688
|
+
} catch (error) {
|
|
38689
|
+
if (!options.suppressError) throw error;
|
|
38690
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38691
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
38692
|
+
error
|
|
38693
|
+
});
|
|
38694
|
+
return null;
|
|
38695
|
+
}
|
|
37294
38696
|
}
|
|
37295
38697
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
37296
38698
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37413,7 +38815,16 @@ var Service = class Service extends Object$1 {
|
|
|
37413
38815
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
37414
38816
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
37415
38817
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37416
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38818
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38819
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
38820
|
+
} catch (error) {
|
|
38821
|
+
if (!options.suppressError) throw error;
|
|
38822
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38823
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
38824
|
+
error
|
|
38825
|
+
});
|
|
38826
|
+
return null;
|
|
38827
|
+
}
|
|
37417
38828
|
}
|
|
37418
38829
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
37419
38830
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37532,7 +38943,17 @@ var Service = class Service extends Object$1 {
|
|
|
37532
38943
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
37533
38944
|
const prop = this._cachedJsonLd["streams"];
|
|
37534
38945
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
37535
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
38946
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
38947
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
38948
|
+
} catch (error) {
|
|
38949
|
+
if (!options.suppressError) throw error;
|
|
38950
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
38951
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
38952
|
+
index: i,
|
|
38953
|
+
error
|
|
38954
|
+
});
|
|
38955
|
+
continue;
|
|
38956
|
+
}
|
|
37536
38957
|
}
|
|
37537
38958
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
37538
38959
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37741,7 +39162,16 @@ var Service = class Service extends Object$1 {
|
|
|
37741
39162
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
37742
39163
|
const prop = this._cachedJsonLd["movedTo"];
|
|
37743
39164
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37744
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39165
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39166
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
39167
|
+
} catch (error) {
|
|
39168
|
+
if (!options.suppressError) throw error;
|
|
39169
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39170
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
39171
|
+
error
|
|
39172
|
+
});
|
|
39173
|
+
return null;
|
|
39174
|
+
}
|
|
37745
39175
|
}
|
|
37746
39176
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
37747
39177
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37910,7 +39340,16 @@ var Service = class Service extends Object$1 {
|
|
|
37910
39340
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
37911
39341
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
37912
39342
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37913
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39343
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39344
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
39345
|
+
} catch (error) {
|
|
39346
|
+
if (!options.suppressError) throw error;
|
|
39347
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39348
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
39349
|
+
error
|
|
39350
|
+
});
|
|
39351
|
+
return null;
|
|
39352
|
+
}
|
|
37914
39353
|
}
|
|
37915
39354
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
37916
39355
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37954,7 +39393,17 @@ var Service = class Service extends Object$1 {
|
|
|
37954
39393
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
37955
39394
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
37956
39395
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
37957
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
39396
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
39397
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
39398
|
+
} catch (error) {
|
|
39399
|
+
if (!options.suppressError) throw error;
|
|
39400
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
39401
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
39402
|
+
index: i,
|
|
39403
|
+
error
|
|
39404
|
+
});
|
|
39405
|
+
continue;
|
|
39406
|
+
}
|
|
37958
39407
|
}
|
|
37959
39408
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
37960
39409
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38078,7 +39527,16 @@ var Service = class Service extends Object$1 {
|
|
|
38078
39527
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
38079
39528
|
const prop = this._cachedJsonLd["service"];
|
|
38080
39529
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38081
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39530
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39531
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
39532
|
+
} catch (error) {
|
|
39533
|
+
if (!options.suppressError) throw error;
|
|
39534
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39535
|
+
property: "https://www.w3.org/ns/did#service",
|
|
39536
|
+
error
|
|
39537
|
+
});
|
|
39538
|
+
return null;
|
|
39539
|
+
}
|
|
38082
39540
|
}
|
|
38083
39541
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
38084
39542
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38122,7 +39580,17 @@ var Service = class Service extends Object$1 {
|
|
|
38122
39580
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
38123
39581
|
const prop = this._cachedJsonLd["service"];
|
|
38124
39582
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
38125
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
39583
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
39584
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
39585
|
+
} catch (error) {
|
|
39586
|
+
if (!options.suppressError) throw error;
|
|
39587
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
39588
|
+
property: "https://www.w3.org/ns/did#service",
|
|
39589
|
+
index: i,
|
|
39590
|
+
error
|
|
39591
|
+
});
|
|
39592
|
+
continue;
|
|
39593
|
+
}
|
|
38126
39594
|
}
|
|
38127
39595
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
38128
39596
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|