@fedify/vocab 2.3.9-dev.2048 → 2.3.9
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 +2354 -709
- package/dist/mod.js +2354 -709
- package/dist-tests/{actor-CGTlJCWj.mjs → actor-BISbIeXH.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/lookup.test.mjs +7 -7
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BhXsxjRa.mjs → vocab-BeDwBlW3.mjs} +2353 -708
- package/dist-tests/vocab.test.mjs +144 -1
- package/package.json +4 -4
- package/src/lookup.test.ts +6 -5
- package/src/vocab.test.ts +197 -0
|
@@ -155,6 +155,12 @@ var vocab_exports = /* @__PURE__ */ __exportAll({
|
|
|
155
155
|
getEntityTypeById: () => getEntityTypeById,
|
|
156
156
|
isEntityType: () => isEntityType
|
|
157
157
|
});
|
|
158
|
+
function canDecodeIri(iri) {
|
|
159
|
+
return URL.canParse(iri) || iri.startsWith("at://");
|
|
160
|
+
}
|
|
161
|
+
function decodeIri(iri) {
|
|
162
|
+
return !URL.canParse(iri) && iri.startsWith("at://") ? new URL("at://" + encodeURIComponent(iri.substring(5))) : new URL(iri);
|
|
163
|
+
}
|
|
158
164
|
function isValidLanguageTag(language) {
|
|
159
165
|
try {
|
|
160
166
|
new Intl.Locale(language);
|
|
@@ -966,10 +972,20 @@ var Object$1 = class Object$1 {
|
|
|
966
972
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
|
|
967
973
|
const prop = this._cachedJsonLd["attachment"];
|
|
968
974
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
969
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
975
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
976
|
+
v = await this.#attachment_fromJsonLd(obj, {
|
|
977
|
+
...options,
|
|
978
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
979
|
+
});
|
|
980
|
+
} catch (error) {
|
|
981
|
+
if (!options.suppressError) throw error;
|
|
982
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
983
|
+
property: "https://www.w3.org/ns/activitystreams#attachment",
|
|
984
|
+
index: i,
|
|
985
|
+
error
|
|
986
|
+
});
|
|
987
|
+
continue;
|
|
988
|
+
}
|
|
973
989
|
}
|
|
974
990
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
|
|
975
991
|
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\".");
|
|
@@ -1138,10 +1154,19 @@ var Object$1 = class Object$1 {
|
|
|
1138
1154
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
1139
1155
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
1140
1156
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1141
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1157
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1158
|
+
v = await this.#attribution_fromJsonLd(doc, {
|
|
1159
|
+
...options,
|
|
1160
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1161
|
+
});
|
|
1162
|
+
} catch (error) {
|
|
1163
|
+
if (!options.suppressError) throw error;
|
|
1164
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1165
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
1166
|
+
error
|
|
1167
|
+
});
|
|
1168
|
+
return null;
|
|
1169
|
+
}
|
|
1145
1170
|
}
|
|
1146
1171
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
1147
1172
|
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\".");
|
|
@@ -1184,10 +1209,20 @@ var Object$1 = class Object$1 {
|
|
|
1184
1209
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
1185
1210
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
1186
1211
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1187
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1212
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1213
|
+
v = await this.#attribution_fromJsonLd(obj, {
|
|
1214
|
+
...options,
|
|
1215
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1216
|
+
});
|
|
1217
|
+
} catch (error) {
|
|
1218
|
+
if (!options.suppressError) throw error;
|
|
1219
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1220
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
1221
|
+
index: i,
|
|
1222
|
+
error
|
|
1223
|
+
});
|
|
1224
|
+
continue;
|
|
1225
|
+
}
|
|
1191
1226
|
}
|
|
1192
1227
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
1193
1228
|
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\".");
|
|
@@ -1309,10 +1344,19 @@ var Object$1 = class Object$1 {
|
|
|
1309
1344
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1310
1345
|
const prop = this._cachedJsonLd["audience"];
|
|
1311
1346
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1312
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1347
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1348
|
+
v = await this.#audience_fromJsonLd(doc, {
|
|
1349
|
+
...options,
|
|
1350
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1351
|
+
});
|
|
1352
|
+
} catch (error) {
|
|
1353
|
+
if (!options.suppressError) throw error;
|
|
1354
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1355
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1356
|
+
error
|
|
1357
|
+
});
|
|
1358
|
+
return null;
|
|
1359
|
+
}
|
|
1316
1360
|
}
|
|
1317
1361
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1318
1362
|
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\".");
|
|
@@ -1354,10 +1398,20 @@ var Object$1 = class Object$1 {
|
|
|
1354
1398
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1355
1399
|
const prop = this._cachedJsonLd["audience"];
|
|
1356
1400
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1357
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1401
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1402
|
+
v = await this.#audience_fromJsonLd(obj, {
|
|
1403
|
+
...options,
|
|
1404
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1405
|
+
});
|
|
1406
|
+
} catch (error) {
|
|
1407
|
+
if (!options.suppressError) throw error;
|
|
1408
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1409
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1410
|
+
index: i,
|
|
1411
|
+
error
|
|
1412
|
+
});
|
|
1413
|
+
continue;
|
|
1414
|
+
}
|
|
1361
1415
|
}
|
|
1362
1416
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1363
1417
|
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\".");
|
|
@@ -1513,10 +1567,20 @@ var Object$1 = class Object$1 {
|
|
|
1513
1567
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
|
|
1514
1568
|
const prop = this._cachedJsonLd["context"];
|
|
1515
1569
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1516
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1570
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1571
|
+
v = await this.#context_fromJsonLd(obj, {
|
|
1572
|
+
...options,
|
|
1573
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1574
|
+
});
|
|
1575
|
+
} catch (error) {
|
|
1576
|
+
if (!options.suppressError) throw error;
|
|
1577
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1578
|
+
property: "https://www.w3.org/ns/activitystreams#context",
|
|
1579
|
+
index: i,
|
|
1580
|
+
error
|
|
1581
|
+
});
|
|
1582
|
+
continue;
|
|
1583
|
+
}
|
|
1520
1584
|
}
|
|
1521
1585
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
|
|
1522
1586
|
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\".");
|
|
@@ -1672,10 +1736,20 @@ var Object$1 = class Object$1 {
|
|
|
1672
1736
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
|
|
1673
1737
|
const prop = this._cachedJsonLd["generator"];
|
|
1674
1738
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1675
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1739
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1740
|
+
v = await this.#generator_fromJsonLd(obj, {
|
|
1741
|
+
...options,
|
|
1742
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1743
|
+
});
|
|
1744
|
+
} catch (error) {
|
|
1745
|
+
if (!options.suppressError) throw error;
|
|
1746
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1747
|
+
property: "https://www.w3.org/ns/activitystreams#generator",
|
|
1748
|
+
index: i,
|
|
1749
|
+
error
|
|
1750
|
+
});
|
|
1751
|
+
continue;
|
|
1752
|
+
}
|
|
1679
1753
|
}
|
|
1680
1754
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
|
|
1681
1755
|
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\".");
|
|
@@ -1814,10 +1888,19 @@ var Object$1 = class Object$1 {
|
|
|
1814
1888
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1815
1889
|
const prop = this._cachedJsonLd["icon"];
|
|
1816
1890
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1817
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1891
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1892
|
+
v = await this.#icon_fromJsonLd(doc, {
|
|
1893
|
+
...options,
|
|
1894
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1895
|
+
});
|
|
1896
|
+
} catch (error) {
|
|
1897
|
+
if (!options.suppressError) throw error;
|
|
1898
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1899
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1900
|
+
error
|
|
1901
|
+
});
|
|
1902
|
+
return null;
|
|
1903
|
+
}
|
|
1821
1904
|
}
|
|
1822
1905
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1823
1906
|
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\".");
|
|
@@ -1860,10 +1943,20 @@ var Object$1 = class Object$1 {
|
|
|
1860
1943
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1861
1944
|
const prop = this._cachedJsonLd["icon"];
|
|
1862
1945
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1863
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1946
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1947
|
+
v = await this.#icon_fromJsonLd(obj, {
|
|
1948
|
+
...options,
|
|
1949
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1950
|
+
});
|
|
1951
|
+
} catch (error) {
|
|
1952
|
+
if (!options.suppressError) throw error;
|
|
1953
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1954
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1955
|
+
index: i,
|
|
1956
|
+
error
|
|
1957
|
+
});
|
|
1958
|
+
continue;
|
|
1959
|
+
}
|
|
1867
1960
|
}
|
|
1868
1961
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1869
1962
|
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\".");
|
|
@@ -2002,10 +2095,19 @@ var Object$1 = class Object$1 {
|
|
|
2002
2095
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
2003
2096
|
const prop = this._cachedJsonLd["image"];
|
|
2004
2097
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2005
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2098
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2099
|
+
v = await this.#image_fromJsonLd(doc, {
|
|
2100
|
+
...options,
|
|
2101
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2102
|
+
});
|
|
2103
|
+
} catch (error) {
|
|
2104
|
+
if (!options.suppressError) throw error;
|
|
2105
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2106
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
2107
|
+
error
|
|
2108
|
+
});
|
|
2109
|
+
return null;
|
|
2110
|
+
}
|
|
2009
2111
|
}
|
|
2010
2112
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
2011
2113
|
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\".");
|
|
@@ -2048,10 +2150,20 @@ var Object$1 = class Object$1 {
|
|
|
2048
2150
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
2049
2151
|
const prop = this._cachedJsonLd["image"];
|
|
2050
2152
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2051
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2153
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2154
|
+
v = await this.#image_fromJsonLd(obj, {
|
|
2155
|
+
...options,
|
|
2156
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2157
|
+
});
|
|
2158
|
+
} catch (error) {
|
|
2159
|
+
if (!options.suppressError) throw error;
|
|
2160
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2161
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
2162
|
+
index: i,
|
|
2163
|
+
error
|
|
2164
|
+
});
|
|
2165
|
+
continue;
|
|
2166
|
+
}
|
|
2055
2167
|
}
|
|
2056
2168
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
2057
2169
|
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\".");
|
|
@@ -2183,10 +2295,19 @@ var Object$1 = class Object$1 {
|
|
|
2183
2295
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
2184
2296
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
2185
2297
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2186
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2298
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2299
|
+
v = await this.#replyTarget_fromJsonLd(doc, {
|
|
2300
|
+
...options,
|
|
2301
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2302
|
+
});
|
|
2303
|
+
} catch (error) {
|
|
2304
|
+
if (!options.suppressError) throw error;
|
|
2305
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2306
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2307
|
+
error
|
|
2308
|
+
});
|
|
2309
|
+
return null;
|
|
2310
|
+
}
|
|
2190
2311
|
}
|
|
2191
2312
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
2192
2313
|
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\".");
|
|
@@ -2228,10 +2349,20 @@ var Object$1 = class Object$1 {
|
|
|
2228
2349
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
2229
2350
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
2230
2351
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2231
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2352
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2353
|
+
v = await this.#replyTarget_fromJsonLd(obj, {
|
|
2354
|
+
...options,
|
|
2355
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2356
|
+
});
|
|
2357
|
+
} catch (error) {
|
|
2358
|
+
if (!options.suppressError) throw error;
|
|
2359
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2360
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2361
|
+
index: i,
|
|
2362
|
+
error
|
|
2363
|
+
});
|
|
2364
|
+
continue;
|
|
2365
|
+
}
|
|
2235
2366
|
}
|
|
2236
2367
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
2237
2368
|
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\".");
|
|
@@ -2363,10 +2494,19 @@ var Object$1 = class Object$1 {
|
|
|
2363
2494
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2364
2495
|
const prop = this._cachedJsonLd["location"];
|
|
2365
2496
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2366
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2497
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2498
|
+
v = await this.#location_fromJsonLd(doc, {
|
|
2499
|
+
...options,
|
|
2500
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2501
|
+
});
|
|
2502
|
+
} catch (error) {
|
|
2503
|
+
if (!options.suppressError) throw error;
|
|
2504
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2505
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2506
|
+
error
|
|
2507
|
+
});
|
|
2508
|
+
return null;
|
|
2509
|
+
}
|
|
2370
2510
|
}
|
|
2371
2511
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2372
2512
|
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\".");
|
|
@@ -2408,10 +2548,20 @@ var Object$1 = class Object$1 {
|
|
|
2408
2548
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2409
2549
|
const prop = this._cachedJsonLd["location"];
|
|
2410
2550
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2411
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2551
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2552
|
+
v = await this.#location_fromJsonLd(obj, {
|
|
2553
|
+
...options,
|
|
2554
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2555
|
+
});
|
|
2556
|
+
} catch (error) {
|
|
2557
|
+
if (!options.suppressError) throw error;
|
|
2558
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2559
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2560
|
+
index: i,
|
|
2561
|
+
error
|
|
2562
|
+
});
|
|
2563
|
+
continue;
|
|
2564
|
+
}
|
|
2415
2565
|
}
|
|
2416
2566
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2417
2567
|
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\".");
|
|
@@ -2542,10 +2692,19 @@ var Object$1 = class Object$1 {
|
|
|
2542
2692
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2543
2693
|
const prop = this._cachedJsonLd["preview"];
|
|
2544
2694
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2545
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2695
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2696
|
+
v = await this.#preview_fromJsonLd(doc, {
|
|
2697
|
+
...options,
|
|
2698
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2699
|
+
});
|
|
2700
|
+
} catch (error) {
|
|
2701
|
+
if (!options.suppressError) throw error;
|
|
2702
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2703
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2704
|
+
error
|
|
2705
|
+
});
|
|
2706
|
+
return null;
|
|
2707
|
+
}
|
|
2549
2708
|
}
|
|
2550
2709
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2551
2710
|
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\".");
|
|
@@ -2586,10 +2745,20 @@ var Object$1 = class Object$1 {
|
|
|
2586
2745
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2587
2746
|
const prop = this._cachedJsonLd["preview"];
|
|
2588
2747
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2589
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2748
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2749
|
+
v = await this.#preview_fromJsonLd(obj, {
|
|
2750
|
+
...options,
|
|
2751
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2752
|
+
});
|
|
2753
|
+
} catch (error) {
|
|
2754
|
+
if (!options.suppressError) throw error;
|
|
2755
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2756
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2757
|
+
index: i,
|
|
2758
|
+
error
|
|
2759
|
+
});
|
|
2760
|
+
continue;
|
|
2761
|
+
}
|
|
2593
2762
|
}
|
|
2594
2763
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2595
2764
|
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\".");
|
|
@@ -2718,10 +2887,19 @@ var Object$1 = class Object$1 {
|
|
|
2718
2887
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
|
|
2719
2888
|
const prop = this._cachedJsonLd["replies"];
|
|
2720
2889
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2721
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2890
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2891
|
+
v = await this.#replies_fromJsonLd(doc, {
|
|
2892
|
+
...options,
|
|
2893
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2894
|
+
});
|
|
2895
|
+
} catch (error) {
|
|
2896
|
+
if (!options.suppressError) throw error;
|
|
2897
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2898
|
+
property: "https://www.w3.org/ns/activitystreams#replies",
|
|
2899
|
+
error
|
|
2900
|
+
});
|
|
2901
|
+
return null;
|
|
2902
|
+
}
|
|
2725
2903
|
}
|
|
2726
2904
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
|
|
2727
2905
|
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\".");
|
|
@@ -2848,10 +3026,19 @@ var Object$1 = class Object$1 {
|
|
|
2848
3026
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
|
|
2849
3027
|
const prop = this._cachedJsonLd["shares"];
|
|
2850
3028
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2851
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
3029
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3030
|
+
v = await this.#shares_fromJsonLd(doc, {
|
|
3031
|
+
...options,
|
|
3032
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3033
|
+
});
|
|
3034
|
+
} catch (error) {
|
|
3035
|
+
if (!options.suppressError) throw error;
|
|
3036
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3037
|
+
property: "https://www.w3.org/ns/activitystreams#shares",
|
|
3038
|
+
error
|
|
3039
|
+
});
|
|
3040
|
+
return null;
|
|
3041
|
+
}
|
|
2855
3042
|
}
|
|
2856
3043
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
|
|
2857
3044
|
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\".");
|
|
@@ -2978,10 +3165,19 @@ var Object$1 = class Object$1 {
|
|
|
2978
3165
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
|
|
2979
3166
|
const prop = this._cachedJsonLd["likes"];
|
|
2980
3167
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2981
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
3168
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3169
|
+
v = await this.#likes_fromJsonLd(doc, {
|
|
3170
|
+
...options,
|
|
3171
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3172
|
+
});
|
|
3173
|
+
} catch (error) {
|
|
3174
|
+
if (!options.suppressError) throw error;
|
|
3175
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3176
|
+
property: "https://www.w3.org/ns/activitystreams#likes",
|
|
3177
|
+
error
|
|
3178
|
+
});
|
|
3179
|
+
return null;
|
|
3180
|
+
}
|
|
2985
3181
|
}
|
|
2986
3182
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
|
|
2987
3183
|
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\".");
|
|
@@ -3102,10 +3298,19 @@ var Object$1 = class Object$1 {
|
|
|
3102
3298
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
|
|
3103
3299
|
const prop = this._cachedJsonLd["emojiReactions"];
|
|
3104
3300
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3105
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3301
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3302
|
+
v = await this.#emojiReactions_fromJsonLd(doc, {
|
|
3303
|
+
...options,
|
|
3304
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3305
|
+
});
|
|
3306
|
+
} catch (error) {
|
|
3307
|
+
if (!options.suppressError) throw error;
|
|
3308
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3309
|
+
property: "http://fedibird.com/ns#emojiReactions",
|
|
3310
|
+
error
|
|
3311
|
+
});
|
|
3312
|
+
return null;
|
|
3313
|
+
}
|
|
3109
3314
|
}
|
|
3110
3315
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
|
|
3111
3316
|
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\".");
|
|
@@ -3261,10 +3466,20 @@ var Object$1 = class Object$1 {
|
|
|
3261
3466
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
|
|
3262
3467
|
const prop = this._cachedJsonLd["tag"];
|
|
3263
3468
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3264
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3469
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3470
|
+
v = await this.#tag_fromJsonLd(obj, {
|
|
3471
|
+
...options,
|
|
3472
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3473
|
+
});
|
|
3474
|
+
} catch (error) {
|
|
3475
|
+
if (!options.suppressError) throw error;
|
|
3476
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3477
|
+
property: "https://www.w3.org/ns/activitystreams#tag",
|
|
3478
|
+
index: i,
|
|
3479
|
+
error
|
|
3480
|
+
});
|
|
3481
|
+
continue;
|
|
3482
|
+
}
|
|
3268
3483
|
}
|
|
3269
3484
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
|
|
3270
3485
|
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\".");
|
|
@@ -3405,10 +3620,19 @@ var Object$1 = class Object$1 {
|
|
|
3405
3620
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3406
3621
|
const prop = this._cachedJsonLd["to"];
|
|
3407
3622
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3408
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3623
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3624
|
+
v = await this.#to_fromJsonLd(doc, {
|
|
3625
|
+
...options,
|
|
3626
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3627
|
+
});
|
|
3628
|
+
} catch (error) {
|
|
3629
|
+
if (!options.suppressError) throw error;
|
|
3630
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3631
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3632
|
+
error
|
|
3633
|
+
});
|
|
3634
|
+
return null;
|
|
3635
|
+
}
|
|
3412
3636
|
}
|
|
3413
3637
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3414
3638
|
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\".");
|
|
@@ -3450,10 +3674,20 @@ var Object$1 = class Object$1 {
|
|
|
3450
3674
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3451
3675
|
const prop = this._cachedJsonLd["to"];
|
|
3452
3676
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3453
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3677
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3678
|
+
v = await this.#to_fromJsonLd(obj, {
|
|
3679
|
+
...options,
|
|
3680
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3681
|
+
});
|
|
3682
|
+
} catch (error) {
|
|
3683
|
+
if (!options.suppressError) throw error;
|
|
3684
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3685
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3686
|
+
index: i,
|
|
3687
|
+
error
|
|
3688
|
+
});
|
|
3689
|
+
continue;
|
|
3690
|
+
}
|
|
3457
3691
|
}
|
|
3458
3692
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3459
3693
|
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\".");
|
|
@@ -3575,10 +3809,19 @@ var Object$1 = class Object$1 {
|
|
|
3575
3809
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3576
3810
|
const prop = this._cachedJsonLd["bto"];
|
|
3577
3811
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3578
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3812
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3813
|
+
v = await this.#bto_fromJsonLd(doc, {
|
|
3814
|
+
...options,
|
|
3815
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3816
|
+
});
|
|
3817
|
+
} catch (error) {
|
|
3818
|
+
if (!options.suppressError) throw error;
|
|
3819
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3820
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3821
|
+
error
|
|
3822
|
+
});
|
|
3823
|
+
return null;
|
|
3824
|
+
}
|
|
3582
3825
|
}
|
|
3583
3826
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3584
3827
|
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\".");
|
|
@@ -3620,10 +3863,20 @@ var Object$1 = class Object$1 {
|
|
|
3620
3863
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3621
3864
|
const prop = this._cachedJsonLd["bto"];
|
|
3622
3865
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3623
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3866
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3867
|
+
v = await this.#bto_fromJsonLd(obj, {
|
|
3868
|
+
...options,
|
|
3869
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3870
|
+
});
|
|
3871
|
+
} catch (error) {
|
|
3872
|
+
if (!options.suppressError) throw error;
|
|
3873
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3874
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3875
|
+
index: i,
|
|
3876
|
+
error
|
|
3877
|
+
});
|
|
3878
|
+
continue;
|
|
3879
|
+
}
|
|
3627
3880
|
}
|
|
3628
3881
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3629
3882
|
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\".");
|
|
@@ -3745,10 +3998,19 @@ var Object$1 = class Object$1 {
|
|
|
3745
3998
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3746
3999
|
const prop = this._cachedJsonLd["cc"];
|
|
3747
4000
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3748
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
4001
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4002
|
+
v = await this.#cc_fromJsonLd(doc, {
|
|
4003
|
+
...options,
|
|
4004
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4005
|
+
});
|
|
4006
|
+
} catch (error) {
|
|
4007
|
+
if (!options.suppressError) throw error;
|
|
4008
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4009
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
4010
|
+
error
|
|
4011
|
+
});
|
|
4012
|
+
return null;
|
|
4013
|
+
}
|
|
3752
4014
|
}
|
|
3753
4015
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3754
4016
|
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\".");
|
|
@@ -3790,10 +4052,20 @@ var Object$1 = class Object$1 {
|
|
|
3790
4052
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3791
4053
|
const prop = this._cachedJsonLd["cc"];
|
|
3792
4054
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3793
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
4055
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4056
|
+
v = await this.#cc_fromJsonLd(obj, {
|
|
4057
|
+
...options,
|
|
4058
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4059
|
+
});
|
|
4060
|
+
} catch (error) {
|
|
4061
|
+
if (!options.suppressError) throw error;
|
|
4062
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4063
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
4064
|
+
index: i,
|
|
4065
|
+
error
|
|
4066
|
+
});
|
|
4067
|
+
continue;
|
|
4068
|
+
}
|
|
3797
4069
|
}
|
|
3798
4070
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3799
4071
|
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\".");
|
|
@@ -3915,10 +4187,19 @@ var Object$1 = class Object$1 {
|
|
|
3915
4187
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3916
4188
|
const prop = this._cachedJsonLd["bcc"];
|
|
3917
4189
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3918
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
4190
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4191
|
+
v = await this.#bcc_fromJsonLd(doc, {
|
|
4192
|
+
...options,
|
|
4193
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4194
|
+
});
|
|
4195
|
+
} catch (error) {
|
|
4196
|
+
if (!options.suppressError) throw error;
|
|
4197
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4198
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
4199
|
+
error
|
|
4200
|
+
});
|
|
4201
|
+
return null;
|
|
4202
|
+
}
|
|
3922
4203
|
}
|
|
3923
4204
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3924
4205
|
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\".");
|
|
@@ -3960,10 +4241,20 @@ var Object$1 = class Object$1 {
|
|
|
3960
4241
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3961
4242
|
const prop = this._cachedJsonLd["bcc"];
|
|
3962
4243
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3963
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
4244
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4245
|
+
v = await this.#bcc_fromJsonLd(obj, {
|
|
4246
|
+
...options,
|
|
4247
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4248
|
+
});
|
|
4249
|
+
} catch (error) {
|
|
4250
|
+
if (!options.suppressError) throw error;
|
|
4251
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4252
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
4253
|
+
index: i,
|
|
4254
|
+
error
|
|
4255
|
+
});
|
|
4256
|
+
continue;
|
|
4257
|
+
}
|
|
3967
4258
|
}
|
|
3968
4259
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3969
4260
|
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\".");
|
|
@@ -4121,10 +4412,19 @@ var Object$1 = class Object$1 {
|
|
|
4121
4412
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
4122
4413
|
const prop = this._cachedJsonLd["proof"];
|
|
4123
4414
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4124
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4415
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4416
|
+
v = await this.#proof_fromJsonLd(doc, {
|
|
4417
|
+
...options,
|
|
4418
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4419
|
+
});
|
|
4420
|
+
} catch (error) {
|
|
4421
|
+
if (!options.suppressError) throw error;
|
|
4422
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4423
|
+
property: "https://w3id.org/security#proof",
|
|
4424
|
+
error
|
|
4425
|
+
});
|
|
4426
|
+
return null;
|
|
4427
|
+
}
|
|
4128
4428
|
}
|
|
4129
4429
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
4130
4430
|
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\".");
|
|
@@ -4165,10 +4465,20 @@ var Object$1 = class Object$1 {
|
|
|
4165
4465
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
4166
4466
|
const prop = this._cachedJsonLd["proof"];
|
|
4167
4467
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
4168
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4468
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4469
|
+
v = await this.#proof_fromJsonLd(obj, {
|
|
4470
|
+
...options,
|
|
4471
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4472
|
+
});
|
|
4473
|
+
} catch (error) {
|
|
4474
|
+
if (!options.suppressError) throw error;
|
|
4475
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4476
|
+
property: "https://w3id.org/security#proof",
|
|
4477
|
+
index: i,
|
|
4478
|
+
error
|
|
4479
|
+
});
|
|
4480
|
+
continue;
|
|
4481
|
+
}
|
|
4172
4482
|
}
|
|
4173
4483
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
4174
4484
|
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\".");
|
|
@@ -4315,10 +4625,19 @@ var Object$1 = class Object$1 {
|
|
|
4315
4625
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likeAuthorization" in this._cachedJsonLd) {
|
|
4316
4626
|
const prop = this._cachedJsonLd["likeAuthorization"];
|
|
4317
4627
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4318
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4628
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4629
|
+
v = await this.#likeAuthorization_fromJsonLd(doc, {
|
|
4630
|
+
...options,
|
|
4631
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4632
|
+
});
|
|
4633
|
+
} catch (error) {
|
|
4634
|
+
if (!options.suppressError) throw error;
|
|
4635
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4636
|
+
property: "https://gotosocial.org/ns#likeAuthorization",
|
|
4637
|
+
error
|
|
4638
|
+
});
|
|
4639
|
+
return null;
|
|
4640
|
+
}
|
|
4322
4641
|
}
|
|
4323
4642
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.has(0)) {
|
|
4324
4643
|
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\".");
|
|
@@ -4439,10 +4758,19 @@ var Object$1 = class Object$1 {
|
|
|
4439
4758
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replyAuthorization" in this._cachedJsonLd) {
|
|
4440
4759
|
const prop = this._cachedJsonLd["replyAuthorization"];
|
|
4441
4760
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4442
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4761
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4762
|
+
v = await this.#replyAuthorization_fromJsonLd(doc, {
|
|
4763
|
+
...options,
|
|
4764
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4765
|
+
});
|
|
4766
|
+
} catch (error) {
|
|
4767
|
+
if (!options.suppressError) throw error;
|
|
4768
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4769
|
+
property: "https://gotosocial.org/ns#replyAuthorization",
|
|
4770
|
+
error
|
|
4771
|
+
});
|
|
4772
|
+
return null;
|
|
4773
|
+
}
|
|
4446
4774
|
}
|
|
4447
4775
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.has(0)) {
|
|
4448
4776
|
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\".");
|
|
@@ -4563,10 +4891,19 @@ var Object$1 = class Object$1 {
|
|
|
4563
4891
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "announceAuthorization" in this._cachedJsonLd) {
|
|
4564
4892
|
const prop = this._cachedJsonLd["announceAuthorization"];
|
|
4565
4893
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4566
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4894
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4895
|
+
v = await this.#announceAuthorization_fromJsonLd(doc, {
|
|
4896
|
+
...options,
|
|
4897
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4898
|
+
});
|
|
4899
|
+
} catch (error) {
|
|
4900
|
+
if (!options.suppressError) throw error;
|
|
4901
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4902
|
+
property: "https://gotosocial.org/ns#announceAuthorization",
|
|
4903
|
+
error
|
|
4904
|
+
});
|
|
4905
|
+
return null;
|
|
4906
|
+
}
|
|
4570
4907
|
}
|
|
4571
4908
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.has(0)) {
|
|
4572
4909
|
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\".");
|
|
@@ -7197,10 +7534,19 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7197
7534
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
7198
7535
|
const prop = this._cachedJsonLd["quote"];
|
|
7199
7536
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7200
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7537
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7538
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
7539
|
+
...options,
|
|
7540
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
7541
|
+
});
|
|
7542
|
+
} catch (error) {
|
|
7543
|
+
if (!options.suppressError) throw error;
|
|
7544
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7545
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
7546
|
+
error
|
|
7547
|
+
});
|
|
7548
|
+
return null;
|
|
7549
|
+
}
|
|
7204
7550
|
}
|
|
7205
7551
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
7206
7552
|
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\".");
|
|
@@ -7337,10 +7683,19 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7337
7683
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
7338
7684
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
7339
7685
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7340
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7686
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7687
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
7688
|
+
...options,
|
|
7689
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
7690
|
+
});
|
|
7691
|
+
} catch (error) {
|
|
7692
|
+
if (!options.suppressError) throw error;
|
|
7693
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7694
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
7695
|
+
error
|
|
7696
|
+
});
|
|
7697
|
+
return null;
|
|
7698
|
+
}
|
|
7344
7699
|
}
|
|
7345
7700
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
7346
7701
|
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\".");
|
|
@@ -7593,7 +7948,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7593
7948
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
7594
7949
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
7595
7950
|
if (v == null) continue;
|
|
7596
|
-
const decoded =
|
|
7951
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
7597
7952
|
if (typeof decoded === "undefined") {
|
|
7598
7953
|
shouldCacheJsonLd = false;
|
|
7599
7954
|
continue;
|
|
@@ -8013,10 +8368,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8013
8368
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
8014
8369
|
const prop = this._cachedJsonLd["actor"];
|
|
8015
8370
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8016
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8371
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8372
|
+
v = await this.#actor_fromJsonLd(doc, {
|
|
8373
|
+
...options,
|
|
8374
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8375
|
+
});
|
|
8376
|
+
} catch (error) {
|
|
8377
|
+
if (!options.suppressError) throw error;
|
|
8378
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8379
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
8380
|
+
error
|
|
8381
|
+
});
|
|
8382
|
+
return null;
|
|
8383
|
+
}
|
|
8020
8384
|
}
|
|
8021
8385
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
8022
8386
|
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\".");
|
|
@@ -8059,10 +8423,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8059
8423
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
8060
8424
|
const prop = this._cachedJsonLd["actor"];
|
|
8061
8425
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8062
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8426
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8427
|
+
v = await this.#actor_fromJsonLd(obj, {
|
|
8428
|
+
...options,
|
|
8429
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8430
|
+
});
|
|
8431
|
+
} catch (error) {
|
|
8432
|
+
if (!options.suppressError) throw error;
|
|
8433
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8434
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
8435
|
+
index: i,
|
|
8436
|
+
error
|
|
8437
|
+
});
|
|
8438
|
+
continue;
|
|
8439
|
+
}
|
|
8066
8440
|
}
|
|
8067
8441
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
8068
8442
|
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\".");
|
|
@@ -8185,10 +8559,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8185
8559
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
8186
8560
|
const prop = this._cachedJsonLd["object"];
|
|
8187
8561
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8188
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8562
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8563
|
+
v = await this.#object_fromJsonLd(doc, {
|
|
8564
|
+
...options,
|
|
8565
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8566
|
+
});
|
|
8567
|
+
} catch (error) {
|
|
8568
|
+
if (!options.suppressError) throw error;
|
|
8569
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8570
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
8571
|
+
error
|
|
8572
|
+
});
|
|
8573
|
+
return null;
|
|
8574
|
+
}
|
|
8192
8575
|
}
|
|
8193
8576
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
8194
8577
|
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\".");
|
|
@@ -8231,10 +8614,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8231
8614
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
8232
8615
|
const prop = this._cachedJsonLd["object"];
|
|
8233
8616
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8234
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8617
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8618
|
+
v = await this.#object_fromJsonLd(obj, {
|
|
8619
|
+
...options,
|
|
8620
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8621
|
+
});
|
|
8622
|
+
} catch (error) {
|
|
8623
|
+
if (!options.suppressError) throw error;
|
|
8624
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8625
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
8626
|
+
index: i,
|
|
8627
|
+
error
|
|
8628
|
+
});
|
|
8629
|
+
continue;
|
|
8630
|
+
}
|
|
8238
8631
|
}
|
|
8239
8632
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
8240
8633
|
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\".");
|
|
@@ -8360,10 +8753,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8360
8753
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
8361
8754
|
const prop = this._cachedJsonLd["target"];
|
|
8362
8755
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8363
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8756
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8757
|
+
v = await this.#target_fromJsonLd(doc, {
|
|
8758
|
+
...options,
|
|
8759
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8760
|
+
});
|
|
8761
|
+
} catch (error) {
|
|
8762
|
+
if (!options.suppressError) throw error;
|
|
8763
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8764
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
8765
|
+
error
|
|
8766
|
+
});
|
|
8767
|
+
return null;
|
|
8768
|
+
}
|
|
8367
8769
|
}
|
|
8368
8770
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
8369
8771
|
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\".");
|
|
@@ -8409,10 +8811,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8409
8811
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
8410
8812
|
const prop = this._cachedJsonLd["target"];
|
|
8411
8813
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8412
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8814
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8815
|
+
v = await this.#target_fromJsonLd(obj, {
|
|
8816
|
+
...options,
|
|
8817
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8818
|
+
});
|
|
8819
|
+
} catch (error) {
|
|
8820
|
+
if (!options.suppressError) throw error;
|
|
8821
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8822
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
8823
|
+
index: i,
|
|
8824
|
+
error
|
|
8825
|
+
});
|
|
8826
|
+
continue;
|
|
8827
|
+
}
|
|
8416
8828
|
}
|
|
8417
8829
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
8418
8830
|
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\".");
|
|
@@ -8535,10 +8947,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8535
8947
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
8536
8948
|
const prop = this._cachedJsonLd["result"];
|
|
8537
8949
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8538
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8950
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8951
|
+
v = await this.#result_fromJsonLd(doc, {
|
|
8952
|
+
...options,
|
|
8953
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8954
|
+
});
|
|
8955
|
+
} catch (error) {
|
|
8956
|
+
if (!options.suppressError) throw error;
|
|
8957
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8958
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
8959
|
+
error
|
|
8960
|
+
});
|
|
8961
|
+
return null;
|
|
8962
|
+
}
|
|
8542
8963
|
}
|
|
8543
8964
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
8544
8965
|
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\".");
|
|
@@ -8581,10 +9002,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8581
9002
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
8582
9003
|
const prop = this._cachedJsonLd["result"];
|
|
8583
9004
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8584
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
9005
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
9006
|
+
v = await this.#result_fromJsonLd(obj, {
|
|
9007
|
+
...options,
|
|
9008
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9009
|
+
});
|
|
9010
|
+
} catch (error) {
|
|
9011
|
+
if (!options.suppressError) throw error;
|
|
9012
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
9013
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
9014
|
+
index: i,
|
|
9015
|
+
error
|
|
9016
|
+
});
|
|
9017
|
+
continue;
|
|
9018
|
+
}
|
|
8588
9019
|
}
|
|
8589
9020
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
8590
9021
|
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\".");
|
|
@@ -8708,10 +9139,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8708
9139
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
8709
9140
|
const prop = this._cachedJsonLd["origin"];
|
|
8710
9141
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8711
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
9142
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
9143
|
+
v = await this.#origin_fromJsonLd(doc, {
|
|
9144
|
+
...options,
|
|
9145
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9146
|
+
});
|
|
9147
|
+
} catch (error) {
|
|
9148
|
+
if (!options.suppressError) throw error;
|
|
9149
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
9150
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
9151
|
+
error
|
|
9152
|
+
});
|
|
9153
|
+
return null;
|
|
9154
|
+
}
|
|
8715
9155
|
}
|
|
8716
9156
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
8717
9157
|
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\".");
|
|
@@ -8755,10 +9195,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8755
9195
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
8756
9196
|
const prop = this._cachedJsonLd["origin"];
|
|
8757
9197
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8758
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
9198
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
9199
|
+
v = await this.#origin_fromJsonLd(obj, {
|
|
9200
|
+
...options,
|
|
9201
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9202
|
+
});
|
|
9203
|
+
} catch (error) {
|
|
9204
|
+
if (!options.suppressError) throw error;
|
|
9205
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
9206
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
9207
|
+
index: i,
|
|
9208
|
+
error
|
|
9209
|
+
});
|
|
9210
|
+
continue;
|
|
9211
|
+
}
|
|
8762
9212
|
}
|
|
8763
9213
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
8764
9214
|
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\".");
|
|
@@ -8880,10 +9330,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8880
9330
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
8881
9331
|
const prop = this._cachedJsonLd["instrument"];
|
|
8882
9332
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8883
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
9333
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
9334
|
+
v = await this.#instrument_fromJsonLd(doc, {
|
|
9335
|
+
...options,
|
|
9336
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9337
|
+
});
|
|
9338
|
+
} catch (error) {
|
|
9339
|
+
if (!options.suppressError) throw error;
|
|
9340
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
9341
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
9342
|
+
error
|
|
9343
|
+
});
|
|
9344
|
+
return null;
|
|
9345
|
+
}
|
|
8887
9346
|
}
|
|
8888
9347
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
8889
9348
|
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\".");
|
|
@@ -8925,10 +9384,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8925
9384
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
8926
9385
|
const prop = this._cachedJsonLd["instrument"];
|
|
8927
9386
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8928
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
9387
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
9388
|
+
v = await this.#instrument_fromJsonLd(obj, {
|
|
9389
|
+
...options,
|
|
9390
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9391
|
+
});
|
|
9392
|
+
} catch (error) {
|
|
9393
|
+
if (!options.suppressError) throw error;
|
|
9394
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
9395
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
9396
|
+
index: i,
|
|
9397
|
+
error
|
|
9398
|
+
});
|
|
9399
|
+
continue;
|
|
9400
|
+
}
|
|
8932
9401
|
}
|
|
8933
9402
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
8934
9403
|
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\".");
|
|
@@ -10235,10 +10704,19 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10235
10704
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
10236
10705
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
10237
10706
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
10238
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10707
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
10708
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
10709
|
+
...options,
|
|
10710
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
10711
|
+
});
|
|
10712
|
+
} catch (error) {
|
|
10713
|
+
if (!options.suppressError) throw error;
|
|
10714
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
10715
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
10716
|
+
error
|
|
10717
|
+
});
|
|
10718
|
+
return null;
|
|
10719
|
+
}
|
|
10242
10720
|
}
|
|
10243
10721
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
10244
10722
|
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\".");
|
|
@@ -10358,10 +10836,19 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10358
10836
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
10359
10837
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
10360
10838
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
10361
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10839
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
10840
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
10841
|
+
...options,
|
|
10842
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
10843
|
+
});
|
|
10844
|
+
} catch (error) {
|
|
10845
|
+
if (!options.suppressError) throw error;
|
|
10846
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
10847
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
10848
|
+
error
|
|
10849
|
+
});
|
|
10850
|
+
return null;
|
|
10851
|
+
}
|
|
10365
10852
|
}
|
|
10366
10853
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
10367
10854
|
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\".");
|
|
@@ -11611,10 +12098,19 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11611
12098
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
11612
12099
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
11613
12100
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11614
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
12101
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12102
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
12103
|
+
...options,
|
|
12104
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12105
|
+
});
|
|
12106
|
+
} catch (error) {
|
|
12107
|
+
if (!options.suppressError) throw error;
|
|
12108
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12109
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
12110
|
+
error
|
|
12111
|
+
});
|
|
12112
|
+
return null;
|
|
12113
|
+
}
|
|
11618
12114
|
}
|
|
11619
12115
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
11620
12116
|
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\".");
|
|
@@ -11734,10 +12230,19 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11734
12230
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
11735
12231
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
11736
12232
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11737
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
12233
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12234
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
12235
|
+
...options,
|
|
12236
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12237
|
+
});
|
|
12238
|
+
} catch (error) {
|
|
12239
|
+
if (!options.suppressError) throw error;
|
|
12240
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12241
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
12242
|
+
error
|
|
12243
|
+
});
|
|
12244
|
+
return null;
|
|
12245
|
+
}
|
|
11741
12246
|
}
|
|
11742
12247
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
11743
12248
|
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\".");
|
|
@@ -12301,10 +12806,19 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12301
12806
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
12302
12807
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
12303
12808
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12304
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12809
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12810
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
12811
|
+
...options,
|
|
12812
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12813
|
+
});
|
|
12814
|
+
} catch (error) {
|
|
12815
|
+
if (!options.suppressError) throw error;
|
|
12816
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12817
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
12818
|
+
error
|
|
12819
|
+
});
|
|
12820
|
+
return null;
|
|
12821
|
+
}
|
|
12308
12822
|
}
|
|
12309
12823
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
12310
12824
|
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\".");
|
|
@@ -12424,10 +12938,19 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12424
12938
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
12425
12939
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
12426
12940
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12427
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12428
|
-
|
|
12429
|
-
|
|
12430
|
-
|
|
12941
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12942
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
12943
|
+
...options,
|
|
12944
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12945
|
+
});
|
|
12946
|
+
} catch (error) {
|
|
12947
|
+
if (!options.suppressError) throw error;
|
|
12948
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12949
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
12950
|
+
error
|
|
12951
|
+
});
|
|
12952
|
+
return null;
|
|
12953
|
+
}
|
|
12431
12954
|
}
|
|
12432
12955
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
12433
12956
|
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\".");
|
|
@@ -12990,10 +13513,19 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12990
13513
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
12991
13514
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
12992
13515
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12993
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
13516
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13517
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
13518
|
+
...options,
|
|
13519
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
13520
|
+
});
|
|
13521
|
+
} catch (error) {
|
|
13522
|
+
if (!options.suppressError) throw error;
|
|
13523
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13524
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
13525
|
+
error
|
|
13526
|
+
});
|
|
13527
|
+
return null;
|
|
13528
|
+
}
|
|
12997
13529
|
}
|
|
12998
13530
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
12999
13531
|
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\".");
|
|
@@ -13113,10 +13645,19 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13113
13645
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
13114
13646
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
13115
13647
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
13116
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
13117
|
-
|
|
13118
|
-
|
|
13119
|
-
|
|
13648
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13649
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
13650
|
+
...options,
|
|
13651
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
13652
|
+
});
|
|
13653
|
+
} catch (error) {
|
|
13654
|
+
if (!options.suppressError) throw error;
|
|
13655
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13656
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
13657
|
+
error
|
|
13658
|
+
});
|
|
13659
|
+
return null;
|
|
13660
|
+
}
|
|
13120
13661
|
}
|
|
13121
13662
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
13122
13663
|
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\".");
|
|
@@ -14692,10 +15233,19 @@ var CryptographicKey = class {
|
|
|
14692
15233
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
|
|
14693
15234
|
const prop = this._cachedJsonLd["owner"];
|
|
14694
15235
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
14695
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
14696
|
-
|
|
14697
|
-
|
|
14698
|
-
|
|
15236
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
15237
|
+
v = await this.#owner_fromJsonLd(doc, {
|
|
15238
|
+
...options,
|
|
15239
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
15240
|
+
});
|
|
15241
|
+
} catch (error) {
|
|
15242
|
+
if (!options.suppressError) throw error;
|
|
15243
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
15244
|
+
property: "https://w3id.org/security#owner",
|
|
15245
|
+
error
|
|
15246
|
+
});
|
|
15247
|
+
return null;
|
|
15248
|
+
}
|
|
14699
15249
|
}
|
|
14700
15250
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
|
|
14701
15251
|
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\".");
|
|
@@ -15184,10 +15734,19 @@ var Multikey = class {
|
|
|
15184
15734
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
|
|
15185
15735
|
const prop = this._cachedJsonLd["controller"];
|
|
15186
15736
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15187
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
15188
|
-
|
|
15189
|
-
|
|
15190
|
-
|
|
15737
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
15738
|
+
v = await this.#controller_fromJsonLd(doc, {
|
|
15739
|
+
...options,
|
|
15740
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
15741
|
+
});
|
|
15742
|
+
} catch (error) {
|
|
15743
|
+
if (!options.suppressError) throw error;
|
|
15744
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
15745
|
+
property: "https://w3id.org/security#controller",
|
|
15746
|
+
error
|
|
15747
|
+
});
|
|
15748
|
+
return null;
|
|
15749
|
+
}
|
|
15191
15750
|
}
|
|
15192
15751
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
|
|
15193
15752
|
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\".");
|
|
@@ -17878,10 +18437,19 @@ var Application = class Application extends Object$1 {
|
|
|
17878
18437
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
17879
18438
|
const prop = this._cachedJsonLd["publicKey"];
|
|
17880
18439
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17881
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17882
|
-
|
|
17883
|
-
|
|
17884
|
-
|
|
18440
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18441
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
18442
|
+
...options,
|
|
18443
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18444
|
+
});
|
|
18445
|
+
} catch (error) {
|
|
18446
|
+
if (!options.suppressError) throw error;
|
|
18447
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18448
|
+
property: "https://w3id.org/security#publicKey",
|
|
18449
|
+
error
|
|
18450
|
+
});
|
|
18451
|
+
return null;
|
|
18452
|
+
}
|
|
17885
18453
|
}
|
|
17886
18454
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
17887
18455
|
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\".");
|
|
@@ -17922,10 +18490,20 @@ var Application = class Application extends Object$1 {
|
|
|
17922
18490
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
17923
18491
|
const prop = this._cachedJsonLd["publicKey"];
|
|
17924
18492
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
17925
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
17926
|
-
|
|
17927
|
-
|
|
17928
|
-
|
|
18493
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
18494
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
18495
|
+
...options,
|
|
18496
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18497
|
+
});
|
|
18498
|
+
} catch (error) {
|
|
18499
|
+
if (!options.suppressError) throw error;
|
|
18500
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
18501
|
+
property: "https://w3id.org/security#publicKey",
|
|
18502
|
+
index: i,
|
|
18503
|
+
error
|
|
18504
|
+
});
|
|
18505
|
+
continue;
|
|
18506
|
+
}
|
|
17929
18507
|
}
|
|
17930
18508
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
17931
18509
|
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\".");
|
|
@@ -18049,10 +18627,19 @@ var Application = class Application extends Object$1 {
|
|
|
18049
18627
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
18050
18628
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
18051
18629
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18052
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
|
-
|
|
18630
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18631
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
18632
|
+
...options,
|
|
18633
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18634
|
+
});
|
|
18635
|
+
} catch (error) {
|
|
18636
|
+
if (!options.suppressError) throw error;
|
|
18637
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18638
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
18639
|
+
error
|
|
18640
|
+
});
|
|
18641
|
+
return null;
|
|
18642
|
+
}
|
|
18056
18643
|
}
|
|
18057
18644
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
18058
18645
|
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\".");
|
|
@@ -18096,10 +18683,20 @@ var Application = class Application extends Object$1 {
|
|
|
18096
18683
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
18097
18684
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
18098
18685
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
18099
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
|
|
18686
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
18687
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
18688
|
+
...options,
|
|
18689
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18690
|
+
});
|
|
18691
|
+
} catch (error) {
|
|
18692
|
+
if (!options.suppressError) throw error;
|
|
18693
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
18694
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
18695
|
+
index: i,
|
|
18696
|
+
error
|
|
18697
|
+
});
|
|
18698
|
+
continue;
|
|
18699
|
+
}
|
|
18103
18700
|
}
|
|
18104
18701
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
18105
18702
|
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\".");
|
|
@@ -18254,10 +18851,19 @@ var Application = class Application extends Object$1 {
|
|
|
18254
18851
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
18255
18852
|
const prop = this._cachedJsonLd["inbox"];
|
|
18256
18853
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18257
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18258
|
-
|
|
18259
|
-
|
|
18260
|
-
|
|
18854
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18855
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
18856
|
+
...options,
|
|
18857
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18858
|
+
});
|
|
18859
|
+
} catch (error) {
|
|
18860
|
+
if (!options.suppressError) throw error;
|
|
18861
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18862
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
18863
|
+
error
|
|
18864
|
+
});
|
|
18865
|
+
return null;
|
|
18866
|
+
}
|
|
18261
18867
|
}
|
|
18262
18868
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
18263
18869
|
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\".");
|
|
@@ -18396,10 +19002,19 @@ var Application = class Application extends Object$1 {
|
|
|
18396
19002
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
18397
19003
|
const prop = this._cachedJsonLd["outbox"];
|
|
18398
19004
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18399
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
19005
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19006
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
19007
|
+
...options,
|
|
19008
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19009
|
+
});
|
|
19010
|
+
} catch (error) {
|
|
19011
|
+
if (!options.suppressError) throw error;
|
|
19012
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19013
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
19014
|
+
error
|
|
19015
|
+
});
|
|
19016
|
+
return null;
|
|
19017
|
+
}
|
|
18403
19018
|
}
|
|
18404
19019
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
18405
19020
|
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\".");
|
|
@@ -18523,10 +19138,19 @@ var Application = class Application extends Object$1 {
|
|
|
18523
19138
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
18524
19139
|
const prop = this._cachedJsonLd["following"];
|
|
18525
19140
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18526
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
|
|
19141
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19142
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
19143
|
+
...options,
|
|
19144
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19145
|
+
});
|
|
19146
|
+
} catch (error) {
|
|
19147
|
+
if (!options.suppressError) throw error;
|
|
19148
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19149
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
19150
|
+
error
|
|
19151
|
+
});
|
|
19152
|
+
return null;
|
|
19153
|
+
}
|
|
18530
19154
|
}
|
|
18531
19155
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
18532
19156
|
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\".");
|
|
@@ -18653,10 +19277,19 @@ var Application = class Application extends Object$1 {
|
|
|
18653
19277
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
18654
19278
|
const prop = this._cachedJsonLd["followers"];
|
|
18655
19279
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18656
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18657
|
-
|
|
18658
|
-
|
|
18659
|
-
|
|
19280
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19281
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
19282
|
+
...options,
|
|
19283
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19284
|
+
});
|
|
19285
|
+
} catch (error) {
|
|
19286
|
+
if (!options.suppressError) throw error;
|
|
19287
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19288
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
19289
|
+
error
|
|
19290
|
+
});
|
|
19291
|
+
return null;
|
|
19292
|
+
}
|
|
18660
19293
|
}
|
|
18661
19294
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
18662
19295
|
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\".");
|
|
@@ -18781,10 +19414,19 @@ var Application = class Application extends Object$1 {
|
|
|
18781
19414
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
18782
19415
|
const prop = this._cachedJsonLd["liked"];
|
|
18783
19416
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18784
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
|
|
19417
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19418
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
19419
|
+
...options,
|
|
19420
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19421
|
+
});
|
|
19422
|
+
} catch (error) {
|
|
19423
|
+
if (!options.suppressError) throw error;
|
|
19424
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19425
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
19426
|
+
error
|
|
19427
|
+
});
|
|
19428
|
+
return null;
|
|
19429
|
+
}
|
|
18788
19430
|
}
|
|
18789
19431
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
18790
19432
|
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\".");
|
|
@@ -18907,10 +19549,19 @@ var Application = class Application extends Object$1 {
|
|
|
18907
19549
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
18908
19550
|
const prop = this._cachedJsonLd["featured"];
|
|
18909
19551
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18910
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
19552
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19553
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
19554
|
+
...options,
|
|
19555
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19556
|
+
});
|
|
19557
|
+
} catch (error) {
|
|
19558
|
+
if (!options.suppressError) throw error;
|
|
19559
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19560
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
19561
|
+
error
|
|
19562
|
+
});
|
|
19563
|
+
return null;
|
|
19564
|
+
}
|
|
18914
19565
|
}
|
|
18915
19566
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
18916
19567
|
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\".");
|
|
@@ -19033,10 +19684,19 @@ var Application = class Application extends Object$1 {
|
|
|
19033
19684
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
19034
19685
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
19035
19686
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
19036
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19687
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19688
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
19689
|
+
...options,
|
|
19690
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19691
|
+
});
|
|
19692
|
+
} catch (error) {
|
|
19693
|
+
if (!options.suppressError) throw error;
|
|
19694
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19695
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
19696
|
+
error
|
|
19697
|
+
});
|
|
19698
|
+
return null;
|
|
19699
|
+
}
|
|
19040
19700
|
}
|
|
19041
19701
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
19042
19702
|
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\".");
|
|
@@ -19155,10 +19815,20 @@ var Application = class Application extends Object$1 {
|
|
|
19155
19815
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
19156
19816
|
const prop = this._cachedJsonLd["streams"];
|
|
19157
19817
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
19158
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19159
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19818
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
19819
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
19820
|
+
...options,
|
|
19821
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19822
|
+
});
|
|
19823
|
+
} catch (error) {
|
|
19824
|
+
if (!options.suppressError) throw error;
|
|
19825
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
19826
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
19827
|
+
index: i,
|
|
19828
|
+
error
|
|
19829
|
+
});
|
|
19830
|
+
continue;
|
|
19831
|
+
}
|
|
19162
19832
|
}
|
|
19163
19833
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
19164
19834
|
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\".");
|
|
@@ -19367,10 +20037,19 @@ var Application = class Application extends Object$1 {
|
|
|
19367
20037
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
19368
20038
|
const prop = this._cachedJsonLd["movedTo"];
|
|
19369
20039
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
19370
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
20040
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20041
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
20042
|
+
...options,
|
|
20043
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20044
|
+
});
|
|
20045
|
+
} catch (error) {
|
|
20046
|
+
if (!options.suppressError) throw error;
|
|
20047
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20048
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
20049
|
+
error
|
|
20050
|
+
});
|
|
20051
|
+
return null;
|
|
20052
|
+
}
|
|
19374
20053
|
}
|
|
19375
20054
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
19376
20055
|
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\".");
|
|
@@ -19539,10 +20218,19 @@ var Application = class Application extends Object$1 {
|
|
|
19539
20218
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
19540
20219
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
19541
20220
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
19542
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
20221
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20222
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
20223
|
+
...options,
|
|
20224
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20225
|
+
});
|
|
20226
|
+
} catch (error) {
|
|
20227
|
+
if (!options.suppressError) throw error;
|
|
20228
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20229
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
20230
|
+
error
|
|
20231
|
+
});
|
|
20232
|
+
return null;
|
|
20233
|
+
}
|
|
19546
20234
|
}
|
|
19547
20235
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
19548
20236
|
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\".");
|
|
@@ -19586,10 +20274,20 @@ var Application = class Application extends Object$1 {
|
|
|
19586
20274
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
19587
20275
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
19588
20276
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
19589
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
|
|
20277
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
20278
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
20279
|
+
...options,
|
|
20280
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20281
|
+
});
|
|
20282
|
+
} catch (error) {
|
|
20283
|
+
if (!options.suppressError) throw error;
|
|
20284
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
20285
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
20286
|
+
index: i,
|
|
20287
|
+
error
|
|
20288
|
+
});
|
|
20289
|
+
continue;
|
|
20290
|
+
}
|
|
19593
20291
|
}
|
|
19594
20292
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
19595
20293
|
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\".");
|
|
@@ -19713,10 +20411,19 @@ var Application = class Application extends Object$1 {
|
|
|
19713
20411
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
19714
20412
|
const prop = this._cachedJsonLd["service"];
|
|
19715
20413
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
19716
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
20414
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20415
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
20416
|
+
...options,
|
|
20417
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20418
|
+
});
|
|
20419
|
+
} catch (error) {
|
|
20420
|
+
if (!options.suppressError) throw error;
|
|
20421
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20422
|
+
property: "https://www.w3.org/ns/did#service",
|
|
20423
|
+
error
|
|
20424
|
+
});
|
|
20425
|
+
return null;
|
|
20426
|
+
}
|
|
19720
20427
|
}
|
|
19721
20428
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
19722
20429
|
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\".");
|
|
@@ -19760,10 +20467,20 @@ var Application = class Application extends Object$1 {
|
|
|
19760
20467
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
19761
20468
|
const prop = this._cachedJsonLd["service"];
|
|
19762
20469
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
19763
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
20470
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
20471
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
20472
|
+
...options,
|
|
20473
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20474
|
+
});
|
|
20475
|
+
} catch (error) {
|
|
20476
|
+
if (!options.suppressError) throw error;
|
|
20477
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
20478
|
+
property: "https://www.w3.org/ns/did#service",
|
|
20479
|
+
index: i,
|
|
20480
|
+
error
|
|
20481
|
+
});
|
|
20482
|
+
continue;
|
|
20483
|
+
}
|
|
19767
20484
|
}
|
|
19768
20485
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
19769
20486
|
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\".");
|
|
@@ -21384,10 +22101,19 @@ var Article = class Article extends Object$1 {
|
|
|
21384
22101
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
21385
22102
|
const prop = this._cachedJsonLd["quote"];
|
|
21386
22103
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21387
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
-
|
|
22104
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22105
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
22106
|
+
...options,
|
|
22107
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
22108
|
+
});
|
|
22109
|
+
} catch (error) {
|
|
22110
|
+
if (!options.suppressError) throw error;
|
|
22111
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22112
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
22113
|
+
error
|
|
22114
|
+
});
|
|
22115
|
+
return null;
|
|
22116
|
+
}
|
|
21391
22117
|
}
|
|
21392
22118
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
21393
22119
|
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\".");
|
|
@@ -21524,10 +22250,19 @@ var Article = class Article extends Object$1 {
|
|
|
21524
22250
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
21525
22251
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
21526
22252
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21527
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21528
|
-
|
|
21529
|
-
|
|
21530
|
-
|
|
22253
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22254
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
22255
|
+
...options,
|
|
22256
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
22257
|
+
});
|
|
22258
|
+
} catch (error) {
|
|
22259
|
+
if (!options.suppressError) throw error;
|
|
22260
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22261
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
22262
|
+
error
|
|
22263
|
+
});
|
|
22264
|
+
return null;
|
|
22265
|
+
}
|
|
21531
22266
|
}
|
|
21532
22267
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
21533
22268
|
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\".");
|
|
@@ -21782,7 +22517,7 @@ var Article = class Article extends Object$1 {
|
|
|
21782
22517
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
21783
22518
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
21784
22519
|
if (v == null) continue;
|
|
21785
|
-
const decoded =
|
|
22520
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
21786
22521
|
if (typeof decoded === "undefined") {
|
|
21787
22522
|
shouldCacheJsonLd = false;
|
|
21788
22523
|
continue;
|
|
@@ -22891,10 +23626,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
22891
23626
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
|
|
22892
23627
|
const prop = this._cachedJsonLd["current"];
|
|
22893
23628
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22894
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22895
|
-
|
|
22896
|
-
|
|
22897
|
-
|
|
23629
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23630
|
+
v = await this.#current_fromJsonLd(doc, {
|
|
23631
|
+
...options,
|
|
23632
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
23633
|
+
});
|
|
23634
|
+
} catch (error) {
|
|
23635
|
+
if (!options.suppressError) throw error;
|
|
23636
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23637
|
+
property: "https://www.w3.org/ns/activitystreams#current",
|
|
23638
|
+
error
|
|
23639
|
+
});
|
|
23640
|
+
return null;
|
|
23641
|
+
}
|
|
22898
23642
|
}
|
|
22899
23643
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
|
|
22900
23644
|
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\".");
|
|
@@ -23015,10 +23759,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23015
23759
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
|
|
23016
23760
|
const prop = this._cachedJsonLd["first"];
|
|
23017
23761
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23018
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23019
|
-
|
|
23020
|
-
|
|
23021
|
-
|
|
23762
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23763
|
+
v = await this.#first_fromJsonLd(doc, {
|
|
23764
|
+
...options,
|
|
23765
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
23766
|
+
});
|
|
23767
|
+
} catch (error) {
|
|
23768
|
+
if (!options.suppressError) throw error;
|
|
23769
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23770
|
+
property: "https://www.w3.org/ns/activitystreams#first",
|
|
23771
|
+
error
|
|
23772
|
+
});
|
|
23773
|
+
return null;
|
|
23774
|
+
}
|
|
23022
23775
|
}
|
|
23023
23776
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
|
|
23024
23777
|
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\".");
|
|
@@ -23139,10 +23892,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23139
23892
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
|
|
23140
23893
|
const prop = this._cachedJsonLd["last"];
|
|
23141
23894
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23142
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23143
|
-
|
|
23144
|
-
|
|
23145
|
-
|
|
23895
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23896
|
+
v = await this.#last_fromJsonLd(doc, {
|
|
23897
|
+
...options,
|
|
23898
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
23899
|
+
});
|
|
23900
|
+
} catch (error) {
|
|
23901
|
+
if (!options.suppressError) throw error;
|
|
23902
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23903
|
+
property: "https://www.w3.org/ns/activitystreams#last",
|
|
23904
|
+
error
|
|
23905
|
+
});
|
|
23906
|
+
return null;
|
|
23907
|
+
}
|
|
23146
23908
|
}
|
|
23147
23909
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
|
|
23148
23910
|
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\".");
|
|
@@ -23272,10 +24034,20 @@ var Collection = class Collection extends Object$1 {
|
|
|
23272
24034
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
|
|
23273
24035
|
const prop = this._cachedJsonLd["items"];
|
|
23274
24036
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
23275
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
24037
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
24038
|
+
v = await this.#item_fromJsonLd(obj, {
|
|
24039
|
+
...options,
|
|
24040
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24041
|
+
});
|
|
24042
|
+
} catch (error) {
|
|
24043
|
+
if (!options.suppressError) throw error;
|
|
24044
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
24045
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
24046
|
+
index: i,
|
|
24047
|
+
error
|
|
24048
|
+
});
|
|
24049
|
+
continue;
|
|
24050
|
+
}
|
|
23279
24051
|
}
|
|
23280
24052
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
23281
24053
|
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\".");
|
|
@@ -23396,10 +24168,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23396
24168
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
|
|
23397
24169
|
const prop = this._cachedJsonLd["likesOf"];
|
|
23398
24170
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23399
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23400
|
-
|
|
23401
|
-
|
|
23402
|
-
|
|
24171
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24172
|
+
v = await this.#likesOf_fromJsonLd(doc, {
|
|
24173
|
+
...options,
|
|
24174
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24175
|
+
});
|
|
24176
|
+
} catch (error) {
|
|
24177
|
+
if (!options.suppressError) throw error;
|
|
24178
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24179
|
+
property: "https://w3id.org/fep/5711#likesOf",
|
|
24180
|
+
error
|
|
24181
|
+
});
|
|
24182
|
+
return null;
|
|
24183
|
+
}
|
|
23403
24184
|
}
|
|
23404
24185
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
|
|
23405
24186
|
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\".");
|
|
@@ -23519,10 +24300,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23519
24300
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
|
|
23520
24301
|
const prop = this._cachedJsonLd["sharesOf"];
|
|
23521
24302
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23522
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23523
|
-
|
|
23524
|
-
|
|
23525
|
-
|
|
24303
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24304
|
+
v = await this.#sharesOf_fromJsonLd(doc, {
|
|
24305
|
+
...options,
|
|
24306
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24307
|
+
});
|
|
24308
|
+
} catch (error) {
|
|
24309
|
+
if (!options.suppressError) throw error;
|
|
24310
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24311
|
+
property: "https://w3id.org/fep/5711#sharesOf",
|
|
24312
|
+
error
|
|
24313
|
+
});
|
|
24314
|
+
return null;
|
|
24315
|
+
}
|
|
23526
24316
|
}
|
|
23527
24317
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
|
|
23528
24318
|
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\".");
|
|
@@ -23642,10 +24432,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23642
24432
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
|
|
23643
24433
|
const prop = this._cachedJsonLd["repliesOf"];
|
|
23644
24434
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23645
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23646
|
-
|
|
23647
|
-
|
|
23648
|
-
|
|
24435
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24436
|
+
v = await this.#repliesOf_fromJsonLd(doc, {
|
|
24437
|
+
...options,
|
|
24438
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24439
|
+
});
|
|
24440
|
+
} catch (error) {
|
|
24441
|
+
if (!options.suppressError) throw error;
|
|
24442
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24443
|
+
property: "https://w3id.org/fep/5711#repliesOf",
|
|
24444
|
+
error
|
|
24445
|
+
});
|
|
24446
|
+
return null;
|
|
24447
|
+
}
|
|
23649
24448
|
}
|
|
23650
24449
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
|
|
23651
24450
|
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\".");
|
|
@@ -23765,10 +24564,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23765
24564
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
|
|
23766
24565
|
const prop = this._cachedJsonLd["inboxOf"];
|
|
23767
24566
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23768
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23769
|
-
|
|
23770
|
-
|
|
23771
|
-
|
|
24567
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24568
|
+
v = await this.#inboxOf_fromJsonLd(doc, {
|
|
24569
|
+
...options,
|
|
24570
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24571
|
+
});
|
|
24572
|
+
} catch (error) {
|
|
24573
|
+
if (!options.suppressError) throw error;
|
|
24574
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24575
|
+
property: "https://w3id.org/fep/5711#inboxOf",
|
|
24576
|
+
error
|
|
24577
|
+
});
|
|
24578
|
+
return null;
|
|
24579
|
+
}
|
|
23772
24580
|
}
|
|
23773
24581
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
|
|
23774
24582
|
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\".");
|
|
@@ -23888,10 +24696,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23888
24696
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
|
|
23889
24697
|
const prop = this._cachedJsonLd["outboxOf"];
|
|
23890
24698
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23891
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23892
|
-
|
|
23893
|
-
|
|
23894
|
-
|
|
24699
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24700
|
+
v = await this.#outboxOf_fromJsonLd(doc, {
|
|
24701
|
+
...options,
|
|
24702
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24703
|
+
});
|
|
24704
|
+
} catch (error) {
|
|
24705
|
+
if (!options.suppressError) throw error;
|
|
24706
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24707
|
+
property: "https://w3id.org/fep/5711#outboxOf",
|
|
24708
|
+
error
|
|
24709
|
+
});
|
|
24710
|
+
return null;
|
|
24711
|
+
}
|
|
23895
24712
|
}
|
|
23896
24713
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
|
|
23897
24714
|
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\".");
|
|
@@ -24011,10 +24828,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
24011
24828
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
|
|
24012
24829
|
const prop = this._cachedJsonLd["followersOf"];
|
|
24013
24830
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
24014
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
24015
|
-
|
|
24016
|
-
|
|
24017
|
-
|
|
24831
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24832
|
+
v = await this.#followersOf_fromJsonLd(doc, {
|
|
24833
|
+
...options,
|
|
24834
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24835
|
+
});
|
|
24836
|
+
} catch (error) {
|
|
24837
|
+
if (!options.suppressError) throw error;
|
|
24838
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24839
|
+
property: "https://w3id.org/fep/5711#followersOf",
|
|
24840
|
+
error
|
|
24841
|
+
});
|
|
24842
|
+
return null;
|
|
24843
|
+
}
|
|
24018
24844
|
}
|
|
24019
24845
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
|
|
24020
24846
|
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\".");
|
|
@@ -24134,10 +24960,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
24134
24960
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
|
|
24135
24961
|
const prop = this._cachedJsonLd["followingOf"];
|
|
24136
24962
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
24137
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
24138
|
-
|
|
24139
|
-
|
|
24140
|
-
|
|
24963
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24964
|
+
v = await this.#followingOf_fromJsonLd(doc, {
|
|
24965
|
+
...options,
|
|
24966
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24967
|
+
});
|
|
24968
|
+
} catch (error) {
|
|
24969
|
+
if (!options.suppressError) throw error;
|
|
24970
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24971
|
+
property: "https://w3id.org/fep/5711#followingOf",
|
|
24972
|
+
error
|
|
24973
|
+
});
|
|
24974
|
+
return null;
|
|
24975
|
+
}
|
|
24141
24976
|
}
|
|
24142
24977
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
|
|
24143
24978
|
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\".");
|
|
@@ -24257,10 +25092,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
24257
25092
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
|
|
24258
25093
|
const prop = this._cachedJsonLd["likedOf"];
|
|
24259
25094
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
24260
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
24261
|
-
|
|
24262
|
-
|
|
24263
|
-
|
|
25095
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
25096
|
+
v = await this.#likedOf_fromJsonLd(doc, {
|
|
25097
|
+
...options,
|
|
25098
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
25099
|
+
});
|
|
25100
|
+
} catch (error) {
|
|
25101
|
+
if (!options.suppressError) throw error;
|
|
25102
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
25103
|
+
property: "https://w3id.org/fep/5711#likedOf",
|
|
25104
|
+
error
|
|
25105
|
+
});
|
|
25106
|
+
return null;
|
|
25107
|
+
}
|
|
24264
25108
|
}
|
|
24265
25109
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
|
|
24266
25110
|
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\".");
|
|
@@ -25258,10 +26102,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25258
26102
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
|
|
25259
26103
|
const prop = this._cachedJsonLd["partOf"];
|
|
25260
26104
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
25261
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
25262
|
-
|
|
25263
|
-
|
|
25264
|
-
|
|
26105
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
26106
|
+
v = await this.#partOf_fromJsonLd(doc, {
|
|
26107
|
+
...options,
|
|
26108
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
26109
|
+
});
|
|
26110
|
+
} catch (error) {
|
|
26111
|
+
if (!options.suppressError) throw error;
|
|
26112
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
26113
|
+
property: "https://www.w3.org/ns/activitystreams#partOf",
|
|
26114
|
+
error
|
|
26115
|
+
});
|
|
26116
|
+
return null;
|
|
26117
|
+
}
|
|
25265
26118
|
}
|
|
25266
26119
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
|
|
25267
26120
|
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\".");
|
|
@@ -25381,10 +26234,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25381
26234
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
|
|
25382
26235
|
const prop = this._cachedJsonLd["next"];
|
|
25383
26236
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
25384
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
|
|
26237
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
26238
|
+
v = await this.#next_fromJsonLd(doc, {
|
|
26239
|
+
...options,
|
|
26240
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
26241
|
+
});
|
|
26242
|
+
} catch (error) {
|
|
26243
|
+
if (!options.suppressError) throw error;
|
|
26244
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
26245
|
+
property: "https://www.w3.org/ns/activitystreams#next",
|
|
26246
|
+
error
|
|
26247
|
+
});
|
|
26248
|
+
return null;
|
|
26249
|
+
}
|
|
25388
26250
|
}
|
|
25389
26251
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
|
|
25390
26252
|
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\".");
|
|
@@ -25504,10 +26366,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25504
26366
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
|
|
25505
26367
|
const prop = this._cachedJsonLd["prev"];
|
|
25506
26368
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
25507
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
25508
|
-
|
|
25509
|
-
|
|
25510
|
-
|
|
26369
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
26370
|
+
v = await this.#prev_fromJsonLd(doc, {
|
|
26371
|
+
...options,
|
|
26372
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
26373
|
+
});
|
|
26374
|
+
} catch (error) {
|
|
26375
|
+
if (!options.suppressError) throw error;
|
|
26376
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
26377
|
+
property: "https://www.w3.org/ns/activitystreams#prev",
|
|
26378
|
+
error
|
|
26379
|
+
});
|
|
26380
|
+
return null;
|
|
26381
|
+
}
|
|
25511
26382
|
}
|
|
25512
26383
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
|
|
25513
26384
|
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\".");
|
|
@@ -27734,10 +28605,19 @@ var Group = class Group extends Object$1 {
|
|
|
27734
28605
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
27735
28606
|
const prop = this._cachedJsonLd["publicKey"];
|
|
27736
28607
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27737
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27738
|
-
|
|
27739
|
-
|
|
27740
|
-
|
|
28608
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28609
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
28610
|
+
...options,
|
|
28611
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28612
|
+
});
|
|
28613
|
+
} catch (error) {
|
|
28614
|
+
if (!options.suppressError) throw error;
|
|
28615
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28616
|
+
property: "https://w3id.org/security#publicKey",
|
|
28617
|
+
error
|
|
28618
|
+
});
|
|
28619
|
+
return null;
|
|
28620
|
+
}
|
|
27741
28621
|
}
|
|
27742
28622
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
27743
28623
|
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\".");
|
|
@@ -27778,10 +28658,20 @@ var Group = class Group extends Object$1 {
|
|
|
27778
28658
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
27779
28659
|
const prop = this._cachedJsonLd["publicKey"];
|
|
27780
28660
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
27781
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
27782
|
-
|
|
27783
|
-
|
|
27784
|
-
|
|
28661
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
28662
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
28663
|
+
...options,
|
|
28664
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28665
|
+
});
|
|
28666
|
+
} catch (error) {
|
|
28667
|
+
if (!options.suppressError) throw error;
|
|
28668
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
28669
|
+
property: "https://w3id.org/security#publicKey",
|
|
28670
|
+
index: i,
|
|
28671
|
+
error
|
|
28672
|
+
});
|
|
28673
|
+
continue;
|
|
28674
|
+
}
|
|
27785
28675
|
}
|
|
27786
28676
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
27787
28677
|
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\".");
|
|
@@ -27905,10 +28795,19 @@ var Group = class Group extends Object$1 {
|
|
|
27905
28795
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
27906
28796
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
27907
28797
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27908
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27909
|
-
|
|
27910
|
-
|
|
27911
|
-
|
|
28798
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28799
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
28800
|
+
...options,
|
|
28801
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28802
|
+
});
|
|
28803
|
+
} catch (error) {
|
|
28804
|
+
if (!options.suppressError) throw error;
|
|
28805
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28806
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
28807
|
+
error
|
|
28808
|
+
});
|
|
28809
|
+
return null;
|
|
28810
|
+
}
|
|
27912
28811
|
}
|
|
27913
28812
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
27914
28813
|
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\".");
|
|
@@ -27952,10 +28851,20 @@ var Group = class Group extends Object$1 {
|
|
|
27952
28851
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
27953
28852
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
27954
28853
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
27955
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
27956
|
-
|
|
27957
|
-
|
|
27958
|
-
|
|
28854
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
28855
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
28856
|
+
...options,
|
|
28857
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28858
|
+
});
|
|
28859
|
+
} catch (error) {
|
|
28860
|
+
if (!options.suppressError) throw error;
|
|
28861
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
28862
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
28863
|
+
index: i,
|
|
28864
|
+
error
|
|
28865
|
+
});
|
|
28866
|
+
continue;
|
|
28867
|
+
}
|
|
27959
28868
|
}
|
|
27960
28869
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
27961
28870
|
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\".");
|
|
@@ -28110,10 +29019,19 @@ var Group = class Group extends Object$1 {
|
|
|
28110
29019
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
28111
29020
|
const prop = this._cachedJsonLd["inbox"];
|
|
28112
29021
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28113
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28114
|
-
|
|
28115
|
-
|
|
28116
|
-
|
|
29022
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29023
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
29024
|
+
...options,
|
|
29025
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29026
|
+
});
|
|
29027
|
+
} catch (error) {
|
|
29028
|
+
if (!options.suppressError) throw error;
|
|
29029
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29030
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
29031
|
+
error
|
|
29032
|
+
});
|
|
29033
|
+
return null;
|
|
29034
|
+
}
|
|
28117
29035
|
}
|
|
28118
29036
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
28119
29037
|
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\".");
|
|
@@ -28252,10 +29170,19 @@ var Group = class Group extends Object$1 {
|
|
|
28252
29170
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
28253
29171
|
const prop = this._cachedJsonLd["outbox"];
|
|
28254
29172
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28255
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28256
|
-
|
|
28257
|
-
|
|
28258
|
-
|
|
29173
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29174
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
29175
|
+
...options,
|
|
29176
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29177
|
+
});
|
|
29178
|
+
} catch (error) {
|
|
29179
|
+
if (!options.suppressError) throw error;
|
|
29180
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29181
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
29182
|
+
error
|
|
29183
|
+
});
|
|
29184
|
+
return null;
|
|
29185
|
+
}
|
|
28259
29186
|
}
|
|
28260
29187
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
28261
29188
|
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\".");
|
|
@@ -28379,10 +29306,19 @@ var Group = class Group extends Object$1 {
|
|
|
28379
29306
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
28380
29307
|
const prop = this._cachedJsonLd["following"];
|
|
28381
29308
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28382
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28383
|
-
|
|
28384
|
-
|
|
28385
|
-
|
|
29309
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29310
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
29311
|
+
...options,
|
|
29312
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29313
|
+
});
|
|
29314
|
+
} catch (error) {
|
|
29315
|
+
if (!options.suppressError) throw error;
|
|
29316
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29317
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
29318
|
+
error
|
|
29319
|
+
});
|
|
29320
|
+
return null;
|
|
29321
|
+
}
|
|
28386
29322
|
}
|
|
28387
29323
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
28388
29324
|
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\".");
|
|
@@ -28509,10 +29445,19 @@ var Group = class Group extends Object$1 {
|
|
|
28509
29445
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
28510
29446
|
const prop = this._cachedJsonLd["followers"];
|
|
28511
29447
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28512
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28513
|
-
|
|
28514
|
-
|
|
28515
|
-
|
|
29448
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29449
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
29450
|
+
...options,
|
|
29451
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29452
|
+
});
|
|
29453
|
+
} catch (error) {
|
|
29454
|
+
if (!options.suppressError) throw error;
|
|
29455
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29456
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
29457
|
+
error
|
|
29458
|
+
});
|
|
29459
|
+
return null;
|
|
29460
|
+
}
|
|
28516
29461
|
}
|
|
28517
29462
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
28518
29463
|
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\".");
|
|
@@ -28637,10 +29582,19 @@ var Group = class Group extends Object$1 {
|
|
|
28637
29582
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
28638
29583
|
const prop = this._cachedJsonLd["liked"];
|
|
28639
29584
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28640
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28641
|
-
|
|
28642
|
-
|
|
28643
|
-
|
|
29585
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29586
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
29587
|
+
...options,
|
|
29588
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29589
|
+
});
|
|
29590
|
+
} catch (error) {
|
|
29591
|
+
if (!options.suppressError) throw error;
|
|
29592
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29593
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
29594
|
+
error
|
|
29595
|
+
});
|
|
29596
|
+
return null;
|
|
29597
|
+
}
|
|
28644
29598
|
}
|
|
28645
29599
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
28646
29600
|
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\".");
|
|
@@ -28763,10 +29717,19 @@ var Group = class Group extends Object$1 {
|
|
|
28763
29717
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
28764
29718
|
const prop = this._cachedJsonLd["featured"];
|
|
28765
29719
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28766
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28767
|
-
|
|
28768
|
-
|
|
28769
|
-
|
|
29720
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29721
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
29722
|
+
...options,
|
|
29723
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29724
|
+
});
|
|
29725
|
+
} catch (error) {
|
|
29726
|
+
if (!options.suppressError) throw error;
|
|
29727
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29728
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
29729
|
+
error
|
|
29730
|
+
});
|
|
29731
|
+
return null;
|
|
29732
|
+
}
|
|
28770
29733
|
}
|
|
28771
29734
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
28772
29735
|
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\".");
|
|
@@ -28889,10 +29852,19 @@ var Group = class Group extends Object$1 {
|
|
|
28889
29852
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
28890
29853
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
28891
29854
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28892
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28893
|
-
|
|
28894
|
-
|
|
28895
|
-
|
|
29855
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29856
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
29857
|
+
...options,
|
|
29858
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29859
|
+
});
|
|
29860
|
+
} catch (error) {
|
|
29861
|
+
if (!options.suppressError) throw error;
|
|
29862
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29863
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
29864
|
+
error
|
|
29865
|
+
});
|
|
29866
|
+
return null;
|
|
29867
|
+
}
|
|
28896
29868
|
}
|
|
28897
29869
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
28898
29870
|
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\".");
|
|
@@ -29011,10 +29983,20 @@ var Group = class Group extends Object$1 {
|
|
|
29011
29983
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
29012
29984
|
const prop = this._cachedJsonLd["streams"];
|
|
29013
29985
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29014
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29015
|
-
|
|
29016
|
-
|
|
29017
|
-
|
|
29986
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
29987
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
29988
|
+
...options,
|
|
29989
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29990
|
+
});
|
|
29991
|
+
} catch (error) {
|
|
29992
|
+
if (!options.suppressError) throw error;
|
|
29993
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
29994
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
29995
|
+
index: i,
|
|
29996
|
+
error
|
|
29997
|
+
});
|
|
29998
|
+
continue;
|
|
29999
|
+
}
|
|
29018
30000
|
}
|
|
29019
30001
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
29020
30002
|
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\".");
|
|
@@ -29223,10 +30205,19 @@ var Group = class Group extends Object$1 {
|
|
|
29223
30205
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
29224
30206
|
const prop = this._cachedJsonLd["movedTo"];
|
|
29225
30207
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29226
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29227
|
-
|
|
29228
|
-
|
|
29229
|
-
|
|
30208
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
30209
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
30210
|
+
...options,
|
|
30211
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30212
|
+
});
|
|
30213
|
+
} catch (error) {
|
|
30214
|
+
if (!options.suppressError) throw error;
|
|
30215
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
30216
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
30217
|
+
error
|
|
30218
|
+
});
|
|
30219
|
+
return null;
|
|
30220
|
+
}
|
|
29230
30221
|
}
|
|
29231
30222
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
29232
30223
|
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\".");
|
|
@@ -29395,10 +30386,19 @@ var Group = class Group extends Object$1 {
|
|
|
29395
30386
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
29396
30387
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
29397
30388
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29398
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
30389
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
30390
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
30391
|
+
...options,
|
|
30392
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30393
|
+
});
|
|
30394
|
+
} catch (error) {
|
|
30395
|
+
if (!options.suppressError) throw error;
|
|
30396
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
30397
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
30398
|
+
error
|
|
30399
|
+
});
|
|
30400
|
+
return null;
|
|
30401
|
+
}
|
|
29402
30402
|
}
|
|
29403
30403
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
29404
30404
|
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\".");
|
|
@@ -29442,10 +30442,20 @@ var Group = class Group extends Object$1 {
|
|
|
29442
30442
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
29443
30443
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
29444
30444
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29445
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
30445
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
30446
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
30447
|
+
...options,
|
|
30448
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30449
|
+
});
|
|
30450
|
+
} catch (error) {
|
|
30451
|
+
if (!options.suppressError) throw error;
|
|
30452
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
30453
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
30454
|
+
index: i,
|
|
30455
|
+
error
|
|
30456
|
+
});
|
|
30457
|
+
continue;
|
|
30458
|
+
}
|
|
29449
30459
|
}
|
|
29450
30460
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
29451
30461
|
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\".");
|
|
@@ -29569,10 +30579,19 @@ var Group = class Group extends Object$1 {
|
|
|
29569
30579
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
29570
30580
|
const prop = this._cachedJsonLd["service"];
|
|
29571
30581
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29572
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29573
|
-
|
|
29574
|
-
|
|
29575
|
-
|
|
30582
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
30583
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
30584
|
+
...options,
|
|
30585
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30586
|
+
});
|
|
30587
|
+
} catch (error) {
|
|
30588
|
+
if (!options.suppressError) throw error;
|
|
30589
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
30590
|
+
property: "https://www.w3.org/ns/did#service",
|
|
30591
|
+
error
|
|
30592
|
+
});
|
|
30593
|
+
return null;
|
|
30594
|
+
}
|
|
29576
30595
|
}
|
|
29577
30596
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
29578
30597
|
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\".");
|
|
@@ -29616,10 +30635,20 @@ var Group = class Group extends Object$1 {
|
|
|
29616
30635
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
29617
30636
|
const prop = this._cachedJsonLd["service"];
|
|
29618
30637
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29619
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29620
|
-
|
|
29621
|
-
|
|
29622
|
-
|
|
30638
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
30639
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
30640
|
+
...options,
|
|
30641
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30642
|
+
});
|
|
30643
|
+
} catch (error) {
|
|
30644
|
+
if (!options.suppressError) throw error;
|
|
30645
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
30646
|
+
property: "https://www.w3.org/ns/did#service",
|
|
30647
|
+
index: i,
|
|
30648
|
+
error
|
|
30649
|
+
});
|
|
30650
|
+
continue;
|
|
30651
|
+
}
|
|
29623
30652
|
}
|
|
29624
30653
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
29625
30654
|
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\".");
|
|
@@ -31114,10 +32143,20 @@ var Link = class Link {
|
|
|
31114
32143
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
31115
32144
|
const prop = this._cachedJsonLd["preview"];
|
|
31116
32145
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
31117
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
|
|
32146
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
32147
|
+
v = await this.#preview_fromJsonLd(obj, {
|
|
32148
|
+
...options,
|
|
32149
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
32150
|
+
});
|
|
32151
|
+
} catch (error) {
|
|
32152
|
+
if (!options.suppressError) throw error;
|
|
32153
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
32154
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
32155
|
+
index: i,
|
|
32156
|
+
error
|
|
32157
|
+
});
|
|
32158
|
+
continue;
|
|
32159
|
+
}
|
|
31121
32160
|
}
|
|
31122
32161
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
31123
32162
|
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\".");
|
|
@@ -33310,10 +34349,19 @@ var Note = class Note extends Object$1 {
|
|
|
33310
34349
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
33311
34350
|
const prop = this._cachedJsonLd["quote"];
|
|
33312
34351
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
33313
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
33314
|
-
|
|
33315
|
-
|
|
33316
|
-
|
|
34352
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
34353
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
34354
|
+
...options,
|
|
34355
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
34356
|
+
});
|
|
34357
|
+
} catch (error) {
|
|
34358
|
+
if (!options.suppressError) throw error;
|
|
34359
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
34360
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
34361
|
+
error
|
|
34362
|
+
});
|
|
34363
|
+
return null;
|
|
34364
|
+
}
|
|
33317
34365
|
}
|
|
33318
34366
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
33319
34367
|
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\".");
|
|
@@ -33450,10 +34498,19 @@ var Note = class Note extends Object$1 {
|
|
|
33450
34498
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
33451
34499
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
33452
34500
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
33453
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
33454
|
-
|
|
33455
|
-
|
|
33456
|
-
|
|
34501
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
34502
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
34503
|
+
...options,
|
|
34504
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
34505
|
+
});
|
|
34506
|
+
} catch (error) {
|
|
34507
|
+
if (!options.suppressError) throw error;
|
|
34508
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
34509
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
34510
|
+
error
|
|
34511
|
+
});
|
|
34512
|
+
return null;
|
|
34513
|
+
}
|
|
33457
34514
|
}
|
|
33458
34515
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
33459
34516
|
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\".");
|
|
@@ -33708,7 +34765,7 @@ var Note = class Note extends Object$1 {
|
|
|
33708
34765
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
33709
34766
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
33710
34767
|
if (v == null) continue;
|
|
33711
|
-
const decoded =
|
|
34768
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
33712
34769
|
if (typeof decoded === "undefined") {
|
|
33713
34770
|
shouldCacheJsonLd = false;
|
|
33714
34771
|
continue;
|
|
@@ -33938,10 +34995,20 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33938
34995
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
33939
34996
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
33940
34997
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
33941
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
33942
|
-
|
|
33943
|
-
|
|
33944
|
-
|
|
34998
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
34999
|
+
v = await this.#item_fromJsonLd(obj, {
|
|
35000
|
+
...options,
|
|
35001
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
35002
|
+
});
|
|
35003
|
+
} catch (error) {
|
|
35004
|
+
if (!options.suppressError) throw error;
|
|
35005
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
35006
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
35007
|
+
index: i,
|
|
35008
|
+
error
|
|
35009
|
+
});
|
|
35010
|
+
continue;
|
|
35011
|
+
}
|
|
33945
35012
|
}
|
|
33946
35013
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
33947
35014
|
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\".");
|
|
@@ -34435,10 +35502,20 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
34435
35502
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
34436
35503
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
34437
35504
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
34438
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
34439
|
-
|
|
34440
|
-
|
|
34441
|
-
|
|
35505
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
35506
|
+
v = await this.#item_fromJsonLd(obj, {
|
|
35507
|
+
...options,
|
|
35508
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
35509
|
+
});
|
|
35510
|
+
} catch (error) {
|
|
35511
|
+
if (!options.suppressError) throw error;
|
|
35512
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
35513
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
35514
|
+
index: i,
|
|
35515
|
+
error
|
|
35516
|
+
});
|
|
35517
|
+
continue;
|
|
35518
|
+
}
|
|
34442
35519
|
}
|
|
34443
35520
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
34444
35521
|
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\".");
|
|
@@ -35237,10 +36314,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35237
36314
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
35238
36315
|
const prop = this._cachedJsonLd["publicKey"];
|
|
35239
36316
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35240
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35241
|
-
|
|
35242
|
-
|
|
35243
|
-
|
|
36317
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36318
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
36319
|
+
...options,
|
|
36320
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36321
|
+
});
|
|
36322
|
+
} catch (error) {
|
|
36323
|
+
if (!options.suppressError) throw error;
|
|
36324
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36325
|
+
property: "https://w3id.org/security#publicKey",
|
|
36326
|
+
error
|
|
36327
|
+
});
|
|
36328
|
+
return null;
|
|
36329
|
+
}
|
|
35244
36330
|
}
|
|
35245
36331
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
35246
36332
|
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\".");
|
|
@@ -35281,10 +36367,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
35281
36367
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
35282
36368
|
const prop = this._cachedJsonLd["publicKey"];
|
|
35283
36369
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35284
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
35285
|
-
|
|
35286
|
-
|
|
35287
|
-
|
|
36370
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36371
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
36372
|
+
...options,
|
|
36373
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36374
|
+
});
|
|
36375
|
+
} catch (error) {
|
|
36376
|
+
if (!options.suppressError) throw error;
|
|
36377
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36378
|
+
property: "https://w3id.org/security#publicKey",
|
|
36379
|
+
index: i,
|
|
36380
|
+
error
|
|
36381
|
+
});
|
|
36382
|
+
continue;
|
|
36383
|
+
}
|
|
35288
36384
|
}
|
|
35289
36385
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
35290
36386
|
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\".");
|
|
@@ -35408,10 +36504,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35408
36504
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
35409
36505
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
35410
36506
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35411
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35412
|
-
|
|
35413
|
-
|
|
35414
|
-
|
|
36507
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36508
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
36509
|
+
...options,
|
|
36510
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36511
|
+
});
|
|
36512
|
+
} catch (error) {
|
|
36513
|
+
if (!options.suppressError) throw error;
|
|
36514
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36515
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
36516
|
+
error
|
|
36517
|
+
});
|
|
36518
|
+
return null;
|
|
36519
|
+
}
|
|
35415
36520
|
}
|
|
35416
36521
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
35417
36522
|
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\".");
|
|
@@ -35455,10 +36560,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
35455
36560
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
35456
36561
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
35457
36562
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35458
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
35459
|
-
|
|
35460
|
-
|
|
35461
|
-
|
|
36563
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36564
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
36565
|
+
...options,
|
|
36566
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36567
|
+
});
|
|
36568
|
+
} catch (error) {
|
|
36569
|
+
if (!options.suppressError) throw error;
|
|
36570
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36571
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
36572
|
+
index: i,
|
|
36573
|
+
error
|
|
36574
|
+
});
|
|
36575
|
+
continue;
|
|
36576
|
+
}
|
|
35462
36577
|
}
|
|
35463
36578
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
35464
36579
|
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\".");
|
|
@@ -35613,10 +36728,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35613
36728
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
35614
36729
|
const prop = this._cachedJsonLd["inbox"];
|
|
35615
36730
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35616
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35617
|
-
|
|
35618
|
-
|
|
35619
|
-
|
|
36731
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36732
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
36733
|
+
...options,
|
|
36734
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36735
|
+
});
|
|
36736
|
+
} catch (error) {
|
|
36737
|
+
if (!options.suppressError) throw error;
|
|
36738
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36739
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
36740
|
+
error
|
|
36741
|
+
});
|
|
36742
|
+
return null;
|
|
36743
|
+
}
|
|
35620
36744
|
}
|
|
35621
36745
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
35622
36746
|
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\".");
|
|
@@ -35755,10 +36879,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35755
36879
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
35756
36880
|
const prop = this._cachedJsonLd["outbox"];
|
|
35757
36881
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35758
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35759
|
-
|
|
35760
|
-
|
|
35761
|
-
|
|
36882
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36883
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
36884
|
+
...options,
|
|
36885
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36886
|
+
});
|
|
36887
|
+
} catch (error) {
|
|
36888
|
+
if (!options.suppressError) throw error;
|
|
36889
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36890
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
36891
|
+
error
|
|
36892
|
+
});
|
|
36893
|
+
return null;
|
|
36894
|
+
}
|
|
35762
36895
|
}
|
|
35763
36896
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
35764
36897
|
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\".");
|
|
@@ -35882,10 +37015,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35882
37015
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
35883
37016
|
const prop = this._cachedJsonLd["following"];
|
|
35884
37017
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35885
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35886
|
-
|
|
35887
|
-
|
|
35888
|
-
|
|
37018
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37019
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
37020
|
+
...options,
|
|
37021
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37022
|
+
});
|
|
37023
|
+
} catch (error) {
|
|
37024
|
+
if (!options.suppressError) throw error;
|
|
37025
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37026
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
37027
|
+
error
|
|
37028
|
+
});
|
|
37029
|
+
return null;
|
|
37030
|
+
}
|
|
35889
37031
|
}
|
|
35890
37032
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
35891
37033
|
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\".");
|
|
@@ -36012,10 +37154,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36012
37154
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
36013
37155
|
const prop = this._cachedJsonLd["followers"];
|
|
36014
37156
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36015
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
|
|
37157
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37158
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
37159
|
+
...options,
|
|
37160
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37161
|
+
});
|
|
37162
|
+
} catch (error) {
|
|
37163
|
+
if (!options.suppressError) throw error;
|
|
37164
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37165
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
37166
|
+
error
|
|
37167
|
+
});
|
|
37168
|
+
return null;
|
|
37169
|
+
}
|
|
36019
37170
|
}
|
|
36020
37171
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
36021
37172
|
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\".");
|
|
@@ -36140,10 +37291,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36140
37291
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
36141
37292
|
const prop = this._cachedJsonLd["liked"];
|
|
36142
37293
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36143
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36144
|
-
|
|
36145
|
-
|
|
36146
|
-
|
|
37294
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37295
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
37296
|
+
...options,
|
|
37297
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37298
|
+
});
|
|
37299
|
+
} catch (error) {
|
|
37300
|
+
if (!options.suppressError) throw error;
|
|
37301
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37302
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
37303
|
+
error
|
|
37304
|
+
});
|
|
37305
|
+
return null;
|
|
37306
|
+
}
|
|
36147
37307
|
}
|
|
36148
37308
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
36149
37309
|
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\".");
|
|
@@ -36266,10 +37426,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36266
37426
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
36267
37427
|
const prop = this._cachedJsonLd["featured"];
|
|
36268
37428
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36269
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36270
|
-
|
|
36271
|
-
|
|
36272
|
-
|
|
37429
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37430
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
37431
|
+
...options,
|
|
37432
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37433
|
+
});
|
|
37434
|
+
} catch (error) {
|
|
37435
|
+
if (!options.suppressError) throw error;
|
|
37436
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37437
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
37438
|
+
error
|
|
37439
|
+
});
|
|
37440
|
+
return null;
|
|
37441
|
+
}
|
|
36273
37442
|
}
|
|
36274
37443
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
36275
37444
|
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\".");
|
|
@@ -36392,10 +37561,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36392
37561
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
36393
37562
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
36394
37563
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36395
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36396
|
-
|
|
36397
|
-
|
|
36398
|
-
|
|
37564
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37565
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
37566
|
+
...options,
|
|
37567
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37568
|
+
});
|
|
37569
|
+
} catch (error) {
|
|
37570
|
+
if (!options.suppressError) throw error;
|
|
37571
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37572
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
37573
|
+
error
|
|
37574
|
+
});
|
|
37575
|
+
return null;
|
|
37576
|
+
}
|
|
36399
37577
|
}
|
|
36400
37578
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
36401
37579
|
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\".");
|
|
@@ -36514,10 +37692,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
36514
37692
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
36515
37693
|
const prop = this._cachedJsonLd["streams"];
|
|
36516
37694
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
36517
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36518
|
-
|
|
36519
|
-
|
|
36520
|
-
|
|
37695
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
37696
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
37697
|
+
...options,
|
|
37698
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37699
|
+
});
|
|
37700
|
+
} catch (error) {
|
|
37701
|
+
if (!options.suppressError) throw error;
|
|
37702
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
37703
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
37704
|
+
index: i,
|
|
37705
|
+
error
|
|
37706
|
+
});
|
|
37707
|
+
continue;
|
|
37708
|
+
}
|
|
36521
37709
|
}
|
|
36522
37710
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
36523
37711
|
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\".");
|
|
@@ -36726,10 +37914,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36726
37914
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
36727
37915
|
const prop = this._cachedJsonLd["movedTo"];
|
|
36728
37916
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36729
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36730
|
-
|
|
36731
|
-
|
|
36732
|
-
|
|
37917
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37918
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
37919
|
+
...options,
|
|
37920
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37921
|
+
});
|
|
37922
|
+
} catch (error) {
|
|
37923
|
+
if (!options.suppressError) throw error;
|
|
37924
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37925
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
37926
|
+
error
|
|
37927
|
+
});
|
|
37928
|
+
return null;
|
|
37929
|
+
}
|
|
36733
37930
|
}
|
|
36734
37931
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
36735
37932
|
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\".");
|
|
@@ -36898,10 +38095,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36898
38095
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
36899
38096
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
36900
38097
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36901
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36902
|
-
|
|
36903
|
-
|
|
36904
|
-
|
|
38098
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38099
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
38100
|
+
...options,
|
|
38101
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38102
|
+
});
|
|
38103
|
+
} catch (error) {
|
|
38104
|
+
if (!options.suppressError) throw error;
|
|
38105
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38106
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
38107
|
+
error
|
|
38108
|
+
});
|
|
38109
|
+
return null;
|
|
38110
|
+
}
|
|
36905
38111
|
}
|
|
36906
38112
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
36907
38113
|
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\".");
|
|
@@ -36945,10 +38151,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
36945
38151
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
36946
38152
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
36947
38153
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
36948
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36949
|
-
|
|
36950
|
-
|
|
36951
|
-
|
|
38154
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
38155
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
38156
|
+
...options,
|
|
38157
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38158
|
+
});
|
|
38159
|
+
} catch (error) {
|
|
38160
|
+
if (!options.suppressError) throw error;
|
|
38161
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
38162
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
38163
|
+
index: i,
|
|
38164
|
+
error
|
|
38165
|
+
});
|
|
38166
|
+
continue;
|
|
38167
|
+
}
|
|
36952
38168
|
}
|
|
36953
38169
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
36954
38170
|
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\".");
|
|
@@ -37072,10 +38288,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
37072
38288
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
37073
38289
|
const prop = this._cachedJsonLd["service"];
|
|
37074
38290
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37075
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
37076
|
-
|
|
37077
|
-
|
|
37078
|
-
|
|
38291
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38292
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
38293
|
+
...options,
|
|
38294
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38295
|
+
});
|
|
38296
|
+
} catch (error) {
|
|
38297
|
+
if (!options.suppressError) throw error;
|
|
38298
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38299
|
+
property: "https://www.w3.org/ns/did#service",
|
|
38300
|
+
error
|
|
38301
|
+
});
|
|
38302
|
+
return null;
|
|
38303
|
+
}
|
|
37079
38304
|
}
|
|
37080
38305
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
37081
38306
|
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\".");
|
|
@@ -37119,10 +38344,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
37119
38344
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
37120
38345
|
const prop = this._cachedJsonLd["service"];
|
|
37121
38346
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
37122
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
37123
|
-
|
|
37124
|
-
|
|
37125
|
-
|
|
38347
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
38348
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
38349
|
+
...options,
|
|
38350
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38351
|
+
});
|
|
38352
|
+
} catch (error) {
|
|
38353
|
+
if (!options.suppressError) throw error;
|
|
38354
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
38355
|
+
property: "https://www.w3.org/ns/did#service",
|
|
38356
|
+
index: i,
|
|
38357
|
+
error
|
|
38358
|
+
});
|
|
38359
|
+
continue;
|
|
38360
|
+
}
|
|
37126
38361
|
}
|
|
37127
38362
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
37128
38363
|
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\".");
|
|
@@ -38862,10 +40097,19 @@ var Person = class Person extends Object$1 {
|
|
|
38862
40097
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
38863
40098
|
const prop = this._cachedJsonLd["publicKey"];
|
|
38864
40099
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38865
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38866
|
-
|
|
38867
|
-
|
|
38868
|
-
|
|
40100
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40101
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
40102
|
+
...options,
|
|
40103
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40104
|
+
});
|
|
40105
|
+
} catch (error) {
|
|
40106
|
+
if (!options.suppressError) throw error;
|
|
40107
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40108
|
+
property: "https://w3id.org/security#publicKey",
|
|
40109
|
+
error
|
|
40110
|
+
});
|
|
40111
|
+
return null;
|
|
40112
|
+
}
|
|
38869
40113
|
}
|
|
38870
40114
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
38871
40115
|
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\".");
|
|
@@ -38906,10 +40150,20 @@ var Person = class Person extends Object$1 {
|
|
|
38906
40150
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
38907
40151
|
const prop = this._cachedJsonLd["publicKey"];
|
|
38908
40152
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
38909
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
38910
|
-
|
|
38911
|
-
|
|
38912
|
-
|
|
40153
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
40154
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
40155
|
+
...options,
|
|
40156
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40157
|
+
});
|
|
40158
|
+
} catch (error) {
|
|
40159
|
+
if (!options.suppressError) throw error;
|
|
40160
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
40161
|
+
property: "https://w3id.org/security#publicKey",
|
|
40162
|
+
index: i,
|
|
40163
|
+
error
|
|
40164
|
+
});
|
|
40165
|
+
continue;
|
|
40166
|
+
}
|
|
38913
40167
|
}
|
|
38914
40168
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
38915
40169
|
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\".");
|
|
@@ -39033,10 +40287,19 @@ var Person = class Person extends Object$1 {
|
|
|
39033
40287
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
39034
40288
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
39035
40289
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39036
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39037
|
-
|
|
39038
|
-
|
|
39039
|
-
|
|
40290
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40291
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
40292
|
+
...options,
|
|
40293
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40294
|
+
});
|
|
40295
|
+
} catch (error) {
|
|
40296
|
+
if (!options.suppressError) throw error;
|
|
40297
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40298
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
40299
|
+
error
|
|
40300
|
+
});
|
|
40301
|
+
return null;
|
|
40302
|
+
}
|
|
39040
40303
|
}
|
|
39041
40304
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
39042
40305
|
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\".");
|
|
@@ -39080,10 +40343,20 @@ var Person = class Person extends Object$1 {
|
|
|
39080
40343
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
39081
40344
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
39082
40345
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
39083
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
39084
|
-
|
|
39085
|
-
|
|
39086
|
-
|
|
40346
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
40347
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
40348
|
+
...options,
|
|
40349
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40350
|
+
});
|
|
40351
|
+
} catch (error) {
|
|
40352
|
+
if (!options.suppressError) throw error;
|
|
40353
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
40354
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
40355
|
+
index: i,
|
|
40356
|
+
error
|
|
40357
|
+
});
|
|
40358
|
+
continue;
|
|
40359
|
+
}
|
|
39087
40360
|
}
|
|
39088
40361
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
39089
40362
|
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\".");
|
|
@@ -39238,10 +40511,19 @@ var Person = class Person extends Object$1 {
|
|
|
39238
40511
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
39239
40512
|
const prop = this._cachedJsonLd["inbox"];
|
|
39240
40513
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39241
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39242
|
-
|
|
39243
|
-
|
|
39244
|
-
|
|
40514
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40515
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
40516
|
+
...options,
|
|
40517
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40518
|
+
});
|
|
40519
|
+
} catch (error) {
|
|
40520
|
+
if (!options.suppressError) throw error;
|
|
40521
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40522
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
40523
|
+
error
|
|
40524
|
+
});
|
|
40525
|
+
return null;
|
|
40526
|
+
}
|
|
39245
40527
|
}
|
|
39246
40528
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
39247
40529
|
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\".");
|
|
@@ -39380,10 +40662,19 @@ var Person = class Person extends Object$1 {
|
|
|
39380
40662
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
39381
40663
|
const prop = this._cachedJsonLd["outbox"];
|
|
39382
40664
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39383
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39384
|
-
|
|
39385
|
-
|
|
39386
|
-
|
|
40665
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40666
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
40667
|
+
...options,
|
|
40668
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40669
|
+
});
|
|
40670
|
+
} catch (error) {
|
|
40671
|
+
if (!options.suppressError) throw error;
|
|
40672
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40673
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
40674
|
+
error
|
|
40675
|
+
});
|
|
40676
|
+
return null;
|
|
40677
|
+
}
|
|
39387
40678
|
}
|
|
39388
40679
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
39389
40680
|
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\".");
|
|
@@ -39507,10 +40798,19 @@ var Person = class Person extends Object$1 {
|
|
|
39507
40798
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
39508
40799
|
const prop = this._cachedJsonLd["following"];
|
|
39509
40800
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39510
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39511
|
-
|
|
39512
|
-
|
|
39513
|
-
|
|
40801
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40802
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
40803
|
+
...options,
|
|
40804
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40805
|
+
});
|
|
40806
|
+
} catch (error) {
|
|
40807
|
+
if (!options.suppressError) throw error;
|
|
40808
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40809
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
40810
|
+
error
|
|
40811
|
+
});
|
|
40812
|
+
return null;
|
|
40813
|
+
}
|
|
39514
40814
|
}
|
|
39515
40815
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
39516
40816
|
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\".");
|
|
@@ -39637,10 +40937,19 @@ var Person = class Person extends Object$1 {
|
|
|
39637
40937
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
39638
40938
|
const prop = this._cachedJsonLd["followers"];
|
|
39639
40939
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39640
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39641
|
-
|
|
39642
|
-
|
|
39643
|
-
|
|
40940
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40941
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
40942
|
+
...options,
|
|
40943
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40944
|
+
});
|
|
40945
|
+
} catch (error) {
|
|
40946
|
+
if (!options.suppressError) throw error;
|
|
40947
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40948
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
40949
|
+
error
|
|
40950
|
+
});
|
|
40951
|
+
return null;
|
|
40952
|
+
}
|
|
39644
40953
|
}
|
|
39645
40954
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
39646
40955
|
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\".");
|
|
@@ -39765,10 +41074,19 @@ var Person = class Person extends Object$1 {
|
|
|
39765
41074
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
39766
41075
|
const prop = this._cachedJsonLd["liked"];
|
|
39767
41076
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39768
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39769
|
-
|
|
39770
|
-
|
|
39771
|
-
|
|
41077
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41078
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
41079
|
+
...options,
|
|
41080
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41081
|
+
});
|
|
41082
|
+
} catch (error) {
|
|
41083
|
+
if (!options.suppressError) throw error;
|
|
41084
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41085
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
41086
|
+
error
|
|
41087
|
+
});
|
|
41088
|
+
return null;
|
|
41089
|
+
}
|
|
39772
41090
|
}
|
|
39773
41091
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
39774
41092
|
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\".");
|
|
@@ -39891,10 +41209,19 @@ var Person = class Person extends Object$1 {
|
|
|
39891
41209
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
39892
41210
|
const prop = this._cachedJsonLd["featured"];
|
|
39893
41211
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39894
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39895
|
-
|
|
39896
|
-
|
|
39897
|
-
|
|
41212
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41213
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
41214
|
+
...options,
|
|
41215
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41216
|
+
});
|
|
41217
|
+
} catch (error) {
|
|
41218
|
+
if (!options.suppressError) throw error;
|
|
41219
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41220
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
41221
|
+
error
|
|
41222
|
+
});
|
|
41223
|
+
return null;
|
|
41224
|
+
}
|
|
39898
41225
|
}
|
|
39899
41226
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
39900
41227
|
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\".");
|
|
@@ -40017,10 +41344,19 @@ var Person = class Person extends Object$1 {
|
|
|
40017
41344
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
40018
41345
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
40019
41346
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40020
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40021
|
-
|
|
40022
|
-
|
|
40023
|
-
|
|
41347
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41348
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
41349
|
+
...options,
|
|
41350
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41351
|
+
});
|
|
41352
|
+
} catch (error) {
|
|
41353
|
+
if (!options.suppressError) throw error;
|
|
41354
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41355
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
41356
|
+
error
|
|
41357
|
+
});
|
|
41358
|
+
return null;
|
|
41359
|
+
}
|
|
40024
41360
|
}
|
|
40025
41361
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
40026
41362
|
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\".");
|
|
@@ -40139,10 +41475,20 @@ var Person = class Person extends Object$1 {
|
|
|
40139
41475
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
40140
41476
|
const prop = this._cachedJsonLd["streams"];
|
|
40141
41477
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
40142
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40143
|
-
|
|
40144
|
-
|
|
40145
|
-
|
|
41478
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
41479
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
41480
|
+
...options,
|
|
41481
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41482
|
+
});
|
|
41483
|
+
} catch (error) {
|
|
41484
|
+
if (!options.suppressError) throw error;
|
|
41485
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
41486
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
41487
|
+
index: i,
|
|
41488
|
+
error
|
|
41489
|
+
});
|
|
41490
|
+
continue;
|
|
41491
|
+
}
|
|
40146
41492
|
}
|
|
40147
41493
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
40148
41494
|
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\".");
|
|
@@ -40351,10 +41697,19 @@ var Person = class Person extends Object$1 {
|
|
|
40351
41697
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
40352
41698
|
const prop = this._cachedJsonLd["movedTo"];
|
|
40353
41699
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40354
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40355
|
-
|
|
40356
|
-
|
|
40357
|
-
|
|
41700
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41701
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
41702
|
+
...options,
|
|
41703
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41704
|
+
});
|
|
41705
|
+
} catch (error) {
|
|
41706
|
+
if (!options.suppressError) throw error;
|
|
41707
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41708
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
41709
|
+
error
|
|
41710
|
+
});
|
|
41711
|
+
return null;
|
|
41712
|
+
}
|
|
40358
41713
|
}
|
|
40359
41714
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
40360
41715
|
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\".");
|
|
@@ -40523,10 +41878,19 @@ var Person = class Person extends Object$1 {
|
|
|
40523
41878
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
40524
41879
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
40525
41880
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40526
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40527
|
-
|
|
40528
|
-
|
|
40529
|
-
|
|
41881
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41882
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
41883
|
+
...options,
|
|
41884
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41885
|
+
});
|
|
41886
|
+
} catch (error) {
|
|
41887
|
+
if (!options.suppressError) throw error;
|
|
41888
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41889
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
41890
|
+
error
|
|
41891
|
+
});
|
|
41892
|
+
return null;
|
|
41893
|
+
}
|
|
40530
41894
|
}
|
|
40531
41895
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
40532
41896
|
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\".");
|
|
@@ -40570,10 +41934,20 @@ var Person = class Person extends Object$1 {
|
|
|
40570
41934
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
40571
41935
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
40572
41936
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
40573
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40574
|
-
|
|
40575
|
-
|
|
40576
|
-
|
|
41937
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
41938
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
41939
|
+
...options,
|
|
41940
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41941
|
+
});
|
|
41942
|
+
} catch (error) {
|
|
41943
|
+
if (!options.suppressError) throw error;
|
|
41944
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
41945
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
41946
|
+
index: i,
|
|
41947
|
+
error
|
|
41948
|
+
});
|
|
41949
|
+
continue;
|
|
41950
|
+
}
|
|
40577
41951
|
}
|
|
40578
41952
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
40579
41953
|
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\".");
|
|
@@ -40697,10 +42071,19 @@ var Person = class Person extends Object$1 {
|
|
|
40697
42071
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
40698
42072
|
const prop = this._cachedJsonLd["service"];
|
|
40699
42073
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40700
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40701
|
-
|
|
40702
|
-
|
|
40703
|
-
|
|
42074
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
42075
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
42076
|
+
...options,
|
|
42077
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
42078
|
+
});
|
|
42079
|
+
} catch (error) {
|
|
42080
|
+
if (!options.suppressError) throw error;
|
|
42081
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
42082
|
+
property: "https://www.w3.org/ns/did#service",
|
|
42083
|
+
error
|
|
42084
|
+
});
|
|
42085
|
+
return null;
|
|
42086
|
+
}
|
|
40704
42087
|
}
|
|
40705
42088
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
40706
42089
|
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\".");
|
|
@@ -40744,10 +42127,20 @@ var Person = class Person extends Object$1 {
|
|
|
40744
42127
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
40745
42128
|
const prop = this._cachedJsonLd["service"];
|
|
40746
42129
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
40747
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40748
|
-
|
|
40749
|
-
|
|
40750
|
-
|
|
42130
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
42131
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
42132
|
+
...options,
|
|
42133
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
42134
|
+
});
|
|
42135
|
+
} catch (error) {
|
|
42136
|
+
if (!options.suppressError) throw error;
|
|
42137
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
42138
|
+
property: "https://www.w3.org/ns/did#service",
|
|
42139
|
+
index: i,
|
|
42140
|
+
error
|
|
42141
|
+
});
|
|
42142
|
+
continue;
|
|
42143
|
+
}
|
|
40751
42144
|
}
|
|
40752
42145
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
40753
42146
|
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\".");
|
|
@@ -42495,10 +43888,19 @@ var Profile = class Profile extends Object$1 {
|
|
|
42495
43888
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
|
|
42496
43889
|
const prop = this._cachedJsonLd["describes"];
|
|
42497
43890
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
42498
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
42499
|
-
|
|
42500
|
-
|
|
42501
|
-
|
|
43891
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
43892
|
+
v = await this.#describes_fromJsonLd(doc, {
|
|
43893
|
+
...options,
|
|
43894
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
43895
|
+
});
|
|
43896
|
+
} catch (error) {
|
|
43897
|
+
if (!options.suppressError) throw error;
|
|
43898
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
43899
|
+
property: "https://www.w3.org/ns/activitystreams#describes",
|
|
43900
|
+
error
|
|
43901
|
+
});
|
|
43902
|
+
return null;
|
|
43903
|
+
}
|
|
42502
43904
|
}
|
|
42503
43905
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
|
|
42504
43906
|
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\".");
|
|
@@ -42904,10 +44306,20 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42904
44306
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
|
|
42905
44307
|
const prop = this._cachedJsonLd["oneOf"];
|
|
42906
44308
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
42907
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
42908
|
-
|
|
42909
|
-
|
|
42910
|
-
|
|
44309
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
44310
|
+
v = await this.#exclusiveOption_fromJsonLd(obj, {
|
|
44311
|
+
...options,
|
|
44312
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44313
|
+
});
|
|
44314
|
+
} catch (error) {
|
|
44315
|
+
if (!options.suppressError) throw error;
|
|
44316
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
44317
|
+
property: "https://www.w3.org/ns/activitystreams#oneOf",
|
|
44318
|
+
index: i,
|
|
44319
|
+
error
|
|
44320
|
+
});
|
|
44321
|
+
continue;
|
|
44322
|
+
}
|
|
42911
44323
|
}
|
|
42912
44324
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
|
|
42913
44325
|
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\".");
|
|
@@ -43029,10 +44441,20 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43029
44441
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
|
|
43030
44442
|
const prop = this._cachedJsonLd["anyOf"];
|
|
43031
44443
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
43032
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
43033
|
-
|
|
43034
|
-
|
|
43035
|
-
|
|
44444
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
44445
|
+
v = await this.#inclusiveOption_fromJsonLd(obj, {
|
|
44446
|
+
...options,
|
|
44447
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44448
|
+
});
|
|
44449
|
+
} catch (error) {
|
|
44450
|
+
if (!options.suppressError) throw error;
|
|
44451
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
44452
|
+
property: "https://www.w3.org/ns/activitystreams#anyOf",
|
|
44453
|
+
index: i,
|
|
44454
|
+
error
|
|
44455
|
+
});
|
|
44456
|
+
continue;
|
|
44457
|
+
}
|
|
43036
44458
|
}
|
|
43037
44459
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
|
|
43038
44460
|
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\".");
|
|
@@ -43171,10 +44593,19 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43171
44593
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
43172
44594
|
const prop = this._cachedJsonLd["quote"];
|
|
43173
44595
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
43174
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
43175
|
-
|
|
43176
|
-
|
|
43177
|
-
|
|
44596
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
44597
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
44598
|
+
...options,
|
|
44599
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44600
|
+
});
|
|
44601
|
+
} catch (error) {
|
|
44602
|
+
if (!options.suppressError) throw error;
|
|
44603
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
44604
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
44605
|
+
error
|
|
44606
|
+
});
|
|
44607
|
+
return null;
|
|
44608
|
+
}
|
|
43178
44609
|
}
|
|
43179
44610
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
43180
44611
|
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\".");
|
|
@@ -43311,10 +44742,19 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43311
44742
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
43312
44743
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
43313
44744
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
43314
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
43315
|
-
|
|
43316
|
-
|
|
43317
|
-
|
|
44745
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
44746
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
44747
|
+
...options,
|
|
44748
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44749
|
+
});
|
|
44750
|
+
} catch (error) {
|
|
44751
|
+
if (!options.suppressError) throw error;
|
|
44752
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
44753
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
44754
|
+
error
|
|
44755
|
+
});
|
|
44756
|
+
return null;
|
|
44757
|
+
}
|
|
43318
44758
|
}
|
|
43319
44759
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
43320
44760
|
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\".");
|
|
@@ -43603,7 +45043,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43603
45043
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
43604
45044
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
43605
45045
|
if (v == null) continue;
|
|
43606
|
-
const decoded =
|
|
45046
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
43607
45047
|
if (typeof decoded === "undefined") {
|
|
43608
45048
|
shouldCacheJsonLd = false;
|
|
43609
45049
|
continue;
|
|
@@ -44208,10 +45648,19 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44208
45648
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
|
|
44209
45649
|
const prop = this._cachedJsonLd["subject"];
|
|
44210
45650
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44211
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44212
|
-
|
|
44213
|
-
|
|
44214
|
-
|
|
45651
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45652
|
+
v = await this.#subject_fromJsonLd(doc, {
|
|
45653
|
+
...options,
|
|
45654
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45655
|
+
});
|
|
45656
|
+
} catch (error) {
|
|
45657
|
+
if (!options.suppressError) throw error;
|
|
45658
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45659
|
+
property: "https://www.w3.org/ns/activitystreams#subject",
|
|
45660
|
+
error
|
|
45661
|
+
});
|
|
45662
|
+
return null;
|
|
45663
|
+
}
|
|
44215
45664
|
}
|
|
44216
45665
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
|
|
44217
45666
|
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\".");
|
|
@@ -44331,10 +45780,19 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44331
45780
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
44332
45781
|
const prop = this._cachedJsonLd["object"];
|
|
44333
45782
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44334
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44335
|
-
|
|
44336
|
-
|
|
44337
|
-
|
|
45783
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45784
|
+
v = await this.#object_fromJsonLd(doc, {
|
|
45785
|
+
...options,
|
|
45786
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45787
|
+
});
|
|
45788
|
+
} catch (error) {
|
|
45789
|
+
if (!options.suppressError) throw error;
|
|
45790
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45791
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
45792
|
+
error
|
|
45793
|
+
});
|
|
45794
|
+
return null;
|
|
45795
|
+
}
|
|
44338
45796
|
}
|
|
44339
45797
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
44340
45798
|
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\".");
|
|
@@ -44375,10 +45833,20 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44375
45833
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
44376
45834
|
const prop = this._cachedJsonLd["object"];
|
|
44377
45835
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
44378
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
44379
|
-
|
|
44380
|
-
|
|
44381
|
-
|
|
45836
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
45837
|
+
v = await this.#object_fromJsonLd(obj, {
|
|
45838
|
+
...options,
|
|
45839
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45840
|
+
});
|
|
45841
|
+
} catch (error) {
|
|
45842
|
+
if (!options.suppressError) throw error;
|
|
45843
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
45844
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
45845
|
+
index: i,
|
|
45846
|
+
error
|
|
45847
|
+
});
|
|
45848
|
+
continue;
|
|
45849
|
+
}
|
|
44382
45850
|
}
|
|
44383
45851
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
44384
45852
|
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\".");
|
|
@@ -44501,10 +45969,19 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44501
45969
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
44502
45970
|
const prop = this._cachedJsonLd["relationship"];
|
|
44503
45971
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44504
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44505
|
-
|
|
44506
|
-
|
|
44507
|
-
|
|
45972
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45973
|
+
v = await this.#relationship_fromJsonLd(doc, {
|
|
45974
|
+
...options,
|
|
45975
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45976
|
+
});
|
|
45977
|
+
} catch (error) {
|
|
45978
|
+
if (!options.suppressError) throw error;
|
|
45979
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45980
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
45981
|
+
error
|
|
45982
|
+
});
|
|
45983
|
+
return null;
|
|
45984
|
+
}
|
|
44508
45985
|
}
|
|
44509
45986
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
44510
45987
|
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\".");
|
|
@@ -44547,10 +46024,20 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44547
46024
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
44548
46025
|
const prop = this._cachedJsonLd["relationship"];
|
|
44549
46026
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
44550
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
44551
|
-
|
|
44552
|
-
|
|
44553
|
-
|
|
46027
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
46028
|
+
v = await this.#relationship_fromJsonLd(obj, {
|
|
46029
|
+
...options,
|
|
46030
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
46031
|
+
});
|
|
46032
|
+
} catch (error) {
|
|
46033
|
+
if (!options.suppressError) throw error;
|
|
46034
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
46035
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
46036
|
+
index: i,
|
|
46037
|
+
error
|
|
46038
|
+
});
|
|
46039
|
+
continue;
|
|
46040
|
+
}
|
|
44554
46041
|
}
|
|
44555
46042
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
44556
46043
|
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\".");
|
|
@@ -45414,10 +46901,19 @@ var Service = class Service extends Object$1 {
|
|
|
45414
46901
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
45415
46902
|
const prop = this._cachedJsonLd["publicKey"];
|
|
45416
46903
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45417
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45418
|
-
|
|
45419
|
-
|
|
45420
|
-
|
|
46904
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46905
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
46906
|
+
...options,
|
|
46907
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
46908
|
+
});
|
|
46909
|
+
} catch (error) {
|
|
46910
|
+
if (!options.suppressError) throw error;
|
|
46911
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46912
|
+
property: "https://w3id.org/security#publicKey",
|
|
46913
|
+
error
|
|
46914
|
+
});
|
|
46915
|
+
return null;
|
|
46916
|
+
}
|
|
45421
46917
|
}
|
|
45422
46918
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
45423
46919
|
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\".");
|
|
@@ -45458,10 +46954,20 @@ var Service = class Service extends Object$1 {
|
|
|
45458
46954
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
45459
46955
|
const prop = this._cachedJsonLd["publicKey"];
|
|
45460
46956
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
45461
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
45462
|
-
|
|
45463
|
-
|
|
45464
|
-
|
|
46957
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
46958
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
46959
|
+
...options,
|
|
46960
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
46961
|
+
});
|
|
46962
|
+
} catch (error) {
|
|
46963
|
+
if (!options.suppressError) throw error;
|
|
46964
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
46965
|
+
property: "https://w3id.org/security#publicKey",
|
|
46966
|
+
index: i,
|
|
46967
|
+
error
|
|
46968
|
+
});
|
|
46969
|
+
continue;
|
|
46970
|
+
}
|
|
45465
46971
|
}
|
|
45466
46972
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
45467
46973
|
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\".");
|
|
@@ -45585,10 +47091,19 @@ var Service = class Service extends Object$1 {
|
|
|
45585
47091
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
45586
47092
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
45587
47093
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45588
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45589
|
-
|
|
45590
|
-
|
|
45591
|
-
|
|
47094
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47095
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
47096
|
+
...options,
|
|
47097
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47098
|
+
});
|
|
47099
|
+
} catch (error) {
|
|
47100
|
+
if (!options.suppressError) throw error;
|
|
47101
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47102
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
47103
|
+
error
|
|
47104
|
+
});
|
|
47105
|
+
return null;
|
|
47106
|
+
}
|
|
45592
47107
|
}
|
|
45593
47108
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
45594
47109
|
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\".");
|
|
@@ -45632,10 +47147,20 @@ var Service = class Service extends Object$1 {
|
|
|
45632
47147
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
45633
47148
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
45634
47149
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
45635
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
45636
|
-
|
|
45637
|
-
|
|
45638
|
-
|
|
47150
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
47151
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
47152
|
+
...options,
|
|
47153
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47154
|
+
});
|
|
47155
|
+
} catch (error) {
|
|
47156
|
+
if (!options.suppressError) throw error;
|
|
47157
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
47158
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
47159
|
+
index: i,
|
|
47160
|
+
error
|
|
47161
|
+
});
|
|
47162
|
+
continue;
|
|
47163
|
+
}
|
|
45639
47164
|
}
|
|
45640
47165
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
45641
47166
|
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\".");
|
|
@@ -45790,10 +47315,19 @@ var Service = class Service extends Object$1 {
|
|
|
45790
47315
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
45791
47316
|
const prop = this._cachedJsonLd["inbox"];
|
|
45792
47317
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45793
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45794
|
-
|
|
45795
|
-
|
|
45796
|
-
|
|
47318
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47319
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
47320
|
+
...options,
|
|
47321
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47322
|
+
});
|
|
47323
|
+
} catch (error) {
|
|
47324
|
+
if (!options.suppressError) throw error;
|
|
47325
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47326
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
47327
|
+
error
|
|
47328
|
+
});
|
|
47329
|
+
return null;
|
|
47330
|
+
}
|
|
45797
47331
|
}
|
|
45798
47332
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
45799
47333
|
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\".");
|
|
@@ -45932,10 +47466,19 @@ var Service = class Service extends Object$1 {
|
|
|
45932
47466
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
45933
47467
|
const prop = this._cachedJsonLd["outbox"];
|
|
45934
47468
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45935
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45936
|
-
|
|
45937
|
-
|
|
45938
|
-
|
|
47469
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47470
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
47471
|
+
...options,
|
|
47472
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47473
|
+
});
|
|
47474
|
+
} catch (error) {
|
|
47475
|
+
if (!options.suppressError) throw error;
|
|
47476
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47477
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
47478
|
+
error
|
|
47479
|
+
});
|
|
47480
|
+
return null;
|
|
47481
|
+
}
|
|
45939
47482
|
}
|
|
45940
47483
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
45941
47484
|
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\".");
|
|
@@ -46059,10 +47602,19 @@ var Service = class Service extends Object$1 {
|
|
|
46059
47602
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
46060
47603
|
const prop = this._cachedJsonLd["following"];
|
|
46061
47604
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46062
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46063
|
-
|
|
46064
|
-
|
|
46065
|
-
|
|
47605
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47606
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
47607
|
+
...options,
|
|
47608
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47609
|
+
});
|
|
47610
|
+
} catch (error) {
|
|
47611
|
+
if (!options.suppressError) throw error;
|
|
47612
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47613
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
47614
|
+
error
|
|
47615
|
+
});
|
|
47616
|
+
return null;
|
|
47617
|
+
}
|
|
46066
47618
|
}
|
|
46067
47619
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
46068
47620
|
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\".");
|
|
@@ -46189,10 +47741,19 @@ var Service = class Service extends Object$1 {
|
|
|
46189
47741
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
46190
47742
|
const prop = this._cachedJsonLd["followers"];
|
|
46191
47743
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46192
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46193
|
-
|
|
46194
|
-
|
|
46195
|
-
|
|
47744
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47745
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
47746
|
+
...options,
|
|
47747
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47748
|
+
});
|
|
47749
|
+
} catch (error) {
|
|
47750
|
+
if (!options.suppressError) throw error;
|
|
47751
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47752
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
47753
|
+
error
|
|
47754
|
+
});
|
|
47755
|
+
return null;
|
|
47756
|
+
}
|
|
46196
47757
|
}
|
|
46197
47758
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
46198
47759
|
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\".");
|
|
@@ -46317,10 +47878,19 @@ var Service = class Service extends Object$1 {
|
|
|
46317
47878
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
46318
47879
|
const prop = this._cachedJsonLd["liked"];
|
|
46319
47880
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46320
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46321
|
-
|
|
46322
|
-
|
|
46323
|
-
|
|
47881
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47882
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
47883
|
+
...options,
|
|
47884
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47885
|
+
});
|
|
47886
|
+
} catch (error) {
|
|
47887
|
+
if (!options.suppressError) throw error;
|
|
47888
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47889
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
47890
|
+
error
|
|
47891
|
+
});
|
|
47892
|
+
return null;
|
|
47893
|
+
}
|
|
46324
47894
|
}
|
|
46325
47895
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
46326
47896
|
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\".");
|
|
@@ -46443,10 +48013,19 @@ var Service = class Service extends Object$1 {
|
|
|
46443
48013
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
46444
48014
|
const prop = this._cachedJsonLd["featured"];
|
|
46445
48015
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46446
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46447
|
-
|
|
46448
|
-
|
|
46449
|
-
|
|
48016
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48017
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
48018
|
+
...options,
|
|
48019
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48020
|
+
});
|
|
48021
|
+
} catch (error) {
|
|
48022
|
+
if (!options.suppressError) throw error;
|
|
48023
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48024
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
48025
|
+
error
|
|
48026
|
+
});
|
|
48027
|
+
return null;
|
|
48028
|
+
}
|
|
46450
48029
|
}
|
|
46451
48030
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
46452
48031
|
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\".");
|
|
@@ -46569,10 +48148,19 @@ var Service = class Service extends Object$1 {
|
|
|
46569
48148
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
46570
48149
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
46571
48150
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46572
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46573
|
-
|
|
46574
|
-
|
|
46575
|
-
|
|
48151
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48152
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
48153
|
+
...options,
|
|
48154
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48155
|
+
});
|
|
48156
|
+
} catch (error) {
|
|
48157
|
+
if (!options.suppressError) throw error;
|
|
48158
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48159
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
48160
|
+
error
|
|
48161
|
+
});
|
|
48162
|
+
return null;
|
|
48163
|
+
}
|
|
46576
48164
|
}
|
|
46577
48165
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
46578
48166
|
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\".");
|
|
@@ -46691,10 +48279,20 @@ var Service = class Service extends Object$1 {
|
|
|
46691
48279
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
46692
48280
|
const prop = this._cachedJsonLd["streams"];
|
|
46693
48281
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
46694
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
46695
|
-
|
|
46696
|
-
|
|
46697
|
-
|
|
48282
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
48283
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
48284
|
+
...options,
|
|
48285
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48286
|
+
});
|
|
48287
|
+
} catch (error) {
|
|
48288
|
+
if (!options.suppressError) throw error;
|
|
48289
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
48290
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
48291
|
+
index: i,
|
|
48292
|
+
error
|
|
48293
|
+
});
|
|
48294
|
+
continue;
|
|
48295
|
+
}
|
|
46698
48296
|
}
|
|
46699
48297
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
46700
48298
|
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\".");
|
|
@@ -46903,10 +48501,19 @@ var Service = class Service extends Object$1 {
|
|
|
46903
48501
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
46904
48502
|
const prop = this._cachedJsonLd["movedTo"];
|
|
46905
48503
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46906
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46907
|
-
|
|
46908
|
-
|
|
46909
|
-
|
|
48504
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48505
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
48506
|
+
...options,
|
|
48507
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48508
|
+
});
|
|
48509
|
+
} catch (error) {
|
|
48510
|
+
if (!options.suppressError) throw error;
|
|
48511
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48512
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
48513
|
+
error
|
|
48514
|
+
});
|
|
48515
|
+
return null;
|
|
48516
|
+
}
|
|
46910
48517
|
}
|
|
46911
48518
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
46912
48519
|
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\".");
|
|
@@ -47075,10 +48682,19 @@ var Service = class Service extends Object$1 {
|
|
|
47075
48682
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
47076
48683
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
47077
48684
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
47078
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
47079
|
-
|
|
47080
|
-
|
|
47081
|
-
|
|
48685
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48686
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
48687
|
+
...options,
|
|
48688
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48689
|
+
});
|
|
48690
|
+
} catch (error) {
|
|
48691
|
+
if (!options.suppressError) throw error;
|
|
48692
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48693
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
48694
|
+
error
|
|
48695
|
+
});
|
|
48696
|
+
return null;
|
|
48697
|
+
}
|
|
47082
48698
|
}
|
|
47083
48699
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
47084
48700
|
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\".");
|
|
@@ -47122,10 +48738,20 @@ var Service = class Service extends Object$1 {
|
|
|
47122
48738
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
47123
48739
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
47124
48740
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
47125
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
47126
|
-
|
|
47127
|
-
|
|
47128
|
-
|
|
48741
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
48742
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
48743
|
+
...options,
|
|
48744
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48745
|
+
});
|
|
48746
|
+
} catch (error) {
|
|
48747
|
+
if (!options.suppressError) throw error;
|
|
48748
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
48749
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
48750
|
+
index: i,
|
|
48751
|
+
error
|
|
48752
|
+
});
|
|
48753
|
+
continue;
|
|
48754
|
+
}
|
|
47129
48755
|
}
|
|
47130
48756
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
47131
48757
|
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\".");
|
|
@@ -47249,10 +48875,19 @@ var Service = class Service extends Object$1 {
|
|
|
47249
48875
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
47250
48876
|
const prop = this._cachedJsonLd["service"];
|
|
47251
48877
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
47252
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
47253
|
-
|
|
47254
|
-
|
|
47255
|
-
|
|
48878
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48879
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
48880
|
+
...options,
|
|
48881
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48882
|
+
});
|
|
48883
|
+
} catch (error) {
|
|
48884
|
+
if (!options.suppressError) throw error;
|
|
48885
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48886
|
+
property: "https://www.w3.org/ns/did#service",
|
|
48887
|
+
error
|
|
48888
|
+
});
|
|
48889
|
+
return null;
|
|
48890
|
+
}
|
|
47256
48891
|
}
|
|
47257
48892
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
47258
48893
|
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\".");
|
|
@@ -47296,10 +48931,20 @@ var Service = class Service extends Object$1 {
|
|
|
47296
48931
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
47297
48932
|
const prop = this._cachedJsonLd["service"];
|
|
47298
48933
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
47299
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
47300
|
-
|
|
47301
|
-
|
|
47302
|
-
|
|
48934
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
48935
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
48936
|
+
...options,
|
|
48937
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48938
|
+
});
|
|
48939
|
+
} catch (error) {
|
|
48940
|
+
if (!options.suppressError) throw error;
|
|
48941
|
+
getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
48942
|
+
property: "https://www.w3.org/ns/did#service",
|
|
48943
|
+
index: i,
|
|
48944
|
+
error
|
|
48945
|
+
});
|
|
48946
|
+
continue;
|
|
48947
|
+
}
|
|
47303
48948
|
}
|
|
47304
48949
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
47305
48950
|
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\".");
|