@fedify/vocab 2.2.1 → 2.2.3-dev.1098
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 +235 -234
- package/dist/mod.d.cts +1 -0
- package/dist/mod.d.ts +1 -1
- package/dist/mod.js +235 -234
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-CTdfG9Xt.mjs → deno-CjKgjCYf.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-Cc0DSCvu.mjs → vocab-B1J4LLrk.mjs} +234 -233
- 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, isDecimal, parseDecimal } 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.2.
|
|
12
|
+
var version = "2.2.3-dev.1098+aaf52a7f";
|
|
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.2.
|
|
676
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
822
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
1034
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
1218
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
1380
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
1510
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
1676
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
1842
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
2016
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
2190
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
2369
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
2490
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
2617
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
2744
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
2889
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
3041
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
3205
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
3369
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
3533
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
3734
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
3921
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
4042
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
4163
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").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.2.
|
|
4990
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").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);
|
|
@@ -6436,7 +6437,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6436
6437
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6437
6438
|
*/
|
|
6438
6439
|
static async fromJsonLd(json, options = {}) {
|
|
6439
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
6440
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6440
6441
|
try {
|
|
6441
6442
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
6442
6443
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6570,7 +6571,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6570
6571
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6571
6572
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6572
6573
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6573
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
6574
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6574
6575
|
let fetchResult;
|
|
6575
6576
|
try {
|
|
6576
6577
|
fetchResult = await documentLoader(url.href);
|
|
@@ -6708,7 +6709,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6708
6709
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6709
6710
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6710
6711
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6711
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
6712
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6712
6713
|
let fetchResult;
|
|
6713
6714
|
try {
|
|
6714
6715
|
fetchResult = await documentLoader(url.href);
|
|
@@ -6992,7 +6993,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6992
6993
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6993
6994
|
*/
|
|
6994
6995
|
static async fromJsonLd(json, options = {}) {
|
|
6995
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
6996
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6996
6997
|
try {
|
|
6997
6998
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
6998
6999
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7317,7 +7318,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7317
7318
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7318
7319
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7319
7320
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7320
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
7321
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7321
7322
|
let fetchResult;
|
|
7322
7323
|
try {
|
|
7323
7324
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7529,7 +7530,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7529
7530
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7530
7531
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7531
7532
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7532
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
7533
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7533
7534
|
let fetchResult;
|
|
7534
7535
|
try {
|
|
7535
7536
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7695,7 +7696,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7695
7696
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7696
7697
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7697
7698
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7698
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
7699
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7699
7700
|
let fetchResult;
|
|
7700
7701
|
try {
|
|
7701
7702
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7867,7 +7868,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7867
7868
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7868
7869
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7869
7870
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7870
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
7871
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7871
7872
|
let fetchResult;
|
|
7872
7873
|
try {
|
|
7873
7874
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8033,7 +8034,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8033
8034
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8034
8035
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8035
8036
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8036
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
8037
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8037
8038
|
let fetchResult;
|
|
8038
8039
|
try {
|
|
8039
8040
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8201,7 +8202,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8201
8202
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8202
8203
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8203
8204
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8204
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
8205
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8205
8206
|
let fetchResult;
|
|
8206
8207
|
try {
|
|
8207
8208
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8452,7 +8453,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8452
8453
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8453
8454
|
*/
|
|
8454
8455
|
static async fromJsonLd(json, options = {}) {
|
|
8455
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
8456
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8456
8457
|
try {
|
|
8457
8458
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
8458
8459
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8785,7 +8786,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8785
8786
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8786
8787
|
*/
|
|
8787
8788
|
static async fromJsonLd(json, options = {}) {
|
|
8788
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
8789
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8789
8790
|
try {
|
|
8790
8791
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
8791
8792
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9031,7 +9032,7 @@ var PropertyValue = class {
|
|
|
9031
9032
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9032
9033
|
*/
|
|
9033
9034
|
static async fromJsonLd(json, options = {}) {
|
|
9034
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
9035
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9035
9036
|
try {
|
|
9036
9037
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
9037
9038
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9296,7 +9297,7 @@ var Measure = class {
|
|
|
9296
9297
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9297
9298
|
*/
|
|
9298
9299
|
static async fromJsonLd(json, options = {}) {
|
|
9299
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
9300
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9300
9301
|
try {
|
|
9301
9302
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
9302
9303
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9456,7 +9457,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9456
9457
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9457
9458
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9458
9459
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9459
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
9460
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9460
9461
|
let fetchResult;
|
|
9461
9462
|
try {
|
|
9462
9463
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9577,7 +9578,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9577
9578
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9578
9579
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9579
9580
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9580
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
9581
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9581
9582
|
let fetchResult;
|
|
9582
9583
|
try {
|
|
9583
9584
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9793,7 +9794,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9793
9794
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9794
9795
|
*/
|
|
9795
9796
|
static async fromJsonLd(json, options = {}) {
|
|
9796
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
9797
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9797
9798
|
try {
|
|
9798
9799
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
9799
9800
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9994,7 +9995,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
9994
9995
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9995
9996
|
*/
|
|
9996
9997
|
static async fromJsonLd(json, options = {}) {
|
|
9997
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
9998
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9998
9999
|
try {
|
|
9999
10000
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
10000
10001
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10258,7 +10259,7 @@ var InteractionPolicy = class {
|
|
|
10258
10259
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10259
10260
|
*/
|
|
10260
10261
|
static async fromJsonLd(json, options = {}) {
|
|
10261
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
10262
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10262
10263
|
try {
|
|
10263
10264
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
10264
10265
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10583,7 +10584,7 @@ var InteractionRule = class {
|
|
|
10583
10584
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10584
10585
|
*/
|
|
10585
10586
|
static async fromJsonLd(json, options = {}) {
|
|
10586
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
10587
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10587
10588
|
try {
|
|
10588
10589
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
10589
10590
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10744,7 +10745,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10744
10745
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10745
10746
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10746
10747
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10747
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
10748
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10748
10749
|
let fetchResult;
|
|
10749
10750
|
try {
|
|
10750
10751
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10865,7 +10866,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10865
10866
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10866
10867
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10867
10868
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10868
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
10869
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10869
10870
|
let fetchResult;
|
|
10870
10871
|
try {
|
|
10871
10872
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11081,7 +11082,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11081
11082
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11082
11083
|
*/
|
|
11083
11084
|
static async fromJsonLd(json, options = {}) {
|
|
11084
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
11085
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11085
11086
|
try {
|
|
11086
11087
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
11087
11088
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11281,7 +11282,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
11281
11282
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11282
11283
|
*/
|
|
11283
11284
|
static async fromJsonLd(json, options = {}) {
|
|
11284
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
11285
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11285
11286
|
try {
|
|
11286
11287
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
11287
11288
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11412,7 +11413,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11412
11413
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11413
11414
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11414
11415
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11415
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
11416
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11416
11417
|
let fetchResult;
|
|
11417
11418
|
try {
|
|
11418
11419
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11533,7 +11534,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11533
11534
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11534
11535
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11535
11536
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11536
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
11537
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11537
11538
|
let fetchResult;
|
|
11538
11539
|
try {
|
|
11539
11540
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11749,7 +11750,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11749
11750
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11750
11751
|
*/
|
|
11751
11752
|
static async fromJsonLd(json, options = {}) {
|
|
11752
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
11753
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11753
11754
|
try {
|
|
11754
11755
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
11755
11756
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11949,7 +11950,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
11949
11950
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11950
11951
|
*/
|
|
11951
11952
|
static async fromJsonLd(json, options = {}) {
|
|
11952
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
11953
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11953
11954
|
try {
|
|
11954
11955
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
11955
11956
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12080,7 +12081,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12080
12081
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12081
12082
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12082
12083
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12083
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
12084
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12084
12085
|
let fetchResult;
|
|
12085
12086
|
try {
|
|
12086
12087
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12200,7 +12201,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12200
12201
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12201
12202
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12202
12203
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12203
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
12204
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12204
12205
|
let fetchResult;
|
|
12205
12206
|
try {
|
|
12206
12207
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12418,7 +12419,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12418
12419
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12419
12420
|
*/
|
|
12420
12421
|
static async fromJsonLd(json, options = {}) {
|
|
12421
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
12422
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12422
12423
|
try {
|
|
12423
12424
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
12424
12425
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12648,7 +12649,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
12648
12649
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12649
12650
|
*/
|
|
12650
12651
|
static async fromJsonLd(json, options = {}) {
|
|
12651
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
12652
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12652
12653
|
try {
|
|
12653
12654
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
12654
12655
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12854,7 +12855,7 @@ var DidService = class {
|
|
|
12854
12855
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12855
12856
|
*/
|
|
12856
12857
|
static async fromJsonLd(json, options = {}) {
|
|
12857
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
12858
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12858
12859
|
try {
|
|
12859
12860
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
12860
12861
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13010,7 +13011,7 @@ var Export = class Export extends DidService {
|
|
|
13010
13011
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13011
13012
|
*/
|
|
13012
13013
|
static async fromJsonLd(json, options = {}) {
|
|
13013
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
13014
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13014
13015
|
try {
|
|
13015
13016
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
13016
13017
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13134,7 +13135,7 @@ var DataIntegrityProof = class {
|
|
|
13134
13135
|
else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
|
|
13135
13136
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
13136
13137
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
13137
|
-
if ("created" in values && values.created != null) if (values.created
|
|
13138
|
+
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
13138
13139
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
13139
13140
|
}
|
|
13140
13141
|
/**
|
|
@@ -13168,7 +13169,7 @@ var DataIntegrityProof = class {
|
|
|
13168
13169
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
13169
13170
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
13170
13171
|
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
13171
|
-
if ("created" in values && values.created != null) if (values.created
|
|
13172
|
+
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
13172
13173
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
13173
13174
|
return clone;
|
|
13174
13175
|
}
|
|
@@ -13183,7 +13184,7 @@ var DataIntegrityProof = class {
|
|
|
13183
13184
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13184
13185
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13185
13186
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13186
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
13187
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13187
13188
|
let fetchResult;
|
|
13188
13189
|
try {
|
|
13189
13190
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13402,7 +13403,7 @@ var DataIntegrityProof = class {
|
|
|
13402
13403
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13403
13404
|
*/
|
|
13404
13405
|
static async fromJsonLd(json, options = {}) {
|
|
13405
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
13406
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13406
13407
|
try {
|
|
13407
13408
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
13408
13409
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13626,7 +13627,7 @@ var CryptographicKey = class {
|
|
|
13626
13627
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13627
13628
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13628
13629
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13629
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
13630
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13630
13631
|
let fetchResult;
|
|
13631
13632
|
try {
|
|
13632
13633
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13888,7 +13889,7 @@ var CryptographicKey = class {
|
|
|
13888
13889
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13889
13890
|
*/
|
|
13890
13891
|
static async fromJsonLd(json, options = {}) {
|
|
13891
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
13892
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13892
13893
|
try {
|
|
13893
13894
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
13894
13895
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14085,7 +14086,7 @@ var Multikey = class {
|
|
|
14085
14086
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14086
14087
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14087
14088
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14088
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
14089
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14089
14090
|
let fetchResult;
|
|
14090
14091
|
try {
|
|
14091
14092
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14353,7 +14354,7 @@ var Multikey = class {
|
|
|
14353
14354
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14354
14355
|
*/
|
|
14355
14356
|
static async fromJsonLd(json, options = {}) {
|
|
14356
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
14357
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14357
14358
|
try {
|
|
14358
14359
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
14359
14360
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14741,7 +14742,7 @@ var Intent = class {
|
|
|
14741
14742
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14742
14743
|
*/
|
|
14743
14744
|
static async fromJsonLd(json, options = {}) {
|
|
14744
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
14745
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14745
14746
|
try {
|
|
14746
14747
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
14747
14748
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15158,7 +15159,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
15158
15159
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15159
15160
|
*/
|
|
15160
15161
|
static async fromJsonLd(json, options = {}) {
|
|
15161
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
15162
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15162
15163
|
try {
|
|
15163
15164
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
15164
15165
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15371,7 +15372,7 @@ var Accept = class Accept extends Activity {
|
|
|
15371
15372
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15372
15373
|
*/
|
|
15373
15374
|
static async fromJsonLd(json, options = {}) {
|
|
15374
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
15375
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15375
15376
|
try {
|
|
15376
15377
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
15377
15378
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15523,7 +15524,7 @@ var Add = class Add extends Activity {
|
|
|
15523
15524
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15524
15525
|
*/
|
|
15525
15526
|
static async fromJsonLd(json, options = {}) {
|
|
15526
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
15527
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15527
15528
|
try {
|
|
15528
15529
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
15529
15530
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15702,7 +15703,7 @@ var Announce = class Announce extends Activity {
|
|
|
15702
15703
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15703
15704
|
*/
|
|
15704
15705
|
static async fromJsonLd(json, options = {}) {
|
|
15705
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
15706
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15706
15707
|
try {
|
|
15707
15708
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
15708
15709
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16097,7 +16098,7 @@ var Application = class Application extends Object$1 {
|
|
|
16097
16098
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16098
16099
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16099
16100
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16100
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
16101
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16101
16102
|
let fetchResult;
|
|
16102
16103
|
try {
|
|
16103
16104
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16259,7 +16260,7 @@ var Application = class Application extends Object$1 {
|
|
|
16259
16260
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16260
16261
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16261
16262
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16262
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
16263
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16263
16264
|
let fetchResult;
|
|
16264
16265
|
try {
|
|
16265
16266
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16439,7 +16440,7 @@ var Application = class Application extends Object$1 {
|
|
|
16439
16440
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16440
16441
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16441
16442
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16442
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
16443
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16443
16444
|
let fetchResult;
|
|
16444
16445
|
try {
|
|
16445
16446
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16581,7 +16582,7 @@ var Application = class Application extends Object$1 {
|
|
|
16581
16582
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16582
16583
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16583
16584
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16584
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
16585
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16585
16586
|
let fetchResult;
|
|
16586
16587
|
try {
|
|
16587
16588
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16720,7 +16721,7 @@ var Application = class Application extends Object$1 {
|
|
|
16720
16721
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16721
16722
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16722
16723
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16723
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
16724
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16724
16725
|
let fetchResult;
|
|
16725
16726
|
try {
|
|
16726
16727
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16844,7 +16845,7 @@ var Application = class Application extends Object$1 {
|
|
|
16844
16845
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16845
16846
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16846
16847
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16847
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
16848
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16848
16849
|
let fetchResult;
|
|
16849
16850
|
try {
|
|
16850
16851
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16971,7 +16972,7 @@ var Application = class Application extends Object$1 {
|
|
|
16971
16972
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16972
16973
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16973
16974
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16974
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
16975
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16975
16976
|
let fetchResult;
|
|
16976
16977
|
try {
|
|
16977
16978
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17096,7 +17097,7 @@ var Application = class Application extends Object$1 {
|
|
|
17096
17097
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17097
17098
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17098
17099
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17099
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17100
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17100
17101
|
let fetchResult;
|
|
17101
17102
|
try {
|
|
17102
17103
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17219,7 +17220,7 @@ var Application = class Application extends Object$1 {
|
|
|
17219
17220
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17220
17221
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17221
17222
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17222
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17223
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17223
17224
|
let fetchResult;
|
|
17224
17225
|
try {
|
|
17225
17226
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17342,7 +17343,7 @@ var Application = class Application extends Object$1 {
|
|
|
17342
17343
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17343
17344
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17344
17345
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17345
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17346
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17346
17347
|
let fetchResult;
|
|
17347
17348
|
try {
|
|
17348
17349
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17504,7 +17505,7 @@ var Application = class Application extends Object$1 {
|
|
|
17504
17505
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17505
17506
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17506
17507
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17507
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17508
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17508
17509
|
let fetchResult;
|
|
17509
17510
|
try {
|
|
17510
17511
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17670,7 +17671,7 @@ var Application = class Application extends Object$1 {
|
|
|
17670
17671
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17671
17672
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17672
17673
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17673
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17674
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17674
17675
|
let fetchResult;
|
|
17675
17676
|
try {
|
|
17676
17677
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17884,7 +17885,7 @@ var Application = class Application extends Object$1 {
|
|
|
17884
17885
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17885
17886
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17886
17887
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17887
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17888
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17888
17889
|
let fetchResult;
|
|
17889
17890
|
try {
|
|
17890
17891
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18569,7 +18570,7 @@ var Application = class Application extends Object$1 {
|
|
|
18569
18570
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18570
18571
|
*/
|
|
18571
18572
|
static async fromJsonLd(json, options = {}) {
|
|
18572
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
18573
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18573
18574
|
try {
|
|
18574
18575
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
18575
18576
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19157,7 +19158,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
19157
19158
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19158
19159
|
*/
|
|
19159
19160
|
static async fromJsonLd(json, options = {}) {
|
|
19160
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
19161
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19161
19162
|
try {
|
|
19162
19163
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
19163
19164
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19310,7 +19311,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
19310
19311
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19311
19312
|
*/
|
|
19312
19313
|
static async fromJsonLd(json, options = {}) {
|
|
19313
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
19314
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19314
19315
|
try {
|
|
19315
19316
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
19316
19317
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19440,7 +19441,7 @@ var Article = class Article extends Object$1 {
|
|
|
19440
19441
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19441
19442
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19442
19443
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19443
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
19444
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19444
19445
|
let fetchResult;
|
|
19445
19446
|
try {
|
|
19446
19447
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19578,7 +19579,7 @@ var Article = class Article extends Object$1 {
|
|
|
19578
19579
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19579
19580
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19580
19581
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19581
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
19582
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19582
19583
|
let fetchResult;
|
|
19583
19584
|
try {
|
|
19584
19585
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19864,7 +19865,7 @@ var Article = class Article extends Object$1 {
|
|
|
19864
19865
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19865
19866
|
*/
|
|
19866
19867
|
static async fromJsonLd(json, options = {}) {
|
|
19867
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
19868
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19868
19869
|
try {
|
|
19869
19870
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
19870
19871
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20145,7 +20146,7 @@ var Document = class Document extends Object$1 {
|
|
|
20145
20146
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20146
20147
|
*/
|
|
20147
20148
|
static async fromJsonLd(json, options = {}) {
|
|
20148
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
20149
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20149
20150
|
try {
|
|
20150
20151
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
20151
20152
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20340,7 +20341,7 @@ var Audio = class Audio extends Document {
|
|
|
20340
20341
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20341
20342
|
*/
|
|
20342
20343
|
static async fromJsonLd(json, options = {}) {
|
|
20343
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
20344
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20344
20345
|
try {
|
|
20345
20346
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
20346
20347
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20489,7 +20490,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
20489
20490
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20490
20491
|
*/
|
|
20491
20492
|
static async fromJsonLd(json, options = {}) {
|
|
20492
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
20493
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20493
20494
|
try {
|
|
20494
20495
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
20495
20496
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20641,7 +20642,7 @@ var Block = class Block extends Ignore {
|
|
|
20641
20642
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20642
20643
|
*/
|
|
20643
20644
|
static async fromJsonLd(json, options = {}) {
|
|
20644
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
20645
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20645
20646
|
try {
|
|
20646
20647
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
20647
20648
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20905,7 +20906,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20905
20906
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20906
20907
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20907
20908
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20908
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
20909
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20909
20910
|
let fetchResult;
|
|
20910
20911
|
try {
|
|
20911
20912
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21026,7 +21027,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21026
21027
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21027
21028
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21028
21029
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21029
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21030
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21030
21031
|
let fetchResult;
|
|
21031
21032
|
try {
|
|
21032
21033
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21147,7 +21148,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21147
21148
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21148
21149
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21149
21150
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21150
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21151
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21151
21152
|
let fetchResult;
|
|
21152
21153
|
try {
|
|
21153
21154
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21268,7 +21269,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21268
21269
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21269
21270
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21270
21271
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21271
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21272
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21272
21273
|
let fetchResult;
|
|
21273
21274
|
try {
|
|
21274
21275
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21399,7 +21400,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21399
21400
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21400
21401
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21401
21402
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21402
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21403
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21403
21404
|
let fetchResult;
|
|
21404
21405
|
try {
|
|
21405
21406
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21519,7 +21520,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21519
21520
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21520
21521
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21521
21522
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21522
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21523
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21523
21524
|
let fetchResult;
|
|
21524
21525
|
try {
|
|
21525
21526
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21639,7 +21640,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21639
21640
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21640
21641
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21641
21642
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21642
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21643
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21643
21644
|
let fetchResult;
|
|
21644
21645
|
try {
|
|
21645
21646
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21759,7 +21760,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21759
21760
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21760
21761
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21761
21762
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21762
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21763
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21763
21764
|
let fetchResult;
|
|
21764
21765
|
try {
|
|
21765
21766
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21879,7 +21880,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21879
21880
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21880
21881
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21881
21882
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21882
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21883
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21883
21884
|
let fetchResult;
|
|
21884
21885
|
try {
|
|
21885
21886
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21999,7 +22000,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21999
22000
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22000
22001
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22001
22002
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22002
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
22003
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22003
22004
|
let fetchResult;
|
|
22004
22005
|
try {
|
|
22005
22006
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22119,7 +22120,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22119
22120
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22120
22121
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22121
22122
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22122
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
22123
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22123
22124
|
let fetchResult;
|
|
22124
22125
|
try {
|
|
22125
22126
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22239,7 +22240,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22239
22240
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22240
22241
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22241
22242
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22242
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
22243
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22243
22244
|
let fetchResult;
|
|
22244
22245
|
try {
|
|
22245
22246
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22688,7 +22689,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22688
22689
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22689
22690
|
*/
|
|
22690
22691
|
static async fromJsonLd(json, options = {}) {
|
|
22691
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
22692
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22692
22693
|
try {
|
|
22693
22694
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
22694
22695
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23168,7 +23169,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23168
23169
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23169
23170
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23170
23171
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23171
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23172
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23172
23173
|
let fetchResult;
|
|
23173
23174
|
try {
|
|
23174
23175
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23289,7 +23290,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23289
23290
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23290
23291
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23291
23292
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23292
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23293
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23293
23294
|
let fetchResult;
|
|
23294
23295
|
try {
|
|
23295
23296
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23409,7 +23410,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23409
23410
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23410
23411
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23411
23412
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23412
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23413
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23413
23414
|
let fetchResult;
|
|
23414
23415
|
try {
|
|
23415
23416
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23695,7 +23696,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23695
23696
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23696
23697
|
*/
|
|
23697
23698
|
static async fromJsonLd(json, options = {}) {
|
|
23698
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
23699
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23699
23700
|
try {
|
|
23700
23701
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
23701
23702
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23938,7 +23939,7 @@ var Create = class Create extends Activity {
|
|
|
23938
23939
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23939
23940
|
*/
|
|
23940
23941
|
static async fromJsonLd(json, options = {}) {
|
|
23941
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
23942
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23942
23943
|
try {
|
|
23943
23944
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
23944
23945
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24113,7 +24114,7 @@ var Delete = class Delete extends Activity {
|
|
|
24113
24114
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24114
24115
|
*/
|
|
24115
24116
|
static async fromJsonLd(json, options = {}) {
|
|
24116
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
24117
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24117
24118
|
try {
|
|
24118
24119
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
24119
24120
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24265,7 +24266,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
24265
24266
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24266
24267
|
*/
|
|
24267
24268
|
static async fromJsonLd(json, options = {}) {
|
|
24268
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
24269
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24269
24270
|
try {
|
|
24270
24271
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
24271
24272
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24610,7 +24611,7 @@ var Endpoints = class {
|
|
|
24610
24611
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24611
24612
|
*/
|
|
24612
24613
|
static async fromJsonLd(json, options = {}) {
|
|
24613
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
24614
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24614
24615
|
try {
|
|
24615
24616
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
24616
24617
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24856,7 +24857,7 @@ var Event = class Event extends Object$1 {
|
|
|
24856
24857
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24857
24858
|
*/
|
|
24858
24859
|
static async fromJsonLd(json, options = {}) {
|
|
24859
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
24860
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24860
24861
|
try {
|
|
24861
24862
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
24862
24863
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25006,7 +25007,7 @@ var Flag = class Flag extends Activity {
|
|
|
25006
25007
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25007
25008
|
*/
|
|
25008
25009
|
static async fromJsonLd(json, options = {}) {
|
|
25009
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
25010
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25010
25011
|
try {
|
|
25011
25012
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
25012
25013
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25160,7 +25161,7 @@ var Follow = class Follow extends Activity {
|
|
|
25160
25161
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25161
25162
|
*/
|
|
25162
25163
|
static async fromJsonLd(json, options = {}) {
|
|
25163
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
25164
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25164
25165
|
try {
|
|
25165
25166
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
25166
25167
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25555,7 +25556,7 @@ var Group = class Group extends Object$1 {
|
|
|
25555
25556
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25556
25557
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25557
25558
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25558
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
25559
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25559
25560
|
let fetchResult;
|
|
25560
25561
|
try {
|
|
25561
25562
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25717,7 +25718,7 @@ var Group = class Group extends Object$1 {
|
|
|
25717
25718
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25718
25719
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25719
25720
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25720
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
25721
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25721
25722
|
let fetchResult;
|
|
25722
25723
|
try {
|
|
25723
25724
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25897,7 +25898,7 @@ var Group = class Group extends Object$1 {
|
|
|
25897
25898
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25898
25899
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25899
25900
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25900
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
25901
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25901
25902
|
let fetchResult;
|
|
25902
25903
|
try {
|
|
25903
25904
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26039,7 +26040,7 @@ var Group = class Group extends Object$1 {
|
|
|
26039
26040
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26040
26041
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26041
26042
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26042
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26043
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26043
26044
|
let fetchResult;
|
|
26044
26045
|
try {
|
|
26045
26046
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26178,7 +26179,7 @@ var Group = class Group extends Object$1 {
|
|
|
26178
26179
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26179
26180
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26180
26181
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26181
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26182
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26182
26183
|
let fetchResult;
|
|
26183
26184
|
try {
|
|
26184
26185
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26302,7 +26303,7 @@ var Group = class Group extends Object$1 {
|
|
|
26302
26303
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26303
26304
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26304
26305
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26305
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26306
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26306
26307
|
let fetchResult;
|
|
26307
26308
|
try {
|
|
26308
26309
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26429,7 +26430,7 @@ var Group = class Group extends Object$1 {
|
|
|
26429
26430
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26430
26431
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26431
26432
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26432
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26433
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26433
26434
|
let fetchResult;
|
|
26434
26435
|
try {
|
|
26435
26436
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26554,7 +26555,7 @@ var Group = class Group extends Object$1 {
|
|
|
26554
26555
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26555
26556
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26556
26557
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26557
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26558
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26558
26559
|
let fetchResult;
|
|
26559
26560
|
try {
|
|
26560
26561
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26677,7 +26678,7 @@ var Group = class Group extends Object$1 {
|
|
|
26677
26678
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26678
26679
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26679
26680
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26680
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26681
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26681
26682
|
let fetchResult;
|
|
26682
26683
|
try {
|
|
26683
26684
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26800,7 +26801,7 @@ var Group = class Group extends Object$1 {
|
|
|
26800
26801
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26801
26802
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26802
26803
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26803
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26804
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26804
26805
|
let fetchResult;
|
|
26805
26806
|
try {
|
|
26806
26807
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26962,7 +26963,7 @@ var Group = class Group extends Object$1 {
|
|
|
26962
26963
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26963
26964
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26964
26965
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26965
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
26966
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26966
26967
|
let fetchResult;
|
|
26967
26968
|
try {
|
|
26968
26969
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27128,7 +27129,7 @@ var Group = class Group extends Object$1 {
|
|
|
27128
27129
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27129
27130
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27130
27131
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27131
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
27132
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27132
27133
|
let fetchResult;
|
|
27133
27134
|
try {
|
|
27134
27135
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27342,7 +27343,7 @@ var Group = class Group extends Object$1 {
|
|
|
27342
27343
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27343
27344
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27344
27345
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27345
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
27346
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27346
27347
|
let fetchResult;
|
|
27347
27348
|
try {
|
|
27348
27349
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28027,7 +28028,7 @@ var Group = class Group extends Object$1 {
|
|
|
28027
28028
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28028
28029
|
*/
|
|
28029
28030
|
static async fromJsonLd(json, options = {}) {
|
|
28030
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
28031
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28031
28032
|
try {
|
|
28032
28033
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
28033
28034
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28753,7 +28754,7 @@ var Link = class Link {
|
|
|
28753
28754
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28754
28755
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28755
28756
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28756
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28757
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28757
28758
|
let fetchResult;
|
|
28758
28759
|
try {
|
|
28759
28760
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29045,7 +29046,7 @@ var Link = class Link {
|
|
|
29045
29046
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29046
29047
|
*/
|
|
29047
29048
|
static async fromJsonLd(json, options = {}) {
|
|
29048
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
29049
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29049
29050
|
try {
|
|
29050
29051
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
29051
29052
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29393,7 +29394,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
29393
29394
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29394
29395
|
*/
|
|
29395
29396
|
static async fromJsonLd(json, options = {}) {
|
|
29396
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
29397
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29397
29398
|
try {
|
|
29398
29399
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
29399
29400
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29555,7 +29556,7 @@ var Image = class Image extends Document {
|
|
|
29555
29556
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29556
29557
|
*/
|
|
29557
29558
|
static async fromJsonLd(json, options = {}) {
|
|
29558
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
29559
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29559
29560
|
try {
|
|
29560
29561
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
29561
29562
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29705,7 +29706,7 @@ var Offer = class Offer extends Activity {
|
|
|
29705
29706
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29706
29707
|
*/
|
|
29707
29708
|
static async fromJsonLd(json, options = {}) {
|
|
29708
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
29709
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29709
29710
|
try {
|
|
29710
29711
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
29711
29712
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29855,7 +29856,7 @@ var Invite = class Invite extends Offer {
|
|
|
29855
29856
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29856
29857
|
*/
|
|
29857
29858
|
static async fromJsonLd(json, options = {}) {
|
|
29858
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
29859
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29859
29860
|
try {
|
|
29860
29861
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
29861
29862
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30004,7 +30005,7 @@ var Join = class Join extends Activity {
|
|
|
30004
30005
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30005
30006
|
*/
|
|
30006
30007
|
static async fromJsonLd(json, options = {}) {
|
|
30007
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
30008
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30008
30009
|
try {
|
|
30009
30010
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
30010
30011
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30153,7 +30154,7 @@ var Leave = class Leave extends Activity {
|
|
|
30153
30154
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30154
30155
|
*/
|
|
30155
30156
|
static async fromJsonLd(json, options = {}) {
|
|
30156
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
30157
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30157
30158
|
try {
|
|
30158
30159
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
30159
30160
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30306,7 +30307,7 @@ var Like = class Like extends Activity {
|
|
|
30306
30307
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30307
30308
|
*/
|
|
30308
30309
|
static async fromJsonLd(json, options = {}) {
|
|
30309
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
30310
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30310
30311
|
try {
|
|
30311
30312
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
30312
30313
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30454,7 +30455,7 @@ var Listen = class Listen extends Activity {
|
|
|
30454
30455
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30455
30456
|
*/
|
|
30456
30457
|
static async fromJsonLd(json, options = {}) {
|
|
30457
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
30458
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30458
30459
|
try {
|
|
30459
30460
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
30460
30461
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30605,7 +30606,7 @@ var Mention = class Mention extends Link {
|
|
|
30605
30606
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30606
30607
|
*/
|
|
30607
30608
|
static async fromJsonLd(json, options = {}) {
|
|
30608
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
30609
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30609
30610
|
try {
|
|
30610
30611
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
30611
30612
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30755,7 +30756,7 @@ var Move = class Move extends Activity {
|
|
|
30755
30756
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30756
30757
|
*/
|
|
30757
30758
|
static async fromJsonLd(json, options = {}) {
|
|
30758
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
30759
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30759
30760
|
try {
|
|
30760
30761
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
30761
30762
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30886,7 +30887,7 @@ var Note = class Note extends Object$1 {
|
|
|
30886
30887
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30887
30888
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30888
30889
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30889
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
30890
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30890
30891
|
let fetchResult;
|
|
30891
30892
|
try {
|
|
30892
30893
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31024,7 +31025,7 @@ var Note = class Note extends Object$1 {
|
|
|
31024
31025
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31025
31026
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31026
31027
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31027
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
31028
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31028
31029
|
let fetchResult;
|
|
31029
31030
|
try {
|
|
31030
31031
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31310,7 +31311,7 @@ var Note = class Note extends Object$1 {
|
|
|
31310
31311
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31311
31312
|
*/
|
|
31312
31313
|
static async fromJsonLd(json, options = {}) {
|
|
31313
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
31314
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31314
31315
|
try {
|
|
31315
31316
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
31316
31317
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31483,7 +31484,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
31483
31484
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31484
31485
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31485
31486
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31486
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
31487
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31487
31488
|
let fetchResult;
|
|
31488
31489
|
try {
|
|
31489
31490
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31753,7 +31754,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
31753
31754
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31754
31755
|
*/
|
|
31755
31756
|
static async fromJsonLd(json, options = {}) {
|
|
31756
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
31757
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31757
31758
|
try {
|
|
31758
31759
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
31759
31760
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31968,7 +31969,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
31968
31969
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31969
31970
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31970
31971
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31971
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
31972
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31972
31973
|
let fetchResult;
|
|
31973
31974
|
try {
|
|
31974
31975
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32261,7 +32262,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
32261
32262
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32262
32263
|
*/
|
|
32263
32264
|
static async fromJsonLd(json, options = {}) {
|
|
32264
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32265
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32265
32266
|
try {
|
|
32266
32267
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
32267
32268
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32764,7 +32765,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32764
32765
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32765
32766
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32766
32767
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32767
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
32768
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32768
32769
|
let fetchResult;
|
|
32769
32770
|
try {
|
|
32770
32771
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32926,7 +32927,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32926
32927
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32927
32928
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32928
32929
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32929
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
32930
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32930
32931
|
let fetchResult;
|
|
32931
32932
|
try {
|
|
32932
32933
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33106,7 +33107,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33106
33107
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33107
33108
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33108
33109
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33109
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33110
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33110
33111
|
let fetchResult;
|
|
33111
33112
|
try {
|
|
33112
33113
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33248,7 +33249,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33248
33249
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33249
33250
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33250
33251
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33251
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33252
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33252
33253
|
let fetchResult;
|
|
33253
33254
|
try {
|
|
33254
33255
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33387,7 +33388,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33387
33388
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33388
33389
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33389
33390
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33390
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33391
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33391
33392
|
let fetchResult;
|
|
33392
33393
|
try {
|
|
33393
33394
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33511,7 +33512,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33511
33512
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33512
33513
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33513
33514
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33514
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33515
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33515
33516
|
let fetchResult;
|
|
33516
33517
|
try {
|
|
33517
33518
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33638,7 +33639,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33638
33639
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33639
33640
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33640
33641
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33641
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33642
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33642
33643
|
let fetchResult;
|
|
33643
33644
|
try {
|
|
33644
33645
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33763,7 +33764,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33763
33764
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33764
33765
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33765
33766
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33766
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33767
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33767
33768
|
let fetchResult;
|
|
33768
33769
|
try {
|
|
33769
33770
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33886,7 +33887,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33886
33887
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33887
33888
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33888
33889
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33889
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33890
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33890
33891
|
let fetchResult;
|
|
33891
33892
|
try {
|
|
33892
33893
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34009,7 +34010,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34009
34010
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34010
34011
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34011
34012
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34012
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
34013
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34013
34014
|
let fetchResult;
|
|
34014
34015
|
try {
|
|
34015
34016
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34171,7 +34172,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34171
34172
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34172
34173
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34173
34174
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34174
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
34175
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34175
34176
|
let fetchResult;
|
|
34176
34177
|
try {
|
|
34177
34178
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34337,7 +34338,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34337
34338
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34338
34339
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34339
34340
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34340
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
34341
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34341
34342
|
let fetchResult;
|
|
34342
34343
|
try {
|
|
34343
34344
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34551,7 +34552,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34551
34552
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34552
34553
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34553
34554
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34554
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
34555
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34555
34556
|
let fetchResult;
|
|
34556
34557
|
try {
|
|
34557
34558
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35236,7 +35237,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35236
35237
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35237
35238
|
*/
|
|
35238
35239
|
static async fromJsonLd(json, options = {}) {
|
|
35239
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
35240
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35240
35241
|
try {
|
|
35241
35242
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
35242
35243
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35836,7 +35837,7 @@ var Page = class Page extends Document {
|
|
|
35836
35837
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35837
35838
|
*/
|
|
35838
35839
|
static async fromJsonLd(json, options = {}) {
|
|
35839
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
35840
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35840
35841
|
try {
|
|
35841
35842
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
35842
35843
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36231,7 +36232,7 @@ var Person = class Person extends Object$1 {
|
|
|
36231
36232
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36232
36233
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36233
36234
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36234
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36235
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36235
36236
|
let fetchResult;
|
|
36236
36237
|
try {
|
|
36237
36238
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36393,7 +36394,7 @@ var Person = class Person extends Object$1 {
|
|
|
36393
36394
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36394
36395
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36395
36396
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36396
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36397
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36397
36398
|
let fetchResult;
|
|
36398
36399
|
try {
|
|
36399
36400
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36573,7 +36574,7 @@ var Person = class Person extends Object$1 {
|
|
|
36573
36574
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36574
36575
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36575
36576
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36576
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36577
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36577
36578
|
let fetchResult;
|
|
36578
36579
|
try {
|
|
36579
36580
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36715,7 +36716,7 @@ var Person = class Person extends Object$1 {
|
|
|
36715
36716
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36716
36717
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36717
36718
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36718
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36719
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36719
36720
|
let fetchResult;
|
|
36720
36721
|
try {
|
|
36721
36722
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36854,7 +36855,7 @@ var Person = class Person extends Object$1 {
|
|
|
36854
36855
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36855
36856
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36856
36857
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36857
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36858
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36858
36859
|
let fetchResult;
|
|
36859
36860
|
try {
|
|
36860
36861
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36978,7 +36979,7 @@ var Person = class Person extends Object$1 {
|
|
|
36978
36979
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36979
36980
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36980
36981
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36981
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36982
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36982
36983
|
let fetchResult;
|
|
36983
36984
|
try {
|
|
36984
36985
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37105,7 +37106,7 @@ var Person = class Person extends Object$1 {
|
|
|
37105
37106
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37106
37107
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37107
37108
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37108
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
37109
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37109
37110
|
let fetchResult;
|
|
37110
37111
|
try {
|
|
37111
37112
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37230,7 +37231,7 @@ var Person = class Person extends Object$1 {
|
|
|
37230
37231
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37231
37232
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37232
37233
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37233
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
37234
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37234
37235
|
let fetchResult;
|
|
37235
37236
|
try {
|
|
37236
37237
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37353,7 +37354,7 @@ var Person = class Person extends Object$1 {
|
|
|
37353
37354
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37354
37355
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37355
37356
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37356
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
37357
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37357
37358
|
let fetchResult;
|
|
37358
37359
|
try {
|
|
37359
37360
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37476,7 +37477,7 @@ var Person = class Person extends Object$1 {
|
|
|
37476
37477
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37477
37478
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37478
37479
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37479
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
37480
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37480
37481
|
let fetchResult;
|
|
37481
37482
|
try {
|
|
37482
37483
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37638,7 +37639,7 @@ var Person = class Person extends Object$1 {
|
|
|
37638
37639
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37639
37640
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37640
37641
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37641
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
37642
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37642
37643
|
let fetchResult;
|
|
37643
37644
|
try {
|
|
37644
37645
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37804,7 +37805,7 @@ var Person = class Person extends Object$1 {
|
|
|
37804
37805
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37805
37806
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37806
37807
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37807
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
37808
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37808
37809
|
let fetchResult;
|
|
37809
37810
|
try {
|
|
37810
37811
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38018,7 +38019,7 @@ var Person = class Person extends Object$1 {
|
|
|
38018
38019
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38019
38020
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38020
38021
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38021
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
38022
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38022
38023
|
let fetchResult;
|
|
38023
38024
|
try {
|
|
38024
38025
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38703,7 +38704,7 @@ var Person = class Person extends Object$1 {
|
|
|
38703
38704
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38704
38705
|
*/
|
|
38705
38706
|
static async fromJsonLd(json, options = {}) {
|
|
38706
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
38707
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38707
38708
|
try {
|
|
38708
38709
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
38709
38710
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39480,7 +39481,7 @@ var Place = class Place extends Object$1 {
|
|
|
39480
39481
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39481
39482
|
*/
|
|
39482
39483
|
static async fromJsonLd(json, options = {}) {
|
|
39483
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
39484
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39484
39485
|
try {
|
|
39485
39486
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
39486
39487
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39681,7 +39682,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
39681
39682
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39682
39683
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39683
39684
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39684
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39685
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39685
39686
|
let fetchResult;
|
|
39686
39687
|
try {
|
|
39687
39688
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39882,7 +39883,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
39882
39883
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39883
39884
|
*/
|
|
39884
39885
|
static async fromJsonLd(json, options = {}) {
|
|
39885
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
39886
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39886
39887
|
try {
|
|
39887
39888
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
39888
39889
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40008,7 +40009,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40008
40009
|
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
40009
40010
|
for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
40010
40011
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
40011
|
-
if ("closed" in values && values.closed != null) if (values.closed
|
|
40012
|
+
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
40012
40013
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
40013
40014
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
40014
40015
|
else throw new TypeError("The voters must be of type number.");
|
|
@@ -40053,7 +40054,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40053
40054
|
for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
40054
40055
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
40055
40056
|
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
40056
|
-
if ("closed" in values && values.closed != null) if (values.closed
|
|
40057
|
+
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
40057
40058
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
40058
40059
|
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
40059
40060
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
@@ -40079,7 +40080,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40079
40080
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40080
40081
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40081
40082
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40082
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40083
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40083
40084
|
let fetchResult;
|
|
40084
40085
|
try {
|
|
40085
40086
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40201,7 +40202,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40201
40202
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40202
40203
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40203
40204
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40204
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40205
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40205
40206
|
let fetchResult;
|
|
40206
40207
|
try {
|
|
40207
40208
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40339,7 +40340,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40339
40340
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40340
40341
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40341
40342
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40342
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40343
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40343
40344
|
let fetchResult;
|
|
40344
40345
|
try {
|
|
40345
40346
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40477,7 +40478,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40477
40478
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40478
40479
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40479
40480
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40480
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40481
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40481
40482
|
let fetchResult;
|
|
40482
40483
|
try {
|
|
40483
40484
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40631,7 +40632,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40631
40632
|
if (array.length > 0) values["https://www.w3.org/ns/activitystreams#anyOf"] = array;
|
|
40632
40633
|
array = [];
|
|
40633
40634
|
for (const v of this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed) {
|
|
40634
|
-
const element = v
|
|
40635
|
+
const element = isTemporalInstant(v) ? {
|
|
40635
40636
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
|
40636
40637
|
"@value": v.toString()
|
|
40637
40638
|
} : { "@value": v };
|
|
@@ -40729,7 +40730,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40729
40730
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40730
40731
|
*/
|
|
40731
40732
|
static async fromJsonLd(json, options = {}) {
|
|
40732
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
40733
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40733
40734
|
try {
|
|
40734
40735
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
40735
40736
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41006,7 +41007,7 @@ var Read = class Read extends Activity {
|
|
|
41006
41007
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41007
41008
|
*/
|
|
41008
41009
|
static async fromJsonLd(json, options = {}) {
|
|
41009
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
41010
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41010
41011
|
try {
|
|
41011
41012
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
41012
41013
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41155,7 +41156,7 @@ var Reject = class Reject extends Activity {
|
|
|
41155
41156
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41156
41157
|
*/
|
|
41157
41158
|
static async fromJsonLd(json, options = {}) {
|
|
41158
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
41159
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41159
41160
|
try {
|
|
41160
41161
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
41161
41162
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41328,7 +41329,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
41328
41329
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41329
41330
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41330
41331
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41331
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
41332
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41332
41333
|
let fetchResult;
|
|
41333
41334
|
try {
|
|
41334
41335
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41451,7 +41452,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
41451
41452
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41452
41453
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41453
41454
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41454
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
41455
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41455
41456
|
let fetchResult;
|
|
41456
41457
|
try {
|
|
41457
41458
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41613,7 +41614,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
41613
41614
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41614
41615
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41615
41616
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41616
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
41617
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41617
41618
|
let fetchResult;
|
|
41618
41619
|
try {
|
|
41619
41620
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41891,7 +41892,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
41891
41892
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41892
41893
|
*/
|
|
41893
41894
|
static async fromJsonLd(json, options = {}) {
|
|
41894
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
41895
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41895
41896
|
try {
|
|
41896
41897
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
41897
41898
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42106,7 +42107,7 @@ var Remove = class Remove extends Activity {
|
|
|
42106
42107
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42107
42108
|
*/
|
|
42108
42109
|
static async fromJsonLd(json, options = {}) {
|
|
42109
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
42110
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42110
42111
|
try {
|
|
42111
42112
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
42112
42113
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42501,7 +42502,7 @@ var Service = class Service extends Object$1 {
|
|
|
42501
42502
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42502
42503
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42503
42504
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42504
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
42505
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42505
42506
|
let fetchResult;
|
|
42506
42507
|
try {
|
|
42507
42508
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42663,7 +42664,7 @@ var Service = class Service extends Object$1 {
|
|
|
42663
42664
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42664
42665
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42665
42666
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42666
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
42667
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42667
42668
|
let fetchResult;
|
|
42668
42669
|
try {
|
|
42669
42670
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42843,7 +42844,7 @@ var Service = class Service extends Object$1 {
|
|
|
42843
42844
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42844
42845
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42845
42846
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42846
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
42847
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42847
42848
|
let fetchResult;
|
|
42848
42849
|
try {
|
|
42849
42850
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42985,7 +42986,7 @@ var Service = class Service extends Object$1 {
|
|
|
42985
42986
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42986
42987
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42987
42988
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42988
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
42989
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42989
42990
|
let fetchResult;
|
|
42990
42991
|
try {
|
|
42991
42992
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43124,7 +43125,7 @@ var Service = class Service extends Object$1 {
|
|
|
43124
43125
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43125
43126
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43126
43127
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43127
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43128
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43128
43129
|
let fetchResult;
|
|
43129
43130
|
try {
|
|
43130
43131
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43248,7 +43249,7 @@ var Service = class Service extends Object$1 {
|
|
|
43248
43249
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43249
43250
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43250
43251
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43251
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43252
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43252
43253
|
let fetchResult;
|
|
43253
43254
|
try {
|
|
43254
43255
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43375,7 +43376,7 @@ var Service = class Service extends Object$1 {
|
|
|
43375
43376
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43376
43377
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43377
43378
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43378
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43379
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43379
43380
|
let fetchResult;
|
|
43380
43381
|
try {
|
|
43381
43382
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43500,7 +43501,7 @@ var Service = class Service extends Object$1 {
|
|
|
43500
43501
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43501
43502
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43502
43503
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43503
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43504
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43504
43505
|
let fetchResult;
|
|
43505
43506
|
try {
|
|
43506
43507
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43623,7 +43624,7 @@ var Service = class Service extends Object$1 {
|
|
|
43623
43624
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43624
43625
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43625
43626
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43626
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43627
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43627
43628
|
let fetchResult;
|
|
43628
43629
|
try {
|
|
43629
43630
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43746,7 +43747,7 @@ var Service = class Service extends Object$1 {
|
|
|
43746
43747
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43747
43748
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43748
43749
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43749
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43750
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43750
43751
|
let fetchResult;
|
|
43751
43752
|
try {
|
|
43752
43753
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43908,7 +43909,7 @@ var Service = class Service extends Object$1 {
|
|
|
43908
43909
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43909
43910
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43910
43911
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43911
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43912
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43912
43913
|
let fetchResult;
|
|
43913
43914
|
try {
|
|
43914
43915
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44074,7 +44075,7 @@ var Service = class Service extends Object$1 {
|
|
|
44074
44075
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44075
44076
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44076
44077
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44077
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
44078
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44078
44079
|
let fetchResult;
|
|
44079
44080
|
try {
|
|
44080
44081
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44288,7 +44289,7 @@ var Service = class Service extends Object$1 {
|
|
|
44288
44289
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44289
44290
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44290
44291
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44291
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
44292
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44292
44293
|
let fetchResult;
|
|
44293
44294
|
try {
|
|
44294
44295
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44973,7 +44974,7 @@ var Service = class Service extends Object$1 {
|
|
|
44973
44974
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44974
44975
|
*/
|
|
44975
44976
|
static async fromJsonLd(json, options = {}) {
|
|
44976
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
44977
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44977
44978
|
try {
|
|
44978
44979
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
44979
44980
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45655,7 +45656,7 @@ var Source = class {
|
|
|
45655
45656
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45656
45657
|
*/
|
|
45657
45658
|
static async fromJsonLd(json, options = {}) {
|
|
45658
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
45659
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45659
45660
|
try {
|
|
45660
45661
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
45661
45662
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45833,7 +45834,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
45833
45834
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45834
45835
|
*/
|
|
45835
45836
|
static async fromJsonLd(json, options = {}) {
|
|
45836
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
45837
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45837
45838
|
try {
|
|
45838
45839
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
45839
45840
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45982,7 +45983,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
45982
45983
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45983
45984
|
*/
|
|
45984
45985
|
static async fromJsonLd(json, options = {}) {
|
|
45985
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
45986
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45986
45987
|
try {
|
|
45987
45988
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
45988
45989
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46071,7 +46072,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
46071
46072
|
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
|
|
46072
46073
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
46073
46074
|
}
|
|
46074
|
-
if ("deleted" in values && values.deleted != null) if (values.deleted
|
|
46075
|
+
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
46075
46076
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
46076
46077
|
}
|
|
46077
46078
|
/**
|
|
@@ -46098,7 +46099,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
46098
46099
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
46099
46100
|
}
|
|
46100
46101
|
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
46101
|
-
if ("deleted" in values && values.deleted != null) if (values.deleted
|
|
46102
|
+
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
46102
46103
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
46103
46104
|
return clone;
|
|
46104
46105
|
}
|
|
@@ -46220,7 +46221,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
46220
46221
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46221
46222
|
*/
|
|
46222
46223
|
static async fromJsonLd(json, options = {}) {
|
|
46223
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
46224
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46224
46225
|
try {
|
|
46225
46226
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
46226
46227
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46406,7 +46407,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
46406
46407
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46407
46408
|
*/
|
|
46408
46409
|
static async fromJsonLd(json, options = {}) {
|
|
46409
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
46410
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46410
46411
|
try {
|
|
46411
46412
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
46412
46413
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46569,7 +46570,7 @@ var Undo = class Undo extends Activity {
|
|
|
46569
46570
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46570
46571
|
*/
|
|
46571
46572
|
static async fromJsonLd(json, options = {}) {
|
|
46572
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
46573
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46573
46574
|
try {
|
|
46574
46575
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
46575
46576
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46780,7 +46781,7 @@ var Update = class Update extends Activity {
|
|
|
46780
46781
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46781
46782
|
*/
|
|
46782
46783
|
static async fromJsonLd(json, options = {}) {
|
|
46783
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
46784
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46784
46785
|
try {
|
|
46785
46786
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
46786
46787
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46942,7 +46943,7 @@ var Video = class Video extends Document {
|
|
|
46942
46943
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46943
46944
|
*/
|
|
46944
46945
|
static async fromJsonLd(json, options = {}) {
|
|
46945
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
46946
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46946
46947
|
try {
|
|
46947
46948
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
46948
46949
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47090,7 +47091,7 @@ var View = class View extends Activity {
|
|
|
47090
47091
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47091
47092
|
*/
|
|
47092
47093
|
static async fromJsonLd(json, options = {}) {
|
|
47093
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
47094
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.3").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47094
47095
|
try {
|
|
47095
47096
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
47096
47097
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|