@fedify/vocab 2.3.14 → 2.3.15
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 +289 -219
- package/dist/mod.d.cts +70 -0
- package/dist/mod.d.ts +70 -0
- package/dist/mod.js +289 -219
- package/dist-tests/{actor-CdnIo4XD.mjs → actor-pD1GaHgZ.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/lookup.test.mjs +34 -14
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-Cyuznh-0.mjs → vocab-DHuK2moR.mjs} +288 -218
- package/dist-tests/vocab.test.mjs +11 -3
- package/package.json +5 -5
- package/src/lookup.test.ts +37 -11
- package/src/vocab.test.ts +13 -2
package/dist/mod.js
CHANGED
|
@@ -9,7 +9,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
|
|
|
9
9
|
import { delay } from "es-toolkit";
|
|
10
10
|
//#region deno.json
|
|
11
11
|
var name = "@fedify/vocab";
|
|
12
|
-
var version = "2.3.
|
|
12
|
+
var version = "2.3.15";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/type.ts
|
|
15
15
|
function getTypeId(object) {
|
|
@@ -92,6 +92,11 @@ var Object$1 = class Object$1 {
|
|
|
92
92
|
get _warning() {
|
|
93
93
|
return this.#warning;
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
97
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
98
|
+
* accessor name and its getter/setter semantics stable.
|
|
99
|
+
*/
|
|
95
100
|
get _cachedJsonLd() {
|
|
96
101
|
return this.#cachedJsonLd;
|
|
97
102
|
}
|
|
@@ -739,7 +744,7 @@ var Object$1 = class Object$1 {
|
|
|
739
744
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
740
745
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
741
746
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
742
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
747
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
743
748
|
let fetchResult;
|
|
744
749
|
try {
|
|
745
750
|
fetchResult = await documentLoader(url.href);
|
|
@@ -898,7 +903,7 @@ var Object$1 = class Object$1 {
|
|
|
898
903
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
899
904
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
900
905
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
901
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
906
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
902
907
|
let fetchResult;
|
|
903
908
|
try {
|
|
904
909
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1135,7 +1140,7 @@ var Object$1 = class Object$1 {
|
|
|
1135
1140
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1136
1141
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1137
1142
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1138
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
1143
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1139
1144
|
let fetchResult;
|
|
1140
1145
|
try {
|
|
1141
1146
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1344,7 +1349,7 @@ var Object$1 = class Object$1 {
|
|
|
1344
1349
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1345
1350
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1346
1351
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1347
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
1352
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1348
1353
|
let fetchResult;
|
|
1349
1354
|
try {
|
|
1350
1355
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1519,7 +1524,7 @@ var Object$1 = class Object$1 {
|
|
|
1519
1524
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1520
1525
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1521
1526
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1522
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
1527
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1523
1528
|
let fetchResult;
|
|
1524
1529
|
try {
|
|
1525
1530
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1662,7 +1667,7 @@ var Object$1 = class Object$1 {
|
|
|
1662
1667
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1663
1668
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1664
1669
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1665
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
1670
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1666
1671
|
let fetchResult;
|
|
1667
1672
|
try {
|
|
1668
1673
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1869,7 +1874,7 @@ var Object$1 = class Object$1 {
|
|
|
1869
1874
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1870
1875
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1871
1876
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1872
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
1877
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1873
1878
|
let fetchResult;
|
|
1874
1879
|
try {
|
|
1875
1880
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2076,7 +2081,7 @@ var Object$1 = class Object$1 {
|
|
|
2076
2081
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2077
2082
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2078
2083
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2079
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
2084
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2080
2085
|
let fetchResult;
|
|
2081
2086
|
try {
|
|
2082
2087
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2275,7 +2280,7 @@ var Object$1 = class Object$1 {
|
|
|
2275
2280
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2276
2281
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2277
2282
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2278
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
2283
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2279
2284
|
let fetchResult;
|
|
2280
2285
|
try {
|
|
2281
2286
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2474,7 +2479,7 @@ var Object$1 = class Object$1 {
|
|
|
2474
2479
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2475
2480
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2476
2481
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2477
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
2482
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2478
2483
|
let fetchResult;
|
|
2479
2484
|
try {
|
|
2480
2485
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2678,7 +2683,7 @@ var Object$1 = class Object$1 {
|
|
|
2678
2683
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2679
2684
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2680
2685
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2681
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
2686
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2682
2687
|
let fetchResult;
|
|
2683
2688
|
try {
|
|
2684
2689
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2811,7 +2816,7 @@ var Object$1 = class Object$1 {
|
|
|
2811
2816
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2812
2817
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2813
2818
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2814
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
2819
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2815
2820
|
let fetchResult;
|
|
2816
2821
|
try {
|
|
2817
2822
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2950,7 +2955,7 @@ var Object$1 = class Object$1 {
|
|
|
2950
2955
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2951
2956
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2952
2957
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2953
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
2958
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2954
2959
|
let fetchResult;
|
|
2955
2960
|
try {
|
|
2956
2961
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3089,7 +3094,7 @@ var Object$1 = class Object$1 {
|
|
|
3089
3094
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3090
3095
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3091
3096
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3092
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
3097
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3093
3098
|
let fetchResult;
|
|
3094
3099
|
try {
|
|
3095
3100
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3246,7 +3251,7 @@ var Object$1 = class Object$1 {
|
|
|
3246
3251
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3247
3252
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3248
3253
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3249
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
3254
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3250
3255
|
let fetchResult;
|
|
3251
3256
|
try {
|
|
3252
3257
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3411,7 +3416,7 @@ var Object$1 = class Object$1 {
|
|
|
3411
3416
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3412
3417
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3413
3418
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3414
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
3419
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3415
3420
|
let fetchResult;
|
|
3416
3421
|
try {
|
|
3417
3422
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3600,7 +3605,7 @@ var Object$1 = class Object$1 {
|
|
|
3600
3605
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3601
3606
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3602
3607
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3603
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
3608
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3604
3609
|
let fetchResult;
|
|
3605
3610
|
try {
|
|
3606
3611
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3789,7 +3794,7 @@ var Object$1 = class Object$1 {
|
|
|
3789
3794
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3790
3795
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3791
3796
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3792
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
3797
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3793
3798
|
let fetchResult;
|
|
3794
3799
|
try {
|
|
3795
3800
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3978,7 +3983,7 @@ var Object$1 = class Object$1 {
|
|
|
3978
3983
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3979
3984
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3980
3985
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3981
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
3986
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3982
3987
|
let fetchResult;
|
|
3983
3988
|
try {
|
|
3984
3989
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4204,7 +4209,7 @@ var Object$1 = class Object$1 {
|
|
|
4204
4209
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4205
4210
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4206
4211
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4207
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
4212
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4208
4213
|
let fetchResult;
|
|
4209
4214
|
try {
|
|
4210
4215
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4416,7 +4421,7 @@ var Object$1 = class Object$1 {
|
|
|
4416
4421
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4417
4422
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4418
4423
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4419
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
4424
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4420
4425
|
let fetchResult;
|
|
4421
4426
|
try {
|
|
4422
4427
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4549,7 +4554,7 @@ var Object$1 = class Object$1 {
|
|
|
4549
4554
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4550
4555
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4551
4556
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4552
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
4557
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4553
4558
|
let fetchResult;
|
|
4554
4559
|
try {
|
|
4555
4560
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4682,7 +4687,7 @@ var Object$1 = class Object$1 {
|
|
|
4682
4687
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4683
4688
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4684
4689
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4685
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
4690
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4686
4691
|
let fetchResult;
|
|
4687
4692
|
try {
|
|
4688
4693
|
fetchResult = await documentLoader(url.href);
|
|
@@ -5521,7 +5526,7 @@ var Object$1 = class Object$1 {
|
|
|
5521
5526
|
* @throws {TypeError} If the given `json` is invalid.
|
|
5522
5527
|
*/
|
|
5523
5528
|
static async fromJsonLd(json, options = {}) {
|
|
5524
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
5529
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
5525
5530
|
try {
|
|
5526
5531
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
5527
5532
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7188,7 +7193,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
7188
7193
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7189
7194
|
*/
|
|
7190
7195
|
static async fromJsonLd(json, options = {}) {
|
|
7191
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
7196
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7192
7197
|
try {
|
|
7193
7198
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
7194
7199
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7326,7 +7331,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7326
7331
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7327
7332
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7328
7333
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7329
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
7334
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7330
7335
|
let fetchResult;
|
|
7331
7336
|
try {
|
|
7332
7337
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7476,7 +7481,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7476
7481
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7477
7482
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7478
7483
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7479
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
7484
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7480
7485
|
let fetchResult;
|
|
7481
7486
|
try {
|
|
7482
7487
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7772,7 +7777,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7772
7777
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7773
7778
|
*/
|
|
7774
7779
|
static async fromJsonLd(json, options = {}) {
|
|
7775
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
7780
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7776
7781
|
try {
|
|
7777
7782
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
7778
7783
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -8115,7 +8120,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8115
8120
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8116
8121
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8117
8122
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8118
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
8123
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8119
8124
|
let fetchResult;
|
|
8120
8125
|
try {
|
|
8121
8126
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8352,7 +8357,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8352
8357
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8353
8358
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8354
8359
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8355
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
8360
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8356
8361
|
let fetchResult;
|
|
8357
8362
|
try {
|
|
8358
8363
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8543,7 +8548,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8543
8548
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8544
8549
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8545
8550
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8546
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
8551
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8547
8552
|
let fetchResult;
|
|
8548
8553
|
try {
|
|
8549
8554
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8740,7 +8745,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8740
8745
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8741
8746
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8742
8747
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8743
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
8748
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8744
8749
|
let fetchResult;
|
|
8745
8750
|
try {
|
|
8746
8751
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8931,7 +8936,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8931
8936
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8932
8937
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8933
8938
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8934
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
8939
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8935
8940
|
let fetchResult;
|
|
8936
8941
|
try {
|
|
8937
8942
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9124,7 +9129,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
9124
9129
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9125
9130
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9126
9131
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9127
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
9132
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9128
9133
|
let fetchResult;
|
|
9129
9134
|
try {
|
|
9130
9135
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9400,7 +9405,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
9400
9405
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9401
9406
|
*/
|
|
9402
9407
|
static async fromJsonLd(json, options = {}) {
|
|
9403
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
9408
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9404
9409
|
try {
|
|
9405
9410
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
9406
9411
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9767,7 +9772,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9767
9772
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9768
9773
|
*/
|
|
9769
9774
|
static async fromJsonLd(json, options = {}) {
|
|
9770
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
9775
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9771
9776
|
try {
|
|
9772
9777
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
9773
9778
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9855,6 +9860,11 @@ var PropertyValue = class {
|
|
|
9855
9860
|
get _warning() {
|
|
9856
9861
|
return this.#warning;
|
|
9857
9862
|
}
|
|
9863
|
+
/**
|
|
9864
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
9865
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
9866
|
+
* accessor name and its getter/setter semantics stable.
|
|
9867
|
+
*/
|
|
9858
9868
|
get _cachedJsonLd() {
|
|
9859
9869
|
return this.#cachedJsonLd;
|
|
9860
9870
|
}
|
|
@@ -10035,7 +10045,7 @@ var PropertyValue = class {
|
|
|
10035
10045
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10036
10046
|
*/
|
|
10037
10047
|
static async fromJsonLd(json, options = {}) {
|
|
10038
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
10048
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10039
10049
|
try {
|
|
10040
10050
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
10041
10051
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10159,6 +10169,11 @@ var Measure = class {
|
|
|
10159
10169
|
get _warning() {
|
|
10160
10170
|
return this.#warning;
|
|
10161
10171
|
}
|
|
10172
|
+
/**
|
|
10173
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
10174
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
10175
|
+
* accessor name and its getter/setter semantics stable.
|
|
10176
|
+
*/
|
|
10162
10177
|
get _cachedJsonLd() {
|
|
10163
10178
|
return this.#cachedJsonLd;
|
|
10164
10179
|
}
|
|
@@ -10330,7 +10345,7 @@ var Measure = class {
|
|
|
10330
10345
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10331
10346
|
*/
|
|
10332
10347
|
static async fromJsonLd(json, options = {}) {
|
|
10333
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
10348
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10334
10349
|
try {
|
|
10335
10350
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
10336
10351
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10502,7 +10517,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10502
10517
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10503
10518
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10504
10519
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10505
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
10520
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10506
10521
|
let fetchResult;
|
|
10507
10522
|
try {
|
|
10508
10523
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10635,7 +10650,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10635
10650
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10636
10651
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10637
10652
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10638
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
10653
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10639
10654
|
let fetchResult;
|
|
10640
10655
|
try {
|
|
10641
10656
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10863,7 +10878,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10863
10878
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10864
10879
|
*/
|
|
10865
10880
|
static async fromJsonLd(json, options = {}) {
|
|
10866
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
10881
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10867
10882
|
try {
|
|
10868
10883
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
10869
10884
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11078,7 +11093,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
11078
11093
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11079
11094
|
*/
|
|
11080
11095
|
static async fromJsonLd(json, options = {}) {
|
|
11081
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
11096
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11082
11097
|
try {
|
|
11083
11098
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
11084
11099
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11172,6 +11187,11 @@ var InteractionPolicy = class {
|
|
|
11172
11187
|
get _warning() {
|
|
11173
11188
|
return this.#warning;
|
|
11174
11189
|
}
|
|
11190
|
+
/**
|
|
11191
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
11192
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
11193
|
+
* accessor name and its getter/setter semantics stable.
|
|
11194
|
+
*/
|
|
11175
11195
|
get _cachedJsonLd() {
|
|
11176
11196
|
return this.#cachedJsonLd;
|
|
11177
11197
|
}
|
|
@@ -11364,7 +11384,7 @@ var InteractionPolicy = class {
|
|
|
11364
11384
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11365
11385
|
*/
|
|
11366
11386
|
static async fromJsonLd(json, options = {}) {
|
|
11367
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
11387
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11368
11388
|
try {
|
|
11369
11389
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
11370
11390
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11553,6 +11573,11 @@ var InteractionRule = class {
|
|
|
11553
11573
|
get _warning() {
|
|
11554
11574
|
return this.#warning;
|
|
11555
11575
|
}
|
|
11576
|
+
/**
|
|
11577
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
11578
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
11579
|
+
* accessor name and its getter/setter semantics stable.
|
|
11580
|
+
*/
|
|
11556
11581
|
get _cachedJsonLd() {
|
|
11557
11582
|
return this.#cachedJsonLd;
|
|
11558
11583
|
}
|
|
@@ -11727,7 +11752,7 @@ var InteractionRule = class {
|
|
|
11727
11752
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11728
11753
|
*/
|
|
11729
11754
|
static async fromJsonLd(json, options = {}) {
|
|
11730
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
11755
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11731
11756
|
try {
|
|
11732
11757
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
11733
11758
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11900,7 +11925,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11900
11925
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11901
11926
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11902
11927
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11903
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
11928
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11904
11929
|
let fetchResult;
|
|
11905
11930
|
try {
|
|
11906
11931
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12033,7 +12058,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
12033
12058
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12034
12059
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12035
12060
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12036
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
12061
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12037
12062
|
let fetchResult;
|
|
12038
12063
|
try {
|
|
12039
12064
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12261,7 +12286,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
12261
12286
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12262
12287
|
*/
|
|
12263
12288
|
static async fromJsonLd(json, options = {}) {
|
|
12264
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
12289
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12265
12290
|
try {
|
|
12266
12291
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
12267
12292
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12475,7 +12500,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
12475
12500
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12476
12501
|
*/
|
|
12477
12502
|
static async fromJsonLd(json, options = {}) {
|
|
12478
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
12503
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12479
12504
|
try {
|
|
12480
12505
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
12481
12506
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12610,7 +12635,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12610
12635
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12611
12636
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12612
12637
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12613
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
12638
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12614
12639
|
let fetchResult;
|
|
12615
12640
|
try {
|
|
12616
12641
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12743,7 +12768,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12743
12768
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12744
12769
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12745
12770
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12746
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
12771
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12747
12772
|
let fetchResult;
|
|
12748
12773
|
try {
|
|
12749
12774
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12971,7 +12996,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12971
12996
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12972
12997
|
*/
|
|
12973
12998
|
static async fromJsonLd(json, options = {}) {
|
|
12974
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
12999
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12975
13000
|
try {
|
|
12976
13001
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
12977
13002
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13185,7 +13210,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
13185
13210
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13186
13211
|
*/
|
|
13187
13212
|
static async fromJsonLd(json, options = {}) {
|
|
13188
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
13213
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13189
13214
|
try {
|
|
13190
13215
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
13191
13216
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13320,7 +13345,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13320
13345
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13321
13346
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13322
13347
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13323
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
13348
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13324
13349
|
let fetchResult;
|
|
13325
13350
|
try {
|
|
13326
13351
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13452,7 +13477,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13452
13477
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13453
13478
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13454
13479
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13455
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
13480
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13456
13481
|
let fetchResult;
|
|
13457
13482
|
try {
|
|
13458
13483
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13682,7 +13707,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13682
13707
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13683
13708
|
*/
|
|
13684
13709
|
static async fromJsonLd(json, options = {}) {
|
|
13685
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
13710
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13686
13711
|
try {
|
|
13687
13712
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
13688
13713
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13926,7 +13951,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13926
13951
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13927
13952
|
*/
|
|
13928
13953
|
static async fromJsonLd(json, options = {}) {
|
|
13929
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
13954
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13930
13955
|
try {
|
|
13931
13956
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
13932
13957
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14017,6 +14042,11 @@ var DidService = class {
|
|
|
14017
14042
|
get _warning() {
|
|
14018
14043
|
return this.#warning;
|
|
14019
14044
|
}
|
|
14045
|
+
/**
|
|
14046
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
14047
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
14048
|
+
* accessor name and its getter/setter semantics stable.
|
|
14049
|
+
*/
|
|
14020
14050
|
get _cachedJsonLd() {
|
|
14021
14051
|
return this.#cachedJsonLd;
|
|
14022
14052
|
}
|
|
@@ -14154,7 +14184,7 @@ var DidService = class {
|
|
|
14154
14184
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14155
14185
|
*/
|
|
14156
14186
|
static async fromJsonLd(json, options = {}) {
|
|
14157
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
14187
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14158
14188
|
try {
|
|
14159
14189
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
14160
14190
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14318,7 +14348,7 @@ var Export = class Export extends DidService {
|
|
|
14318
14348
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14319
14349
|
*/
|
|
14320
14350
|
static async fromJsonLd(json, options = {}) {
|
|
14321
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
14351
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14322
14352
|
try {
|
|
14323
14353
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
14324
14354
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14407,6 +14437,11 @@ var DataIntegrityProof = class {
|
|
|
14407
14437
|
get _warning() {
|
|
14408
14438
|
return this.#warning;
|
|
14409
14439
|
}
|
|
14440
|
+
/**
|
|
14441
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
14442
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
14443
|
+
* accessor name and its getter/setter semantics stable.
|
|
14444
|
+
*/
|
|
14410
14445
|
get _cachedJsonLd() {
|
|
14411
14446
|
return this.#cachedJsonLd;
|
|
14412
14447
|
}
|
|
@@ -14513,7 +14548,7 @@ var DataIntegrityProof = class {
|
|
|
14513
14548
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14514
14549
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14515
14550
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14516
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
14551
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14517
14552
|
let fetchResult;
|
|
14518
14553
|
try {
|
|
14519
14554
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14732,7 +14767,7 @@ var DataIntegrityProof = class {
|
|
|
14732
14767
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14733
14768
|
*/
|
|
14734
14769
|
static async fromJsonLd(json, options = {}) {
|
|
14735
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
14770
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14736
14771
|
try {
|
|
14737
14772
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
14738
14773
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14918,6 +14953,11 @@ var CryptographicKey = class {
|
|
|
14918
14953
|
get _warning() {
|
|
14919
14954
|
return this.#warning;
|
|
14920
14955
|
}
|
|
14956
|
+
/**
|
|
14957
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
14958
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
14959
|
+
* accessor name and its getter/setter semantics stable.
|
|
14960
|
+
*/
|
|
14921
14961
|
get _cachedJsonLd() {
|
|
14922
14962
|
return this.#cachedJsonLd;
|
|
14923
14963
|
}
|
|
@@ -14999,7 +15039,7 @@ var CryptographicKey = class {
|
|
|
14999
15039
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15000
15040
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15001
15041
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15002
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
15042
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15003
15043
|
let fetchResult;
|
|
15004
15044
|
try {
|
|
15005
15045
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15273,7 +15313,7 @@ var CryptographicKey = class {
|
|
|
15273
15313
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15274
15314
|
*/
|
|
15275
15315
|
static async fromJsonLd(json, options = {}) {
|
|
15276
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
15316
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15277
15317
|
try {
|
|
15278
15318
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
15279
15319
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15420,6 +15460,11 @@ var Multikey = class {
|
|
|
15420
15460
|
get _warning() {
|
|
15421
15461
|
return this.#warning;
|
|
15422
15462
|
}
|
|
15463
|
+
/**
|
|
15464
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
15465
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
15466
|
+
* accessor name and its getter/setter semantics stable.
|
|
15467
|
+
*/
|
|
15423
15468
|
get _cachedJsonLd() {
|
|
15424
15469
|
return this.#cachedJsonLd;
|
|
15425
15470
|
}
|
|
@@ -15501,7 +15546,7 @@ var Multikey = class {
|
|
|
15501
15546
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15502
15547
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15503
15548
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15504
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
15549
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15505
15550
|
let fetchResult;
|
|
15506
15551
|
try {
|
|
15507
15552
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15781,7 +15826,7 @@ var Multikey = class {
|
|
|
15781
15826
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15782
15827
|
*/
|
|
15783
15828
|
static async fromJsonLd(json, options = {}) {
|
|
15784
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
15829
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15785
15830
|
try {
|
|
15786
15831
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
15787
15832
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16120,7 +16165,7 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
16120
16165
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16121
16166
|
*/
|
|
16122
16167
|
static async fromJsonLd(json, options = {}) {
|
|
16123
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
16168
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16124
16169
|
try {
|
|
16125
16170
|
const object = await this.__fromJsonLd__Agreement__(json, span, options);
|
|
16126
16171
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16254,6 +16299,11 @@ var Commitment = class {
|
|
|
16254
16299
|
get _warning() {
|
|
16255
16300
|
return this.#warning;
|
|
16256
16301
|
}
|
|
16302
|
+
/**
|
|
16303
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
16304
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
16305
|
+
* accessor name and its getter/setter semantics stable.
|
|
16306
|
+
*/
|
|
16257
16307
|
get _cachedJsonLd() {
|
|
16258
16308
|
return this.#cachedJsonLd;
|
|
16259
16309
|
}
|
|
@@ -16444,7 +16494,7 @@ var Commitment = class {
|
|
|
16444
16494
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16445
16495
|
*/
|
|
16446
16496
|
static async fromJsonLd(json, options = {}) {
|
|
16447
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
16497
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16448
16498
|
try {
|
|
16449
16499
|
const object = await this.__fromJsonLd__Commitment__(json, span, options);
|
|
16450
16500
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16572,6 +16622,11 @@ var Intent = class {
|
|
|
16572
16622
|
get _warning() {
|
|
16573
16623
|
return this.#warning;
|
|
16574
16624
|
}
|
|
16625
|
+
/**
|
|
16626
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
16627
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
16628
|
+
* accessor name and its getter/setter semantics stable.
|
|
16629
|
+
*/
|
|
16575
16630
|
get _cachedJsonLd() {
|
|
16576
16631
|
return this.#cachedJsonLd;
|
|
16577
16632
|
}
|
|
@@ -16846,7 +16901,7 @@ var Intent = class {
|
|
|
16846
16901
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16847
16902
|
*/
|
|
16848
16903
|
static async fromJsonLd(json, options = {}) {
|
|
16849
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
16904
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16850
16905
|
try {
|
|
16851
16906
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
16852
16907
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17287,7 +17342,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
17287
17342
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17288
17343
|
*/
|
|
17289
17344
|
static async fromJsonLd(json, options = {}) {
|
|
17290
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
17345
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17291
17346
|
try {
|
|
17292
17347
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
17293
17348
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17520,7 +17575,7 @@ var Accept = class Accept extends Activity {
|
|
|
17520
17575
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17521
17576
|
*/
|
|
17522
17577
|
static async fromJsonLd(json, options = {}) {
|
|
17523
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
17578
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17524
17579
|
try {
|
|
17525
17580
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
17526
17581
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17676,7 +17731,7 @@ var Add = class Add extends Activity {
|
|
|
17676
17731
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17677
17732
|
*/
|
|
17678
17733
|
static async fromJsonLd(json, options = {}) {
|
|
17679
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
17734
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17680
17735
|
try {
|
|
17681
17736
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
17682
17737
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17859,7 +17914,7 @@ var Announce = class Announce extends Activity {
|
|
|
17859
17914
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17860
17915
|
*/
|
|
17861
17916
|
static async fromJsonLd(json, options = {}) {
|
|
17862
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
17917
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17863
17918
|
try {
|
|
17864
17919
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
17865
17920
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18258,7 +18313,7 @@ var Application = class Application extends Object$1 {
|
|
|
18258
18313
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18259
18314
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18260
18315
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18261
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
18316
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18262
18317
|
let fetchResult;
|
|
18263
18318
|
try {
|
|
18264
18319
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18445,7 +18500,7 @@ var Application = class Application extends Object$1 {
|
|
|
18445
18500
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18446
18501
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18447
18502
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18448
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
18503
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18449
18504
|
let fetchResult;
|
|
18450
18505
|
try {
|
|
18451
18506
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18650,7 +18705,7 @@ var Application = class Application extends Object$1 {
|
|
|
18650
18705
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18651
18706
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18652
18707
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18653
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
18708
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18654
18709
|
let fetchResult;
|
|
18655
18710
|
try {
|
|
18656
18711
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18804,7 +18859,7 @@ var Application = class Application extends Object$1 {
|
|
|
18804
18859
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18805
18860
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18806
18861
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18807
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
18862
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18808
18863
|
let fetchResult;
|
|
18809
18864
|
try {
|
|
18810
18865
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18955,7 +19010,7 @@ var Application = class Application extends Object$1 {
|
|
|
18955
19010
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18956
19011
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18957
19012
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18958
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
19013
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18959
19014
|
let fetchResult;
|
|
18960
19015
|
try {
|
|
18961
19016
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19091,7 +19146,7 @@ var Application = class Application extends Object$1 {
|
|
|
19091
19146
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19092
19147
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19093
19148
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19094
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
19149
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19095
19150
|
let fetchResult;
|
|
19096
19151
|
try {
|
|
19097
19152
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19230,7 +19285,7 @@ var Application = class Application extends Object$1 {
|
|
|
19230
19285
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19231
19286
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19232
19287
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19233
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
19288
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19234
19289
|
let fetchResult;
|
|
19235
19290
|
try {
|
|
19236
19291
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19367,7 +19422,7 @@ var Application = class Application extends Object$1 {
|
|
|
19367
19422
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19368
19423
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19369
19424
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19370
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
19425
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19371
19426
|
let fetchResult;
|
|
19372
19427
|
try {
|
|
19373
19428
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19502,7 +19557,7 @@ var Application = class Application extends Object$1 {
|
|
|
19502
19557
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19503
19558
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19504
19559
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19505
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
19560
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19506
19561
|
let fetchResult;
|
|
19507
19562
|
try {
|
|
19508
19563
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19637,7 +19692,7 @@ var Application = class Application extends Object$1 {
|
|
|
19637
19692
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19638
19693
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19639
19694
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19640
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
19695
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19641
19696
|
let fetchResult;
|
|
19642
19697
|
try {
|
|
19643
19698
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19812,7 +19867,7 @@ var Application = class Application extends Object$1 {
|
|
|
19812
19867
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19813
19868
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19814
19869
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19815
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
19870
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19816
19871
|
let fetchResult;
|
|
19817
19872
|
try {
|
|
19818
19873
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19990,7 +20045,7 @@ var Application = class Application extends Object$1 {
|
|
|
19990
20045
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19991
20046
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19992
20047
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19993
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
20048
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19994
20049
|
let fetchResult;
|
|
19995
20050
|
try {
|
|
19996
20051
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20229,7 +20284,7 @@ var Application = class Application extends Object$1 {
|
|
|
20229
20284
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20230
20285
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20231
20286
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20232
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
20287
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20233
20288
|
let fetchResult;
|
|
20234
20289
|
try {
|
|
20235
20290
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20939,7 +20994,7 @@ var Application = class Application extends Object$1 {
|
|
|
20939
20994
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20940
20995
|
*/
|
|
20941
20996
|
static async fromJsonLd(json, options = {}) {
|
|
20942
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
20997
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20943
20998
|
try {
|
|
20944
20999
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
20945
21000
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21632,7 +21687,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
21632
21687
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21633
21688
|
*/
|
|
21634
21689
|
static async fromJsonLd(json, options = {}) {
|
|
21635
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
21690
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21636
21691
|
try {
|
|
21637
21692
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
21638
21693
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21789,7 +21844,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
21789
21844
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21790
21845
|
*/
|
|
21791
21846
|
static async fromJsonLd(json, options = {}) {
|
|
21792
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
21847
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21793
21848
|
try {
|
|
21794
21849
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
21795
21850
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21923,7 +21978,7 @@ var Article = class Article extends Object$1 {
|
|
|
21923
21978
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21924
21979
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21925
21980
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21926
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
21981
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21927
21982
|
let fetchResult;
|
|
21928
21983
|
try {
|
|
21929
21984
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22073,7 +22128,7 @@ var Article = class Article extends Object$1 {
|
|
|
22073
22128
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22074
22129
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22075
22130
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22076
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
22131
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22077
22132
|
let fetchResult;
|
|
22078
22133
|
try {
|
|
22079
22134
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22371,7 +22426,7 @@ var Article = class Article extends Object$1 {
|
|
|
22371
22426
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22372
22427
|
*/
|
|
22373
22428
|
static async fromJsonLd(json, options = {}) {
|
|
22374
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
22429
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22375
22430
|
try {
|
|
22376
22431
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
22377
22432
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22670,7 +22725,7 @@ var Document = class Document extends Object$1 {
|
|
|
22670
22725
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22671
22726
|
*/
|
|
22672
22727
|
static async fromJsonLd(json, options = {}) {
|
|
22673
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
22728
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22674
22729
|
try {
|
|
22675
22730
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
22676
22731
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22877,7 +22932,7 @@ var Audio = class Audio extends Document {
|
|
|
22877
22932
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22878
22933
|
*/
|
|
22879
22934
|
static async fromJsonLd(json, options = {}) {
|
|
22880
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
22935
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22881
22936
|
try {
|
|
22882
22937
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
22883
22938
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23030,7 +23085,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
23030
23085
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23031
23086
|
*/
|
|
23032
23087
|
static async fromJsonLd(json, options = {}) {
|
|
23033
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
23088
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23034
23089
|
try {
|
|
23035
23090
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
23036
23091
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23186,7 +23241,7 @@ var Block = class Block extends Ignore {
|
|
|
23186
23241
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23187
23242
|
*/
|
|
23188
23243
|
static async fromJsonLd(json, options = {}) {
|
|
23189
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
23244
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23190
23245
|
try {
|
|
23191
23246
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
23192
23247
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23454,7 +23509,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23454
23509
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23455
23510
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23456
23511
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23457
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
23512
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23458
23513
|
let fetchResult;
|
|
23459
23514
|
try {
|
|
23460
23515
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23587,7 +23642,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23587
23642
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23588
23643
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23589
23644
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23590
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
23645
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23591
23646
|
let fetchResult;
|
|
23592
23647
|
try {
|
|
23593
23648
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23720,7 +23775,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23720
23775
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23721
23776
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23722
23777
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23723
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
23778
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23724
23779
|
let fetchResult;
|
|
23725
23780
|
try {
|
|
23726
23781
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23853,7 +23908,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23853
23908
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23854
23909
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23855
23910
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23856
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
23911
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23857
23912
|
let fetchResult;
|
|
23858
23913
|
try {
|
|
23859
23914
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23997,7 +24052,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23997
24052
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23998
24053
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23999
24054
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24000
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24055
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24001
24056
|
let fetchResult;
|
|
24002
24057
|
try {
|
|
24003
24058
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24129,7 +24184,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24129
24184
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24130
24185
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24131
24186
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24132
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24187
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24133
24188
|
let fetchResult;
|
|
24134
24189
|
try {
|
|
24135
24190
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24261,7 +24316,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24261
24316
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24262
24317
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24263
24318
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24264
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24319
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24265
24320
|
let fetchResult;
|
|
24266
24321
|
try {
|
|
24267
24322
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24393,7 +24448,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24393
24448
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24394
24449
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24395
24450
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24396
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24451
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24397
24452
|
let fetchResult;
|
|
24398
24453
|
try {
|
|
24399
24454
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24525,7 +24580,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24525
24580
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24526
24581
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24527
24582
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24528
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24583
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24529
24584
|
let fetchResult;
|
|
24530
24585
|
try {
|
|
24531
24586
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24657,7 +24712,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24657
24712
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24658
24713
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24659
24714
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24660
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24715
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24661
24716
|
let fetchResult;
|
|
24662
24717
|
try {
|
|
24663
24718
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24789,7 +24844,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24789
24844
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24790
24845
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24791
24846
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24792
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24847
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24793
24848
|
let fetchResult;
|
|
24794
24849
|
try {
|
|
24795
24850
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24921,7 +24976,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24921
24976
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24922
24977
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24923
24978
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24924
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
24979
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24925
24980
|
let fetchResult;
|
|
24926
24981
|
try {
|
|
24927
24982
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25382,7 +25437,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
25382
25437
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25383
25438
|
*/
|
|
25384
25439
|
static async fromJsonLd(json, options = {}) {
|
|
25385
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
25440
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25386
25441
|
try {
|
|
25387
25442
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
25388
25443
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25931,7 +25986,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25931
25986
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25932
25987
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25933
25988
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25934
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
25989
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25935
25990
|
let fetchResult;
|
|
25936
25991
|
try {
|
|
25937
25992
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26064,7 +26119,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
26064
26119
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26065
26120
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26066
26121
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26067
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
26122
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26068
26123
|
let fetchResult;
|
|
26069
26124
|
try {
|
|
26070
26125
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26196,7 +26251,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
26196
26251
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26197
26252
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26198
26253
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26199
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
26254
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26200
26255
|
let fetchResult;
|
|
26201
26256
|
try {
|
|
26202
26257
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26494,7 +26549,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
26494
26549
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26495
26550
|
*/
|
|
26496
26551
|
static async fromJsonLd(json, options = {}) {
|
|
26497
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
26552
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26498
26553
|
try {
|
|
26499
26554
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
26500
26555
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26756,7 +26811,7 @@ var Create = class Create extends Activity {
|
|
|
26756
26811
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26757
26812
|
*/
|
|
26758
26813
|
static async fromJsonLd(json, options = {}) {
|
|
26759
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
26814
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26760
26815
|
try {
|
|
26761
26816
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
26762
26817
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26935,7 +26990,7 @@ var Delete = class Delete extends Activity {
|
|
|
26935
26990
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26936
26991
|
*/
|
|
26937
26992
|
static async fromJsonLd(json, options = {}) {
|
|
26938
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
26993
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26939
26994
|
try {
|
|
26940
26995
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
26941
26996
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27091,7 +27146,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
27091
27146
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27092
27147
|
*/
|
|
27093
27148
|
static async fromJsonLd(json, options = {}) {
|
|
27094
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
27149
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27095
27150
|
try {
|
|
27096
27151
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
27097
27152
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27179,6 +27234,11 @@ var Endpoints = class {
|
|
|
27179
27234
|
get _warning() {
|
|
27180
27235
|
return this.#warning;
|
|
27181
27236
|
}
|
|
27237
|
+
/**
|
|
27238
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
27239
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
27240
|
+
* accessor name and its getter/setter semantics stable.
|
|
27241
|
+
*/
|
|
27182
27242
|
get _cachedJsonLd() {
|
|
27183
27243
|
return this.#cachedJsonLd;
|
|
27184
27244
|
}
|
|
@@ -27458,7 +27518,7 @@ var Endpoints = class {
|
|
|
27458
27518
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27459
27519
|
*/
|
|
27460
27520
|
static async fromJsonLd(json, options = {}) {
|
|
27461
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
27521
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27462
27522
|
try {
|
|
27463
27523
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
27464
27524
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27732,7 +27792,7 @@ var Event = class Event extends Object$1 {
|
|
|
27732
27792
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27733
27793
|
*/
|
|
27734
27794
|
static async fromJsonLd(json, options = {}) {
|
|
27735
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
27795
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27736
27796
|
try {
|
|
27737
27797
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
27738
27798
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27886,7 +27946,7 @@ var Flag = class Flag extends Activity {
|
|
|
27886
27946
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27887
27947
|
*/
|
|
27888
27948
|
static async fromJsonLd(json, options = {}) {
|
|
27889
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
27949
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27890
27950
|
try {
|
|
27891
27951
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
27892
27952
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28044,7 +28104,7 @@ var Follow = class Follow extends Activity {
|
|
|
28044
28104
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28045
28105
|
*/
|
|
28046
28106
|
static async fromJsonLd(json, options = {}) {
|
|
28047
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
28107
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28048
28108
|
try {
|
|
28049
28109
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
28050
28110
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28443,7 +28503,7 @@ var Group = class Group extends Object$1 {
|
|
|
28443
28503
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28444
28504
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28445
28505
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28446
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
28506
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28447
28507
|
let fetchResult;
|
|
28448
28508
|
try {
|
|
28449
28509
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28630,7 +28690,7 @@ var Group = class Group extends Object$1 {
|
|
|
28630
28690
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28631
28691
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28632
28692
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28633
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
28693
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28634
28694
|
let fetchResult;
|
|
28635
28695
|
try {
|
|
28636
28696
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28835,7 +28895,7 @@ var Group = class Group extends Object$1 {
|
|
|
28835
28895
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28836
28896
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28837
28897
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28838
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
28898
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28839
28899
|
let fetchResult;
|
|
28840
28900
|
try {
|
|
28841
28901
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28989,7 +29049,7 @@ var Group = class Group extends Object$1 {
|
|
|
28989
29049
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28990
29050
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28991
29051
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28992
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
29052
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28993
29053
|
let fetchResult;
|
|
28994
29054
|
try {
|
|
28995
29055
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29140,7 +29200,7 @@ var Group = class Group extends Object$1 {
|
|
|
29140
29200
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29141
29201
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29142
29202
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29143
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
29203
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29144
29204
|
let fetchResult;
|
|
29145
29205
|
try {
|
|
29146
29206
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29276,7 +29336,7 @@ var Group = class Group extends Object$1 {
|
|
|
29276
29336
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29277
29337
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29278
29338
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29279
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
29339
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29280
29340
|
let fetchResult;
|
|
29281
29341
|
try {
|
|
29282
29342
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29415,7 +29475,7 @@ var Group = class Group extends Object$1 {
|
|
|
29415
29475
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29416
29476
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29417
29477
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29418
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
29478
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29419
29479
|
let fetchResult;
|
|
29420
29480
|
try {
|
|
29421
29481
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29552,7 +29612,7 @@ var Group = class Group extends Object$1 {
|
|
|
29552
29612
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29553
29613
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29554
29614
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29555
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
29615
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29556
29616
|
let fetchResult;
|
|
29557
29617
|
try {
|
|
29558
29618
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29687,7 +29747,7 @@ var Group = class Group extends Object$1 {
|
|
|
29687
29747
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29688
29748
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29689
29749
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29690
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
29750
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29691
29751
|
let fetchResult;
|
|
29692
29752
|
try {
|
|
29693
29753
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29822,7 +29882,7 @@ var Group = class Group extends Object$1 {
|
|
|
29822
29882
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29823
29883
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29824
29884
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29825
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
29885
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29826
29886
|
let fetchResult;
|
|
29827
29887
|
try {
|
|
29828
29888
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29997,7 +30057,7 @@ var Group = class Group extends Object$1 {
|
|
|
29997
30057
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29998
30058
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29999
30059
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30000
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
30060
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30001
30061
|
let fetchResult;
|
|
30002
30062
|
try {
|
|
30003
30063
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30175,7 +30235,7 @@ var Group = class Group extends Object$1 {
|
|
|
30175
30235
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30176
30236
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30177
30237
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30178
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
30238
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30179
30239
|
let fetchResult;
|
|
30180
30240
|
try {
|
|
30181
30241
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30414,7 +30474,7 @@ var Group = class Group extends Object$1 {
|
|
|
30414
30474
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30415
30475
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30416
30476
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30417
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
30477
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30418
30478
|
let fetchResult;
|
|
30419
30479
|
try {
|
|
30420
30480
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31124,7 +31184,7 @@ var Group = class Group extends Object$1 {
|
|
|
31124
31184
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31125
31185
|
*/
|
|
31126
31186
|
static async fromJsonLd(json, options = {}) {
|
|
31127
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
31187
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31128
31188
|
try {
|
|
31129
31189
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
31130
31190
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31758,6 +31818,11 @@ var Link = class Link {
|
|
|
31758
31818
|
get _warning() {
|
|
31759
31819
|
return this.#warning;
|
|
31760
31820
|
}
|
|
31821
|
+
/**
|
|
31822
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
31823
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
31824
|
+
* accessor name and its getter/setter semantics stable.
|
|
31825
|
+
*/
|
|
31761
31826
|
get _cachedJsonLd() {
|
|
31762
31827
|
return this.#cachedJsonLd;
|
|
31763
31828
|
}
|
|
@@ -31973,7 +32038,7 @@ var Link = class Link {
|
|
|
31973
32038
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31974
32039
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31975
32040
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31976
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
32041
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31977
32042
|
let fetchResult;
|
|
31978
32043
|
try {
|
|
31979
32044
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32278,7 +32343,7 @@ var Link = class Link {
|
|
|
32278
32343
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32279
32344
|
*/
|
|
32280
32345
|
static async fromJsonLd(json, options = {}) {
|
|
32281
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
32346
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32282
32347
|
try {
|
|
32283
32348
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
32284
32349
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32664,7 +32729,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
32664
32729
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32665
32730
|
*/
|
|
32666
32731
|
static async fromJsonLd(json, options = {}) {
|
|
32667
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
32732
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32668
32733
|
try {
|
|
32669
32734
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
32670
32735
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32830,7 +32895,7 @@ var Image = class Image extends Document {
|
|
|
32830
32895
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32831
32896
|
*/
|
|
32832
32897
|
static async fromJsonLd(json, options = {}) {
|
|
32833
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
32898
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32834
32899
|
try {
|
|
32835
32900
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
32836
32901
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32984,7 +33049,7 @@ var Offer = class Offer extends Activity {
|
|
|
32984
33049
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32985
33050
|
*/
|
|
32986
33051
|
static async fromJsonLd(json, options = {}) {
|
|
32987
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
33052
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32988
33053
|
try {
|
|
32989
33054
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
32990
33055
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33138,7 +33203,7 @@ var Invite = class Invite extends Offer {
|
|
|
33138
33203
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33139
33204
|
*/
|
|
33140
33205
|
static async fromJsonLd(json, options = {}) {
|
|
33141
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
33206
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33142
33207
|
try {
|
|
33143
33208
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
33144
33209
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33291,7 +33356,7 @@ var Join = class Join extends Activity {
|
|
|
33291
33356
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33292
33357
|
*/
|
|
33293
33358
|
static async fromJsonLd(json, options = {}) {
|
|
33294
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
33359
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33295
33360
|
try {
|
|
33296
33361
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
33297
33362
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33444,7 +33509,7 @@ var Leave = class Leave extends Activity {
|
|
|
33444
33509
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33445
33510
|
*/
|
|
33446
33511
|
static async fromJsonLd(json, options = {}) {
|
|
33447
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
33512
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33448
33513
|
try {
|
|
33449
33514
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
33450
33515
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33601,7 +33666,7 @@ var Like = class Like extends Activity {
|
|
|
33601
33666
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33602
33667
|
*/
|
|
33603
33668
|
static async fromJsonLd(json, options = {}) {
|
|
33604
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
33669
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33605
33670
|
try {
|
|
33606
33671
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
33607
33672
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33753,7 +33818,7 @@ var Listen = class Listen extends Activity {
|
|
|
33753
33818
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33754
33819
|
*/
|
|
33755
33820
|
static async fromJsonLd(json, options = {}) {
|
|
33756
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
33821
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33757
33822
|
try {
|
|
33758
33823
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
33759
33824
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33908,7 +33973,7 @@ var Mention = class Mention extends Link {
|
|
|
33908
33973
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33909
33974
|
*/
|
|
33910
33975
|
static async fromJsonLd(json, options = {}) {
|
|
33911
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
33976
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33912
33977
|
try {
|
|
33913
33978
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
33914
33979
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34062,7 +34127,7 @@ var Move = class Move extends Activity {
|
|
|
34062
34127
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34063
34128
|
*/
|
|
34064
34129
|
static async fromJsonLd(json, options = {}) {
|
|
34065
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
34130
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34066
34131
|
try {
|
|
34067
34132
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
34068
34133
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34197,7 +34262,7 @@ var Note = class Note extends Object$1 {
|
|
|
34197
34262
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34198
34263
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34199
34264
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34200
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
34265
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34201
34266
|
let fetchResult;
|
|
34202
34267
|
try {
|
|
34203
34268
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34347,7 +34412,7 @@ var Note = class Note extends Object$1 {
|
|
|
34347
34412
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34348
34413
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34349
34414
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34350
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
34415
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34351
34416
|
let fetchResult;
|
|
34352
34417
|
try {
|
|
34353
34418
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34645,7 +34710,7 @@ var Note = class Note extends Object$1 {
|
|
|
34645
34710
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34646
34711
|
*/
|
|
34647
34712
|
static async fromJsonLd(json, options = {}) {
|
|
34648
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
34713
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34649
34714
|
try {
|
|
34650
34715
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
34651
34716
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34836,7 +34901,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
34836
34901
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34837
34902
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34838
34903
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34839
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
34904
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34840
34905
|
let fetchResult;
|
|
34841
34906
|
try {
|
|
34842
34907
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35119,7 +35184,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
35119
35184
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35120
35185
|
*/
|
|
35121
35186
|
static async fromJsonLd(json, options = {}) {
|
|
35122
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
35187
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35123
35188
|
try {
|
|
35124
35189
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
35125
35190
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35344,7 +35409,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35344
35409
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35345
35410
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35346
35411
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35347
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
35412
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35348
35413
|
let fetchResult;
|
|
35349
35414
|
try {
|
|
35350
35415
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35650,7 +35715,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35650
35715
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35651
35716
|
*/
|
|
35652
35717
|
static async fromJsonLd(json, options = {}) {
|
|
35653
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
35718
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35654
35719
|
try {
|
|
35655
35720
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
35656
35721
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36167,7 +36232,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36167
36232
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36168
36233
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36169
36234
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36170
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
36235
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36171
36236
|
let fetchResult;
|
|
36172
36237
|
try {
|
|
36173
36238
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36354,7 +36419,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36354
36419
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36355
36420
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36356
36421
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36357
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
36422
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36358
36423
|
let fetchResult;
|
|
36359
36424
|
try {
|
|
36360
36425
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36559,7 +36624,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36559
36624
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36560
36625
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36561
36626
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36562
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
36627
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36563
36628
|
let fetchResult;
|
|
36564
36629
|
try {
|
|
36565
36630
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36713,7 +36778,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36713
36778
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36714
36779
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36715
36780
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36716
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
36781
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36717
36782
|
let fetchResult;
|
|
36718
36783
|
try {
|
|
36719
36784
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36864,7 +36929,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36864
36929
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36865
36930
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36866
36931
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36867
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
36932
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36868
36933
|
let fetchResult;
|
|
36869
36934
|
try {
|
|
36870
36935
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37000,7 +37065,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37000
37065
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37001
37066
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37002
37067
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37003
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
37068
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37004
37069
|
let fetchResult;
|
|
37005
37070
|
try {
|
|
37006
37071
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37139,7 +37204,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37139
37204
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37140
37205
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37141
37206
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37142
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
37207
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37143
37208
|
let fetchResult;
|
|
37144
37209
|
try {
|
|
37145
37210
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37276,7 +37341,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37276
37341
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37277
37342
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37278
37343
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37279
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
37344
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37280
37345
|
let fetchResult;
|
|
37281
37346
|
try {
|
|
37282
37347
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37411,7 +37476,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37411
37476
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37412
37477
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37413
37478
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37414
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
37479
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37415
37480
|
let fetchResult;
|
|
37416
37481
|
try {
|
|
37417
37482
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37546,7 +37611,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37546
37611
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37547
37612
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37548
37613
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37549
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
37614
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37550
37615
|
let fetchResult;
|
|
37551
37616
|
try {
|
|
37552
37617
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37721,7 +37786,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37721
37786
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37722
37787
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37723
37788
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37724
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
37789
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37725
37790
|
let fetchResult;
|
|
37726
37791
|
try {
|
|
37727
37792
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37899,7 +37964,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37899
37964
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37900
37965
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37901
37966
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37902
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
37967
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37903
37968
|
let fetchResult;
|
|
37904
37969
|
try {
|
|
37905
37970
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38138,7 +38203,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
38138
38203
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38139
38204
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38140
38205
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38141
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
38206
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38142
38207
|
let fetchResult;
|
|
38143
38208
|
try {
|
|
38144
38209
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38848,7 +38913,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
38848
38913
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38849
38914
|
*/
|
|
38850
38915
|
static async fromJsonLd(json, options = {}) {
|
|
38851
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
38916
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38852
38917
|
try {
|
|
38853
38918
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
38854
38919
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39553,7 +39618,7 @@ var Page = class Page extends Document {
|
|
|
39553
39618
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39554
39619
|
*/
|
|
39555
39620
|
static async fromJsonLd(json, options = {}) {
|
|
39556
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
39621
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39557
39622
|
try {
|
|
39558
39623
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
39559
39624
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39952,7 +40017,7 @@ var Person = class Person extends Object$1 {
|
|
|
39952
40017
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39953
40018
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39954
40019
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39955
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
40020
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39956
40021
|
let fetchResult;
|
|
39957
40022
|
try {
|
|
39958
40023
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40139,7 +40204,7 @@ var Person = class Person extends Object$1 {
|
|
|
40139
40204
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40140
40205
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40141
40206
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40142
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
40207
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40143
40208
|
let fetchResult;
|
|
40144
40209
|
try {
|
|
40145
40210
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40344,7 +40409,7 @@ var Person = class Person extends Object$1 {
|
|
|
40344
40409
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40345
40410
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40346
40411
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40347
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
40412
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40348
40413
|
let fetchResult;
|
|
40349
40414
|
try {
|
|
40350
40415
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40498,7 +40563,7 @@ var Person = class Person extends Object$1 {
|
|
|
40498
40563
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40499
40564
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40500
40565
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40501
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
40566
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40502
40567
|
let fetchResult;
|
|
40503
40568
|
try {
|
|
40504
40569
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40649,7 +40714,7 @@ var Person = class Person extends Object$1 {
|
|
|
40649
40714
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40650
40715
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40651
40716
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40652
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
40717
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40653
40718
|
let fetchResult;
|
|
40654
40719
|
try {
|
|
40655
40720
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40785,7 +40850,7 @@ var Person = class Person extends Object$1 {
|
|
|
40785
40850
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40786
40851
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40787
40852
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40788
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
40853
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40789
40854
|
let fetchResult;
|
|
40790
40855
|
try {
|
|
40791
40856
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40924,7 +40989,7 @@ var Person = class Person extends Object$1 {
|
|
|
40924
40989
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40925
40990
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40926
40991
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40927
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
40992
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40928
40993
|
let fetchResult;
|
|
40929
40994
|
try {
|
|
40930
40995
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41061,7 +41126,7 @@ var Person = class Person extends Object$1 {
|
|
|
41061
41126
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41062
41127
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41063
41128
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41064
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
41129
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41065
41130
|
let fetchResult;
|
|
41066
41131
|
try {
|
|
41067
41132
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41196,7 +41261,7 @@ var Person = class Person extends Object$1 {
|
|
|
41196
41261
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41197
41262
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41198
41263
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41199
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
41264
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41200
41265
|
let fetchResult;
|
|
41201
41266
|
try {
|
|
41202
41267
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41331,7 +41396,7 @@ var Person = class Person extends Object$1 {
|
|
|
41331
41396
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41332
41397
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41333
41398
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41334
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
41399
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41335
41400
|
let fetchResult;
|
|
41336
41401
|
try {
|
|
41337
41402
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41506,7 +41571,7 @@ var Person = class Person extends Object$1 {
|
|
|
41506
41571
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41507
41572
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41508
41573
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41509
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
41574
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41510
41575
|
let fetchResult;
|
|
41511
41576
|
try {
|
|
41512
41577
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41684,7 +41749,7 @@ var Person = class Person extends Object$1 {
|
|
|
41684
41749
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41685
41750
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41686
41751
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41687
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
41752
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41688
41753
|
let fetchResult;
|
|
41689
41754
|
try {
|
|
41690
41755
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41923,7 +41988,7 @@ var Person = class Person extends Object$1 {
|
|
|
41923
41988
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41924
41989
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41925
41990
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41926
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
41991
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41927
41992
|
let fetchResult;
|
|
41928
41993
|
try {
|
|
41929
41994
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42633,7 +42698,7 @@ var Person = class Person extends Object$1 {
|
|
|
42633
42698
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42634
42699
|
*/
|
|
42635
42700
|
static async fromJsonLd(json, options = {}) {
|
|
42636
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
42701
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42637
42702
|
try {
|
|
42638
42703
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
42639
42704
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43515,7 +43580,7 @@ var Place = class Place extends Object$1 {
|
|
|
43515
43580
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43516
43581
|
*/
|
|
43517
43582
|
static async fromJsonLd(json, options = {}) {
|
|
43518
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
43583
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43519
43584
|
try {
|
|
43520
43585
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
43521
43586
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43744,7 +43809,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
43744
43809
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43745
43810
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43746
43811
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43747
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
43812
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43748
43813
|
let fetchResult;
|
|
43749
43814
|
try {
|
|
43750
43815
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43957,7 +44022,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
43957
44022
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43958
44023
|
*/
|
|
43959
44024
|
static async fromJsonLd(json, options = {}) {
|
|
43960
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
44025
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43961
44026
|
try {
|
|
43962
44027
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
43963
44028
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44163,7 +44228,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44163
44228
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44164
44229
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44165
44230
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44166
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
44231
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44167
44232
|
let fetchResult;
|
|
44168
44233
|
try {
|
|
44169
44234
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44298,7 +44363,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44298
44363
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44299
44364
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44300
44365
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44301
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
44366
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44302
44367
|
let fetchResult;
|
|
44303
44368
|
try {
|
|
44304
44369
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44449,7 +44514,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44449
44514
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44450
44515
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44451
44516
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44452
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
44517
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44453
44518
|
let fetchResult;
|
|
44454
44519
|
try {
|
|
44455
44520
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44599,7 +44664,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44599
44664
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44600
44665
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44601
44666
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44602
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
44667
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44603
44668
|
let fetchResult;
|
|
44604
44669
|
try {
|
|
44605
44670
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44863,7 +44928,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44863
44928
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44864
44929
|
*/
|
|
44865
44930
|
static async fromJsonLd(json, options = {}) {
|
|
44866
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
44931
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44867
44932
|
try {
|
|
44868
44933
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
44869
44934
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45176,7 +45241,7 @@ var Read = class Read extends Activity {
|
|
|
45176
45241
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45177
45242
|
*/
|
|
45178
45243
|
static async fromJsonLd(json, options = {}) {
|
|
45179
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
45244
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45180
45245
|
try {
|
|
45181
45246
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
45182
45247
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45329,7 +45394,7 @@ var Reject = class Reject extends Activity {
|
|
|
45329
45394
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45330
45395
|
*/
|
|
45331
45396
|
static async fromJsonLd(json, options = {}) {
|
|
45332
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
45397
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45333
45398
|
try {
|
|
45334
45399
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
45335
45400
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45506,7 +45571,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45506
45571
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45507
45572
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45508
45573
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45509
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
45574
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45510
45575
|
let fetchResult;
|
|
45511
45576
|
try {
|
|
45512
45577
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45641,7 +45706,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45641
45706
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45642
45707
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45643
45708
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45644
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
45709
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45645
45710
|
let fetchResult;
|
|
45646
45711
|
try {
|
|
45647
45712
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45828,7 +45893,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45828
45893
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45829
45894
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45830
45895
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45831
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
45896
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45832
45897
|
let fetchResult;
|
|
45833
45898
|
try {
|
|
45834
45899
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46131,7 +46196,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
46131
46196
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46132
46197
|
*/
|
|
46133
46198
|
static async fromJsonLd(json, options = {}) {
|
|
46134
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
46199
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46135
46200
|
try {
|
|
46136
46201
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
46137
46202
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46365,7 +46430,7 @@ var Remove = class Remove extends Activity {
|
|
|
46365
46430
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46366
46431
|
*/
|
|
46367
46432
|
static async fromJsonLd(json, options = {}) {
|
|
46368
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
46433
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46369
46434
|
try {
|
|
46370
46435
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
46371
46436
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46764,7 +46829,7 @@ var Service = class Service extends Object$1 {
|
|
|
46764
46829
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46765
46830
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46766
46831
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46767
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
46832
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46768
46833
|
let fetchResult;
|
|
46769
46834
|
try {
|
|
46770
46835
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46951,7 +47016,7 @@ var Service = class Service extends Object$1 {
|
|
|
46951
47016
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46952
47017
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46953
47018
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46954
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
47019
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46955
47020
|
let fetchResult;
|
|
46956
47021
|
try {
|
|
46957
47022
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47156,7 +47221,7 @@ var Service = class Service extends Object$1 {
|
|
|
47156
47221
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47157
47222
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47158
47223
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47159
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
47224
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47160
47225
|
let fetchResult;
|
|
47161
47226
|
try {
|
|
47162
47227
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47310,7 +47375,7 @@ var Service = class Service extends Object$1 {
|
|
|
47310
47375
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47311
47376
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47312
47377
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47313
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
47378
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47314
47379
|
let fetchResult;
|
|
47315
47380
|
try {
|
|
47316
47381
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47461,7 +47526,7 @@ var Service = class Service extends Object$1 {
|
|
|
47461
47526
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47462
47527
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47463
47528
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47464
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
47529
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47465
47530
|
let fetchResult;
|
|
47466
47531
|
try {
|
|
47467
47532
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47597,7 +47662,7 @@ var Service = class Service extends Object$1 {
|
|
|
47597
47662
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47598
47663
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47599
47664
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47600
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
47665
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47601
47666
|
let fetchResult;
|
|
47602
47667
|
try {
|
|
47603
47668
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47736,7 +47801,7 @@ var Service = class Service extends Object$1 {
|
|
|
47736
47801
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47737
47802
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47738
47803
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47739
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
47804
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47740
47805
|
let fetchResult;
|
|
47741
47806
|
try {
|
|
47742
47807
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47873,7 +47938,7 @@ var Service = class Service extends Object$1 {
|
|
|
47873
47938
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47874
47939
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47875
47940
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47876
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
47941
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47877
47942
|
let fetchResult;
|
|
47878
47943
|
try {
|
|
47879
47944
|
fetchResult = await documentLoader(url.href);
|
|
@@ -48008,7 +48073,7 @@ var Service = class Service extends Object$1 {
|
|
|
48008
48073
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
48009
48074
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
48010
48075
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
48011
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
48076
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48012
48077
|
let fetchResult;
|
|
48013
48078
|
try {
|
|
48014
48079
|
fetchResult = await documentLoader(url.href);
|
|
@@ -48143,7 +48208,7 @@ var Service = class Service extends Object$1 {
|
|
|
48143
48208
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
48144
48209
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
48145
48210
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
48146
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
48211
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48147
48212
|
let fetchResult;
|
|
48148
48213
|
try {
|
|
48149
48214
|
fetchResult = await documentLoader(url.href);
|
|
@@ -48318,7 +48383,7 @@ var Service = class Service extends Object$1 {
|
|
|
48318
48383
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
48319
48384
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
48320
48385
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
48321
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
48386
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48322
48387
|
let fetchResult;
|
|
48323
48388
|
try {
|
|
48324
48389
|
fetchResult = await documentLoader(url.href);
|
|
@@ -48496,7 +48561,7 @@ var Service = class Service extends Object$1 {
|
|
|
48496
48561
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
48497
48562
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
48498
48563
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
48499
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
48564
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48500
48565
|
let fetchResult;
|
|
48501
48566
|
try {
|
|
48502
48567
|
fetchResult = await documentLoader(url.href);
|
|
@@ -48735,7 +48800,7 @@ var Service = class Service extends Object$1 {
|
|
|
48735
48800
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
48736
48801
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
48737
48802
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
48738
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.
|
|
48803
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48739
48804
|
let fetchResult;
|
|
48740
48805
|
try {
|
|
48741
48806
|
fetchResult = await documentLoader(url.href);
|
|
@@ -49445,7 +49510,7 @@ var Service = class Service extends Object$1 {
|
|
|
49445
49510
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49446
49511
|
*/
|
|
49447
49512
|
static async fromJsonLd(json, options = {}) {
|
|
49448
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
49513
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49449
49514
|
try {
|
|
49450
49515
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
49451
49516
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50072,6 +50137,11 @@ var Source = class {
|
|
|
50072
50137
|
get _warning() {
|
|
50073
50138
|
return this.#warning;
|
|
50074
50139
|
}
|
|
50140
|
+
/**
|
|
50141
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
50142
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
50143
|
+
* accessor name and its getter/setter semantics stable.
|
|
50144
|
+
*/
|
|
50075
50145
|
get _cachedJsonLd() {
|
|
50076
50146
|
return this.#cachedJsonLd;
|
|
50077
50147
|
}
|
|
@@ -50250,7 +50320,7 @@ var Source = class {
|
|
|
50250
50320
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50251
50321
|
*/
|
|
50252
50322
|
static async fromJsonLd(json, options = {}) {
|
|
50253
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
50323
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50254
50324
|
try {
|
|
50255
50325
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
50256
50326
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50440,7 +50510,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
50440
50510
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50441
50511
|
*/
|
|
50442
50512
|
static async fromJsonLd(json, options = {}) {
|
|
50443
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
50513
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50444
50514
|
try {
|
|
50445
50515
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
50446
50516
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50593,7 +50663,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
50593
50663
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50594
50664
|
*/
|
|
50595
50665
|
static async fromJsonLd(json, options = {}) {
|
|
50596
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
50666
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50597
50667
|
try {
|
|
50598
50668
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
50599
50669
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50835,7 +50905,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
50835
50905
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50836
50906
|
*/
|
|
50837
50907
|
static async fromJsonLd(json, options = {}) {
|
|
50838
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
50908
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50839
50909
|
try {
|
|
50840
50910
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
50841
50911
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51033,7 +51103,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
51033
51103
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51034
51104
|
*/
|
|
51035
51105
|
static async fromJsonLd(json, options = {}) {
|
|
51036
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
51106
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51037
51107
|
try {
|
|
51038
51108
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
51039
51109
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51200,7 +51270,7 @@ var Undo = class Undo extends Activity {
|
|
|
51200
51270
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51201
51271
|
*/
|
|
51202
51272
|
static async fromJsonLd(json, options = {}) {
|
|
51203
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
51273
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51204
51274
|
try {
|
|
51205
51275
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
51206
51276
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51415,7 +51485,7 @@ var Update = class Update extends Activity {
|
|
|
51415
51485
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51416
51486
|
*/
|
|
51417
51487
|
static async fromJsonLd(json, options = {}) {
|
|
51418
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
51488
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51419
51489
|
try {
|
|
51420
51490
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
51421
51491
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51581,7 +51651,7 @@ var Video = class Video extends Document {
|
|
|
51581
51651
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51582
51652
|
*/
|
|
51583
51653
|
static async fromJsonLd(json, options = {}) {
|
|
51584
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
51654
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51585
51655
|
try {
|
|
51586
51656
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
51587
51657
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51733,7 +51803,7 @@ var View = class View extends Activity {
|
|
|
51733
51803
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51734
51804
|
*/
|
|
51735
51805
|
static async fromJsonLd(json, options = {}) {
|
|
51736
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.
|
|
51806
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.15").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51737
51807
|
try {
|
|
51738
51808
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
51739
51809
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|