@fedify/vocab 2.1.12 → 2.1.13
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 +220 -219
- package/dist/mod.d.cts +1 -0
- package/dist/mod.d.ts +1 -1
- package/dist/mod.js +220 -219
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-xXSyPaxM.mjs → deno-BK22ff3D.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-Dqfp_nMu.mjs → vocab-Ba6I5fpC.mjs} +219 -218
- package/dist-tests/vocab.test.mjs +17 -1
- package/package.json +5 -5
- package/src/vocab.test.ts +37 -0
- package/tsdown.config.ts +8 -11
|
@@ -4,6 +4,7 @@ import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
|
4
4
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
5
5
|
import { getLogger } from "@logtape/logtape";
|
|
6
6
|
import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, getDocumentLoader, importMultibaseKey, importPem } from "@fedify/vocab-runtime";
|
|
7
|
+
import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/temporal";
|
|
7
8
|
//#region \0rolldown/runtime.js
|
|
8
9
|
var __create = Object.create;
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
@@ -266,7 +267,7 @@ var Object$1 = class Object$1 {
|
|
|
266
267
|
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
267
268
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
268
269
|
}
|
|
269
|
-
if ("endTime" in values && values.endTime != null) if (values.endTime
|
|
270
|
+
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
270
271
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
271
272
|
if ("generators" in values && values.generators != null) if (Array.isArray(values.generators) && values.generators.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
272
273
|
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
@@ -327,7 +328,7 @@ var Object$1 = class Object$1 {
|
|
|
327
328
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
328
329
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
329
330
|
}
|
|
330
|
-
if ("published" in values && values.published != null) if (values.published
|
|
331
|
+
if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
|
|
331
332
|
else throw new TypeError("The published must be of type Temporal.Instant.");
|
|
332
333
|
if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
|
|
333
334
|
this.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
|
|
@@ -345,7 +346,7 @@ var Object$1 = class Object$1 {
|
|
|
345
346
|
this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
|
|
346
347
|
this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.add(0);
|
|
347
348
|
} else throw new TypeError("The emojiReactions must be of type Collection | URL.");
|
|
348
|
-
if ("startTime" in values && values.startTime != null) if (values.startTime
|
|
349
|
+
if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
|
|
349
350
|
else throw new TypeError("The startTime must be of type Temporal.Instant.");
|
|
350
351
|
if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
|
|
351
352
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
@@ -358,7 +359,7 @@ var Object$1 = class Object$1 {
|
|
|
358
359
|
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
359
360
|
for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
360
361
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
361
|
-
if ("updated" in values && values.updated != null) if (values.updated
|
|
362
|
+
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
362
363
|
else throw new TypeError("The updated must be of type Temporal.Instant.");
|
|
363
364
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
364
365
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
@@ -413,7 +414,7 @@ var Object$1 = class Object$1 {
|
|
|
413
414
|
}
|
|
414
415
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
415
416
|
else throw new TypeError("The mediaType must be of type string.");
|
|
416
|
-
if ("duration" in values && values.duration != null) if (values.duration
|
|
417
|
+
if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
|
|
417
418
|
else throw new TypeError("The duration must be of type Temporal.Duration.");
|
|
418
419
|
if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
|
|
419
420
|
else throw new TypeError("The sensitive must be of type boolean.");
|
|
@@ -521,7 +522,7 @@ var Object$1 = class Object$1 {
|
|
|
521
522
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
522
523
|
}
|
|
523
524
|
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
524
|
-
if ("endTime" in values && values.endTime != null) if (values.endTime
|
|
525
|
+
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
525
526
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
526
527
|
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
527
528
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
|
|
@@ -601,7 +602,7 @@ var Object$1 = class Object$1 {
|
|
|
601
602
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
602
603
|
}
|
|
603
604
|
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
604
|
-
if ("published" in values && values.published != null) if (values.published
|
|
605
|
+
if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
|
|
605
606
|
else throw new TypeError("The published must be of type Temporal.Instant.");
|
|
606
607
|
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
607
608
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
|
|
@@ -628,7 +629,7 @@ var Object$1 = class Object$1 {
|
|
|
628
629
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set([0]);
|
|
629
630
|
} else throw new TypeError("The emojiReactions must be of type Collection | URL.");
|
|
630
631
|
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
631
|
-
if ("startTime" in values && values.startTime != null) if (values.startTime
|
|
632
|
+
if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
|
|
632
633
|
else throw new TypeError("The startTime must be of type Temporal.Instant.");
|
|
633
634
|
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
634
635
|
if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
|
|
@@ -646,7 +647,7 @@ var Object$1 = class Object$1 {
|
|
|
646
647
|
for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
647
648
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
648
649
|
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
649
|
-
if ("updated" in values && values.updated != null) if (values.updated
|
|
650
|
+
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
650
651
|
else throw new TypeError("The updated must be of type Temporal.Instant.");
|
|
651
652
|
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
652
653
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
@@ -716,7 +717,7 @@ var Object$1 = class Object$1 {
|
|
|
716
717
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
717
718
|
else throw new TypeError("The mediaType must be of type string.");
|
|
718
719
|
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
719
|
-
if ("duration" in values && values.duration != null) if (values.duration
|
|
720
|
+
if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
|
|
720
721
|
else throw new TypeError("The duration must be of type Temporal.Duration.");
|
|
721
722
|
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
722
723
|
if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
|
|
@@ -768,7 +769,7 @@ var Object$1 = class Object$1 {
|
|
|
768
769
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
769
770
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
770
771
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
771
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
772
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
772
773
|
let fetchResult;
|
|
773
774
|
try {
|
|
774
775
|
fetchResult = await documentLoader(url.href);
|
|
@@ -914,7 +915,7 @@ var Object$1 = class Object$1 {
|
|
|
914
915
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
915
916
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
916
917
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
917
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
918
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
918
919
|
let fetchResult;
|
|
919
920
|
try {
|
|
920
921
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1126,7 +1127,7 @@ var Object$1 = class Object$1 {
|
|
|
1126
1127
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1127
1128
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1128
1129
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1129
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1130
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1130
1131
|
let fetchResult;
|
|
1131
1132
|
try {
|
|
1132
1133
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1310,7 +1311,7 @@ var Object$1 = class Object$1 {
|
|
|
1310
1311
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1311
1312
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1312
1313
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1313
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1314
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1314
1315
|
let fetchResult;
|
|
1315
1316
|
try {
|
|
1316
1317
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1472,7 +1473,7 @@ var Object$1 = class Object$1 {
|
|
|
1472
1473
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1473
1474
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1474
1475
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1475
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1476
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1476
1477
|
let fetchResult;
|
|
1477
1478
|
try {
|
|
1478
1479
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1602,7 +1603,7 @@ var Object$1 = class Object$1 {
|
|
|
1602
1603
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1603
1604
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1604
1605
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1605
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1606
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1606
1607
|
let fetchResult;
|
|
1607
1608
|
try {
|
|
1608
1609
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1768,7 +1769,7 @@ var Object$1 = class Object$1 {
|
|
|
1768
1769
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1769
1770
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1770
1771
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1771
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1772
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1772
1773
|
let fetchResult;
|
|
1773
1774
|
try {
|
|
1774
1775
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1934,7 +1935,7 @@ var Object$1 = class Object$1 {
|
|
|
1934
1935
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1935
1936
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1936
1937
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1937
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1938
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1938
1939
|
let fetchResult;
|
|
1939
1940
|
try {
|
|
1940
1941
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2108,7 +2109,7 @@ var Object$1 = class Object$1 {
|
|
|
2108
2109
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2109
2110
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2110
2111
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2111
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2112
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2112
2113
|
let fetchResult;
|
|
2113
2114
|
try {
|
|
2114
2115
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2282,7 +2283,7 @@ var Object$1 = class Object$1 {
|
|
|
2282
2283
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2283
2284
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2284
2285
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2285
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2286
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2286
2287
|
let fetchResult;
|
|
2287
2288
|
try {
|
|
2288
2289
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2461,7 +2462,7 @@ var Object$1 = class Object$1 {
|
|
|
2461
2462
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2462
2463
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2463
2464
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2464
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2465
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2465
2466
|
let fetchResult;
|
|
2466
2467
|
try {
|
|
2467
2468
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2582,7 +2583,7 @@ var Object$1 = class Object$1 {
|
|
|
2582
2583
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2583
2584
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2584
2585
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2585
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2586
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2586
2587
|
let fetchResult;
|
|
2587
2588
|
try {
|
|
2588
2589
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2709,7 +2710,7 @@ var Object$1 = class Object$1 {
|
|
|
2709
2710
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2710
2711
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2711
2712
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2712
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2713
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2713
2714
|
let fetchResult;
|
|
2714
2715
|
try {
|
|
2715
2716
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2836,7 +2837,7 @@ var Object$1 = class Object$1 {
|
|
|
2836
2837
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2837
2838
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2838
2839
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2839
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2840
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2840
2841
|
let fetchResult;
|
|
2841
2842
|
try {
|
|
2842
2843
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2981,7 +2982,7 @@ var Object$1 = class Object$1 {
|
|
|
2981
2982
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2982
2983
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2983
2984
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2984
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2985
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2985
2986
|
let fetchResult;
|
|
2986
2987
|
try {
|
|
2987
2988
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3133,7 +3134,7 @@ var Object$1 = class Object$1 {
|
|
|
3133
3134
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3134
3135
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3135
3136
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3136
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3137
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3137
3138
|
let fetchResult;
|
|
3138
3139
|
try {
|
|
3139
3140
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3297,7 +3298,7 @@ var Object$1 = class Object$1 {
|
|
|
3297
3298
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3298
3299
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3299
3300
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3300
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3301
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3301
3302
|
let fetchResult;
|
|
3302
3303
|
try {
|
|
3303
3304
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3461,7 +3462,7 @@ var Object$1 = class Object$1 {
|
|
|
3461
3462
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3462
3463
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3463
3464
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3464
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3465
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3465
3466
|
let fetchResult;
|
|
3466
3467
|
try {
|
|
3467
3468
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3625,7 +3626,7 @@ var Object$1 = class Object$1 {
|
|
|
3625
3626
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3626
3627
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3627
3628
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3628
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3629
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3629
3630
|
let fetchResult;
|
|
3630
3631
|
try {
|
|
3631
3632
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3826,7 +3827,7 @@ var Object$1 = class Object$1 {
|
|
|
3826
3827
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3827
3828
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3828
3829
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3829
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3830
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3830
3831
|
let fetchResult;
|
|
3831
3832
|
try {
|
|
3832
3833
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4013,7 +4014,7 @@ var Object$1 = class Object$1 {
|
|
|
4013
4014
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4014
4015
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4015
4016
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4016
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4017
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4017
4018
|
let fetchResult;
|
|
4018
4019
|
try {
|
|
4019
4020
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4134,7 +4135,7 @@ var Object$1 = class Object$1 {
|
|
|
4134
4135
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4135
4136
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4136
4137
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4137
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4138
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4138
4139
|
let fetchResult;
|
|
4139
4140
|
try {
|
|
4140
4141
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4255,7 +4256,7 @@ var Object$1 = class Object$1 {
|
|
|
4255
4256
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4256
4257
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4257
4258
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4258
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4259
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4259
4260
|
let fetchResult;
|
|
4260
4261
|
try {
|
|
4261
4262
|
fetchResult = await documentLoader(url.href);
|
|
@@ -5082,7 +5083,7 @@ var Object$1 = class Object$1 {
|
|
|
5082
5083
|
* @throws {TypeError} If the given `json` is invalid.
|
|
5083
5084
|
*/
|
|
5084
5085
|
static async fromJsonLd(json, options = {}) {
|
|
5085
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
5086
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
5086
5087
|
try {
|
|
5087
5088
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
5088
5089
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6458,7 +6459,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6458
6459
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6459
6460
|
*/
|
|
6460
6461
|
static async fromJsonLd(json, options = {}) {
|
|
6461
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
6462
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6462
6463
|
try {
|
|
6463
6464
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
6464
6465
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6697,7 +6698,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6697
6698
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6698
6699
|
*/
|
|
6699
6700
|
static async fromJsonLd(json, options = {}) {
|
|
6700
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
6701
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6701
6702
|
try {
|
|
6702
6703
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
6703
6704
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6978,7 +6979,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
6978
6979
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6979
6980
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6980
6981
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6981
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
6982
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6982
6983
|
let fetchResult;
|
|
6983
6984
|
try {
|
|
6984
6985
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7190,7 +7191,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7190
7191
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7191
7192
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7192
7193
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7193
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7194
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7194
7195
|
let fetchResult;
|
|
7195
7196
|
try {
|
|
7196
7197
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7356,7 +7357,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7356
7357
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7357
7358
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7358
7359
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7359
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7360
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7360
7361
|
let fetchResult;
|
|
7361
7362
|
try {
|
|
7362
7363
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7528,7 +7529,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7528
7529
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7529
7530
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7530
7531
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7531
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7532
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7532
7533
|
let fetchResult;
|
|
7533
7534
|
try {
|
|
7534
7535
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7694,7 +7695,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7694
7695
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7695
7696
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7696
7697
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7697
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7698
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7698
7699
|
let fetchResult;
|
|
7699
7700
|
try {
|
|
7700
7701
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7862,7 +7863,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7862
7863
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7863
7864
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7864
7865
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7865
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7866
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7866
7867
|
let fetchResult;
|
|
7867
7868
|
try {
|
|
7868
7869
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8113,7 +8114,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8113
8114
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8114
8115
|
*/
|
|
8115
8116
|
static async fromJsonLd(json, options = {}) {
|
|
8116
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
8117
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8117
8118
|
try {
|
|
8118
8119
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
8119
8120
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8435,7 +8436,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8435
8436
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8436
8437
|
*/
|
|
8437
8438
|
static async fromJsonLd(json, options = {}) {
|
|
8438
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
8439
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8439
8440
|
try {
|
|
8440
8441
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
8441
8442
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8681,7 +8682,7 @@ var PropertyValue = class {
|
|
|
8681
8682
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8682
8683
|
*/
|
|
8683
8684
|
static async fromJsonLd(json, options = {}) {
|
|
8684
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
8685
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8685
8686
|
try {
|
|
8686
8687
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
8687
8688
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8841,7 +8842,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
8841
8842
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8842
8843
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8843
8844
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8844
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
8845
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8845
8846
|
let fetchResult;
|
|
8846
8847
|
try {
|
|
8847
8848
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8962,7 +8963,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
8962
8963
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8963
8964
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8964
8965
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8965
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
8966
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8966
8967
|
let fetchResult;
|
|
8967
8968
|
try {
|
|
8968
8969
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9178,7 +9179,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9178
9179
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9179
9180
|
*/
|
|
9180
9181
|
static async fromJsonLd(json, options = {}) {
|
|
9181
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9182
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9182
9183
|
try {
|
|
9183
9184
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
9184
9185
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9375,7 +9376,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
9375
9376
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9376
9377
|
*/
|
|
9377
9378
|
static async fromJsonLd(json, options = {}) {
|
|
9378
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9379
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9379
9380
|
try {
|
|
9380
9381
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
9381
9382
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9615,7 +9616,7 @@ var InteractionPolicy = class {
|
|
|
9615
9616
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9616
9617
|
*/
|
|
9617
9618
|
static async fromJsonLd(json, options = {}) {
|
|
9618
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9619
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9619
9620
|
try {
|
|
9620
9621
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
9621
9622
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9917,7 +9918,7 @@ var InteractionRule = class {
|
|
|
9917
9918
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9918
9919
|
*/
|
|
9919
9920
|
static async fromJsonLd(json, options = {}) {
|
|
9920
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9921
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9921
9922
|
try {
|
|
9922
9923
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
9923
9924
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10074,7 +10075,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10074
10075
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10075
10076
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10076
10077
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10077
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10078
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10078
10079
|
let fetchResult;
|
|
10079
10080
|
try {
|
|
10080
10081
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10195,7 +10196,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10195
10196
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10196
10197
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10197
10198
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10198
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10199
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10199
10200
|
let fetchResult;
|
|
10200
10201
|
try {
|
|
10201
10202
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10411,7 +10412,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10411
10412
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10412
10413
|
*/
|
|
10413
10414
|
static async fromJsonLd(json, options = {}) {
|
|
10414
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10415
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10415
10416
|
try {
|
|
10416
10417
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
10417
10418
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10607,7 +10608,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
10607
10608
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10608
10609
|
*/
|
|
10609
10610
|
static async fromJsonLd(json, options = {}) {
|
|
10610
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10611
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10611
10612
|
try {
|
|
10612
10613
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
10613
10614
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10738,7 +10739,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
10738
10739
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10739
10740
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10740
10741
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10741
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10742
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10742
10743
|
let fetchResult;
|
|
10743
10744
|
try {
|
|
10744
10745
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10859,7 +10860,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
10859
10860
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10860
10861
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10861
10862
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10862
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10863
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10863
10864
|
let fetchResult;
|
|
10864
10865
|
try {
|
|
10865
10866
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11075,7 +11076,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11075
11076
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11076
11077
|
*/
|
|
11077
11078
|
static async fromJsonLd(json, options = {}) {
|
|
11078
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11079
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11079
11080
|
try {
|
|
11080
11081
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
11081
11082
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11271,7 +11272,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
11271
11272
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11272
11273
|
*/
|
|
11273
11274
|
static async fromJsonLd(json, options = {}) {
|
|
11274
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11275
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11275
11276
|
try {
|
|
11276
11277
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
11277
11278
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11477,7 +11478,7 @@ var DidService = class {
|
|
|
11477
11478
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11478
11479
|
*/
|
|
11479
11480
|
static async fromJsonLd(json, options = {}) {
|
|
11480
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11481
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11481
11482
|
try {
|
|
11482
11483
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
11483
11484
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11631,7 +11632,7 @@ var Export = class Export extends DidService {
|
|
|
11631
11632
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11632
11633
|
*/
|
|
11633
11634
|
static async fromJsonLd(json, options = {}) {
|
|
11634
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11635
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11635
11636
|
try {
|
|
11636
11637
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
11637
11638
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11755,7 +11756,7 @@ var DataIntegrityProof = class {
|
|
|
11755
11756
|
else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
|
|
11756
11757
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
11757
11758
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
11758
|
-
if ("created" in values && values.created != null) if (values.created
|
|
11759
|
+
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
11759
11760
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
11760
11761
|
}
|
|
11761
11762
|
/**
|
|
@@ -11789,7 +11790,7 @@ var DataIntegrityProof = class {
|
|
|
11789
11790
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
11790
11791
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
11791
11792
|
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
11792
|
-
if ("created" in values && values.created != null) if (values.created
|
|
11793
|
+
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
11793
11794
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
11794
11795
|
return clone;
|
|
11795
11796
|
}
|
|
@@ -11804,7 +11805,7 @@ var DataIntegrityProof = class {
|
|
|
11804
11805
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11805
11806
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11806
11807
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11807
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
11808
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11808
11809
|
let fetchResult;
|
|
11809
11810
|
try {
|
|
11810
11811
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12023,7 +12024,7 @@ var DataIntegrityProof = class {
|
|
|
12023
12024
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12024
12025
|
*/
|
|
12025
12026
|
static async fromJsonLd(json, options = {}) {
|
|
12026
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12027
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12027
12028
|
try {
|
|
12028
12029
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
12029
12030
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12237,7 +12238,7 @@ var CryptographicKey = class {
|
|
|
12237
12238
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12238
12239
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12239
12240
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12240
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
12241
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12241
12242
|
let fetchResult;
|
|
12242
12243
|
try {
|
|
12243
12244
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12499,7 +12500,7 @@ var CryptographicKey = class {
|
|
|
12499
12500
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12500
12501
|
*/
|
|
12501
12502
|
static async fromJsonLd(json, options = {}) {
|
|
12502
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12503
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12503
12504
|
try {
|
|
12504
12505
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
12505
12506
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12694,7 +12695,7 @@ var Multikey = class {
|
|
|
12694
12695
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12695
12696
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12696
12697
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12697
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
12698
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12698
12699
|
let fetchResult;
|
|
12699
12700
|
try {
|
|
12700
12701
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12962,7 +12963,7 @@ var Multikey = class {
|
|
|
12962
12963
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12963
12964
|
*/
|
|
12964
12965
|
static async fromJsonLd(json, options = {}) {
|
|
12965
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12966
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12966
12967
|
try {
|
|
12967
12968
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
12968
12969
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13157,7 +13158,7 @@ var Accept = class Accept extends Activity {
|
|
|
13157
13158
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13158
13159
|
*/
|
|
13159
13160
|
static async fromJsonLd(json, options = {}) {
|
|
13160
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13161
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13161
13162
|
try {
|
|
13162
13163
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
13163
13164
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13309,7 +13310,7 @@ var Add = class Add extends Activity {
|
|
|
13309
13310
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13310
13311
|
*/
|
|
13311
13312
|
static async fromJsonLd(json, options = {}) {
|
|
13312
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13313
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13313
13314
|
try {
|
|
13314
13315
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
13315
13316
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13478,7 +13479,7 @@ var Announce = class Announce extends Activity {
|
|
|
13478
13479
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13479
13480
|
*/
|
|
13480
13481
|
static async fromJsonLd(json, options = {}) {
|
|
13481
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13482
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13482
13483
|
try {
|
|
13483
13484
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
13484
13485
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13873,7 +13874,7 @@ var Application = class Application extends Object$1 {
|
|
|
13873
13874
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13874
13875
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13875
13876
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13876
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
13877
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13877
13878
|
let fetchResult;
|
|
13878
13879
|
try {
|
|
13879
13880
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14035,7 +14036,7 @@ var Application = class Application extends Object$1 {
|
|
|
14035
14036
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14036
14037
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14037
14038
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14038
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14039
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14039
14040
|
let fetchResult;
|
|
14040
14041
|
try {
|
|
14041
14042
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14215,7 +14216,7 @@ var Application = class Application extends Object$1 {
|
|
|
14215
14216
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14216
14217
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14217
14218
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14218
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14219
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14219
14220
|
let fetchResult;
|
|
14220
14221
|
try {
|
|
14221
14222
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14357,7 +14358,7 @@ var Application = class Application extends Object$1 {
|
|
|
14357
14358
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14358
14359
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14359
14360
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14360
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14361
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14361
14362
|
let fetchResult;
|
|
14362
14363
|
try {
|
|
14363
14364
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14496,7 +14497,7 @@ var Application = class Application extends Object$1 {
|
|
|
14496
14497
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14497
14498
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14498
14499
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14499
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14500
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14500
14501
|
let fetchResult;
|
|
14501
14502
|
try {
|
|
14502
14503
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14620,7 +14621,7 @@ var Application = class Application extends Object$1 {
|
|
|
14620
14621
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14621
14622
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14622
14623
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14623
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14624
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14624
14625
|
let fetchResult;
|
|
14625
14626
|
try {
|
|
14626
14627
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14747,7 +14748,7 @@ var Application = class Application extends Object$1 {
|
|
|
14747
14748
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14748
14749
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14749
14750
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14750
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14751
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14751
14752
|
let fetchResult;
|
|
14752
14753
|
try {
|
|
14753
14754
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14872,7 +14873,7 @@ var Application = class Application extends Object$1 {
|
|
|
14872
14873
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14873
14874
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14874
14875
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14875
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14876
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14876
14877
|
let fetchResult;
|
|
14877
14878
|
try {
|
|
14878
14879
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14995,7 +14996,7 @@ var Application = class Application extends Object$1 {
|
|
|
14995
14996
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14996
14997
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14997
14998
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14998
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14999
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14999
15000
|
let fetchResult;
|
|
15000
15001
|
try {
|
|
15001
15002
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15118,7 +15119,7 @@ var Application = class Application extends Object$1 {
|
|
|
15118
15119
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15119
15120
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15120
15121
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15121
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15122
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15122
15123
|
let fetchResult;
|
|
15123
15124
|
try {
|
|
15124
15125
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15280,7 +15281,7 @@ var Application = class Application extends Object$1 {
|
|
|
15280
15281
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15281
15282
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15282
15283
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15283
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15284
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15284
15285
|
let fetchResult;
|
|
15285
15286
|
try {
|
|
15286
15287
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15446,7 +15447,7 @@ var Application = class Application extends Object$1 {
|
|
|
15446
15447
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15447
15448
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15448
15449
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15449
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15450
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15450
15451
|
let fetchResult;
|
|
15451
15452
|
try {
|
|
15452
15453
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15660,7 +15661,7 @@ var Application = class Application extends Object$1 {
|
|
|
15660
15661
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15661
15662
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15662
15663
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15663
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15664
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15664
15665
|
let fetchResult;
|
|
15665
15666
|
try {
|
|
15666
15667
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16345,7 +16346,7 @@ var Application = class Application extends Object$1 {
|
|
|
16345
16346
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16346
16347
|
*/
|
|
16347
16348
|
static async fromJsonLd(json, options = {}) {
|
|
16348
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
16349
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16349
16350
|
try {
|
|
16350
16351
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
16351
16352
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16899,7 +16900,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
16899
16900
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16900
16901
|
*/
|
|
16901
16902
|
static async fromJsonLd(json, options = {}) {
|
|
16902
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
16903
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16903
16904
|
try {
|
|
16904
16905
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
16905
16906
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17052,7 +17053,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
17052
17053
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17053
17054
|
*/
|
|
17054
17055
|
static async fromJsonLd(json, options = {}) {
|
|
17055
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17056
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17056
17057
|
try {
|
|
17057
17058
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
17058
17059
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17289,7 +17290,7 @@ var Article = class Article extends Object$1 {
|
|
|
17289
17290
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17290
17291
|
*/
|
|
17291
17292
|
static async fromJsonLd(json, options = {}) {
|
|
17292
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17293
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17293
17294
|
try {
|
|
17294
17295
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
17295
17296
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17526,7 +17527,7 @@ var Document = class Document extends Object$1 {
|
|
|
17526
17527
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17527
17528
|
*/
|
|
17528
17529
|
static async fromJsonLd(json, options = {}) {
|
|
17529
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17530
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17530
17531
|
try {
|
|
17531
17532
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
17532
17533
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17717,7 +17718,7 @@ var Audio = class Audio extends Document {
|
|
|
17717
17718
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17718
17719
|
*/
|
|
17719
17720
|
static async fromJsonLd(json, options = {}) {
|
|
17720
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17721
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17721
17722
|
try {
|
|
17722
17723
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
17723
17724
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17866,7 +17867,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
17866
17867
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17867
17868
|
*/
|
|
17868
17869
|
static async fromJsonLd(json, options = {}) {
|
|
17869
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17870
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17870
17871
|
try {
|
|
17871
17872
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
17872
17873
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18018,7 +18019,7 @@ var Block = class Block extends Ignore {
|
|
|
18018
18019
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18019
18020
|
*/
|
|
18020
18021
|
static async fromJsonLd(json, options = {}) {
|
|
18021
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
18022
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18022
18023
|
try {
|
|
18023
18024
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
18024
18025
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18282,7 +18283,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18282
18283
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18283
18284
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18284
18285
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18285
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18286
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18286
18287
|
let fetchResult;
|
|
18287
18288
|
try {
|
|
18288
18289
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18403,7 +18404,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18403
18404
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18404
18405
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18405
18406
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18406
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18407
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18407
18408
|
let fetchResult;
|
|
18408
18409
|
try {
|
|
18409
18410
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18524,7 +18525,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18524
18525
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18525
18526
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18526
18527
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18527
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18528
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18528
18529
|
let fetchResult;
|
|
18529
18530
|
try {
|
|
18530
18531
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18645,7 +18646,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18645
18646
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18646
18647
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18647
18648
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18648
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18649
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18649
18650
|
let fetchResult;
|
|
18650
18651
|
try {
|
|
18651
18652
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18776,7 +18777,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18776
18777
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18777
18778
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18778
18779
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18779
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18780
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18780
18781
|
let fetchResult;
|
|
18781
18782
|
try {
|
|
18782
18783
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18896,7 +18897,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18896
18897
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18897
18898
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18898
18899
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18899
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18900
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18900
18901
|
let fetchResult;
|
|
18901
18902
|
try {
|
|
18902
18903
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19016,7 +19017,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19016
19017
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19017
19018
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19018
19019
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19019
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19020
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19020
19021
|
let fetchResult;
|
|
19021
19022
|
try {
|
|
19022
19023
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19136,7 +19137,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19136
19137
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19137
19138
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19138
19139
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19139
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19140
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19140
19141
|
let fetchResult;
|
|
19141
19142
|
try {
|
|
19142
19143
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19256,7 +19257,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19256
19257
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19257
19258
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19258
19259
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19259
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19260
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19260
19261
|
let fetchResult;
|
|
19261
19262
|
try {
|
|
19262
19263
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19376,7 +19377,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19376
19377
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19377
19378
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19378
19379
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19379
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19380
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19380
19381
|
let fetchResult;
|
|
19381
19382
|
try {
|
|
19382
19383
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19496,7 +19497,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19496
19497
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19497
19498
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19498
19499
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19499
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19500
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19500
19501
|
let fetchResult;
|
|
19501
19502
|
try {
|
|
19502
19503
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19616,7 +19617,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19616
19617
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19617
19618
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19618
19619
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19619
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19620
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19620
19621
|
let fetchResult;
|
|
19621
19622
|
try {
|
|
19622
19623
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20045,7 +20046,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20045
20046
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20046
20047
|
*/
|
|
20047
20048
|
static async fromJsonLd(json, options = {}) {
|
|
20048
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
20049
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20049
20050
|
try {
|
|
20050
20051
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
20051
20052
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20498,7 +20499,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
20498
20499
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20499
20500
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20500
20501
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20501
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20502
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20502
20503
|
let fetchResult;
|
|
20503
20504
|
try {
|
|
20504
20505
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20619,7 +20620,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
20619
20620
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20620
20621
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20621
20622
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20622
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20623
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20623
20624
|
let fetchResult;
|
|
20624
20625
|
try {
|
|
20625
20626
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20739,7 +20740,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
20739
20740
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20740
20741
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20741
20742
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20742
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20743
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20743
20744
|
let fetchResult;
|
|
20744
20745
|
try {
|
|
20745
20746
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21005,7 +21006,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
21005
21006
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21006
21007
|
*/
|
|
21007
21008
|
static async fromJsonLd(json, options = {}) {
|
|
21008
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21009
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21009
21010
|
try {
|
|
21010
21011
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
21011
21012
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21232,7 +21233,7 @@ var Create = class Create extends Activity {
|
|
|
21232
21233
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21233
21234
|
*/
|
|
21234
21235
|
static async fromJsonLd(json, options = {}) {
|
|
21235
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21236
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21236
21237
|
try {
|
|
21237
21238
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
21238
21239
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21397,7 +21398,7 @@ var Delete = class Delete extends Activity {
|
|
|
21397
21398
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21398
21399
|
*/
|
|
21399
21400
|
static async fromJsonLd(json, options = {}) {
|
|
21400
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21401
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21401
21402
|
try {
|
|
21402
21403
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
21403
21404
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21549,7 +21550,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
21549
21550
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21550
21551
|
*/
|
|
21551
21552
|
static async fromJsonLd(json, options = {}) {
|
|
21552
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21553
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21553
21554
|
try {
|
|
21554
21555
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
21555
21556
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21894,7 +21895,7 @@ var Endpoints = class {
|
|
|
21894
21895
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21895
21896
|
*/
|
|
21896
21897
|
static async fromJsonLd(json, options = {}) {
|
|
21897
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21898
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21898
21899
|
try {
|
|
21899
21900
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
21900
21901
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22128,7 +22129,7 @@ var Event = class Event extends Object$1 {
|
|
|
22128
22129
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22129
22130
|
*/
|
|
22130
22131
|
static async fromJsonLd(json, options = {}) {
|
|
22131
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22132
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22132
22133
|
try {
|
|
22133
22134
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
22134
22135
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22278,7 +22279,7 @@ var Flag = class Flag extends Activity {
|
|
|
22278
22279
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22279
22280
|
*/
|
|
22280
22281
|
static async fromJsonLd(json, options = {}) {
|
|
22281
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22282
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22282
22283
|
try {
|
|
22283
22284
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
22284
22285
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22432,7 +22433,7 @@ var Follow = class Follow extends Activity {
|
|
|
22432
22433
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22433
22434
|
*/
|
|
22434
22435
|
static async fromJsonLd(json, options = {}) {
|
|
22435
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22436
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22436
22437
|
try {
|
|
22437
22438
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
22438
22439
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22827,7 +22828,7 @@ var Group = class Group extends Object$1 {
|
|
|
22827
22828
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22828
22829
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22829
22830
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22830
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
22831
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22831
22832
|
let fetchResult;
|
|
22832
22833
|
try {
|
|
22833
22834
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22989,7 +22990,7 @@ var Group = class Group extends Object$1 {
|
|
|
22989
22990
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22990
22991
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22991
22992
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22992
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
22993
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22993
22994
|
let fetchResult;
|
|
22994
22995
|
try {
|
|
22995
22996
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23169,7 +23170,7 @@ var Group = class Group extends Object$1 {
|
|
|
23169
23170
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23170
23171
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23171
23172
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23172
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23173
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23173
23174
|
let fetchResult;
|
|
23174
23175
|
try {
|
|
23175
23176
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23311,7 +23312,7 @@ var Group = class Group extends Object$1 {
|
|
|
23311
23312
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23312
23313
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23313
23314
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23314
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23315
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23315
23316
|
let fetchResult;
|
|
23316
23317
|
try {
|
|
23317
23318
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23450,7 +23451,7 @@ var Group = class Group extends Object$1 {
|
|
|
23450
23451
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23451
23452
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23452
23453
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23453
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23454
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23454
23455
|
let fetchResult;
|
|
23455
23456
|
try {
|
|
23456
23457
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23574,7 +23575,7 @@ var Group = class Group extends Object$1 {
|
|
|
23574
23575
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23575
23576
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23576
23577
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23577
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23578
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23578
23579
|
let fetchResult;
|
|
23579
23580
|
try {
|
|
23580
23581
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23701,7 +23702,7 @@ var Group = class Group extends Object$1 {
|
|
|
23701
23702
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23702
23703
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23703
23704
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23704
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23705
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23705
23706
|
let fetchResult;
|
|
23706
23707
|
try {
|
|
23707
23708
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23826,7 +23827,7 @@ var Group = class Group extends Object$1 {
|
|
|
23826
23827
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23827
23828
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23828
23829
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23829
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23830
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23830
23831
|
let fetchResult;
|
|
23831
23832
|
try {
|
|
23832
23833
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23949,7 +23950,7 @@ var Group = class Group extends Object$1 {
|
|
|
23949
23950
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23950
23951
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23951
23952
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23952
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23953
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23953
23954
|
let fetchResult;
|
|
23954
23955
|
try {
|
|
23955
23956
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24072,7 +24073,7 @@ var Group = class Group extends Object$1 {
|
|
|
24072
24073
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24073
24074
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24074
24075
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24075
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24076
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24076
24077
|
let fetchResult;
|
|
24077
24078
|
try {
|
|
24078
24079
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24234,7 +24235,7 @@ var Group = class Group extends Object$1 {
|
|
|
24234
24235
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24235
24236
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24236
24237
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24237
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24238
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24238
24239
|
let fetchResult;
|
|
24239
24240
|
try {
|
|
24240
24241
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24400,7 +24401,7 @@ var Group = class Group extends Object$1 {
|
|
|
24400
24401
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24401
24402
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24402
24403
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24403
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24404
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24404
24405
|
let fetchResult;
|
|
24405
24406
|
try {
|
|
24406
24407
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24614,7 +24615,7 @@ var Group = class Group extends Object$1 {
|
|
|
24614
24615
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24615
24616
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24616
24617
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24617
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24618
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24618
24619
|
let fetchResult;
|
|
24619
24620
|
try {
|
|
24620
24621
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25299,7 +25300,7 @@ var Group = class Group extends Object$1 {
|
|
|
25299
25300
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25300
25301
|
*/
|
|
25301
25302
|
static async fromJsonLd(json, options = {}) {
|
|
25302
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
25303
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25303
25304
|
try {
|
|
25304
25305
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
25305
25306
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25991,7 +25992,7 @@ var Link = class Link {
|
|
|
25991
25992
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25992
25993
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25993
25994
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25994
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25995
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25995
25996
|
let fetchResult;
|
|
25996
25997
|
try {
|
|
25997
25998
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26283,7 +26284,7 @@ var Link = class Link {
|
|
|
26283
26284
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26284
26285
|
*/
|
|
26285
26286
|
static async fromJsonLd(json, options = {}) {
|
|
26286
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26287
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26287
26288
|
try {
|
|
26288
26289
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
26289
26290
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26616,7 +26617,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
26616
26617
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26617
26618
|
*/
|
|
26618
26619
|
static async fromJsonLd(json, options = {}) {
|
|
26619
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26620
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26620
26621
|
try {
|
|
26621
26622
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
26622
26623
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26778,7 +26779,7 @@ var Image = class Image extends Document {
|
|
|
26778
26779
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26779
26780
|
*/
|
|
26780
26781
|
static async fromJsonLd(json, options = {}) {
|
|
26781
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26782
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26782
26783
|
try {
|
|
26783
26784
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
26784
26785
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26928,7 +26929,7 @@ var Offer = class Offer extends Activity {
|
|
|
26928
26929
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26929
26930
|
*/
|
|
26930
26931
|
static async fromJsonLd(json, options = {}) {
|
|
26931
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26932
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26932
26933
|
try {
|
|
26933
26934
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
26934
26935
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27078,7 +27079,7 @@ var Invite = class Invite extends Offer {
|
|
|
27078
27079
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27079
27080
|
*/
|
|
27080
27081
|
static async fromJsonLd(json, options = {}) {
|
|
27081
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27082
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27082
27083
|
try {
|
|
27083
27084
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
27084
27085
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27227,7 +27228,7 @@ var Join = class Join extends Activity {
|
|
|
27227
27228
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27228
27229
|
*/
|
|
27229
27230
|
static async fromJsonLd(json, options = {}) {
|
|
27230
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27231
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27231
27232
|
try {
|
|
27232
27233
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
27233
27234
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27376,7 +27377,7 @@ var Leave = class Leave extends Activity {
|
|
|
27376
27377
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27377
27378
|
*/
|
|
27378
27379
|
static async fromJsonLd(json, options = {}) {
|
|
27379
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27380
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27380
27381
|
try {
|
|
27381
27382
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
27382
27383
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27529,7 +27530,7 @@ var Like = class Like extends Activity {
|
|
|
27529
27530
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27530
27531
|
*/
|
|
27531
27532
|
static async fromJsonLd(json, options = {}) {
|
|
27532
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27533
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27533
27534
|
try {
|
|
27534
27535
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
27535
27536
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27677,7 +27678,7 @@ var Listen = class Listen extends Activity {
|
|
|
27677
27678
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27678
27679
|
*/
|
|
27679
27680
|
static async fromJsonLd(json, options = {}) {
|
|
27680
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27681
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27681
27682
|
try {
|
|
27682
27683
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
27683
27684
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27828,7 +27829,7 @@ var Mention = class Mention extends Link {
|
|
|
27828
27829
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27829
27830
|
*/
|
|
27830
27831
|
static async fromJsonLd(json, options = {}) {
|
|
27831
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27832
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27832
27833
|
try {
|
|
27833
27834
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
27834
27835
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27978,7 +27979,7 @@ var Move = class Move extends Activity {
|
|
|
27978
27979
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27979
27980
|
*/
|
|
27980
27981
|
static async fromJsonLd(json, options = {}) {
|
|
27981
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27982
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27982
27983
|
try {
|
|
27983
27984
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
27984
27985
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28216,7 +28217,7 @@ var Note = class Note extends Object$1 {
|
|
|
28216
28217
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28217
28218
|
*/
|
|
28218
28219
|
static async fromJsonLd(json, options = {}) {
|
|
28219
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28220
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28220
28221
|
try {
|
|
28221
28222
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
28222
28223
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28345,7 +28346,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
28345
28346
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28346
28347
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28347
28348
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28348
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
28349
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28349
28350
|
let fetchResult;
|
|
28350
28351
|
try {
|
|
28351
28352
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28595,7 +28596,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
28595
28596
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28596
28597
|
*/
|
|
28597
28598
|
static async fromJsonLd(json, options = {}) {
|
|
28598
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28599
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28599
28600
|
try {
|
|
28600
28601
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
28601
28602
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28807,7 +28808,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
28807
28808
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28808
28809
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28809
28810
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28810
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
28811
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28811
28812
|
let fetchResult;
|
|
28812
28813
|
try {
|
|
28813
28814
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29080,7 +29081,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
29080
29081
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29081
29082
|
*/
|
|
29082
29083
|
static async fromJsonLd(json, options = {}) {
|
|
29083
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
29084
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29084
29085
|
try {
|
|
29085
29086
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
29086
29087
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29578,7 +29579,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29578
29579
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29579
29580
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29580
29581
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29581
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
29582
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29582
29583
|
let fetchResult;
|
|
29583
29584
|
try {
|
|
29584
29585
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29740,7 +29741,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29740
29741
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29741
29742
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29742
29743
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29743
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
29744
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29744
29745
|
let fetchResult;
|
|
29745
29746
|
try {
|
|
29746
29747
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29920,7 +29921,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29920
29921
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29921
29922
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29922
29923
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29923
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
29924
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29924
29925
|
let fetchResult;
|
|
29925
29926
|
try {
|
|
29926
29927
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30062,7 +30063,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30062
30063
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30063
30064
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30064
30065
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30065
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30066
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30066
30067
|
let fetchResult;
|
|
30067
30068
|
try {
|
|
30068
30069
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30201,7 +30202,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30201
30202
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30202
30203
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30203
30204
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30204
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30205
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30205
30206
|
let fetchResult;
|
|
30206
30207
|
try {
|
|
30207
30208
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30325,7 +30326,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30325
30326
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30326
30327
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30327
30328
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30328
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30329
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30329
30330
|
let fetchResult;
|
|
30330
30331
|
try {
|
|
30331
30332
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30452,7 +30453,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30452
30453
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30453
30454
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30454
30455
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30455
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30456
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30456
30457
|
let fetchResult;
|
|
30457
30458
|
try {
|
|
30458
30459
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30577,7 +30578,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30577
30578
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30578
30579
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30579
30580
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30580
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30581
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30581
30582
|
let fetchResult;
|
|
30582
30583
|
try {
|
|
30583
30584
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30700,7 +30701,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30700
30701
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30701
30702
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30702
30703
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30703
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30704
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30704
30705
|
let fetchResult;
|
|
30705
30706
|
try {
|
|
30706
30707
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30823,7 +30824,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30823
30824
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30824
30825
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30825
30826
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30826
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30827
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30827
30828
|
let fetchResult;
|
|
30828
30829
|
try {
|
|
30829
30830
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30985,7 +30986,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30985
30986
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30986
30987
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30987
30988
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30988
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30989
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30989
30990
|
let fetchResult;
|
|
30990
30991
|
try {
|
|
30991
30992
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31151,7 +31152,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31151
31152
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31152
31153
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31153
31154
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31154
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31155
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31155
31156
|
let fetchResult;
|
|
31156
31157
|
try {
|
|
31157
31158
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31365,7 +31366,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31365
31366
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31366
31367
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31367
31368
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31368
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31369
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31369
31370
|
let fetchResult;
|
|
31370
31371
|
try {
|
|
31371
31372
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32050,7 +32051,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32050
32051
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32051
32052
|
*/
|
|
32052
32053
|
static async fromJsonLd(json, options = {}) {
|
|
32053
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
32054
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32054
32055
|
try {
|
|
32055
32056
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
32056
32057
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32616,7 +32617,7 @@ var Page = class Page extends Document {
|
|
|
32616
32617
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32617
32618
|
*/
|
|
32618
32619
|
static async fromJsonLd(json, options = {}) {
|
|
32619
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
32620
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32620
32621
|
try {
|
|
32621
32622
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
32622
32623
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33011,7 +33012,7 @@ var Person = class Person extends Object$1 {
|
|
|
33011
33012
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33012
33013
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33013
33014
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33014
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33015
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33015
33016
|
let fetchResult;
|
|
33016
33017
|
try {
|
|
33017
33018
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33173,7 +33174,7 @@ var Person = class Person extends Object$1 {
|
|
|
33173
33174
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33174
33175
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33175
33176
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33176
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33177
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33177
33178
|
let fetchResult;
|
|
33178
33179
|
try {
|
|
33179
33180
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33353,7 +33354,7 @@ var Person = class Person extends Object$1 {
|
|
|
33353
33354
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33354
33355
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33355
33356
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33356
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33357
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33357
33358
|
let fetchResult;
|
|
33358
33359
|
try {
|
|
33359
33360
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33495,7 +33496,7 @@ var Person = class Person extends Object$1 {
|
|
|
33495
33496
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33496
33497
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33497
33498
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33498
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33499
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33499
33500
|
let fetchResult;
|
|
33500
33501
|
try {
|
|
33501
33502
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33634,7 +33635,7 @@ var Person = class Person extends Object$1 {
|
|
|
33634
33635
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33635
33636
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33636
33637
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33637
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33638
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33638
33639
|
let fetchResult;
|
|
33639
33640
|
try {
|
|
33640
33641
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33758,7 +33759,7 @@ var Person = class Person extends Object$1 {
|
|
|
33758
33759
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33759
33760
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33760
33761
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33761
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33762
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33762
33763
|
let fetchResult;
|
|
33763
33764
|
try {
|
|
33764
33765
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33885,7 +33886,7 @@ var Person = class Person extends Object$1 {
|
|
|
33885
33886
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33886
33887
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33887
33888
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33888
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33889
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33889
33890
|
let fetchResult;
|
|
33890
33891
|
try {
|
|
33891
33892
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34010,7 +34011,7 @@ var Person = class Person extends Object$1 {
|
|
|
34010
34011
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34011
34012
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34012
34013
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34013
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34014
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34014
34015
|
let fetchResult;
|
|
34015
34016
|
try {
|
|
34016
34017
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34133,7 +34134,7 @@ var Person = class Person extends Object$1 {
|
|
|
34133
34134
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34134
34135
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34135
34136
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34136
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34137
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34137
34138
|
let fetchResult;
|
|
34138
34139
|
try {
|
|
34139
34140
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34256,7 +34257,7 @@ var Person = class Person extends Object$1 {
|
|
|
34256
34257
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34257
34258
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34258
34259
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34259
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34260
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34260
34261
|
let fetchResult;
|
|
34261
34262
|
try {
|
|
34262
34263
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34418,7 +34419,7 @@ var Person = class Person extends Object$1 {
|
|
|
34418
34419
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34419
34420
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34420
34421
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34421
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34422
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34422
34423
|
let fetchResult;
|
|
34423
34424
|
try {
|
|
34424
34425
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34584,7 +34585,7 @@ var Person = class Person extends Object$1 {
|
|
|
34584
34585
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34585
34586
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34586
34587
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34587
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34588
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34588
34589
|
let fetchResult;
|
|
34589
34590
|
try {
|
|
34590
34591
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34798,7 +34799,7 @@ var Person = class Person extends Object$1 {
|
|
|
34798
34799
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34799
34800
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34800
34801
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34801
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34802
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34802
34803
|
let fetchResult;
|
|
34803
34804
|
try {
|
|
34804
34805
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35483,7 +35484,7 @@ var Person = class Person extends Object$1 {
|
|
|
35483
35484
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35484
35485
|
*/
|
|
35485
35486
|
static async fromJsonLd(json, options = {}) {
|
|
35486
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
35487
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35487
35488
|
try {
|
|
35488
35489
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
35489
35490
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36226,7 +36227,7 @@ var Place = class Place extends Object$1 {
|
|
|
36226
36227
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36227
36228
|
*/
|
|
36228
36229
|
static async fromJsonLd(json, options = {}) {
|
|
36229
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
36230
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36230
36231
|
try {
|
|
36231
36232
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
36232
36233
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36417,7 +36418,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
36417
36418
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36418
36419
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36419
36420
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36420
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36421
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36421
36422
|
let fetchResult;
|
|
36422
36423
|
try {
|
|
36423
36424
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36618,7 +36619,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
36618
36619
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36619
36620
|
*/
|
|
36620
36621
|
static async fromJsonLd(json, options = {}) {
|
|
36621
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
36622
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36622
36623
|
try {
|
|
36623
36624
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
36624
36625
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36738,7 +36739,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36738
36739
|
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
36739
36740
|
for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
36740
36741
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
36741
|
-
if ("closed" in values && values.closed != null) if (values.closed
|
|
36742
|
+
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
36742
36743
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
36743
36744
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
36744
36745
|
else throw new TypeError("The voters must be of type number.");
|
|
@@ -36775,7 +36776,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36775
36776
|
for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
36776
36777
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
36777
36778
|
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
36778
|
-
if ("closed" in values && values.closed != null) if (values.closed
|
|
36779
|
+
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
36779
36780
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
36780
36781
|
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
36781
36782
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
@@ -36789,7 +36790,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36789
36790
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36790
36791
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36791
36792
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36792
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36793
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36793
36794
|
let fetchResult;
|
|
36794
36795
|
try {
|
|
36795
36796
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36911,7 +36912,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36911
36912
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36912
36913
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36913
36914
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36914
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36915
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36915
36916
|
let fetchResult;
|
|
36916
36917
|
try {
|
|
36917
36918
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37098,7 +37099,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
37098
37099
|
if (array.length > 0) values["https://www.w3.org/ns/activitystreams#anyOf"] = array;
|
|
37099
37100
|
array = [];
|
|
37100
37101
|
for (const v of this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed) {
|
|
37101
|
-
const element = v
|
|
37102
|
+
const element = isTemporalInstant(v) ? {
|
|
37102
37103
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
|
37103
37104
|
"@value": v.toString()
|
|
37104
37105
|
} : { "@value": v };
|
|
@@ -37175,7 +37176,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
37175
37176
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37176
37177
|
*/
|
|
37177
37178
|
static async fromJsonLd(json, options = {}) {
|
|
37178
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
37179
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37179
37180
|
try {
|
|
37180
37181
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
37181
37182
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37402,7 +37403,7 @@ var Read = class Read extends Activity {
|
|
|
37402
37403
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37403
37404
|
*/
|
|
37404
37405
|
static async fromJsonLd(json, options = {}) {
|
|
37405
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
37406
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37406
37407
|
try {
|
|
37407
37408
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
37408
37409
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37551,7 +37552,7 @@ var Reject = class Reject extends Activity {
|
|
|
37551
37552
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37552
37553
|
*/
|
|
37553
37554
|
static async fromJsonLd(json, options = {}) {
|
|
37554
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
37555
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37555
37556
|
try {
|
|
37556
37557
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
37557
37558
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37724,7 +37725,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
37724
37725
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37725
37726
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37726
37727
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37727
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
37728
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37728
37729
|
let fetchResult;
|
|
37729
37730
|
try {
|
|
37730
37731
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37847,7 +37848,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
37847
37848
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37848
37849
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37849
37850
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37850
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
37851
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37851
37852
|
let fetchResult;
|
|
37852
37853
|
try {
|
|
37853
37854
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38009,7 +38010,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
38009
38010
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38010
38011
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38011
38012
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38012
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
38013
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38013
38014
|
let fetchResult;
|
|
38014
38015
|
try {
|
|
38015
38016
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38287,7 +38288,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
38287
38288
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38288
38289
|
*/
|
|
38289
38290
|
static async fromJsonLd(json, options = {}) {
|
|
38290
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
38291
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38291
38292
|
try {
|
|
38292
38293
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
38293
38294
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38496,7 +38497,7 @@ var Remove = class Remove extends Activity {
|
|
|
38496
38497
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38497
38498
|
*/
|
|
38498
38499
|
static async fromJsonLd(json, options = {}) {
|
|
38499
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
38500
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38500
38501
|
try {
|
|
38501
38502
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
38502
38503
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38891,7 +38892,7 @@ var Service = class Service extends Object$1 {
|
|
|
38891
38892
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38892
38893
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38893
38894
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38894
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
38895
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38895
38896
|
let fetchResult;
|
|
38896
38897
|
try {
|
|
38897
38898
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39053,7 +39054,7 @@ var Service = class Service extends Object$1 {
|
|
|
39053
39054
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39054
39055
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39055
39056
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39056
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39057
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39057
39058
|
let fetchResult;
|
|
39058
39059
|
try {
|
|
39059
39060
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39233,7 +39234,7 @@ var Service = class Service extends Object$1 {
|
|
|
39233
39234
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39234
39235
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39235
39236
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39236
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39237
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39237
39238
|
let fetchResult;
|
|
39238
39239
|
try {
|
|
39239
39240
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39375,7 +39376,7 @@ var Service = class Service extends Object$1 {
|
|
|
39375
39376
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39376
39377
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39377
39378
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39378
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39379
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39379
39380
|
let fetchResult;
|
|
39380
39381
|
try {
|
|
39381
39382
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39514,7 +39515,7 @@ var Service = class Service extends Object$1 {
|
|
|
39514
39515
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39515
39516
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39516
39517
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39517
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39518
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39518
39519
|
let fetchResult;
|
|
39519
39520
|
try {
|
|
39520
39521
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39638,7 +39639,7 @@ var Service = class Service extends Object$1 {
|
|
|
39638
39639
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39639
39640
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39640
39641
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39641
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39642
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39642
39643
|
let fetchResult;
|
|
39643
39644
|
try {
|
|
39644
39645
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39765,7 +39766,7 @@ var Service = class Service extends Object$1 {
|
|
|
39765
39766
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39766
39767
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39767
39768
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39768
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39769
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39769
39770
|
let fetchResult;
|
|
39770
39771
|
try {
|
|
39771
39772
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39890,7 +39891,7 @@ var Service = class Service extends Object$1 {
|
|
|
39890
39891
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39891
39892
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39892
39893
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39893
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39894
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39894
39895
|
let fetchResult;
|
|
39895
39896
|
try {
|
|
39896
39897
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40013,7 +40014,7 @@ var Service = class Service extends Object$1 {
|
|
|
40013
40014
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40014
40015
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40015
40016
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40016
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40017
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40017
40018
|
let fetchResult;
|
|
40018
40019
|
try {
|
|
40019
40020
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40136,7 +40137,7 @@ var Service = class Service extends Object$1 {
|
|
|
40136
40137
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40137
40138
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40138
40139
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40139
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40140
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40140
40141
|
let fetchResult;
|
|
40141
40142
|
try {
|
|
40142
40143
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40298,7 +40299,7 @@ var Service = class Service extends Object$1 {
|
|
|
40298
40299
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40299
40300
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40300
40301
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40301
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40302
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40302
40303
|
let fetchResult;
|
|
40303
40304
|
try {
|
|
40304
40305
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40464,7 +40465,7 @@ var Service = class Service extends Object$1 {
|
|
|
40464
40465
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40465
40466
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40466
40467
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40467
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40468
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40468
40469
|
let fetchResult;
|
|
40469
40470
|
try {
|
|
40470
40471
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40678,7 +40679,7 @@ var Service = class Service extends Object$1 {
|
|
|
40678
40679
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40679
40680
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40680
40681
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40681
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40682
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40682
40683
|
let fetchResult;
|
|
40683
40684
|
try {
|
|
40684
40685
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41363,7 +41364,7 @@ var Service = class Service extends Object$1 {
|
|
|
41363
41364
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41364
41365
|
*/
|
|
41365
41366
|
static async fromJsonLd(json, options = {}) {
|
|
41366
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
41367
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41367
41368
|
try {
|
|
41368
41369
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
41369
41370
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42011,7 +42012,7 @@ var Source = class {
|
|
|
42011
42012
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42012
42013
|
*/
|
|
42013
42014
|
static async fromJsonLd(json, options = {}) {
|
|
42014
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42015
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42015
42016
|
try {
|
|
42016
42017
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
42017
42018
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42187,7 +42188,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
42187
42188
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42188
42189
|
*/
|
|
42189
42190
|
static async fromJsonLd(json, options = {}) {
|
|
42190
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42191
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42191
42192
|
try {
|
|
42192
42193
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
42193
42194
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42336,7 +42337,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
42336
42337
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42337
42338
|
*/
|
|
42338
42339
|
static async fromJsonLd(json, options = {}) {
|
|
42339
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42340
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42340
42341
|
try {
|
|
42341
42342
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
42342
42343
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42417,7 +42418,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
42417
42418
|
*/
|
|
42418
42419
|
constructor(values, options = {}) {
|
|
42419
42420
|
super(values, options);
|
|
42420
|
-
if ("deleted" in values && values.deleted != null) if (values.deleted
|
|
42421
|
+
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
42421
42422
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
42422
42423
|
}
|
|
42423
42424
|
/**
|
|
@@ -42436,7 +42437,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
42436
42437
|
}
|
|
42437
42438
|
const clone = super.clone(values, options);
|
|
42438
42439
|
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
42439
|
-
if ("deleted" in values && values.deleted != null) if (values.deleted
|
|
42440
|
+
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
42440
42441
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
42441
42442
|
return clone;
|
|
42442
42443
|
}
|
|
@@ -42531,7 +42532,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
42531
42532
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42532
42533
|
*/
|
|
42533
42534
|
static async fromJsonLd(json, options = {}) {
|
|
42534
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42535
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42535
42536
|
try {
|
|
42536
42537
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
42537
42538
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42695,7 +42696,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
42695
42696
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42696
42697
|
*/
|
|
42697
42698
|
static async fromJsonLd(json, options = {}) {
|
|
42698
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42699
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42699
42700
|
try {
|
|
42700
42701
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
42701
42702
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42858,7 +42859,7 @@ var Undo = class Undo extends Activity {
|
|
|
42858
42859
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42859
42860
|
*/
|
|
42860
42861
|
static async fromJsonLd(json, options = {}) {
|
|
42861
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42862
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42862
42863
|
try {
|
|
42863
42864
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
42864
42865
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43059,7 +43060,7 @@ var Update = class Update extends Activity {
|
|
|
43059
43060
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43060
43061
|
*/
|
|
43061
43062
|
static async fromJsonLd(json, options = {}) {
|
|
43062
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
43063
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43063
43064
|
try {
|
|
43064
43065
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
43065
43066
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43221,7 +43222,7 @@ var Video = class Video extends Document {
|
|
|
43221
43222
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43222
43223
|
*/
|
|
43223
43224
|
static async fromJsonLd(json, options = {}) {
|
|
43224
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
43225
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43225
43226
|
try {
|
|
43226
43227
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
43227
43228
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43369,7 +43370,7 @@ var View = class View extends Activity {
|
|
|
43369
43370
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43370
43371
|
*/
|
|
43371
43372
|
static async fromJsonLd(json, options = {}) {
|
|
43372
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
43373
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43373
43374
|
try {
|
|
43374
43375
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
43375
43376
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|