@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
package/dist/mod.js
CHANGED
|
@@ -5,10 +5,11 @@ import { domainToASCII, domainToUnicode } from "node:url";
|
|
|
5
5
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { LanguageString, LanguageString as LanguageString$1, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, getDocumentLoader, importMultibaseKey, importPem } from "@fedify/vocab-runtime";
|
|
8
|
+
import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/temporal";
|
|
8
9
|
import { delay } from "es-toolkit";
|
|
9
10
|
//#region deno.json
|
|
10
11
|
var name = "@fedify/vocab";
|
|
11
|
-
var version = "2.1.
|
|
12
|
+
var version = "2.1.13";
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region src/type.ts
|
|
14
15
|
function getTypeId(object) {
|
|
@@ -170,7 +171,7 @@ var Object$1 = class Object$1 {
|
|
|
170
171
|
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
171
172
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
172
173
|
}
|
|
173
|
-
if ("endTime" in values && values.endTime != null) if (values.endTime
|
|
174
|
+
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
174
175
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
175
176
|
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)) {
|
|
176
177
|
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
@@ -231,7 +232,7 @@ var Object$1 = class Object$1 {
|
|
|
231
232
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
232
233
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
233
234
|
}
|
|
234
|
-
if ("published" in values && values.published != null) if (values.published
|
|
235
|
+
if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
|
|
235
236
|
else throw new TypeError("The published must be of type Temporal.Instant.");
|
|
236
237
|
if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
|
|
237
238
|
this.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
|
|
@@ -249,7 +250,7 @@ var Object$1 = class Object$1 {
|
|
|
249
250
|
this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
|
|
250
251
|
this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.add(0);
|
|
251
252
|
} else throw new TypeError("The emojiReactions must be of type Collection | URL.");
|
|
252
|
-
if ("startTime" in values && values.startTime != null) if (values.startTime
|
|
253
|
+
if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
|
|
253
254
|
else throw new TypeError("The startTime must be of type Temporal.Instant.");
|
|
254
255
|
if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString$1) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
|
|
255
256
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
@@ -262,7 +263,7 @@ var Object$1 = class Object$1 {
|
|
|
262
263
|
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
263
264
|
for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
264
265
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
265
|
-
if ("updated" in values && values.updated != null) if (values.updated
|
|
266
|
+
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
266
267
|
else throw new TypeError("The updated must be of type Temporal.Instant.");
|
|
267
268
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
268
269
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
@@ -317,7 +318,7 @@ var Object$1 = class Object$1 {
|
|
|
317
318
|
}
|
|
318
319
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
319
320
|
else throw new TypeError("The mediaType must be of type string.");
|
|
320
|
-
if ("duration" in values && values.duration != null) if (values.duration
|
|
321
|
+
if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
|
|
321
322
|
else throw new TypeError("The duration must be of type Temporal.Duration.");
|
|
322
323
|
if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
|
|
323
324
|
else throw new TypeError("The sensitive must be of type boolean.");
|
|
@@ -425,7 +426,7 @@ var Object$1 = class Object$1 {
|
|
|
425
426
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
426
427
|
}
|
|
427
428
|
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
428
|
-
if ("endTime" in values && values.endTime != null) if (values.endTime
|
|
429
|
+
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
429
430
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
430
431
|
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
431
432
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
|
|
@@ -505,7 +506,7 @@ var Object$1 = class Object$1 {
|
|
|
505
506
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
506
507
|
}
|
|
507
508
|
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
508
|
-
if ("published" in values && values.published != null) if (values.published
|
|
509
|
+
if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
|
|
509
510
|
else throw new TypeError("The published must be of type Temporal.Instant.");
|
|
510
511
|
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
511
512
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
|
|
@@ -532,7 +533,7 @@ var Object$1 = class Object$1 {
|
|
|
532
533
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set([0]);
|
|
533
534
|
} else throw new TypeError("The emojiReactions must be of type Collection | URL.");
|
|
534
535
|
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
535
|
-
if ("startTime" in values && values.startTime != null) if (values.startTime
|
|
536
|
+
if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
|
|
536
537
|
else throw new TypeError("The startTime must be of type Temporal.Instant.");
|
|
537
538
|
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
538
539
|
if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString$1) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
|
|
@@ -550,7 +551,7 @@ var Object$1 = class Object$1 {
|
|
|
550
551
|
for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
551
552
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
552
553
|
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
553
|
-
if ("updated" in values && values.updated != null) if (values.updated
|
|
554
|
+
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
554
555
|
else throw new TypeError("The updated must be of type Temporal.Instant.");
|
|
555
556
|
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
556
557
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
@@ -620,7 +621,7 @@ var Object$1 = class Object$1 {
|
|
|
620
621
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
621
622
|
else throw new TypeError("The mediaType must be of type string.");
|
|
622
623
|
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
623
|
-
if ("duration" in values && values.duration != null) if (values.duration
|
|
624
|
+
if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
|
|
624
625
|
else throw new TypeError("The duration must be of type Temporal.Duration.");
|
|
625
626
|
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
626
627
|
if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
|
|
@@ -672,7 +673,7 @@ var Object$1 = class Object$1 {
|
|
|
672
673
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
673
674
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
674
675
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
675
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
676
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
676
677
|
let fetchResult;
|
|
677
678
|
try {
|
|
678
679
|
fetchResult = await documentLoader(url.href);
|
|
@@ -818,7 +819,7 @@ var Object$1 = class Object$1 {
|
|
|
818
819
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
819
820
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
820
821
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
821
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
822
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
822
823
|
let fetchResult;
|
|
823
824
|
try {
|
|
824
825
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1030,7 +1031,7 @@ var Object$1 = class Object$1 {
|
|
|
1030
1031
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1031
1032
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1032
1033
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1033
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1034
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1034
1035
|
let fetchResult;
|
|
1035
1036
|
try {
|
|
1036
1037
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1214,7 +1215,7 @@ var Object$1 = class Object$1 {
|
|
|
1214
1215
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1215
1216
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1216
1217
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1217
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1218
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1218
1219
|
let fetchResult;
|
|
1219
1220
|
try {
|
|
1220
1221
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1376,7 +1377,7 @@ var Object$1 = class Object$1 {
|
|
|
1376
1377
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1377
1378
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1378
1379
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1379
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1380
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1380
1381
|
let fetchResult;
|
|
1381
1382
|
try {
|
|
1382
1383
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1506,7 +1507,7 @@ var Object$1 = class Object$1 {
|
|
|
1506
1507
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1507
1508
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1508
1509
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1509
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1510
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1510
1511
|
let fetchResult;
|
|
1511
1512
|
try {
|
|
1512
1513
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1672,7 +1673,7 @@ var Object$1 = class Object$1 {
|
|
|
1672
1673
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1673
1674
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1674
1675
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1675
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1676
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1676
1677
|
let fetchResult;
|
|
1677
1678
|
try {
|
|
1678
1679
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1838,7 +1839,7 @@ var Object$1 = class Object$1 {
|
|
|
1838
1839
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1839
1840
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1840
1841
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1841
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1842
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1842
1843
|
let fetchResult;
|
|
1843
1844
|
try {
|
|
1844
1845
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2012,7 +2013,7 @@ var Object$1 = class Object$1 {
|
|
|
2012
2013
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2013
2014
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2014
2015
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2015
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2016
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2016
2017
|
let fetchResult;
|
|
2017
2018
|
try {
|
|
2018
2019
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2186,7 +2187,7 @@ var Object$1 = class Object$1 {
|
|
|
2186
2187
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2187
2188
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2188
2189
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2189
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2190
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2190
2191
|
let fetchResult;
|
|
2191
2192
|
try {
|
|
2192
2193
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2365,7 +2366,7 @@ var Object$1 = class Object$1 {
|
|
|
2365
2366
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2366
2367
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2367
2368
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2368
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2369
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2369
2370
|
let fetchResult;
|
|
2370
2371
|
try {
|
|
2371
2372
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2486,7 +2487,7 @@ var Object$1 = class Object$1 {
|
|
|
2486
2487
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2487
2488
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2488
2489
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2489
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2490
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2490
2491
|
let fetchResult;
|
|
2491
2492
|
try {
|
|
2492
2493
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2613,7 +2614,7 @@ var Object$1 = class Object$1 {
|
|
|
2613
2614
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2614
2615
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2615
2616
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2616
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2617
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2617
2618
|
let fetchResult;
|
|
2618
2619
|
try {
|
|
2619
2620
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2740,7 +2741,7 @@ var Object$1 = class Object$1 {
|
|
|
2740
2741
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2741
2742
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2742
2743
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2743
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2744
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2744
2745
|
let fetchResult;
|
|
2745
2746
|
try {
|
|
2746
2747
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2885,7 +2886,7 @@ var Object$1 = class Object$1 {
|
|
|
2885
2886
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2886
2887
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2887
2888
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2888
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2889
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2889
2890
|
let fetchResult;
|
|
2890
2891
|
try {
|
|
2891
2892
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3037,7 +3038,7 @@ var Object$1 = class Object$1 {
|
|
|
3037
3038
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3038
3039
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3039
3040
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3040
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3041
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3041
3042
|
let fetchResult;
|
|
3042
3043
|
try {
|
|
3043
3044
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3201,7 +3202,7 @@ var Object$1 = class Object$1 {
|
|
|
3201
3202
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3202
3203
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3203
3204
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3204
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3205
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3205
3206
|
let fetchResult;
|
|
3206
3207
|
try {
|
|
3207
3208
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3365,7 +3366,7 @@ var Object$1 = class Object$1 {
|
|
|
3365
3366
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3366
3367
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3367
3368
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3368
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3369
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3369
3370
|
let fetchResult;
|
|
3370
3371
|
try {
|
|
3371
3372
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3529,7 +3530,7 @@ var Object$1 = class Object$1 {
|
|
|
3529
3530
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3530
3531
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3531
3532
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3532
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3533
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3533
3534
|
let fetchResult;
|
|
3534
3535
|
try {
|
|
3535
3536
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3730,7 +3731,7 @@ var Object$1 = class Object$1 {
|
|
|
3730
3731
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3731
3732
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3732
3733
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3733
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3734
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3734
3735
|
let fetchResult;
|
|
3735
3736
|
try {
|
|
3736
3737
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3917,7 +3918,7 @@ var Object$1 = class Object$1 {
|
|
|
3917
3918
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3918
3919
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3919
3920
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3920
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3921
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3921
3922
|
let fetchResult;
|
|
3922
3923
|
try {
|
|
3923
3924
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4038,7 +4039,7 @@ var Object$1 = class Object$1 {
|
|
|
4038
4039
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4039
4040
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4040
4041
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4041
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4042
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4042
4043
|
let fetchResult;
|
|
4043
4044
|
try {
|
|
4044
4045
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4159,7 +4160,7 @@ var Object$1 = class Object$1 {
|
|
|
4159
4160
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4160
4161
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4161
4162
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4162
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4163
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4163
4164
|
let fetchResult;
|
|
4164
4165
|
try {
|
|
4165
4166
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4986,7 +4987,7 @@ var Object$1 = class Object$1 {
|
|
|
4986
4987
|
* @throws {TypeError} If the given `json` is invalid.
|
|
4987
4988
|
*/
|
|
4988
4989
|
static async fromJsonLd(json, options = {}) {
|
|
4989
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
4990
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
4990
4991
|
try {
|
|
4991
4992
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
4992
4993
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6362,7 +6363,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6362
6363
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6363
6364
|
*/
|
|
6364
6365
|
static async fromJsonLd(json, options = {}) {
|
|
6365
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
6366
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6366
6367
|
try {
|
|
6367
6368
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
6368
6369
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6601,7 +6602,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6601
6602
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6602
6603
|
*/
|
|
6603
6604
|
static async fromJsonLd(json, options = {}) {
|
|
6604
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
6605
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6605
6606
|
try {
|
|
6606
6607
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
6607
6608
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6882,7 +6883,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
6882
6883
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6883
6884
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6884
6885
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6885
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
6886
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6886
6887
|
let fetchResult;
|
|
6887
6888
|
try {
|
|
6888
6889
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7094,7 +7095,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7094
7095
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7095
7096
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7096
7097
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7097
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7098
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7098
7099
|
let fetchResult;
|
|
7099
7100
|
try {
|
|
7100
7101
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7260,7 +7261,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7260
7261
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7261
7262
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7262
7263
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7263
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7264
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7264
7265
|
let fetchResult;
|
|
7265
7266
|
try {
|
|
7266
7267
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7432,7 +7433,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7432
7433
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7433
7434
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7434
7435
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7435
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7436
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7436
7437
|
let fetchResult;
|
|
7437
7438
|
try {
|
|
7438
7439
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7598,7 +7599,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7598
7599
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7599
7600
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7600
7601
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7601
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7602
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7602
7603
|
let fetchResult;
|
|
7603
7604
|
try {
|
|
7604
7605
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7766,7 +7767,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7766
7767
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7767
7768
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7768
7769
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7769
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7770
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7770
7771
|
let fetchResult;
|
|
7771
7772
|
try {
|
|
7772
7773
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8017,7 +8018,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8017
8018
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8018
8019
|
*/
|
|
8019
8020
|
static async fromJsonLd(json, options = {}) {
|
|
8020
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
8021
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8021
8022
|
try {
|
|
8022
8023
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
8023
8024
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8339,7 +8340,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8339
8340
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8340
8341
|
*/
|
|
8341
8342
|
static async fromJsonLd(json, options = {}) {
|
|
8342
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
8343
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8343
8344
|
try {
|
|
8344
8345
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
8345
8346
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8585,7 +8586,7 @@ var PropertyValue = class {
|
|
|
8585
8586
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8586
8587
|
*/
|
|
8587
8588
|
static async fromJsonLd(json, options = {}) {
|
|
8588
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
8589
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8589
8590
|
try {
|
|
8590
8591
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
8591
8592
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8745,7 +8746,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
8745
8746
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8746
8747
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8747
8748
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8748
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
8749
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8749
8750
|
let fetchResult;
|
|
8750
8751
|
try {
|
|
8751
8752
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8866,7 +8867,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
8866
8867
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8867
8868
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8868
8869
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8869
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
8870
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8870
8871
|
let fetchResult;
|
|
8871
8872
|
try {
|
|
8872
8873
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9082,7 +9083,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9082
9083
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9083
9084
|
*/
|
|
9084
9085
|
static async fromJsonLd(json, options = {}) {
|
|
9085
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9086
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9086
9087
|
try {
|
|
9087
9088
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
9088
9089
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9279,7 +9280,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
9279
9280
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9280
9281
|
*/
|
|
9281
9282
|
static async fromJsonLd(json, options = {}) {
|
|
9282
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9283
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9283
9284
|
try {
|
|
9284
9285
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
9285
9286
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9519,7 +9520,7 @@ var InteractionPolicy = class {
|
|
|
9519
9520
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9520
9521
|
*/
|
|
9521
9522
|
static async fromJsonLd(json, options = {}) {
|
|
9522
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9523
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9523
9524
|
try {
|
|
9524
9525
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
9525
9526
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9821,7 +9822,7 @@ var InteractionRule = class {
|
|
|
9821
9822
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9822
9823
|
*/
|
|
9823
9824
|
static async fromJsonLd(json, options = {}) {
|
|
9824
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9825
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9825
9826
|
try {
|
|
9826
9827
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
9827
9828
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9978,7 +9979,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
9978
9979
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9979
9980
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9980
9981
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9981
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
9982
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9982
9983
|
let fetchResult;
|
|
9983
9984
|
try {
|
|
9984
9985
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10099,7 +10100,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10099
10100
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10100
10101
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10101
10102
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10102
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10103
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10103
10104
|
let fetchResult;
|
|
10104
10105
|
try {
|
|
10105
10106
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10315,7 +10316,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10315
10316
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10316
10317
|
*/
|
|
10317
10318
|
static async fromJsonLd(json, options = {}) {
|
|
10318
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10319
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10319
10320
|
try {
|
|
10320
10321
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
10321
10322
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10511,7 +10512,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
10511
10512
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10512
10513
|
*/
|
|
10513
10514
|
static async fromJsonLd(json, options = {}) {
|
|
10514
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10515
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10515
10516
|
try {
|
|
10516
10517
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
10517
10518
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10642,7 +10643,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
10642
10643
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10643
10644
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10644
10645
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10645
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10646
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10646
10647
|
let fetchResult;
|
|
10647
10648
|
try {
|
|
10648
10649
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10763,7 +10764,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
10763
10764
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10764
10765
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10765
10766
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10766
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10767
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10767
10768
|
let fetchResult;
|
|
10768
10769
|
try {
|
|
10769
10770
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10979,7 +10980,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
10979
10980
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10980
10981
|
*/
|
|
10981
10982
|
static async fromJsonLd(json, options = {}) {
|
|
10982
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10983
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10983
10984
|
try {
|
|
10984
10985
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
10985
10986
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11175,7 +11176,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
11175
11176
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11176
11177
|
*/
|
|
11177
11178
|
static async fromJsonLd(json, options = {}) {
|
|
11178
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11179
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11179
11180
|
try {
|
|
11180
11181
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
11181
11182
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11381,7 +11382,7 @@ var DidService = class {
|
|
|
11381
11382
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11382
11383
|
*/
|
|
11383
11384
|
static async fromJsonLd(json, options = {}) {
|
|
11384
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11385
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11385
11386
|
try {
|
|
11386
11387
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
11387
11388
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11535,7 +11536,7 @@ var Export = class Export extends DidService {
|
|
|
11535
11536
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11536
11537
|
*/
|
|
11537
11538
|
static async fromJsonLd(json, options = {}) {
|
|
11538
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11539
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11539
11540
|
try {
|
|
11540
11541
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
11541
11542
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11659,7 +11660,7 @@ var DataIntegrityProof = class {
|
|
|
11659
11660
|
else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
|
|
11660
11661
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
11661
11662
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
11662
|
-
if ("created" in values && values.created != null) if (values.created
|
|
11663
|
+
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
11663
11664
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
11664
11665
|
}
|
|
11665
11666
|
/**
|
|
@@ -11693,7 +11694,7 @@ var DataIntegrityProof = class {
|
|
|
11693
11694
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
11694
11695
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
11695
11696
|
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
11696
|
-
if ("created" in values && values.created != null) if (values.created
|
|
11697
|
+
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
11697
11698
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
11698
11699
|
return clone;
|
|
11699
11700
|
}
|
|
@@ -11708,7 +11709,7 @@ var DataIntegrityProof = class {
|
|
|
11708
11709
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11709
11710
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11710
11711
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11711
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
11712
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11712
11713
|
let fetchResult;
|
|
11713
11714
|
try {
|
|
11714
11715
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11927,7 +11928,7 @@ var DataIntegrityProof = class {
|
|
|
11927
11928
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11928
11929
|
*/
|
|
11929
11930
|
static async fromJsonLd(json, options = {}) {
|
|
11930
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11931
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11931
11932
|
try {
|
|
11932
11933
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
11933
11934
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12141,7 +12142,7 @@ var CryptographicKey = class {
|
|
|
12141
12142
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12142
12143
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12143
12144
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12144
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
12145
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12145
12146
|
let fetchResult;
|
|
12146
12147
|
try {
|
|
12147
12148
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12403,7 +12404,7 @@ var CryptographicKey = class {
|
|
|
12403
12404
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12404
12405
|
*/
|
|
12405
12406
|
static async fromJsonLd(json, options = {}) {
|
|
12406
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12407
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12407
12408
|
try {
|
|
12408
12409
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
12409
12410
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12598,7 +12599,7 @@ var Multikey = class {
|
|
|
12598
12599
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12599
12600
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12600
12601
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12601
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
12602
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12602
12603
|
let fetchResult;
|
|
12603
12604
|
try {
|
|
12604
12605
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12866,7 +12867,7 @@ var Multikey = class {
|
|
|
12866
12867
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12867
12868
|
*/
|
|
12868
12869
|
static async fromJsonLd(json, options = {}) {
|
|
12869
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12870
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12870
12871
|
try {
|
|
12871
12872
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
12872
12873
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13061,7 +13062,7 @@ var Accept = class Accept extends Activity {
|
|
|
13061
13062
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13062
13063
|
*/
|
|
13063
13064
|
static async fromJsonLd(json, options = {}) {
|
|
13064
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13065
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13065
13066
|
try {
|
|
13066
13067
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
13067
13068
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13213,7 +13214,7 @@ var Add = class Add extends Activity {
|
|
|
13213
13214
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13214
13215
|
*/
|
|
13215
13216
|
static async fromJsonLd(json, options = {}) {
|
|
13216
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13217
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13217
13218
|
try {
|
|
13218
13219
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
13219
13220
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13382,7 +13383,7 @@ var Announce = class Announce extends Activity {
|
|
|
13382
13383
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13383
13384
|
*/
|
|
13384
13385
|
static async fromJsonLd(json, options = {}) {
|
|
13385
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13386
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13386
13387
|
try {
|
|
13387
13388
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
13388
13389
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13777,7 +13778,7 @@ var Application = class Application extends Object$1 {
|
|
|
13777
13778
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13778
13779
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13779
13780
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13780
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
13781
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13781
13782
|
let fetchResult;
|
|
13782
13783
|
try {
|
|
13783
13784
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13939,7 +13940,7 @@ var Application = class Application extends Object$1 {
|
|
|
13939
13940
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13940
13941
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13941
13942
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13942
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
13943
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13943
13944
|
let fetchResult;
|
|
13944
13945
|
try {
|
|
13945
13946
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14119,7 +14120,7 @@ var Application = class Application extends Object$1 {
|
|
|
14119
14120
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14120
14121
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14121
14122
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14122
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14123
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14123
14124
|
let fetchResult;
|
|
14124
14125
|
try {
|
|
14125
14126
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14261,7 +14262,7 @@ var Application = class Application extends Object$1 {
|
|
|
14261
14262
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14262
14263
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14263
14264
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14264
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14265
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14265
14266
|
let fetchResult;
|
|
14266
14267
|
try {
|
|
14267
14268
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14400,7 +14401,7 @@ var Application = class Application extends Object$1 {
|
|
|
14400
14401
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14401
14402
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14402
14403
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14403
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14404
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14404
14405
|
let fetchResult;
|
|
14405
14406
|
try {
|
|
14406
14407
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14524,7 +14525,7 @@ var Application = class Application extends Object$1 {
|
|
|
14524
14525
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14525
14526
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14526
14527
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14527
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14528
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14528
14529
|
let fetchResult;
|
|
14529
14530
|
try {
|
|
14530
14531
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14651,7 +14652,7 @@ var Application = class Application extends Object$1 {
|
|
|
14651
14652
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14652
14653
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14653
14654
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14654
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14655
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14655
14656
|
let fetchResult;
|
|
14656
14657
|
try {
|
|
14657
14658
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14776,7 +14777,7 @@ var Application = class Application extends Object$1 {
|
|
|
14776
14777
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14777
14778
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14778
14779
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14779
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14780
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14780
14781
|
let fetchResult;
|
|
14781
14782
|
try {
|
|
14782
14783
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14899,7 +14900,7 @@ var Application = class Application extends Object$1 {
|
|
|
14899
14900
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14900
14901
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14901
14902
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14902
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14903
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14903
14904
|
let fetchResult;
|
|
14904
14905
|
try {
|
|
14905
14906
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15022,7 +15023,7 @@ var Application = class Application extends Object$1 {
|
|
|
15022
15023
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15023
15024
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15024
15025
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15025
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15026
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15026
15027
|
let fetchResult;
|
|
15027
15028
|
try {
|
|
15028
15029
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15184,7 +15185,7 @@ var Application = class Application extends Object$1 {
|
|
|
15184
15185
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15185
15186
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15186
15187
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15187
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15188
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15188
15189
|
let fetchResult;
|
|
15189
15190
|
try {
|
|
15190
15191
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15350,7 +15351,7 @@ var Application = class Application extends Object$1 {
|
|
|
15350
15351
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15351
15352
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15352
15353
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15353
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15354
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15354
15355
|
let fetchResult;
|
|
15355
15356
|
try {
|
|
15356
15357
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15564,7 +15565,7 @@ var Application = class Application extends Object$1 {
|
|
|
15564
15565
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15565
15566
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15566
15567
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15567
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15568
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15568
15569
|
let fetchResult;
|
|
15569
15570
|
try {
|
|
15570
15571
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16249,7 +16250,7 @@ var Application = class Application extends Object$1 {
|
|
|
16249
16250
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16250
16251
|
*/
|
|
16251
16252
|
static async fromJsonLd(json, options = {}) {
|
|
16252
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
16253
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16253
16254
|
try {
|
|
16254
16255
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
16255
16256
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16803,7 +16804,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
16803
16804
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16804
16805
|
*/
|
|
16805
16806
|
static async fromJsonLd(json, options = {}) {
|
|
16806
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
16807
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16807
16808
|
try {
|
|
16808
16809
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
16809
16810
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16956,7 +16957,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
16956
16957
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16957
16958
|
*/
|
|
16958
16959
|
static async fromJsonLd(json, options = {}) {
|
|
16959
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
16960
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16960
16961
|
try {
|
|
16961
16962
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
16962
16963
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17193,7 +17194,7 @@ var Article = class Article extends Object$1 {
|
|
|
17193
17194
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17194
17195
|
*/
|
|
17195
17196
|
static async fromJsonLd(json, options = {}) {
|
|
17196
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17197
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17197
17198
|
try {
|
|
17198
17199
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
17199
17200
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17430,7 +17431,7 @@ var Document = class Document extends Object$1 {
|
|
|
17430
17431
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17431
17432
|
*/
|
|
17432
17433
|
static async fromJsonLd(json, options = {}) {
|
|
17433
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17434
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17434
17435
|
try {
|
|
17435
17436
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
17436
17437
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17621,7 +17622,7 @@ var Audio = class Audio extends Document {
|
|
|
17621
17622
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17622
17623
|
*/
|
|
17623
17624
|
static async fromJsonLd(json, options = {}) {
|
|
17624
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17625
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17625
17626
|
try {
|
|
17626
17627
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
17627
17628
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17770,7 +17771,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
17770
17771
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17771
17772
|
*/
|
|
17772
17773
|
static async fromJsonLd(json, options = {}) {
|
|
17773
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17774
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17774
17775
|
try {
|
|
17775
17776
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
17776
17777
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17922,7 +17923,7 @@ var Block = class Block extends Ignore {
|
|
|
17922
17923
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17923
17924
|
*/
|
|
17924
17925
|
static async fromJsonLd(json, options = {}) {
|
|
17925
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17926
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17926
17927
|
try {
|
|
17927
17928
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
17928
17929
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18186,7 +18187,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18186
18187
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18187
18188
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18188
18189
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18189
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18190
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18190
18191
|
let fetchResult;
|
|
18191
18192
|
try {
|
|
18192
18193
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18307,7 +18308,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18307
18308
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18308
18309
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18309
18310
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18310
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18311
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18311
18312
|
let fetchResult;
|
|
18312
18313
|
try {
|
|
18313
18314
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18428,7 +18429,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18428
18429
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18429
18430
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18430
18431
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18431
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18432
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18432
18433
|
let fetchResult;
|
|
18433
18434
|
try {
|
|
18434
18435
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18549,7 +18550,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18549
18550
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18550
18551
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18551
18552
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18552
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18553
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18553
18554
|
let fetchResult;
|
|
18554
18555
|
try {
|
|
18555
18556
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18680,7 +18681,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18680
18681
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18681
18682
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18682
18683
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18683
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18684
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18684
18685
|
let fetchResult;
|
|
18685
18686
|
try {
|
|
18686
18687
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18800,7 +18801,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18800
18801
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18801
18802
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18802
18803
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18803
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18804
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18804
18805
|
let fetchResult;
|
|
18805
18806
|
try {
|
|
18806
18807
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18920,7 +18921,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
18920
18921
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18921
18922
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18922
18923
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18923
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
18924
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18924
18925
|
let fetchResult;
|
|
18925
18926
|
try {
|
|
18926
18927
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19040,7 +19041,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19040
19041
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19041
19042
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19042
19043
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19043
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19044
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19044
19045
|
let fetchResult;
|
|
19045
19046
|
try {
|
|
19046
19047
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19160,7 +19161,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19160
19161
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19161
19162
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19162
19163
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19163
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19164
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19164
19165
|
let fetchResult;
|
|
19165
19166
|
try {
|
|
19166
19167
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19280,7 +19281,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19280
19281
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19281
19282
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19282
19283
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19283
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19284
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19284
19285
|
let fetchResult;
|
|
19285
19286
|
try {
|
|
19286
19287
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19400,7 +19401,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19400
19401
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19401
19402
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19402
19403
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19403
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19404
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19404
19405
|
let fetchResult;
|
|
19405
19406
|
try {
|
|
19406
19407
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19520,7 +19521,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19520
19521
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19521
19522
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19522
19523
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19523
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19524
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19524
19525
|
let fetchResult;
|
|
19525
19526
|
try {
|
|
19526
19527
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19949,7 +19950,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19949
19950
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19950
19951
|
*/
|
|
19951
19952
|
static async fromJsonLd(json, options = {}) {
|
|
19952
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
19953
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19953
19954
|
try {
|
|
19954
19955
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
19955
19956
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20402,7 +20403,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
20402
20403
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20403
20404
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20404
20405
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20405
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20406
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20406
20407
|
let fetchResult;
|
|
20407
20408
|
try {
|
|
20408
20409
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20523,7 +20524,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
20523
20524
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20524
20525
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20525
20526
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20526
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20527
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20527
20528
|
let fetchResult;
|
|
20528
20529
|
try {
|
|
20529
20530
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20643,7 +20644,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
20643
20644
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20644
20645
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20645
20646
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20646
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20647
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20647
20648
|
let fetchResult;
|
|
20648
20649
|
try {
|
|
20649
20650
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20909,7 +20910,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
20909
20910
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20910
20911
|
*/
|
|
20911
20912
|
static async fromJsonLd(json, options = {}) {
|
|
20912
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
20913
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20913
20914
|
try {
|
|
20914
20915
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
20915
20916
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21136,7 +21137,7 @@ var Create = class Create extends Activity {
|
|
|
21136
21137
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21137
21138
|
*/
|
|
21138
21139
|
static async fromJsonLd(json, options = {}) {
|
|
21139
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21140
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21140
21141
|
try {
|
|
21141
21142
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
21142
21143
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21301,7 +21302,7 @@ var Delete = class Delete extends Activity {
|
|
|
21301
21302
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21302
21303
|
*/
|
|
21303
21304
|
static async fromJsonLd(json, options = {}) {
|
|
21304
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21305
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21305
21306
|
try {
|
|
21306
21307
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
21307
21308
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21453,7 +21454,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
21453
21454
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21454
21455
|
*/
|
|
21455
21456
|
static async fromJsonLd(json, options = {}) {
|
|
21456
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21457
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21457
21458
|
try {
|
|
21458
21459
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
21459
21460
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21798,7 +21799,7 @@ var Endpoints = class {
|
|
|
21798
21799
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21799
21800
|
*/
|
|
21800
21801
|
static async fromJsonLd(json, options = {}) {
|
|
21801
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21802
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21802
21803
|
try {
|
|
21803
21804
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
21804
21805
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22032,7 +22033,7 @@ var Event = class Event extends Object$1 {
|
|
|
22032
22033
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22033
22034
|
*/
|
|
22034
22035
|
static async fromJsonLd(json, options = {}) {
|
|
22035
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22036
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22036
22037
|
try {
|
|
22037
22038
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
22038
22039
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22182,7 +22183,7 @@ var Flag = class Flag extends Activity {
|
|
|
22182
22183
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22183
22184
|
*/
|
|
22184
22185
|
static async fromJsonLd(json, options = {}) {
|
|
22185
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22186
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22186
22187
|
try {
|
|
22187
22188
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
22188
22189
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22336,7 +22337,7 @@ var Follow = class Follow extends Activity {
|
|
|
22336
22337
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22337
22338
|
*/
|
|
22338
22339
|
static async fromJsonLd(json, options = {}) {
|
|
22339
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22340
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22340
22341
|
try {
|
|
22341
22342
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
22342
22343
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22731,7 +22732,7 @@ var Group = class Group extends Object$1 {
|
|
|
22731
22732
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22732
22733
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22733
22734
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22734
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
22735
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22735
22736
|
let fetchResult;
|
|
22736
22737
|
try {
|
|
22737
22738
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22893,7 +22894,7 @@ var Group = class Group extends Object$1 {
|
|
|
22893
22894
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22894
22895
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22895
22896
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22896
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
22897
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22897
22898
|
let fetchResult;
|
|
22898
22899
|
try {
|
|
22899
22900
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23073,7 +23074,7 @@ var Group = class Group extends Object$1 {
|
|
|
23073
23074
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23074
23075
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23075
23076
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23076
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23077
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23077
23078
|
let fetchResult;
|
|
23078
23079
|
try {
|
|
23079
23080
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23215,7 +23216,7 @@ var Group = class Group extends Object$1 {
|
|
|
23215
23216
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23216
23217
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23217
23218
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23218
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23219
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23219
23220
|
let fetchResult;
|
|
23220
23221
|
try {
|
|
23221
23222
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23354,7 +23355,7 @@ var Group = class Group extends Object$1 {
|
|
|
23354
23355
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23355
23356
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23356
23357
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23357
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23358
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23358
23359
|
let fetchResult;
|
|
23359
23360
|
try {
|
|
23360
23361
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23478,7 +23479,7 @@ var Group = class Group extends Object$1 {
|
|
|
23478
23479
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23479
23480
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23480
23481
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23481
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23482
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23482
23483
|
let fetchResult;
|
|
23483
23484
|
try {
|
|
23484
23485
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23605,7 +23606,7 @@ var Group = class Group extends Object$1 {
|
|
|
23605
23606
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23606
23607
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23607
23608
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23608
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23609
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23609
23610
|
let fetchResult;
|
|
23610
23611
|
try {
|
|
23611
23612
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23730,7 +23731,7 @@ var Group = class Group extends Object$1 {
|
|
|
23730
23731
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23731
23732
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23732
23733
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23733
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23734
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23734
23735
|
let fetchResult;
|
|
23735
23736
|
try {
|
|
23736
23737
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23853,7 +23854,7 @@ var Group = class Group extends Object$1 {
|
|
|
23853
23854
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23854
23855
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23855
23856
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23856
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23857
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23857
23858
|
let fetchResult;
|
|
23858
23859
|
try {
|
|
23859
23860
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23976,7 +23977,7 @@ var Group = class Group extends Object$1 {
|
|
|
23976
23977
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23977
23978
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23978
23979
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23979
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
23980
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23980
23981
|
let fetchResult;
|
|
23981
23982
|
try {
|
|
23982
23983
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24138,7 +24139,7 @@ var Group = class Group extends Object$1 {
|
|
|
24138
24139
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24139
24140
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24140
24141
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24141
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24142
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24142
24143
|
let fetchResult;
|
|
24143
24144
|
try {
|
|
24144
24145
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24304,7 +24305,7 @@ var Group = class Group extends Object$1 {
|
|
|
24304
24305
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24305
24306
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24306
24307
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24307
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24308
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24308
24309
|
let fetchResult;
|
|
24309
24310
|
try {
|
|
24310
24311
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24518,7 +24519,7 @@ var Group = class Group extends Object$1 {
|
|
|
24518
24519
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24519
24520
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24520
24521
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24521
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24522
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24522
24523
|
let fetchResult;
|
|
24523
24524
|
try {
|
|
24524
24525
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25203,7 +25204,7 @@ var Group = class Group extends Object$1 {
|
|
|
25203
25204
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25204
25205
|
*/
|
|
25205
25206
|
static async fromJsonLd(json, options = {}) {
|
|
25206
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
25207
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25207
25208
|
try {
|
|
25208
25209
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
25209
25210
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25895,7 +25896,7 @@ var Link = class Link {
|
|
|
25895
25896
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25896
25897
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25897
25898
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25898
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25899
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25899
25900
|
let fetchResult;
|
|
25900
25901
|
try {
|
|
25901
25902
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26187,7 +26188,7 @@ var Link = class Link {
|
|
|
26187
26188
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26188
26189
|
*/
|
|
26189
26190
|
static async fromJsonLd(json, options = {}) {
|
|
26190
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26191
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26191
26192
|
try {
|
|
26192
26193
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
26193
26194
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26520,7 +26521,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
26520
26521
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26521
26522
|
*/
|
|
26522
26523
|
static async fromJsonLd(json, options = {}) {
|
|
26523
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26524
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26524
26525
|
try {
|
|
26525
26526
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
26526
26527
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26682,7 +26683,7 @@ var Image = class Image extends Document {
|
|
|
26682
26683
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26683
26684
|
*/
|
|
26684
26685
|
static async fromJsonLd(json, options = {}) {
|
|
26685
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26686
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26686
26687
|
try {
|
|
26687
26688
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
26688
26689
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26832,7 +26833,7 @@ var Offer = class Offer extends Activity {
|
|
|
26832
26833
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26833
26834
|
*/
|
|
26834
26835
|
static async fromJsonLd(json, options = {}) {
|
|
26835
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26836
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26836
26837
|
try {
|
|
26837
26838
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
26838
26839
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26982,7 +26983,7 @@ var Invite = class Invite extends Offer {
|
|
|
26982
26983
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26983
26984
|
*/
|
|
26984
26985
|
static async fromJsonLd(json, options = {}) {
|
|
26985
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26986
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26986
26987
|
try {
|
|
26987
26988
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
26988
26989
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27131,7 +27132,7 @@ var Join = class Join extends Activity {
|
|
|
27131
27132
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27132
27133
|
*/
|
|
27133
27134
|
static async fromJsonLd(json, options = {}) {
|
|
27134
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27135
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27135
27136
|
try {
|
|
27136
27137
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
27137
27138
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27280,7 +27281,7 @@ var Leave = class Leave extends Activity {
|
|
|
27280
27281
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27281
27282
|
*/
|
|
27282
27283
|
static async fromJsonLd(json, options = {}) {
|
|
27283
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27284
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27284
27285
|
try {
|
|
27285
27286
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
27286
27287
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27433,7 +27434,7 @@ var Like = class Like extends Activity {
|
|
|
27433
27434
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27434
27435
|
*/
|
|
27435
27436
|
static async fromJsonLd(json, options = {}) {
|
|
27436
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27437
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27437
27438
|
try {
|
|
27438
27439
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
27439
27440
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27581,7 +27582,7 @@ var Listen = class Listen extends Activity {
|
|
|
27581
27582
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27582
27583
|
*/
|
|
27583
27584
|
static async fromJsonLd(json, options = {}) {
|
|
27584
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27585
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27585
27586
|
try {
|
|
27586
27587
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
27587
27588
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27732,7 +27733,7 @@ var Mention = class Mention extends Link {
|
|
|
27732
27733
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27733
27734
|
*/
|
|
27734
27735
|
static async fromJsonLd(json, options = {}) {
|
|
27735
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27736
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27736
27737
|
try {
|
|
27737
27738
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
27738
27739
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27882,7 +27883,7 @@ var Move = class Move extends Activity {
|
|
|
27882
27883
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27883
27884
|
*/
|
|
27884
27885
|
static async fromJsonLd(json, options = {}) {
|
|
27885
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27886
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27886
27887
|
try {
|
|
27887
27888
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
27888
27889
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28120,7 +28121,7 @@ var Note = class Note extends Object$1 {
|
|
|
28120
28121
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28121
28122
|
*/
|
|
28122
28123
|
static async fromJsonLd(json, options = {}) {
|
|
28123
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28124
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28124
28125
|
try {
|
|
28125
28126
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
28126
28127
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28249,7 +28250,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
28249
28250
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28250
28251
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28251
28252
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28252
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
28253
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28253
28254
|
let fetchResult;
|
|
28254
28255
|
try {
|
|
28255
28256
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28499,7 +28500,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
28499
28500
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28500
28501
|
*/
|
|
28501
28502
|
static async fromJsonLd(json, options = {}) {
|
|
28502
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28503
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28503
28504
|
try {
|
|
28504
28505
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
28505
28506
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28711,7 +28712,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
28711
28712
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28712
28713
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28713
28714
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28714
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
28715
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28715
28716
|
let fetchResult;
|
|
28716
28717
|
try {
|
|
28717
28718
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28984,7 +28985,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
28984
28985
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28985
28986
|
*/
|
|
28986
28987
|
static async fromJsonLd(json, options = {}) {
|
|
28987
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28988
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28988
28989
|
try {
|
|
28989
28990
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
28990
28991
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29482,7 +29483,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29482
29483
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29483
29484
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29484
29485
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29485
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
29486
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29486
29487
|
let fetchResult;
|
|
29487
29488
|
try {
|
|
29488
29489
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29644,7 +29645,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29644
29645
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29645
29646
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29646
29647
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29647
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
29648
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29648
29649
|
let fetchResult;
|
|
29649
29650
|
try {
|
|
29650
29651
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29824,7 +29825,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29824
29825
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29825
29826
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29826
29827
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29827
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
29828
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29828
29829
|
let fetchResult;
|
|
29829
29830
|
try {
|
|
29830
29831
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29966,7 +29967,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29966
29967
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29967
29968
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29968
29969
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29969
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
29970
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29970
29971
|
let fetchResult;
|
|
29971
29972
|
try {
|
|
29972
29973
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30105,7 +30106,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30105
30106
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30106
30107
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30107
30108
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30108
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30109
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30109
30110
|
let fetchResult;
|
|
30110
30111
|
try {
|
|
30111
30112
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30229,7 +30230,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30229
30230
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30230
30231
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30231
30232
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30232
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30233
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30233
30234
|
let fetchResult;
|
|
30234
30235
|
try {
|
|
30235
30236
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30356,7 +30357,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30356
30357
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30357
30358
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30358
30359
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30359
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30360
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30360
30361
|
let fetchResult;
|
|
30361
30362
|
try {
|
|
30362
30363
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30481,7 +30482,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30481
30482
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30482
30483
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30483
30484
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30484
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30485
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30485
30486
|
let fetchResult;
|
|
30486
30487
|
try {
|
|
30487
30488
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30604,7 +30605,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30604
30605
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30605
30606
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30606
30607
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30607
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30608
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30608
30609
|
let fetchResult;
|
|
30609
30610
|
try {
|
|
30610
30611
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30727,7 +30728,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30727
30728
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30728
30729
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30729
30730
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30730
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30731
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30731
30732
|
let fetchResult;
|
|
30732
30733
|
try {
|
|
30733
30734
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30889,7 +30890,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
30889
30890
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30890
30891
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30891
30892
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30892
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30893
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30893
30894
|
let fetchResult;
|
|
30894
30895
|
try {
|
|
30895
30896
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31055,7 +31056,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31055
31056
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31056
31057
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31057
31058
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31058
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31059
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31059
31060
|
let fetchResult;
|
|
31060
31061
|
try {
|
|
31061
31062
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31269,7 +31270,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31269
31270
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31270
31271
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31271
31272
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31272
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31273
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31273
31274
|
let fetchResult;
|
|
31274
31275
|
try {
|
|
31275
31276
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31954,7 +31955,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31954
31955
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31955
31956
|
*/
|
|
31956
31957
|
static async fromJsonLd(json, options = {}) {
|
|
31957
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
31958
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31958
31959
|
try {
|
|
31959
31960
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
31960
31961
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32520,7 +32521,7 @@ var Page = class Page extends Document {
|
|
|
32520
32521
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32521
32522
|
*/
|
|
32522
32523
|
static async fromJsonLd(json, options = {}) {
|
|
32523
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
32524
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32524
32525
|
try {
|
|
32525
32526
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
32526
32527
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32915,7 +32916,7 @@ var Person = class Person extends Object$1 {
|
|
|
32915
32916
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32916
32917
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32917
32918
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32918
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32919
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32919
32920
|
let fetchResult;
|
|
32920
32921
|
try {
|
|
32921
32922
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33077,7 +33078,7 @@ var Person = class Person extends Object$1 {
|
|
|
33077
33078
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33078
33079
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33079
33080
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33080
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33081
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33081
33082
|
let fetchResult;
|
|
33082
33083
|
try {
|
|
33083
33084
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33257,7 +33258,7 @@ var Person = class Person extends Object$1 {
|
|
|
33257
33258
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33258
33259
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33259
33260
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33260
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33261
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33261
33262
|
let fetchResult;
|
|
33262
33263
|
try {
|
|
33263
33264
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33399,7 +33400,7 @@ var Person = class Person extends Object$1 {
|
|
|
33399
33400
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33400
33401
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33401
33402
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33402
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33403
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33403
33404
|
let fetchResult;
|
|
33404
33405
|
try {
|
|
33405
33406
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33538,7 +33539,7 @@ var Person = class Person extends Object$1 {
|
|
|
33538
33539
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33539
33540
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33540
33541
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33541
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33542
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33542
33543
|
let fetchResult;
|
|
33543
33544
|
try {
|
|
33544
33545
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33662,7 +33663,7 @@ var Person = class Person extends Object$1 {
|
|
|
33662
33663
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33663
33664
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33664
33665
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33665
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33666
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33666
33667
|
let fetchResult;
|
|
33667
33668
|
try {
|
|
33668
33669
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33789,7 +33790,7 @@ var Person = class Person extends Object$1 {
|
|
|
33789
33790
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33790
33791
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33791
33792
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33792
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33793
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33793
33794
|
let fetchResult;
|
|
33794
33795
|
try {
|
|
33795
33796
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33914,7 +33915,7 @@ var Person = class Person extends Object$1 {
|
|
|
33914
33915
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33915
33916
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33916
33917
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33917
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33918
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33918
33919
|
let fetchResult;
|
|
33919
33920
|
try {
|
|
33920
33921
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34037,7 +34038,7 @@ var Person = class Person extends Object$1 {
|
|
|
34037
34038
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34038
34039
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34039
34040
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34040
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34041
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34041
34042
|
let fetchResult;
|
|
34042
34043
|
try {
|
|
34043
34044
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34160,7 +34161,7 @@ var Person = class Person extends Object$1 {
|
|
|
34160
34161
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34161
34162
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34162
34163
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34163
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34164
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34164
34165
|
let fetchResult;
|
|
34165
34166
|
try {
|
|
34166
34167
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34322,7 +34323,7 @@ var Person = class Person extends Object$1 {
|
|
|
34322
34323
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34323
34324
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34324
34325
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34325
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34326
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34326
34327
|
let fetchResult;
|
|
34327
34328
|
try {
|
|
34328
34329
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34488,7 +34489,7 @@ var Person = class Person extends Object$1 {
|
|
|
34488
34489
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34489
34490
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34490
34491
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34491
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34492
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34492
34493
|
let fetchResult;
|
|
34493
34494
|
try {
|
|
34494
34495
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34702,7 +34703,7 @@ var Person = class Person extends Object$1 {
|
|
|
34702
34703
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34703
34704
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34704
34705
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34705
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34706
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34706
34707
|
let fetchResult;
|
|
34707
34708
|
try {
|
|
34708
34709
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35387,7 +35388,7 @@ var Person = class Person extends Object$1 {
|
|
|
35387
35388
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35388
35389
|
*/
|
|
35389
35390
|
static async fromJsonLd(json, options = {}) {
|
|
35390
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
35391
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35391
35392
|
try {
|
|
35392
35393
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
35393
35394
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36130,7 +36131,7 @@ var Place = class Place extends Object$1 {
|
|
|
36130
36131
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36131
36132
|
*/
|
|
36132
36133
|
static async fromJsonLd(json, options = {}) {
|
|
36133
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
36134
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36134
36135
|
try {
|
|
36135
36136
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
36136
36137
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36321,7 +36322,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
36321
36322
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36322
36323
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36323
36324
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36324
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36325
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36325
36326
|
let fetchResult;
|
|
36326
36327
|
try {
|
|
36327
36328
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36522,7 +36523,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
36522
36523
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36523
36524
|
*/
|
|
36524
36525
|
static async fromJsonLd(json, options = {}) {
|
|
36525
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
36526
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36526
36527
|
try {
|
|
36527
36528
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
36528
36529
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36642,7 +36643,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36642
36643
|
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
36643
36644
|
for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
36644
36645
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
36645
|
-
if ("closed" in values && values.closed != null) if (values.closed
|
|
36646
|
+
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
36646
36647
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
36647
36648
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
36648
36649
|
else throw new TypeError("The voters must be of type number.");
|
|
@@ -36679,7 +36680,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36679
36680
|
for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
36680
36681
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
36681
36682
|
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
36682
|
-
if ("closed" in values && values.closed != null) if (values.closed
|
|
36683
|
+
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
36683
36684
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
36684
36685
|
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
36685
36686
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
@@ -36693,7 +36694,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36693
36694
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36694
36695
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36695
36696
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36696
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36697
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36697
36698
|
let fetchResult;
|
|
36698
36699
|
try {
|
|
36699
36700
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36815,7 +36816,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
36815
36816
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36816
36817
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36817
36818
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36818
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36819
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36819
36820
|
let fetchResult;
|
|
36820
36821
|
try {
|
|
36821
36822
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37002,7 +37003,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
37002
37003
|
if (array.length > 0) values["https://www.w3.org/ns/activitystreams#anyOf"] = array;
|
|
37003
37004
|
array = [];
|
|
37004
37005
|
for (const v of this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed) {
|
|
37005
|
-
const element = v
|
|
37006
|
+
const element = isTemporalInstant(v) ? {
|
|
37006
37007
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
|
37007
37008
|
"@value": v.toString()
|
|
37008
37009
|
} : { "@value": v };
|
|
@@ -37079,7 +37080,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
37079
37080
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37080
37081
|
*/
|
|
37081
37082
|
static async fromJsonLd(json, options = {}) {
|
|
37082
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
37083
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37083
37084
|
try {
|
|
37084
37085
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
37085
37086
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37306,7 +37307,7 @@ var Read = class Read extends Activity {
|
|
|
37306
37307
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37307
37308
|
*/
|
|
37308
37309
|
static async fromJsonLd(json, options = {}) {
|
|
37309
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
37310
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37310
37311
|
try {
|
|
37311
37312
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
37312
37313
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37455,7 +37456,7 @@ var Reject = class Reject extends Activity {
|
|
|
37455
37456
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37456
37457
|
*/
|
|
37457
37458
|
static async fromJsonLd(json, options = {}) {
|
|
37458
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
37459
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37459
37460
|
try {
|
|
37460
37461
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
37461
37462
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37628,7 +37629,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
37628
37629
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37629
37630
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37630
37631
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37631
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
37632
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37632
37633
|
let fetchResult;
|
|
37633
37634
|
try {
|
|
37634
37635
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37751,7 +37752,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
37751
37752
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37752
37753
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37753
37754
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37754
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
37755
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37755
37756
|
let fetchResult;
|
|
37756
37757
|
try {
|
|
37757
37758
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37913,7 +37914,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
37913
37914
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37914
37915
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37915
37916
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37916
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
37917
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37917
37918
|
let fetchResult;
|
|
37918
37919
|
try {
|
|
37919
37920
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38191,7 +38192,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
38191
38192
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38192
38193
|
*/
|
|
38193
38194
|
static async fromJsonLd(json, options = {}) {
|
|
38194
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
38195
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38195
38196
|
try {
|
|
38196
38197
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
38197
38198
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38400,7 +38401,7 @@ var Remove = class Remove extends Activity {
|
|
|
38400
38401
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38401
38402
|
*/
|
|
38402
38403
|
static async fromJsonLd(json, options = {}) {
|
|
38403
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
38404
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38404
38405
|
try {
|
|
38405
38406
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
38406
38407
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38795,7 +38796,7 @@ var Service = class Service extends Object$1 {
|
|
|
38795
38796
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38796
38797
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38797
38798
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38798
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
38799
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38799
38800
|
let fetchResult;
|
|
38800
38801
|
try {
|
|
38801
38802
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38957,7 +38958,7 @@ var Service = class Service extends Object$1 {
|
|
|
38957
38958
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38958
38959
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38959
38960
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38960
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
38961
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38961
38962
|
let fetchResult;
|
|
38962
38963
|
try {
|
|
38963
38964
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39137,7 +39138,7 @@ var Service = class Service extends Object$1 {
|
|
|
39137
39138
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39138
39139
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39139
39140
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39140
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39141
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39141
39142
|
let fetchResult;
|
|
39142
39143
|
try {
|
|
39143
39144
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39279,7 +39280,7 @@ var Service = class Service extends Object$1 {
|
|
|
39279
39280
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39280
39281
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39281
39282
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39282
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39283
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39283
39284
|
let fetchResult;
|
|
39284
39285
|
try {
|
|
39285
39286
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39418,7 +39419,7 @@ var Service = class Service extends Object$1 {
|
|
|
39418
39419
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39419
39420
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39420
39421
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39421
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39422
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39422
39423
|
let fetchResult;
|
|
39423
39424
|
try {
|
|
39424
39425
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39542,7 +39543,7 @@ var Service = class Service extends Object$1 {
|
|
|
39542
39543
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39543
39544
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39544
39545
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39545
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39546
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39546
39547
|
let fetchResult;
|
|
39547
39548
|
try {
|
|
39548
39549
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39669,7 +39670,7 @@ var Service = class Service extends Object$1 {
|
|
|
39669
39670
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39670
39671
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39671
39672
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39672
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39673
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39673
39674
|
let fetchResult;
|
|
39674
39675
|
try {
|
|
39675
39676
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39794,7 +39795,7 @@ var Service = class Service extends Object$1 {
|
|
|
39794
39795
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39795
39796
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39796
39797
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39797
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39798
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39798
39799
|
let fetchResult;
|
|
39799
39800
|
try {
|
|
39800
39801
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39917,7 +39918,7 @@ var Service = class Service extends Object$1 {
|
|
|
39917
39918
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39918
39919
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39919
39920
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39920
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39921
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39921
39922
|
let fetchResult;
|
|
39922
39923
|
try {
|
|
39923
39924
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40040,7 +40041,7 @@ var Service = class Service extends Object$1 {
|
|
|
40040
40041
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40041
40042
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40042
40043
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40043
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40044
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40044
40045
|
let fetchResult;
|
|
40045
40046
|
try {
|
|
40046
40047
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40202,7 +40203,7 @@ var Service = class Service extends Object$1 {
|
|
|
40202
40203
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40203
40204
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40204
40205
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40205
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40206
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40206
40207
|
let fetchResult;
|
|
40207
40208
|
try {
|
|
40208
40209
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40368,7 +40369,7 @@ var Service = class Service extends Object$1 {
|
|
|
40368
40369
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40369
40370
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40370
40371
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40371
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40372
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40372
40373
|
let fetchResult;
|
|
40373
40374
|
try {
|
|
40374
40375
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40582,7 +40583,7 @@ var Service = class Service extends Object$1 {
|
|
|
40582
40583
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40583
40584
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40584
40585
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40585
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40586
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40586
40587
|
let fetchResult;
|
|
40587
40588
|
try {
|
|
40588
40589
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41267,7 +41268,7 @@ var Service = class Service extends Object$1 {
|
|
|
41267
41268
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41268
41269
|
*/
|
|
41269
41270
|
static async fromJsonLd(json, options = {}) {
|
|
41270
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
41271
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41271
41272
|
try {
|
|
41272
41273
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
41273
41274
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41915,7 +41916,7 @@ var Source = class {
|
|
|
41915
41916
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41916
41917
|
*/
|
|
41917
41918
|
static async fromJsonLd(json, options = {}) {
|
|
41918
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
41919
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41919
41920
|
try {
|
|
41920
41921
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
41921
41922
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42091,7 +42092,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
42091
42092
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42092
42093
|
*/
|
|
42093
42094
|
static async fromJsonLd(json, options = {}) {
|
|
42094
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42095
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42095
42096
|
try {
|
|
42096
42097
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
42097
42098
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42240,7 +42241,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
42240
42241
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42241
42242
|
*/
|
|
42242
42243
|
static async fromJsonLd(json, options = {}) {
|
|
42243
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42244
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42244
42245
|
try {
|
|
42245
42246
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
42246
42247
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42321,7 +42322,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
42321
42322
|
*/
|
|
42322
42323
|
constructor(values, options = {}) {
|
|
42323
42324
|
super(values, options);
|
|
42324
|
-
if ("deleted" in values && values.deleted != null) if (values.deleted
|
|
42325
|
+
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
42325
42326
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
42326
42327
|
}
|
|
42327
42328
|
/**
|
|
@@ -42340,7 +42341,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
42340
42341
|
}
|
|
42341
42342
|
const clone = super.clone(values, options);
|
|
42342
42343
|
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
42343
|
-
if ("deleted" in values && values.deleted != null) if (values.deleted
|
|
42344
|
+
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
42344
42345
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
42345
42346
|
return clone;
|
|
42346
42347
|
}
|
|
@@ -42435,7 +42436,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
42435
42436
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42436
42437
|
*/
|
|
42437
42438
|
static async fromJsonLd(json, options = {}) {
|
|
42438
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42439
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42439
42440
|
try {
|
|
42440
42441
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
42441
42442
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42599,7 +42600,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
42599
42600
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42600
42601
|
*/
|
|
42601
42602
|
static async fromJsonLd(json, options = {}) {
|
|
42602
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42603
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42603
42604
|
try {
|
|
42604
42605
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
42605
42606
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42762,7 +42763,7 @@ var Undo = class Undo extends Activity {
|
|
|
42762
42763
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42763
42764
|
*/
|
|
42764
42765
|
static async fromJsonLd(json, options = {}) {
|
|
42765
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42766
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42766
42767
|
try {
|
|
42767
42768
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
42768
42769
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42963,7 +42964,7 @@ var Update = class Update extends Activity {
|
|
|
42963
42964
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42964
42965
|
*/
|
|
42965
42966
|
static async fromJsonLd(json, options = {}) {
|
|
42966
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
42967
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42967
42968
|
try {
|
|
42968
42969
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
42969
42970
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43125,7 +43126,7 @@ var Video = class Video extends Document {
|
|
|
43125
43126
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43126
43127
|
*/
|
|
43127
43128
|
static async fromJsonLd(json, options = {}) {
|
|
43128
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
43129
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43129
43130
|
try {
|
|
43130
43131
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
43131
43132
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43273,7 +43274,7 @@ var View = class View extends Activity {
|
|
|
43273
43274
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43274
43275
|
*/
|
|
43275
43276
|
static async fromJsonLd(json, options = {}) {
|
|
43276
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
43277
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.13").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43277
43278
|
try {
|
|
43278
43279
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
43279
43280
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|