@fedify/vocab 2.0.35 → 2.0.36-dev.2551
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 +192 -192
- package/dist/mod.js +193 -193
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-BaFTaH7L.mjs → deno-DYlqMVqL.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-4POt9BSw.mjs → vocab-ZYaaH8Qo.mjs} +192 -192
- package/dist-tests/vocab.test.mjs +45 -1
- package/package.json +4 -4
- package/src/vocab.test.ts +70 -0
package/dist/mod.js
CHANGED
|
@@ -5,11 +5,11 @@ import { domainToASCII, domainToUnicode } from "node:url";
|
|
|
5
5
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { LanguageString, LanguageString as LanguageString$1, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, getDocumentLoader, importMultibaseKey, importPem, normalizeLanguageTag } from "@fedify/vocab-runtime";
|
|
8
|
-
import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/temporal";
|
|
8
|
+
import { isTemporalDuration, isTemporalInstant, normalizeDateTimeLiteral } from "@fedify/vocab-runtime/temporal";
|
|
9
9
|
import { delay } from "es-toolkit";
|
|
10
10
|
//#region deno.json
|
|
11
11
|
var name = "@fedify/vocab";
|
|
12
|
-
var version = "2.0.
|
|
12
|
+
var version = "2.0.36-dev.2551+8b012df4";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/type.ts
|
|
15
15
|
function getTypeId(object) {
|
|
@@ -658,7 +658,7 @@ var Object$1 = class Object$1 {
|
|
|
658
658
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
659
659
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
660
660
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
661
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
661
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
662
662
|
let fetchResult;
|
|
663
663
|
try {
|
|
664
664
|
fetchResult = await documentLoader(url.href);
|
|
@@ -814,7 +814,7 @@ var Object$1 = class Object$1 {
|
|
|
814
814
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
815
815
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
816
816
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
817
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
817
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
818
818
|
let fetchResult;
|
|
819
819
|
try {
|
|
820
820
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1045,7 +1045,7 @@ var Object$1 = class Object$1 {
|
|
|
1045
1045
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1046
1046
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1047
1047
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1048
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
1048
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1049
1049
|
let fetchResult;
|
|
1050
1050
|
try {
|
|
1051
1051
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1248,7 +1248,7 @@ var Object$1 = class Object$1 {
|
|
|
1248
1248
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1249
1249
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1250
1250
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1251
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
1251
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1252
1252
|
let fetchResult;
|
|
1253
1253
|
try {
|
|
1254
1254
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1420,7 +1420,7 @@ var Object$1 = class Object$1 {
|
|
|
1420
1420
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1421
1421
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1422
1422
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1423
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
1423
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1424
1424
|
let fetchResult;
|
|
1425
1425
|
try {
|
|
1426
1426
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1560,7 +1560,7 @@ var Object$1 = class Object$1 {
|
|
|
1560
1560
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1561
1561
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1562
1562
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1563
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
1563
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1564
1564
|
let fetchResult;
|
|
1565
1565
|
try {
|
|
1566
1566
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1745,7 +1745,7 @@ var Object$1 = class Object$1 {
|
|
|
1745
1745
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1746
1746
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1747
1747
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1748
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
1748
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1749
1749
|
let fetchResult;
|
|
1750
1750
|
try {
|
|
1751
1751
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1930,7 +1930,7 @@ var Object$1 = class Object$1 {
|
|
|
1930
1930
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1931
1931
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1932
1932
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1933
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
1933
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1934
1934
|
let fetchResult;
|
|
1935
1935
|
try {
|
|
1936
1936
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2123,7 +2123,7 @@ var Object$1 = class Object$1 {
|
|
|
2123
2123
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2124
2124
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2125
2125
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2126
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
2126
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2127
2127
|
let fetchResult;
|
|
2128
2128
|
try {
|
|
2129
2129
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2316,7 +2316,7 @@ var Object$1 = class Object$1 {
|
|
|
2316
2316
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2317
2317
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2318
2318
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2319
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
2319
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2320
2320
|
let fetchResult;
|
|
2321
2321
|
try {
|
|
2322
2322
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2514,7 +2514,7 @@ var Object$1 = class Object$1 {
|
|
|
2514
2514
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2515
2515
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2516
2516
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2517
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
2517
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2518
2518
|
let fetchResult;
|
|
2519
2519
|
try {
|
|
2520
2520
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2644,7 +2644,7 @@ var Object$1 = class Object$1 {
|
|
|
2644
2644
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2645
2645
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2646
2646
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2647
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
2647
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2648
2648
|
let fetchResult;
|
|
2649
2649
|
try {
|
|
2650
2650
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2780,7 +2780,7 @@ var Object$1 = class Object$1 {
|
|
|
2780
2780
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2781
2781
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2782
2782
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2783
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
2783
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2784
2784
|
let fetchResult;
|
|
2785
2785
|
try {
|
|
2786
2786
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2916,7 +2916,7 @@ var Object$1 = class Object$1 {
|
|
|
2916
2916
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2917
2917
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2918
2918
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2919
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
2919
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2920
2920
|
let fetchResult;
|
|
2921
2921
|
try {
|
|
2922
2922
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3070,7 +3070,7 @@ var Object$1 = class Object$1 {
|
|
|
3070
3070
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3071
3071
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3072
3072
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3073
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
3073
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3074
3074
|
let fetchResult;
|
|
3075
3075
|
try {
|
|
3076
3076
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3232,7 +3232,7 @@ var Object$1 = class Object$1 {
|
|
|
3232
3232
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3233
3233
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3234
3234
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3235
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
3235
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3236
3236
|
let fetchResult;
|
|
3237
3237
|
try {
|
|
3238
3238
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3415,7 +3415,7 @@ var Object$1 = class Object$1 {
|
|
|
3415
3415
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3416
3416
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3417
3417
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3418
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
3418
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3419
3419
|
let fetchResult;
|
|
3420
3420
|
try {
|
|
3421
3421
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3598,7 +3598,7 @@ var Object$1 = class Object$1 {
|
|
|
3598
3598
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3599
3599
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3600
3600
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3601
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
3601
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3602
3602
|
let fetchResult;
|
|
3603
3603
|
try {
|
|
3604
3604
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3781,7 +3781,7 @@ var Object$1 = class Object$1 {
|
|
|
3781
3781
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3782
3782
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3783
3783
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3784
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
3784
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3785
3785
|
let fetchResult;
|
|
3786
3786
|
try {
|
|
3787
3787
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4001,7 +4001,7 @@ var Object$1 = class Object$1 {
|
|
|
4001
4001
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4002
4002
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4003
4003
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4004
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
4004
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4005
4005
|
let fetchResult;
|
|
4006
4006
|
try {
|
|
4007
4007
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4809,7 +4809,7 @@ var Object$1 = class Object$1 {
|
|
|
4809
4809
|
* @throws {TypeError} If the given `json` is invalid.
|
|
4810
4810
|
*/
|
|
4811
4811
|
static async fromJsonLd(json, options = {}) {
|
|
4812
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
4812
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
4813
4813
|
try {
|
|
4814
4814
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
4815
4815
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -5151,7 +5151,7 @@ var Object$1 = class Object$1 {
|
|
|
5151
5151
|
let _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array = values["https://www.w3.org/ns/activitystreams#endTime"];
|
|
5152
5152
|
for (const v of _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array == null ? [] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array.length === 1 && "@list" in _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0] ? _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0]["@list"] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array) {
|
|
5153
5153
|
if (v == null) continue;
|
|
5154
|
-
const decoded = Temporal.Instant.from(v["@value"]
|
|
5154
|
+
const decoded = Temporal.Instant.from(normalizeDateTimeLiteral(v["@value"]));
|
|
5155
5155
|
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5156
5156
|
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(decoded);
|
|
5157
5157
|
}
|
|
@@ -5524,7 +5524,7 @@ var Object$1 = class Object$1 {
|
|
|
5524
5524
|
let _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array = values["https://www.w3.org/ns/activitystreams#published"];
|
|
5525
5525
|
for (const v of _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array == null ? [] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array.length === 1 && "@list" in _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0] ? _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0]["@list"] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array) {
|
|
5526
5526
|
if (v == null) continue;
|
|
5527
|
-
const decoded = Temporal.Instant.from(v["@value"]
|
|
5527
|
+
const decoded = Temporal.Instant.from(normalizeDateTimeLiteral(v["@value"]));
|
|
5528
5528
|
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5529
5529
|
_5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(decoded);
|
|
5530
5530
|
}
|
|
@@ -5597,7 +5597,7 @@ var Object$1 = class Object$1 {
|
|
|
5597
5597
|
let _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array = values["https://www.w3.org/ns/activitystreams#startTime"];
|
|
5598
5598
|
for (const v of _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array == null ? [] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array.length === 1 && "@list" in _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0] ? _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0]["@list"] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array) {
|
|
5599
5599
|
if (v == null) continue;
|
|
5600
|
-
const decoded = Temporal.Instant.from(v["@value"]
|
|
5600
|
+
const decoded = Temporal.Instant.from(normalizeDateTimeLiteral(v["@value"]));
|
|
5601
5601
|
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5602
5602
|
_2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(decoded);
|
|
5603
5603
|
}
|
|
@@ -5702,7 +5702,7 @@ var Object$1 = class Object$1 {
|
|
|
5702
5702
|
let _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array = values["https://www.w3.org/ns/activitystreams#updated"];
|
|
5703
5703
|
for (const v of _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array == null ? [] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array.length === 1 && "@list" in _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0] ? _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0]["@list"] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array) {
|
|
5704
5704
|
if (v == null) continue;
|
|
5705
|
-
const decoded = Temporal.Instant.from(v["@value"]
|
|
5705
|
+
const decoded = Temporal.Instant.from(normalizeDateTimeLiteral(v["@value"]));
|
|
5706
5706
|
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5707
5707
|
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(decoded);
|
|
5708
5708
|
}
|
|
@@ -6144,7 +6144,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6144
6144
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6145
6145
|
*/
|
|
6146
6146
|
static async fromJsonLd(json, options = {}) {
|
|
6147
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
6147
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6148
6148
|
try {
|
|
6149
6149
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
6150
6150
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6384,7 +6384,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6384
6384
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6385
6385
|
*/
|
|
6386
6386
|
static async fromJsonLd(json, options = {}) {
|
|
6387
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
6387
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6388
6388
|
try {
|
|
6389
6389
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
6390
6390
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6674,7 +6674,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
6674
6674
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6675
6675
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6676
6676
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6677
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
6677
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6678
6678
|
let fetchResult;
|
|
6679
6679
|
try {
|
|
6680
6680
|
fetchResult = await documentLoader(url.href);
|
|
@@ -6905,7 +6905,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
6905
6905
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6906
6906
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6907
6907
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6908
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
6908
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6909
6909
|
let fetchResult;
|
|
6910
6910
|
try {
|
|
6911
6911
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7090,7 +7090,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7090
7090
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7091
7091
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7092
7092
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7093
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
7093
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7094
7094
|
let fetchResult;
|
|
7095
7095
|
try {
|
|
7096
7096
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7281,7 +7281,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7281
7281
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7282
7282
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7283
7283
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7284
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
7284
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7285
7285
|
let fetchResult;
|
|
7286
7286
|
try {
|
|
7287
7287
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7466,7 +7466,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7466
7466
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7467
7467
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7468
7468
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7469
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
7469
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7470
7470
|
let fetchResult;
|
|
7471
7471
|
try {
|
|
7472
7472
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7653,7 +7653,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7653
7653
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7654
7654
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7655
7655
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7656
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
7656
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7657
7657
|
let fetchResult;
|
|
7658
7658
|
try {
|
|
7659
7659
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7922,7 +7922,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7922
7922
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7923
7923
|
*/
|
|
7924
7924
|
static async fromJsonLd(json, options = {}) {
|
|
7925
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
7925
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7926
7926
|
try {
|
|
7927
7927
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
7928
7928
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8257,7 +8257,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8257
8257
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8258
8258
|
*/
|
|
8259
8259
|
static async fromJsonLd(json, options = {}) {
|
|
8260
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
8260
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8261
8261
|
try {
|
|
8262
8262
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
8263
8263
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8523,7 +8523,7 @@ var PropertyValue = class {
|
|
|
8523
8523
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8524
8524
|
*/
|
|
8525
8525
|
static async fromJsonLd(json, options = {}) {
|
|
8526
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
8526
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8527
8527
|
try {
|
|
8528
8528
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
8529
8529
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8785,7 +8785,7 @@ var DidService = class {
|
|
|
8785
8785
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8786
8786
|
*/
|
|
8787
8787
|
static async fromJsonLd(json, options = {}) {
|
|
8788
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
8788
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8789
8789
|
try {
|
|
8790
8790
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
8791
8791
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8944,7 +8944,7 @@ var Export = class Export extends DidService {
|
|
|
8944
8944
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8945
8945
|
*/
|
|
8946
8946
|
static async fromJsonLd(json, options = {}) {
|
|
8947
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
8947
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8948
8948
|
try {
|
|
8949
8949
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
8950
8950
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9137,7 +9137,7 @@ var DataIntegrityProof = class {
|
|
|
9137
9137
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9138
9138
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9139
9139
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9140
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
9140
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9141
9141
|
let fetchResult;
|
|
9142
9142
|
try {
|
|
9143
9143
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9356,7 +9356,7 @@ var DataIntegrityProof = class {
|
|
|
9356
9356
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9357
9357
|
*/
|
|
9358
9358
|
static async fromJsonLd(json, options = {}) {
|
|
9359
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
9359
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9360
9360
|
try {
|
|
9361
9361
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
9362
9362
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9444,7 +9444,7 @@ var DataIntegrityProof = class {
|
|
|
9444
9444
|
let _3qzP3ukEZoUziK5FEiA1RhU4aqac__array = values["http://purl.org/dc/terms/created"];
|
|
9445
9445
|
for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array == null ? [] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array.length === 1 && "@list" in _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0] ? _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0]["@list"] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
|
|
9446
9446
|
if (v == null) continue;
|
|
9447
|
-
const decoded = Temporal.Instant.from(v["@value"]
|
|
9447
|
+
const decoded = Temporal.Instant.from(normalizeDateTimeLiteral(v["@value"]));
|
|
9448
9448
|
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9449
9449
|
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(decoded);
|
|
9450
9450
|
}
|
|
@@ -9600,7 +9600,7 @@ var CryptographicKey = class {
|
|
|
9600
9600
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9601
9601
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9602
9602
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9603
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
9603
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9604
9604
|
let fetchResult;
|
|
9605
9605
|
try {
|
|
9606
9606
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9871,7 +9871,7 @@ var CryptographicKey = class {
|
|
|
9871
9871
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9872
9872
|
*/
|
|
9873
9873
|
static async fromJsonLd(json, options = {}) {
|
|
9874
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
9874
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9875
9875
|
try {
|
|
9876
9876
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
9877
9877
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10092,7 +10092,7 @@ var Multikey = class {
|
|
|
10092
10092
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10093
10093
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10094
10094
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10095
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
10095
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10096
10096
|
let fetchResult;
|
|
10097
10097
|
try {
|
|
10098
10098
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10369,7 +10369,7 @@ var Multikey = class {
|
|
|
10369
10369
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10370
10370
|
*/
|
|
10371
10371
|
static async fromJsonLd(json, options = {}) {
|
|
10372
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
10372
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10373
10373
|
try {
|
|
10374
10374
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
10375
10375
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10572,7 +10572,7 @@ var Accept = class Accept extends Activity {
|
|
|
10572
10572
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10573
10573
|
*/
|
|
10574
10574
|
static async fromJsonLd(json, options = {}) {
|
|
10575
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
10575
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10576
10576
|
try {
|
|
10577
10577
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
10578
10578
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10726,7 +10726,7 @@ var Add = class Add extends Activity {
|
|
|
10726
10726
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10727
10727
|
*/
|
|
10728
10728
|
static async fromJsonLd(json, options = {}) {
|
|
10729
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
10729
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10730
10730
|
try {
|
|
10731
10731
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
10732
10732
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10897,7 +10897,7 @@ var Announce = class Announce extends Activity {
|
|
|
10897
10897
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10898
10898
|
*/
|
|
10899
10899
|
static async fromJsonLd(json, options = {}) {
|
|
10900
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
10900
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10901
10901
|
try {
|
|
10902
10902
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
10903
10903
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11295,7 +11295,7 @@ var Application = class Application extends Object$1 {
|
|
|
11295
11295
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11296
11296
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11297
11297
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11298
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
11298
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11299
11299
|
let fetchResult;
|
|
11300
11300
|
try {
|
|
11301
11301
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11476,7 +11476,7 @@ var Application = class Application extends Object$1 {
|
|
|
11476
11476
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11477
11477
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11478
11478
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11479
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
11479
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11480
11480
|
let fetchResult;
|
|
11481
11481
|
try {
|
|
11482
11482
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11675,7 +11675,7 @@ var Application = class Application extends Object$1 {
|
|
|
11675
11675
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11676
11676
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11677
11677
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11678
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
11678
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11679
11679
|
let fetchResult;
|
|
11680
11680
|
try {
|
|
11681
11681
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11826,7 +11826,7 @@ var Application = class Application extends Object$1 {
|
|
|
11826
11826
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11827
11827
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11828
11828
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11829
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
11829
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11830
11830
|
let fetchResult;
|
|
11831
11831
|
try {
|
|
11832
11832
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11974,7 +11974,7 @@ var Application = class Application extends Object$1 {
|
|
|
11974
11974
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11975
11975
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11976
11976
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11977
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
11977
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11978
11978
|
let fetchResult;
|
|
11979
11979
|
try {
|
|
11980
11980
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12107,7 +12107,7 @@ var Application = class Application extends Object$1 {
|
|
|
12107
12107
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12108
12108
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12109
12109
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12110
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
12110
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12111
12111
|
let fetchResult;
|
|
12112
12112
|
try {
|
|
12113
12113
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12243,7 +12243,7 @@ var Application = class Application extends Object$1 {
|
|
|
12243
12243
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12244
12244
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12245
12245
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12246
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
12246
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12247
12247
|
let fetchResult;
|
|
12248
12248
|
try {
|
|
12249
12249
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12377,7 +12377,7 @@ var Application = class Application extends Object$1 {
|
|
|
12377
12377
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12378
12378
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12379
12379
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12380
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
12380
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12381
12381
|
let fetchResult;
|
|
12382
12382
|
try {
|
|
12383
12383
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12509,7 +12509,7 @@ var Application = class Application extends Object$1 {
|
|
|
12509
12509
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12510
12510
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12511
12511
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12512
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
12512
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12513
12513
|
let fetchResult;
|
|
12514
12514
|
try {
|
|
12515
12515
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12641,7 +12641,7 @@ var Application = class Application extends Object$1 {
|
|
|
12641
12641
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12642
12642
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12643
12643
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12644
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
12644
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12645
12645
|
let fetchResult;
|
|
12646
12646
|
try {
|
|
12647
12647
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12813,7 +12813,7 @@ var Application = class Application extends Object$1 {
|
|
|
12813
12813
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12814
12814
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12815
12815
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12816
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
12816
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12817
12817
|
let fetchResult;
|
|
12818
12818
|
try {
|
|
12819
12819
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12988,7 +12988,7 @@ var Application = class Application extends Object$1 {
|
|
|
12988
12988
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12989
12989
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12990
12990
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12991
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
12991
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12992
12992
|
let fetchResult;
|
|
12993
12993
|
try {
|
|
12994
12994
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13221,7 +13221,7 @@ var Application = class Application extends Object$1 {
|
|
|
13221
13221
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13222
13222
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13223
13223
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13224
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
13224
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13225
13225
|
let fetchResult;
|
|
13226
13226
|
try {
|
|
13227
13227
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13923,7 +13923,7 @@ var Application = class Application extends Object$1 {
|
|
|
13923
13923
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13924
13924
|
*/
|
|
13925
13925
|
static async fromJsonLd(json, options = {}) {
|
|
13926
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
13926
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13927
13927
|
try {
|
|
13928
13928
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
13929
13929
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14533,7 +14533,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
14533
14533
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14534
14534
|
*/
|
|
14535
14535
|
static async fromJsonLd(json, options = {}) {
|
|
14536
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
14536
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14537
14537
|
try {
|
|
14538
14538
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
14539
14539
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14688,7 +14688,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
14688
14688
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14689
14689
|
*/
|
|
14690
14690
|
static async fromJsonLd(json, options = {}) {
|
|
14691
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
14691
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14692
14692
|
try {
|
|
14693
14693
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
14694
14694
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14926,7 +14926,7 @@ var Article = class Article extends Object$1 {
|
|
|
14926
14926
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14927
14927
|
*/
|
|
14928
14928
|
static async fromJsonLd(json, options = {}) {
|
|
14929
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
14929
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14930
14930
|
try {
|
|
14931
14931
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
14932
14932
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15164,7 +15164,7 @@ var Document = class Document extends Object$1 {
|
|
|
15164
15164
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15165
15165
|
*/
|
|
15166
15166
|
static async fromJsonLd(json, options = {}) {
|
|
15167
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
15167
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15168
15168
|
try {
|
|
15169
15169
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
15170
15170
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15354,7 +15354,7 @@ var Audio = class Audio extends Document {
|
|
|
15354
15354
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15355
15355
|
*/
|
|
15356
15356
|
static async fromJsonLd(json, options = {}) {
|
|
15357
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
15357
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15358
15358
|
try {
|
|
15359
15359
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
15360
15360
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15505,7 +15505,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
15505
15505
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15506
15506
|
*/
|
|
15507
15507
|
static async fromJsonLd(json, options = {}) {
|
|
15508
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
15508
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15509
15509
|
try {
|
|
15510
15510
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
15511
15511
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15659,7 +15659,7 @@ var Block = class Block extends Ignore {
|
|
|
15659
15659
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15660
15660
|
*/
|
|
15661
15661
|
static async fromJsonLd(json, options = {}) {
|
|
15662
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
15662
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15663
15663
|
try {
|
|
15664
15664
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
15665
15665
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15926,7 +15926,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
15926
15926
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15927
15927
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15928
15928
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15929
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
15929
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15930
15930
|
let fetchResult;
|
|
15931
15931
|
try {
|
|
15932
15932
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16056,7 +16056,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16056
16056
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16057
16057
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16058
16058
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16059
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16059
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16060
16060
|
let fetchResult;
|
|
16061
16061
|
try {
|
|
16062
16062
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16186,7 +16186,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16186
16186
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16187
16187
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16188
16188
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16189
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16189
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16190
16190
|
let fetchResult;
|
|
16191
16191
|
try {
|
|
16192
16192
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16316,7 +16316,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16316
16316
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16317
16317
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16318
16318
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16319
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16319
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16320
16320
|
let fetchResult;
|
|
16321
16321
|
try {
|
|
16322
16322
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16457,7 +16457,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16457
16457
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16458
16458
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16459
16459
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16460
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16460
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16461
16461
|
let fetchResult;
|
|
16462
16462
|
try {
|
|
16463
16463
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16586,7 +16586,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16586
16586
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16587
16587
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16588
16588
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16589
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16589
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16590
16590
|
let fetchResult;
|
|
16591
16591
|
try {
|
|
16592
16592
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16715,7 +16715,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16715
16715
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16716
16716
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16717
16717
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16718
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16718
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16719
16719
|
let fetchResult;
|
|
16720
16720
|
try {
|
|
16721
16721
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16844,7 +16844,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16844
16844
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16845
16845
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16846
16846
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16847
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16847
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16848
16848
|
let fetchResult;
|
|
16849
16849
|
try {
|
|
16850
16850
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16973,7 +16973,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
16973
16973
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16974
16974
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16975
16975
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16976
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
16976
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16977
16977
|
let fetchResult;
|
|
16978
16978
|
try {
|
|
16979
16979
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17102,7 +17102,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
17102
17102
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17103
17103
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17104
17104
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17105
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
17105
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17106
17106
|
let fetchResult;
|
|
17107
17107
|
try {
|
|
17108
17108
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17231,7 +17231,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
17231
17231
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17232
17232
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17233
17233
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17234
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
17234
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17235
17235
|
let fetchResult;
|
|
17236
17236
|
try {
|
|
17237
17237
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17360,7 +17360,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
17360
17360
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17361
17361
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17362
17362
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17363
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
17363
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17364
17364
|
let fetchResult;
|
|
17365
17365
|
try {
|
|
17366
17366
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17796,7 +17796,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
17796
17796
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17797
17797
|
*/
|
|
17798
17798
|
static async fromJsonLd(json, options = {}) {
|
|
17799
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
17799
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17800
17800
|
try {
|
|
17801
17801
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
17802
17802
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18274,7 +18274,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
18274
18274
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18275
18275
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18276
18276
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18277
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
18277
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18278
18278
|
let fetchResult;
|
|
18279
18279
|
try {
|
|
18280
18280
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18404,7 +18404,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
18404
18404
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18405
18405
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18406
18406
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18407
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
18407
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18408
18408
|
let fetchResult;
|
|
18409
18409
|
try {
|
|
18410
18410
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18533,7 +18533,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
18533
18533
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18534
18534
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18535
18535
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18536
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
18536
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18537
18537
|
let fetchResult;
|
|
18538
18538
|
try {
|
|
18539
18539
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18806,7 +18806,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
18806
18806
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18807
18807
|
*/
|
|
18808
18808
|
static async fromJsonLd(json, options = {}) {
|
|
18809
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
18809
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18810
18810
|
try {
|
|
18811
18811
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
18812
18812
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19041,7 +19041,7 @@ var Create = class Create extends Activity {
|
|
|
19041
19041
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19042
19042
|
*/
|
|
19043
19043
|
static async fromJsonLd(json, options = {}) {
|
|
19044
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
19044
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19045
19045
|
try {
|
|
19046
19046
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
19047
19047
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19208,7 +19208,7 @@ var Delete = class Delete extends Activity {
|
|
|
19208
19208
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19209
19209
|
*/
|
|
19210
19210
|
static async fromJsonLd(json, options = {}) {
|
|
19211
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
19211
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19212
19212
|
try {
|
|
19213
19213
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
19214
19214
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19362,7 +19362,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
19362
19362
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19363
19363
|
*/
|
|
19364
19364
|
static async fromJsonLd(json, options = {}) {
|
|
19365
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
19365
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19366
19366
|
try {
|
|
19367
19367
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
19368
19368
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19729,7 +19729,7 @@ var Endpoints = class {
|
|
|
19729
19729
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19730
19730
|
*/
|
|
19731
19731
|
static async fromJsonLd(json, options = {}) {
|
|
19732
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
19732
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19733
19733
|
try {
|
|
19734
19734
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
19735
19735
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19970,7 +19970,7 @@ var Event = class Event extends Object$1 {
|
|
|
19970
19970
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19971
19971
|
*/
|
|
19972
19972
|
static async fromJsonLd(json, options = {}) {
|
|
19973
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
19973
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19974
19974
|
try {
|
|
19975
19975
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
19976
19976
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20122,7 +20122,7 @@ var Flag = class Flag extends Activity {
|
|
|
20122
20122
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20123
20123
|
*/
|
|
20124
20124
|
static async fromJsonLd(json, options = {}) {
|
|
20125
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
20125
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20126
20126
|
try {
|
|
20127
20127
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
20128
20128
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20278,7 +20278,7 @@ var Follow = class Follow extends Activity {
|
|
|
20278
20278
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20279
20279
|
*/
|
|
20280
20280
|
static async fromJsonLd(json, options = {}) {
|
|
20281
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
20281
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20282
20282
|
try {
|
|
20283
20283
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
20284
20284
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20676,7 +20676,7 @@ var Group = class Group extends Object$1 {
|
|
|
20676
20676
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20677
20677
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20678
20678
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20679
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
20679
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20680
20680
|
let fetchResult;
|
|
20681
20681
|
try {
|
|
20682
20682
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20857,7 +20857,7 @@ var Group = class Group extends Object$1 {
|
|
|
20857
20857
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20858
20858
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20859
20859
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20860
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
20860
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20861
20861
|
let fetchResult;
|
|
20862
20862
|
try {
|
|
20863
20863
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21056,7 +21056,7 @@ var Group = class Group extends Object$1 {
|
|
|
21056
21056
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21057
21057
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21058
21058
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21059
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
21059
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21060
21060
|
let fetchResult;
|
|
21061
21061
|
try {
|
|
21062
21062
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21207,7 +21207,7 @@ var Group = class Group extends Object$1 {
|
|
|
21207
21207
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21208
21208
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21209
21209
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21210
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
21210
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21211
21211
|
let fetchResult;
|
|
21212
21212
|
try {
|
|
21213
21213
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21355,7 +21355,7 @@ var Group = class Group extends Object$1 {
|
|
|
21355
21355
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21356
21356
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21357
21357
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21358
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
21358
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21359
21359
|
let fetchResult;
|
|
21360
21360
|
try {
|
|
21361
21361
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21488,7 +21488,7 @@ var Group = class Group extends Object$1 {
|
|
|
21488
21488
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21489
21489
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21490
21490
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21491
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
21491
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21492
21492
|
let fetchResult;
|
|
21493
21493
|
try {
|
|
21494
21494
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21624,7 +21624,7 @@ var Group = class Group extends Object$1 {
|
|
|
21624
21624
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21625
21625
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21626
21626
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21627
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
21627
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21628
21628
|
let fetchResult;
|
|
21629
21629
|
try {
|
|
21630
21630
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21758,7 +21758,7 @@ var Group = class Group extends Object$1 {
|
|
|
21758
21758
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21759
21759
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21760
21760
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21761
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
21761
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21762
21762
|
let fetchResult;
|
|
21763
21763
|
try {
|
|
21764
21764
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21890,7 +21890,7 @@ var Group = class Group extends Object$1 {
|
|
|
21890
21890
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21891
21891
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21892
21892
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21893
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
21893
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21894
21894
|
let fetchResult;
|
|
21895
21895
|
try {
|
|
21896
21896
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22022,7 +22022,7 @@ var Group = class Group extends Object$1 {
|
|
|
22022
22022
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22023
22023
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22024
22024
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22025
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
22025
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22026
22026
|
let fetchResult;
|
|
22027
22027
|
try {
|
|
22028
22028
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22194,7 +22194,7 @@ var Group = class Group extends Object$1 {
|
|
|
22194
22194
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22195
22195
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22196
22196
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22197
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
22197
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22198
22198
|
let fetchResult;
|
|
22199
22199
|
try {
|
|
22200
22200
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22369,7 +22369,7 @@ var Group = class Group extends Object$1 {
|
|
|
22369
22369
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22370
22370
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22371
22371
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22372
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
22372
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22373
22373
|
let fetchResult;
|
|
22374
22374
|
try {
|
|
22375
22375
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22602,7 +22602,7 @@ var Group = class Group extends Object$1 {
|
|
|
22602
22602
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22603
22603
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22604
22604
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22605
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
22605
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22606
22606
|
let fetchResult;
|
|
22607
22607
|
try {
|
|
22608
22608
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23304,7 +23304,7 @@ var Group = class Group extends Object$1 {
|
|
|
23304
23304
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23305
23305
|
*/
|
|
23306
23306
|
static async fromJsonLd(json, options = {}) {
|
|
23307
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
23307
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23308
23308
|
try {
|
|
23309
23309
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
23310
23310
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24070,7 +24070,7 @@ var Link = class Link {
|
|
|
24070
24070
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24071
24071
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24072
24072
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24073
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
24073
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24074
24074
|
let fetchResult;
|
|
24075
24075
|
try {
|
|
24076
24076
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24372,7 +24372,7 @@ var Link = class Link {
|
|
|
24372
24372
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24373
24373
|
*/
|
|
24374
24374
|
static async fromJsonLd(json, options = {}) {
|
|
24375
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
24375
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24376
24376
|
try {
|
|
24377
24377
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
24378
24378
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24722,7 +24722,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
24722
24722
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24723
24723
|
*/
|
|
24724
24724
|
static async fromJsonLd(json, options = {}) {
|
|
24725
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
24725
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24726
24726
|
try {
|
|
24727
24727
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
24728
24728
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24879,7 +24879,7 @@ var Image = class Image extends Document {
|
|
|
24879
24879
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24880
24880
|
*/
|
|
24881
24881
|
static async fromJsonLd(json, options = {}) {
|
|
24882
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
24882
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24883
24883
|
try {
|
|
24884
24884
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
24885
24885
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25031,7 +25031,7 @@ var Offer = class Offer extends Activity {
|
|
|
25031
25031
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25032
25032
|
*/
|
|
25033
25033
|
static async fromJsonLd(json, options = {}) {
|
|
25034
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
25034
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25035
25035
|
try {
|
|
25036
25036
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
25037
25037
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25183,7 +25183,7 @@ var Invite = class Invite extends Offer {
|
|
|
25183
25183
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25184
25184
|
*/
|
|
25185
25185
|
static async fromJsonLd(json, options = {}) {
|
|
25186
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
25186
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25187
25187
|
try {
|
|
25188
25188
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
25189
25189
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25334,7 +25334,7 @@ var Join = class Join extends Activity {
|
|
|
25334
25334
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25335
25335
|
*/
|
|
25336
25336
|
static async fromJsonLd(json, options = {}) {
|
|
25337
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
25337
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25338
25338
|
try {
|
|
25339
25339
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
25340
25340
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25485,7 +25485,7 @@ var Leave = class Leave extends Activity {
|
|
|
25485
25485
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25486
25486
|
*/
|
|
25487
25487
|
static async fromJsonLd(json, options = {}) {
|
|
25488
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
25488
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25489
25489
|
try {
|
|
25490
25490
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
25491
25491
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25640,7 +25640,7 @@ var Like = class Like extends Activity {
|
|
|
25640
25640
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25641
25641
|
*/
|
|
25642
25642
|
static async fromJsonLd(json, options = {}) {
|
|
25643
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
25643
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25644
25644
|
try {
|
|
25645
25645
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
25646
25646
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25790,7 +25790,7 @@ var Listen = class Listen extends Activity {
|
|
|
25790
25790
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25791
25791
|
*/
|
|
25792
25792
|
static async fromJsonLd(json, options = {}) {
|
|
25793
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
25793
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25794
25794
|
try {
|
|
25795
25795
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
25796
25796
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25944,7 +25944,7 @@ var Mention = class Mention extends Link {
|
|
|
25944
25944
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25945
25945
|
*/
|
|
25946
25946
|
static async fromJsonLd(json, options = {}) {
|
|
25947
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
25947
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25948
25948
|
try {
|
|
25949
25949
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
25950
25950
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26096,7 +26096,7 @@ var Move = class Move extends Activity {
|
|
|
26096
26096
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26097
26097
|
*/
|
|
26098
26098
|
static async fromJsonLd(json, options = {}) {
|
|
26099
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
26099
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26100
26100
|
try {
|
|
26101
26101
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
26102
26102
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26335,7 +26335,7 @@ var Note = class Note extends Object$1 {
|
|
|
26335
26335
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26336
26336
|
*/
|
|
26337
26337
|
static async fromJsonLd(json, options = {}) {
|
|
26338
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
26338
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26339
26339
|
try {
|
|
26340
26340
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
26341
26341
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26473,7 +26473,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
26473
26473
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26474
26474
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26475
26475
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26476
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
26476
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26477
26477
|
let fetchResult;
|
|
26478
26478
|
try {
|
|
26479
26479
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26731,7 +26731,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
26731
26731
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26732
26732
|
*/
|
|
26733
26733
|
static async fromJsonLd(json, options = {}) {
|
|
26734
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
26734
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26735
26735
|
try {
|
|
26736
26736
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
26737
26737
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26944,7 +26944,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
26944
26944
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26945
26945
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26946
26946
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26947
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
26947
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26948
26948
|
let fetchResult;
|
|
26949
26949
|
try {
|
|
26950
26950
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27225,7 +27225,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
27225
27225
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27226
27226
|
*/
|
|
27227
27227
|
static async fromJsonLd(json, options = {}) {
|
|
27228
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
27228
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27229
27229
|
try {
|
|
27230
27230
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
27231
27231
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27726,7 +27726,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
27726
27726
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27727
27727
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27728
27728
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27729
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
27729
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27730
27730
|
let fetchResult;
|
|
27731
27731
|
try {
|
|
27732
27732
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27907,7 +27907,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
27907
27907
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27908
27908
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27909
27909
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27910
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
27910
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27911
27911
|
let fetchResult;
|
|
27912
27912
|
try {
|
|
27913
27913
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28106,7 +28106,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
28106
28106
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28107
28107
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28108
28108
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28109
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
28109
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28110
28110
|
let fetchResult;
|
|
28111
28111
|
try {
|
|
28112
28112
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28257,7 +28257,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
28257
28257
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28258
28258
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28259
28259
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28260
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
28260
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28261
28261
|
let fetchResult;
|
|
28262
28262
|
try {
|
|
28263
28263
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28405,7 +28405,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
28405
28405
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28406
28406
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28407
28407
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28408
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
28408
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28409
28409
|
let fetchResult;
|
|
28410
28410
|
try {
|
|
28411
28411
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28538,7 +28538,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
28538
28538
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28539
28539
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28540
28540
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28541
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
28541
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28542
28542
|
let fetchResult;
|
|
28543
28543
|
try {
|
|
28544
28544
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28674,7 +28674,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
28674
28674
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28675
28675
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28676
28676
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28677
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
28677
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28678
28678
|
let fetchResult;
|
|
28679
28679
|
try {
|
|
28680
28680
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28808,7 +28808,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
28808
28808
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28809
28809
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28810
28810
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28811
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
28811
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28812
28812
|
let fetchResult;
|
|
28813
28813
|
try {
|
|
28814
28814
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28940,7 +28940,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
28940
28940
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28941
28941
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28942
28942
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28943
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
28943
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28944
28944
|
let fetchResult;
|
|
28945
28945
|
try {
|
|
28946
28946
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29072,7 +29072,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29072
29072
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29073
29073
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29074
29074
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29075
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
29075
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29076
29076
|
let fetchResult;
|
|
29077
29077
|
try {
|
|
29078
29078
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29244,7 +29244,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29244
29244
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29245
29245
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29246
29246
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29247
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
29247
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29248
29248
|
let fetchResult;
|
|
29249
29249
|
try {
|
|
29250
29250
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29419,7 +29419,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29419
29419
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29420
29420
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29421
29421
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29422
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
29422
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29423
29423
|
let fetchResult;
|
|
29424
29424
|
try {
|
|
29425
29425
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29652,7 +29652,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29652
29652
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29653
29653
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29654
29654
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29655
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
29655
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29656
29656
|
let fetchResult;
|
|
29657
29657
|
try {
|
|
29658
29658
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30354,7 +30354,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30354
30354
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30355
30355
|
*/
|
|
30356
30356
|
static async fromJsonLd(json, options = {}) {
|
|
30357
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
30357
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30358
30358
|
try {
|
|
30359
30359
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
30360
30360
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30969,7 +30969,7 @@ var Page = class Page extends Document {
|
|
|
30969
30969
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30970
30970
|
*/
|
|
30971
30971
|
static async fromJsonLd(json, options = {}) {
|
|
30972
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
30972
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30973
30973
|
try {
|
|
30974
30974
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
30975
30975
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31367,7 +31367,7 @@ var Person = class Person extends Object$1 {
|
|
|
31367
31367
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31368
31368
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31369
31369
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31370
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
31370
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31371
31371
|
let fetchResult;
|
|
31372
31372
|
try {
|
|
31373
31373
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31548,7 +31548,7 @@ var Person = class Person extends Object$1 {
|
|
|
31548
31548
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31549
31549
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31550
31550
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31551
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
31551
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31552
31552
|
let fetchResult;
|
|
31553
31553
|
try {
|
|
31554
31554
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31747,7 +31747,7 @@ var Person = class Person extends Object$1 {
|
|
|
31747
31747
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31748
31748
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31749
31749
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31750
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
31750
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31751
31751
|
let fetchResult;
|
|
31752
31752
|
try {
|
|
31753
31753
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31898,7 +31898,7 @@ var Person = class Person extends Object$1 {
|
|
|
31898
31898
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31899
31899
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31900
31900
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31901
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
31901
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31902
31902
|
let fetchResult;
|
|
31903
31903
|
try {
|
|
31904
31904
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32046,7 +32046,7 @@ var Person = class Person extends Object$1 {
|
|
|
32046
32046
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32047
32047
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32048
32048
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32049
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
32049
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32050
32050
|
let fetchResult;
|
|
32051
32051
|
try {
|
|
32052
32052
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32179,7 +32179,7 @@ var Person = class Person extends Object$1 {
|
|
|
32179
32179
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32180
32180
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32181
32181
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32182
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
32182
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32183
32183
|
let fetchResult;
|
|
32184
32184
|
try {
|
|
32185
32185
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32315,7 +32315,7 @@ var Person = class Person extends Object$1 {
|
|
|
32315
32315
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32316
32316
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32317
32317
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32318
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
32318
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32319
32319
|
let fetchResult;
|
|
32320
32320
|
try {
|
|
32321
32321
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32449,7 +32449,7 @@ var Person = class Person extends Object$1 {
|
|
|
32449
32449
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32450
32450
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32451
32451
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32452
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
32452
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32453
32453
|
let fetchResult;
|
|
32454
32454
|
try {
|
|
32455
32455
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32581,7 +32581,7 @@ var Person = class Person extends Object$1 {
|
|
|
32581
32581
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32582
32582
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32583
32583
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32584
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
32584
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32585
32585
|
let fetchResult;
|
|
32586
32586
|
try {
|
|
32587
32587
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32713,7 +32713,7 @@ var Person = class Person extends Object$1 {
|
|
|
32713
32713
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32714
32714
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32715
32715
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32716
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
32716
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32717
32717
|
let fetchResult;
|
|
32718
32718
|
try {
|
|
32719
32719
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32885,7 +32885,7 @@ var Person = class Person extends Object$1 {
|
|
|
32885
32885
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32886
32886
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32887
32887
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32888
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
32888
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32889
32889
|
let fetchResult;
|
|
32890
32890
|
try {
|
|
32891
32891
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33060,7 +33060,7 @@ var Person = class Person extends Object$1 {
|
|
|
33060
33060
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33061
33061
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33062
33062
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33063
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
33063
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33064
33064
|
let fetchResult;
|
|
33065
33065
|
try {
|
|
33066
33066
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33293,7 +33293,7 @@ var Person = class Person extends Object$1 {
|
|
|
33293
33293
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33294
33294
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33295
33295
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33296
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
33296
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33297
33297
|
let fetchResult;
|
|
33298
33298
|
try {
|
|
33299
33299
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33995,7 +33995,7 @@ var Person = class Person extends Object$1 {
|
|
|
33995
33995
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33996
33996
|
*/
|
|
33997
33997
|
static async fromJsonLd(json, options = {}) {
|
|
33998
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
33998
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33999
33999
|
try {
|
|
34000
34000
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
34001
34001
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34787,7 +34787,7 @@ var Place = class Place extends Object$1 {
|
|
|
34787
34787
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34788
34788
|
*/
|
|
34789
34789
|
static async fromJsonLd(json, options = {}) {
|
|
34790
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
34790
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34791
34791
|
try {
|
|
34792
34792
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
34793
34793
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34995,7 +34995,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
34995
34995
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34996
34996
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34997
34997
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34998
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
34998
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34999
34999
|
let fetchResult;
|
|
35000
35000
|
try {
|
|
35001
35001
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35197,7 +35197,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
35197
35197
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35198
35198
|
*/
|
|
35199
35199
|
static async fromJsonLd(json, options = {}) {
|
|
35200
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
35200
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35201
35201
|
try {
|
|
35202
35202
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
35203
35203
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35373,7 +35373,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35373
35373
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35374
35374
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35375
35375
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35376
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
35376
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35377
35377
|
let fetchResult;
|
|
35378
35378
|
try {
|
|
35379
35379
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35505,7 +35505,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35505
35505
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35506
35506
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35507
35507
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35508
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
35508
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35509
35509
|
let fetchResult;
|
|
35510
35510
|
try {
|
|
35511
35511
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35778,7 +35778,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35778
35778
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35779
35779
|
*/
|
|
35780
35780
|
static async fromJsonLd(json, options = {}) {
|
|
35781
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
35781
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35782
35782
|
try {
|
|
35783
35783
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
35784
35784
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35860,7 +35860,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35860
35860
|
let _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array = values["https://www.w3.org/ns/activitystreams#closed"];
|
|
35861
35861
|
for (const v of _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array == null ? [] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array.length === 1 && "@list" in _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0] ? _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0]["@list"] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array) {
|
|
35862
35862
|
if (v == null) continue;
|
|
35863
|
-
const decoded = typeof v === "object" && "@type" in v && "@value" in v && typeof v["@value"] === "string" && v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" && new Date(v["@value"]).toString() !== "Invalid Date"
|
|
35863
|
+
const decoded = typeof v === "object" && "@type" in v && "@value" in v && typeof v["@value"] === "string" && v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" && (new Date(v["@value"]).toString() !== "Invalid Date" || new Date(normalizeDateTimeLiteral(v["@value"])).toString() !== "Invalid Date") ? Temporal.Instant.from(normalizeDateTimeLiteral(v["@value"])) : typeof v === "object" && "@value" in v && typeof v["@value"] === "boolean" ? v["@value"] : void 0;
|
|
35864
35864
|
if (typeof decoded === "undefined") {
|
|
35865
35865
|
shouldCacheJsonLd = false;
|
|
35866
35866
|
continue;
|
|
@@ -36023,7 +36023,7 @@ var Read = class Read extends Activity {
|
|
|
36023
36023
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36024
36024
|
*/
|
|
36025
36025
|
static async fromJsonLd(json, options = {}) {
|
|
36026
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
36026
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36027
36027
|
try {
|
|
36028
36028
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
36029
36029
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36174,7 +36174,7 @@ var Reject = class Reject extends Activity {
|
|
|
36174
36174
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36175
36175
|
*/
|
|
36176
36176
|
static async fromJsonLd(json, options = {}) {
|
|
36177
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
36177
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36178
36178
|
try {
|
|
36179
36179
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
36180
36180
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36350,7 +36350,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
36350
36350
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36351
36351
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36352
36352
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36353
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
36353
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36354
36354
|
let fetchResult;
|
|
36355
36355
|
try {
|
|
36356
36356
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36482,7 +36482,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
36482
36482
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36483
36483
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36484
36484
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36485
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
36485
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36486
36486
|
let fetchResult;
|
|
36487
36487
|
try {
|
|
36488
36488
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36663,7 +36663,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
36663
36663
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36664
36664
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36665
36665
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36666
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
36666
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36667
36667
|
let fetchResult;
|
|
36668
36668
|
try {
|
|
36669
36669
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36952,7 +36952,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
36952
36952
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36953
36953
|
*/
|
|
36954
36954
|
static async fromJsonLd(json, options = {}) {
|
|
36955
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
36955
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36956
36956
|
try {
|
|
36957
36957
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
36958
36958
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37169,7 +37169,7 @@ var Remove = class Remove extends Activity {
|
|
|
37169
37169
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37170
37170
|
*/
|
|
37171
37171
|
static async fromJsonLd(json, options = {}) {
|
|
37172
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
37172
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37173
37173
|
try {
|
|
37174
37174
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
37175
37175
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37567,7 +37567,7 @@ var Service = class Service extends Object$1 {
|
|
|
37567
37567
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37568
37568
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37569
37569
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37570
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
37570
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37571
37571
|
let fetchResult;
|
|
37572
37572
|
try {
|
|
37573
37573
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37748,7 +37748,7 @@ var Service = class Service extends Object$1 {
|
|
|
37748
37748
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37749
37749
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37750
37750
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37751
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
37751
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37752
37752
|
let fetchResult;
|
|
37753
37753
|
try {
|
|
37754
37754
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37947,7 +37947,7 @@ var Service = class Service extends Object$1 {
|
|
|
37947
37947
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37948
37948
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37949
37949
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37950
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
37950
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37951
37951
|
let fetchResult;
|
|
37952
37952
|
try {
|
|
37953
37953
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38098,7 +38098,7 @@ var Service = class Service extends Object$1 {
|
|
|
38098
38098
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38099
38099
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38100
38100
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38101
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
38101
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38102
38102
|
let fetchResult;
|
|
38103
38103
|
try {
|
|
38104
38104
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38246,7 +38246,7 @@ var Service = class Service extends Object$1 {
|
|
|
38246
38246
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38247
38247
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38248
38248
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38249
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
38249
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38250
38250
|
let fetchResult;
|
|
38251
38251
|
try {
|
|
38252
38252
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38379,7 +38379,7 @@ var Service = class Service extends Object$1 {
|
|
|
38379
38379
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38380
38380
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38381
38381
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38382
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
38382
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38383
38383
|
let fetchResult;
|
|
38384
38384
|
try {
|
|
38385
38385
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38515,7 +38515,7 @@ var Service = class Service extends Object$1 {
|
|
|
38515
38515
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38516
38516
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38517
38517
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38518
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
38518
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38519
38519
|
let fetchResult;
|
|
38520
38520
|
try {
|
|
38521
38521
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38649,7 +38649,7 @@ var Service = class Service extends Object$1 {
|
|
|
38649
38649
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38650
38650
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38651
38651
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38652
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
38652
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38653
38653
|
let fetchResult;
|
|
38654
38654
|
try {
|
|
38655
38655
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38781,7 +38781,7 @@ var Service = class Service extends Object$1 {
|
|
|
38781
38781
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38782
38782
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38783
38783
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38784
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
38784
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38785
38785
|
let fetchResult;
|
|
38786
38786
|
try {
|
|
38787
38787
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38913,7 +38913,7 @@ var Service = class Service extends Object$1 {
|
|
|
38913
38913
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38914
38914
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38915
38915
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38916
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
38916
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38917
38917
|
let fetchResult;
|
|
38918
38918
|
try {
|
|
38919
38919
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39085,7 +39085,7 @@ var Service = class Service extends Object$1 {
|
|
|
39085
39085
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39086
39086
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39087
39087
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39088
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
39088
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39089
39089
|
let fetchResult;
|
|
39090
39090
|
try {
|
|
39091
39091
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39260,7 +39260,7 @@ var Service = class Service extends Object$1 {
|
|
|
39260
39260
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39261
39261
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39262
39262
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39263
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
39263
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39264
39264
|
let fetchResult;
|
|
39265
39265
|
try {
|
|
39266
39266
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39493,7 +39493,7 @@ var Service = class Service extends Object$1 {
|
|
|
39493
39493
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39494
39494
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39495
39495
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39496
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.
|
|
39496
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39497
39497
|
let fetchResult;
|
|
39498
39498
|
try {
|
|
39499
39499
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40195,7 +40195,7 @@ var Service = class Service extends Object$1 {
|
|
|
40195
40195
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40196
40196
|
*/
|
|
40197
40197
|
static async fromJsonLd(json, options = {}) {
|
|
40198
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
40198
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40199
40199
|
try {
|
|
40200
40200
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
40201
40201
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40919,7 +40919,7 @@ var Source = class {
|
|
|
40919
40919
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40920
40920
|
*/
|
|
40921
40921
|
static async fromJsonLd(json, options = {}) {
|
|
40922
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
40922
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40923
40923
|
try {
|
|
40924
40924
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
40925
40925
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41103,7 +41103,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
41103
41103
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41104
41104
|
*/
|
|
41105
41105
|
static async fromJsonLd(json, options = {}) {
|
|
41106
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
41106
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41107
41107
|
try {
|
|
41108
41108
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
41109
41109
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41254,7 +41254,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
41254
41254
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41255
41255
|
*/
|
|
41256
41256
|
static async fromJsonLd(json, options = {}) {
|
|
41257
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
41257
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41258
41258
|
try {
|
|
41259
41259
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
41260
41260
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41444,7 +41444,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
41444
41444
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41445
41445
|
*/
|
|
41446
41446
|
static async fromJsonLd(json, options = {}) {
|
|
41447
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
41447
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41448
41448
|
try {
|
|
41449
41449
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
41450
41450
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41494,7 +41494,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
41494
41494
|
let _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array = values["https://www.w3.org/ns/activitystreams#deleted"];
|
|
41495
41495
|
for (const v of _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array == null ? [] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array.length === 1 && "@list" in _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0] ? _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0]["@list"] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array) {
|
|
41496
41496
|
if (v == null) continue;
|
|
41497
|
-
const decoded = Temporal.Instant.from(v["@value"]
|
|
41497
|
+
const decoded = Temporal.Instant.from(normalizeDateTimeLiteral(v["@value"]));
|
|
41498
41498
|
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41499
41499
|
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(decoded);
|
|
41500
41500
|
}
|
|
@@ -41612,7 +41612,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
41612
41612
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41613
41613
|
*/
|
|
41614
41614
|
static async fromJsonLd(json, options = {}) {
|
|
41615
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
41615
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41616
41616
|
try {
|
|
41617
41617
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
41618
41618
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41777,7 +41777,7 @@ var Undo = class Undo extends Activity {
|
|
|
41777
41777
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41778
41778
|
*/
|
|
41779
41779
|
static async fromJsonLd(json, options = {}) {
|
|
41780
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
41780
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41781
41781
|
try {
|
|
41782
41782
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
41783
41783
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41980,7 +41980,7 @@ var Update = class Update extends Activity {
|
|
|
41980
41980
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41981
41981
|
*/
|
|
41982
41982
|
static async fromJsonLd(json, options = {}) {
|
|
41983
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
41983
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41984
41984
|
try {
|
|
41985
41985
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
41986
41986
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42137,7 +42137,7 @@ var Video = class Video extends Document {
|
|
|
42137
42137
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42138
42138
|
*/
|
|
42139
42139
|
static async fromJsonLd(json, options = {}) {
|
|
42140
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
42140
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42141
42141
|
try {
|
|
42142
42142
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
42143
42143
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42287,7 +42287,7 @@ var View = class View extends Activity {
|
|
|
42287
42287
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42288
42288
|
*/
|
|
42289
42289
|
static async fromJsonLd(json, options = {}) {
|
|
42290
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.
|
|
42290
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.0.36").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42291
42291
|
try {
|
|
42292
42292
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
42293
42293
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|