@fedify/vocab 2.2.18 → 2.2.20
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 +282 -217
- package/dist/mod.d.cts +65 -0
- package/dist/mod.d.ts +65 -0
- package/dist/mod.js +282 -217
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-CkcuHhK7.mjs → deno-CE8IFnvm.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +30 -14
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-CCpnNoho.mjs → vocab-C6G3QtaR.mjs} +281 -216
- package/dist-tests/vocab.test.mjs +11 -3
- package/package.json +5 -5
- package/src/lookup.test.ts +33 -11
- package/src/vocab.test.ts +13 -2
|
@@ -162,6 +162,11 @@ var Object$1 = class Object$1 {
|
|
|
162
162
|
get _warning() {
|
|
163
163
|
return this.#warning;
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
167
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
168
|
+
* accessor name and its getter/setter semantics stable.
|
|
169
|
+
*/
|
|
165
170
|
get _cachedJsonLd() {
|
|
166
171
|
return this.#cachedJsonLd;
|
|
167
172
|
}
|
|
@@ -804,7 +809,7 @@ var Object$1 = class Object$1 {
|
|
|
804
809
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
805
810
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
806
811
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
807
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
812
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
808
813
|
let fetchResult;
|
|
809
814
|
try {
|
|
810
815
|
fetchResult = await documentLoader(url.href);
|
|
@@ -960,7 +965,7 @@ var Object$1 = class Object$1 {
|
|
|
960
965
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
961
966
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
962
967
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
963
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
968
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
964
969
|
let fetchResult;
|
|
965
970
|
try {
|
|
966
971
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1191,7 +1196,7 @@ var Object$1 = class Object$1 {
|
|
|
1191
1196
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1192
1197
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1193
1198
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1194
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
1199
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1195
1200
|
let fetchResult;
|
|
1196
1201
|
try {
|
|
1197
1202
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1394,7 +1399,7 @@ var Object$1 = class Object$1 {
|
|
|
1394
1399
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1395
1400
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1396
1401
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1397
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
1402
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1398
1403
|
let fetchResult;
|
|
1399
1404
|
try {
|
|
1400
1405
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1566,7 +1571,7 @@ var Object$1 = class Object$1 {
|
|
|
1566
1571
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1567
1572
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1568
1573
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1569
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
1574
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1570
1575
|
let fetchResult;
|
|
1571
1576
|
try {
|
|
1572
1577
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1706,7 +1711,7 @@ var Object$1 = class Object$1 {
|
|
|
1706
1711
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1707
1712
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1708
1713
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1709
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
1714
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1710
1715
|
let fetchResult;
|
|
1711
1716
|
try {
|
|
1712
1717
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1891,7 +1896,7 @@ var Object$1 = class Object$1 {
|
|
|
1891
1896
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1892
1897
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1893
1898
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1894
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
1899
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1895
1900
|
let fetchResult;
|
|
1896
1901
|
try {
|
|
1897
1902
|
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.2.
|
|
2084
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2080
2085
|
let fetchResult;
|
|
2081
2086
|
try {
|
|
2082
2087
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2269,7 +2274,7 @@ var Object$1 = class Object$1 {
|
|
|
2269
2274
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2270
2275
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2271
2276
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2272
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
2277
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2273
2278
|
let fetchResult;
|
|
2274
2279
|
try {
|
|
2275
2280
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2462,7 +2467,7 @@ var Object$1 = class Object$1 {
|
|
|
2462
2467
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2463
2468
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2464
2469
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2465
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
2470
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2466
2471
|
let fetchResult;
|
|
2467
2472
|
try {
|
|
2468
2473
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2660,7 +2665,7 @@ var Object$1 = class Object$1 {
|
|
|
2660
2665
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2661
2666
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2662
2667
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2663
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
2668
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2664
2669
|
let fetchResult;
|
|
2665
2670
|
try {
|
|
2666
2671
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2790,7 +2795,7 @@ var Object$1 = class Object$1 {
|
|
|
2790
2795
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2791
2796
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2792
2797
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2793
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
2798
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2794
2799
|
let fetchResult;
|
|
2795
2800
|
try {
|
|
2796
2801
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2926,7 +2931,7 @@ var Object$1 = class Object$1 {
|
|
|
2926
2931
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2927
2932
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2928
2933
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2929
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
2934
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2930
2935
|
let fetchResult;
|
|
2931
2936
|
try {
|
|
2932
2937
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3062,7 +3067,7 @@ var Object$1 = class Object$1 {
|
|
|
3062
3067
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3063
3068
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3064
3069
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3065
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
3070
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3066
3071
|
let fetchResult;
|
|
3067
3072
|
try {
|
|
3068
3073
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3216,7 +3221,7 @@ var Object$1 = class Object$1 {
|
|
|
3216
3221
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3217
3222
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3218
3223
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3219
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
3224
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3220
3225
|
let fetchResult;
|
|
3221
3226
|
try {
|
|
3222
3227
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3378,7 +3383,7 @@ var Object$1 = class Object$1 {
|
|
|
3378
3383
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3379
3384
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3380
3385
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3381
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
3386
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3382
3387
|
let fetchResult;
|
|
3383
3388
|
try {
|
|
3384
3389
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3561,7 +3566,7 @@ var Object$1 = class Object$1 {
|
|
|
3561
3566
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3562
3567
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3563
3568
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3564
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
3569
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3565
3570
|
let fetchResult;
|
|
3566
3571
|
try {
|
|
3567
3572
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3744,7 +3749,7 @@ var Object$1 = class Object$1 {
|
|
|
3744
3749
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3745
3750
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3746
3751
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3747
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
3752
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3748
3753
|
let fetchResult;
|
|
3749
3754
|
try {
|
|
3750
3755
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3927,7 +3932,7 @@ var Object$1 = class Object$1 {
|
|
|
3927
3932
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3928
3933
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3929
3934
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3930
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
3935
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3931
3936
|
let fetchResult;
|
|
3932
3937
|
try {
|
|
3933
3938
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4147,7 +4152,7 @@ var Object$1 = class Object$1 {
|
|
|
4147
4152
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4148
4153
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4149
4154
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4150
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
4155
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4151
4156
|
let fetchResult;
|
|
4152
4157
|
try {
|
|
4153
4158
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4353,7 +4358,7 @@ var Object$1 = class Object$1 {
|
|
|
4353
4358
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4354
4359
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4355
4360
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4356
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
4361
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4357
4362
|
let fetchResult;
|
|
4358
4363
|
try {
|
|
4359
4364
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4483,7 +4488,7 @@ var Object$1 = class Object$1 {
|
|
|
4483
4488
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4484
4489
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4485
4490
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4486
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
4491
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4487
4492
|
let fetchResult;
|
|
4488
4493
|
try {
|
|
4489
4494
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4613,7 +4618,7 @@ var Object$1 = class Object$1 {
|
|
|
4613
4618
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4614
4619
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4615
4620
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4616
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
4621
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4617
4622
|
let fetchResult;
|
|
4618
4623
|
try {
|
|
4619
4624
|
fetchResult = await documentLoader(url.href);
|
|
@@ -5449,7 +5454,7 @@ var Object$1 = class Object$1 {
|
|
|
5449
5454
|
* @throws {TypeError} If the given `json` is invalid.
|
|
5450
5455
|
*/
|
|
5451
5456
|
static async fromJsonLd(json, options = {}) {
|
|
5452
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
5457
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
5453
5458
|
try {
|
|
5454
5459
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
5455
5460
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7050,7 +7055,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
7050
7055
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7051
7056
|
*/
|
|
7052
7057
|
static async fromJsonLd(json, options = {}) {
|
|
7053
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
7058
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7054
7059
|
try {
|
|
7055
7060
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
7056
7061
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7187,7 +7192,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7187
7192
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7188
7193
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7189
7194
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7190
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
7195
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7191
7196
|
let fetchResult;
|
|
7192
7197
|
try {
|
|
7193
7198
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7334,7 +7339,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7334
7339
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7335
7340
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7336
7341
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7337
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
7342
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7338
7343
|
let fetchResult;
|
|
7339
7344
|
try {
|
|
7340
7345
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7627,7 +7632,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7627
7632
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7628
7633
|
*/
|
|
7629
7634
|
static async fromJsonLd(json, options = {}) {
|
|
7630
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
7635
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7631
7636
|
try {
|
|
7632
7637
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
7633
7638
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7967,7 +7972,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7967
7972
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7968
7973
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7969
7974
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7970
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
7975
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7971
7976
|
let fetchResult;
|
|
7972
7977
|
try {
|
|
7973
7978
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8198,7 +8203,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8198
8203
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8199
8204
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8200
8205
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8201
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
8206
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8202
8207
|
let fetchResult;
|
|
8203
8208
|
try {
|
|
8204
8209
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8383,7 +8388,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8383
8388
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8384
8389
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8385
8390
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8386
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
8391
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8387
8392
|
let fetchResult;
|
|
8388
8393
|
try {
|
|
8389
8394
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8574,7 +8579,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8574
8579
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8575
8580
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8576
8581
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8577
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
8582
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8578
8583
|
let fetchResult;
|
|
8579
8584
|
try {
|
|
8580
8585
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8759,7 +8764,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8759
8764
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8760
8765
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8761
8766
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8762
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
8767
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8763
8768
|
let fetchResult;
|
|
8764
8769
|
try {
|
|
8765
8770
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8946,7 +8951,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8946
8951
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8947
8952
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8948
8953
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8949
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
8954
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8950
8955
|
let fetchResult;
|
|
8951
8956
|
try {
|
|
8952
8957
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9216,7 +9221,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
9216
9221
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9217
9222
|
*/
|
|
9218
9223
|
static async fromJsonLd(json, options = {}) {
|
|
9219
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
9224
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9220
9225
|
try {
|
|
9221
9226
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
9222
9227
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9576,7 +9581,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9576
9581
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9577
9582
|
*/
|
|
9578
9583
|
static async fromJsonLd(json, options = {}) {
|
|
9579
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
9584
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9580
9585
|
try {
|
|
9581
9586
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
9582
9587
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9662,6 +9667,11 @@ var PropertyValue = class {
|
|
|
9662
9667
|
get _warning() {
|
|
9663
9668
|
return this.#warning;
|
|
9664
9669
|
}
|
|
9670
|
+
/**
|
|
9671
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
9672
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
9673
|
+
* accessor name and its getter/setter semantics stable.
|
|
9674
|
+
*/
|
|
9665
9675
|
get _cachedJsonLd() {
|
|
9666
9676
|
return this.#cachedJsonLd;
|
|
9667
9677
|
}
|
|
@@ -9837,7 +9847,7 @@ var PropertyValue = class {
|
|
|
9837
9847
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9838
9848
|
*/
|
|
9839
9849
|
static async fromJsonLd(json, options = {}) {
|
|
9840
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
9850
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9841
9851
|
try {
|
|
9842
9852
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
9843
9853
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9959,6 +9969,11 @@ var Measure = class {
|
|
|
9959
9969
|
get _warning() {
|
|
9960
9970
|
return this.#warning;
|
|
9961
9971
|
}
|
|
9972
|
+
/**
|
|
9973
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
9974
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
9975
|
+
* accessor name and its getter/setter semantics stable.
|
|
9976
|
+
*/
|
|
9962
9977
|
get _cachedJsonLd() {
|
|
9963
9978
|
return this.#cachedJsonLd;
|
|
9964
9979
|
}
|
|
@@ -10125,7 +10140,7 @@ var Measure = class {
|
|
|
10125
10140
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10126
10141
|
*/
|
|
10127
10142
|
static async fromJsonLd(json, options = {}) {
|
|
10128
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
10143
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10129
10144
|
try {
|
|
10130
10145
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
10131
10146
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10296,7 +10311,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10296
10311
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10297
10312
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10298
10313
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10299
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
10314
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10300
10315
|
let fetchResult;
|
|
10301
10316
|
try {
|
|
10302
10317
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10426,7 +10441,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10426
10441
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10427
10442
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10428
10443
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10429
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
10444
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10430
10445
|
let fetchResult;
|
|
10431
10446
|
try {
|
|
10432
10447
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10651,7 +10666,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10651
10666
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10652
10667
|
*/
|
|
10653
10668
|
static async fromJsonLd(json, options = {}) {
|
|
10654
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
10669
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10655
10670
|
try {
|
|
10656
10671
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
10657
10672
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10863,7 +10878,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
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.2.
|
|
10881
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10867
10882
|
try {
|
|
10868
10883
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
10869
10884
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10955,6 +10970,11 @@ var InteractionPolicy = class {
|
|
|
10955
10970
|
get _warning() {
|
|
10956
10971
|
return this.#warning;
|
|
10957
10972
|
}
|
|
10973
|
+
/**
|
|
10974
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
10975
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
10976
|
+
* accessor name and its getter/setter semantics stable.
|
|
10977
|
+
*/
|
|
10958
10978
|
get _cachedJsonLd() {
|
|
10959
10979
|
return this.#cachedJsonLd;
|
|
10960
10980
|
}
|
|
@@ -11142,7 +11162,7 @@ var InteractionPolicy = class {
|
|
|
11142
11162
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11143
11163
|
*/
|
|
11144
11164
|
static async fromJsonLd(json, options = {}) {
|
|
11145
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
11165
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11146
11166
|
try {
|
|
11147
11167
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
11148
11168
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11329,6 +11349,11 @@ var InteractionRule = class {
|
|
|
11329
11349
|
get _warning() {
|
|
11330
11350
|
return this.#warning;
|
|
11331
11351
|
}
|
|
11352
|
+
/**
|
|
11353
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
11354
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
11355
|
+
* accessor name and its getter/setter semantics stable.
|
|
11356
|
+
*/
|
|
11332
11357
|
get _cachedJsonLd() {
|
|
11333
11358
|
return this.#cachedJsonLd;
|
|
11334
11359
|
}
|
|
@@ -11498,7 +11523,7 @@ var InteractionRule = class {
|
|
|
11498
11523
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11499
11524
|
*/
|
|
11500
11525
|
static async fromJsonLd(json, options = {}) {
|
|
11501
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
11526
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11502
11527
|
try {
|
|
11503
11528
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
11504
11529
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11670,7 +11695,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11670
11695
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11671
11696
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11672
11697
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11673
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
11698
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11674
11699
|
let fetchResult;
|
|
11675
11700
|
try {
|
|
11676
11701
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11800,7 +11825,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11800
11825
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11801
11826
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11802
11827
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11803
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
11828
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11804
11829
|
let fetchResult;
|
|
11805
11830
|
try {
|
|
11806
11831
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12025,7 +12050,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
12025
12050
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12026
12051
|
*/
|
|
12027
12052
|
static async fromJsonLd(json, options = {}) {
|
|
12028
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
12053
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12029
12054
|
try {
|
|
12030
12055
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
12031
12056
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12236,7 +12261,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
12236
12261
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12237
12262
|
*/
|
|
12238
12263
|
static async fromJsonLd(json, options = {}) {
|
|
12239
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
12264
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12240
12265
|
try {
|
|
12241
12266
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
12242
12267
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12370,7 +12395,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12370
12395
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12371
12396
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12372
12397
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12373
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
12398
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12374
12399
|
let fetchResult;
|
|
12375
12400
|
try {
|
|
12376
12401
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12500,7 +12525,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12500
12525
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12501
12526
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12502
12527
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12503
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
12528
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12504
12529
|
let fetchResult;
|
|
12505
12530
|
try {
|
|
12506
12531
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12725,7 +12750,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12725
12750
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12726
12751
|
*/
|
|
12727
12752
|
static async fromJsonLd(json, options = {}) {
|
|
12728
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
12753
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12729
12754
|
try {
|
|
12730
12755
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
12731
12756
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12936,7 +12961,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
12936
12961
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12937
12962
|
*/
|
|
12938
12963
|
static async fromJsonLd(json, options = {}) {
|
|
12939
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
12964
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12940
12965
|
try {
|
|
12941
12966
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
12942
12967
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13070,7 +13095,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13070
13095
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13071
13096
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13072
13097
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13073
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
13098
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13074
13099
|
let fetchResult;
|
|
13075
13100
|
try {
|
|
13076
13101
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13199,7 +13224,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13199
13224
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13200
13225
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13201
13226
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13202
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
13227
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13203
13228
|
let fetchResult;
|
|
13204
13229
|
try {
|
|
13205
13230
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13426,7 +13451,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13426
13451
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13427
13452
|
*/
|
|
13428
13453
|
static async fromJsonLd(json, options = {}) {
|
|
13429
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
13454
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13430
13455
|
try {
|
|
13431
13456
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
13432
13457
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13667,7 +13692,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13667
13692
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13668
13693
|
*/
|
|
13669
13694
|
static async fromJsonLd(json, options = {}) {
|
|
13670
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
13695
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13671
13696
|
try {
|
|
13672
13697
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
13673
13698
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13756,6 +13781,11 @@ var DidService = class {
|
|
|
13756
13781
|
get _warning() {
|
|
13757
13782
|
return this.#warning;
|
|
13758
13783
|
}
|
|
13784
|
+
/**
|
|
13785
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
13786
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
13787
|
+
* accessor name and its getter/setter semantics stable.
|
|
13788
|
+
*/
|
|
13759
13789
|
get _cachedJsonLd() {
|
|
13760
13790
|
return this.#cachedJsonLd;
|
|
13761
13791
|
}
|
|
@@ -13888,7 +13918,7 @@ var DidService = class {
|
|
|
13888
13918
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13889
13919
|
*/
|
|
13890
13920
|
static async fromJsonLd(json, options = {}) {
|
|
13891
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
13921
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13892
13922
|
try {
|
|
13893
13923
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
13894
13924
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14051,7 +14081,7 @@ var Export = class Export extends DidService {
|
|
|
14051
14081
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14052
14082
|
*/
|
|
14053
14083
|
static async fromJsonLd(json, options = {}) {
|
|
14054
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
14084
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14055
14085
|
try {
|
|
14056
14086
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
14057
14087
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14138,6 +14168,11 @@ var DataIntegrityProof = class {
|
|
|
14138
14168
|
get _warning() {
|
|
14139
14169
|
return this.#warning;
|
|
14140
14170
|
}
|
|
14171
|
+
/**
|
|
14172
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
14173
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
14174
|
+
* accessor name and its getter/setter semantics stable.
|
|
14175
|
+
*/
|
|
14141
14176
|
get _cachedJsonLd() {
|
|
14142
14177
|
return this.#cachedJsonLd;
|
|
14143
14178
|
}
|
|
@@ -14239,7 +14274,7 @@ var DataIntegrityProof = class {
|
|
|
14239
14274
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14240
14275
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14241
14276
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14242
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
14277
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14243
14278
|
let fetchResult;
|
|
14244
14279
|
try {
|
|
14245
14280
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14458,7 +14493,7 @@ var DataIntegrityProof = class {
|
|
|
14458
14493
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14459
14494
|
*/
|
|
14460
14495
|
static async fromJsonLd(json, options = {}) {
|
|
14461
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
14496
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14462
14497
|
try {
|
|
14463
14498
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
14464
14499
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14641,6 +14676,11 @@ var CryptographicKey = class {
|
|
|
14641
14676
|
get _warning() {
|
|
14642
14677
|
return this.#warning;
|
|
14643
14678
|
}
|
|
14679
|
+
/**
|
|
14680
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
14681
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
14682
|
+
* accessor name and its getter/setter semantics stable.
|
|
14683
|
+
*/
|
|
14644
14684
|
get _cachedJsonLd() {
|
|
14645
14685
|
return this.#cachedJsonLd;
|
|
14646
14686
|
}
|
|
@@ -14717,7 +14757,7 @@ var CryptographicKey = class {
|
|
|
14717
14757
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14718
14758
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14719
14759
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14720
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
14760
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14721
14761
|
let fetchResult;
|
|
14722
14762
|
try {
|
|
14723
14763
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14988,7 +15028,7 @@ var CryptographicKey = class {
|
|
|
14988
15028
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14989
15029
|
*/
|
|
14990
15030
|
static async fromJsonLd(json, options = {}) {
|
|
14991
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
15031
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14992
15032
|
try {
|
|
14993
15033
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
14994
15034
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15132,6 +15172,11 @@ var Multikey = class {
|
|
|
15132
15172
|
get _warning() {
|
|
15133
15173
|
return this.#warning;
|
|
15134
15174
|
}
|
|
15175
|
+
/**
|
|
15176
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
15177
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
15178
|
+
* accessor name and its getter/setter semantics stable.
|
|
15179
|
+
*/
|
|
15135
15180
|
get _cachedJsonLd() {
|
|
15136
15181
|
return this.#cachedJsonLd;
|
|
15137
15182
|
}
|
|
@@ -15208,7 +15253,7 @@ var Multikey = class {
|
|
|
15208
15253
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15209
15254
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15210
15255
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15211
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
15256
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15212
15257
|
let fetchResult;
|
|
15213
15258
|
try {
|
|
15214
15259
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15485,7 +15530,7 @@ var Multikey = class {
|
|
|
15485
15530
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15486
15531
|
*/
|
|
15487
15532
|
static async fromJsonLd(json, options = {}) {
|
|
15488
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
15533
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15489
15534
|
try {
|
|
15490
15535
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
15491
15536
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15627,6 +15672,11 @@ var Intent = class {
|
|
|
15627
15672
|
get _warning() {
|
|
15628
15673
|
return this.#warning;
|
|
15629
15674
|
}
|
|
15675
|
+
/**
|
|
15676
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
15677
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
15678
|
+
* accessor name and its getter/setter semantics stable.
|
|
15679
|
+
*/
|
|
15630
15680
|
get _cachedJsonLd() {
|
|
15631
15681
|
return this.#cachedJsonLd;
|
|
15632
15682
|
}
|
|
@@ -15896,7 +15946,7 @@ var Intent = class {
|
|
|
15896
15946
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15897
15947
|
*/
|
|
15898
15948
|
static async fromJsonLd(json, options = {}) {
|
|
15899
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
15949
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15900
15950
|
try {
|
|
15901
15951
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
15902
15952
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16336,7 +16386,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16336
16386
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16337
16387
|
*/
|
|
16338
16388
|
static async fromJsonLd(json, options = {}) {
|
|
16339
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
16389
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16340
16390
|
try {
|
|
16341
16391
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
16342
16392
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16568,7 +16618,7 @@ var Accept = class Accept extends Activity {
|
|
|
16568
16618
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16569
16619
|
*/
|
|
16570
16620
|
static async fromJsonLd(json, options = {}) {
|
|
16571
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
16621
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16572
16622
|
try {
|
|
16573
16623
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
16574
16624
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16723,7 +16773,7 @@ var Add = class Add extends Activity {
|
|
|
16723
16773
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16724
16774
|
*/
|
|
16725
16775
|
static async fromJsonLd(json, options = {}) {
|
|
16726
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
16776
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16727
16777
|
try {
|
|
16728
16778
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
16729
16779
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16905,7 +16955,7 @@ var Announce = class Announce extends Activity {
|
|
|
16905
16955
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16906
16956
|
*/
|
|
16907
16957
|
static async fromJsonLd(json, options = {}) {
|
|
16908
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
16958
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16909
16959
|
try {
|
|
16910
16960
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
16911
16961
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17303,7 +17353,7 @@ var Application = class Application extends Object$1 {
|
|
|
17303
17353
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17304
17354
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17305
17355
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17306
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17356
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17307
17357
|
let fetchResult;
|
|
17308
17358
|
try {
|
|
17309
17359
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17484,7 +17534,7 @@ var Application = class Application extends Object$1 {
|
|
|
17484
17534
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17485
17535
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17486
17536
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17487
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17537
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17488
17538
|
let fetchResult;
|
|
17489
17539
|
try {
|
|
17490
17540
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17683,7 +17733,7 @@ var Application = class Application extends Object$1 {
|
|
|
17683
17733
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17684
17734
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17685
17735
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17686
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17736
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17687
17737
|
let fetchResult;
|
|
17688
17738
|
try {
|
|
17689
17739
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17834,7 +17884,7 @@ var Application = class Application extends Object$1 {
|
|
|
17834
17884
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17835
17885
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17836
17886
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17837
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
17887
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17838
17888
|
let fetchResult;
|
|
17839
17889
|
try {
|
|
17840
17890
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17982,7 +18032,7 @@ var Application = class Application extends Object$1 {
|
|
|
17982
18032
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17983
18033
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17984
18034
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17985
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
18035
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17986
18036
|
let fetchResult;
|
|
17987
18037
|
try {
|
|
17988
18038
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18115,7 +18165,7 @@ var Application = class Application extends Object$1 {
|
|
|
18115
18165
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18116
18166
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18117
18167
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18118
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
18168
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18119
18169
|
let fetchResult;
|
|
18120
18170
|
try {
|
|
18121
18171
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18251,7 +18301,7 @@ var Application = class Application extends Object$1 {
|
|
|
18251
18301
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18252
18302
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18253
18303
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18254
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
18304
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18255
18305
|
let fetchResult;
|
|
18256
18306
|
try {
|
|
18257
18307
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18385,7 +18435,7 @@ var Application = class Application extends Object$1 {
|
|
|
18385
18435
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18386
18436
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18387
18437
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18388
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
18438
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18389
18439
|
let fetchResult;
|
|
18390
18440
|
try {
|
|
18391
18441
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18517,7 +18567,7 @@ var Application = class Application extends Object$1 {
|
|
|
18517
18567
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18518
18568
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18519
18569
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18520
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
18570
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18521
18571
|
let fetchResult;
|
|
18522
18572
|
try {
|
|
18523
18573
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18649,7 +18699,7 @@ var Application = class Application extends Object$1 {
|
|
|
18649
18699
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18650
18700
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18651
18701
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18652
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
18702
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18653
18703
|
let fetchResult;
|
|
18654
18704
|
try {
|
|
18655
18705
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18821,7 +18871,7 @@ var Application = class Application extends Object$1 {
|
|
|
18821
18871
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18822
18872
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18823
18873
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18824
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
18874
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18825
18875
|
let fetchResult;
|
|
18826
18876
|
try {
|
|
18827
18877
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18996,7 +19046,7 @@ var Application = class Application extends Object$1 {
|
|
|
18996
19046
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18997
19047
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18998
19048
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18999
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
19049
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19000
19050
|
let fetchResult;
|
|
19001
19051
|
try {
|
|
19002
19052
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19229,7 +19279,7 @@ var Application = class Application extends Object$1 {
|
|
|
19229
19279
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19230
19280
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19231
19281
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19232
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
19282
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19233
19283
|
let fetchResult;
|
|
19234
19284
|
try {
|
|
19235
19285
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19933,7 +19983,7 @@ var Application = class Application extends Object$1 {
|
|
|
19933
19983
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19934
19984
|
*/
|
|
19935
19985
|
static async fromJsonLd(json, options = {}) {
|
|
19936
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
19986
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19937
19987
|
try {
|
|
19938
19988
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
19939
19989
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20612,7 +20662,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
20612
20662
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20613
20663
|
*/
|
|
20614
20664
|
static async fromJsonLd(json, options = {}) {
|
|
20615
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
20665
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20616
20666
|
try {
|
|
20617
20667
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
20618
20668
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20768,7 +20818,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
20768
20818
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20769
20819
|
*/
|
|
20770
20820
|
static async fromJsonLd(json, options = {}) {
|
|
20771
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
20821
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20772
20822
|
try {
|
|
20773
20823
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
20774
20824
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20901,7 +20951,7 @@ var Article = class Article extends Object$1 {
|
|
|
20901
20951
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20902
20952
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20903
20953
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20904
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
20954
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20905
20955
|
let fetchResult;
|
|
20906
20956
|
try {
|
|
20907
20957
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21048,7 +21098,7 @@ var Article = class Article extends Object$1 {
|
|
|
21048
21098
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21049
21099
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21050
21100
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21051
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
21101
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21052
21102
|
let fetchResult;
|
|
21053
21103
|
try {
|
|
21054
21104
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21343,7 +21393,7 @@ var Article = class Article extends Object$1 {
|
|
|
21343
21393
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21344
21394
|
*/
|
|
21345
21395
|
static async fromJsonLd(json, options = {}) {
|
|
21346
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
21396
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21347
21397
|
try {
|
|
21348
21398
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
21349
21399
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21639,7 +21689,7 @@ var Document = class Document extends Object$1 {
|
|
|
21639
21689
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21640
21690
|
*/
|
|
21641
21691
|
static async fromJsonLd(json, options = {}) {
|
|
21642
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
21692
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21643
21693
|
try {
|
|
21644
21694
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
21645
21695
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21845,7 +21895,7 @@ var Audio = class Audio extends Document {
|
|
|
21845
21895
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21846
21896
|
*/
|
|
21847
21897
|
static async fromJsonLd(json, options = {}) {
|
|
21848
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
21898
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21849
21899
|
try {
|
|
21850
21900
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
21851
21901
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21997,7 +22047,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
21997
22047
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21998
22048
|
*/
|
|
21999
22049
|
static async fromJsonLd(json, options = {}) {
|
|
22000
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
22050
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22001
22051
|
try {
|
|
22002
22052
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
22003
22053
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22152,7 +22202,7 @@ var Block = class Block extends Ignore {
|
|
|
22152
22202
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22153
22203
|
*/
|
|
22154
22204
|
static async fromJsonLd(json, options = {}) {
|
|
22155
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
22205
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22156
22206
|
try {
|
|
22157
22207
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
22158
22208
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22419,7 +22469,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22419
22469
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22420
22470
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22421
22471
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22422
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
22472
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22423
22473
|
let fetchResult;
|
|
22424
22474
|
try {
|
|
22425
22475
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22549,7 +22599,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22549
22599
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22550
22600
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22551
22601
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22552
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
22602
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22553
22603
|
let fetchResult;
|
|
22554
22604
|
try {
|
|
22555
22605
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22679,7 +22729,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22679
22729
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22680
22730
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22681
22731
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22682
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
22732
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22683
22733
|
let fetchResult;
|
|
22684
22734
|
try {
|
|
22685
22735
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22809,7 +22859,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22809
22859
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22810
22860
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22811
22861
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22812
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
22862
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22813
22863
|
let fetchResult;
|
|
22814
22864
|
try {
|
|
22815
22865
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22950,7 +23000,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22950
23000
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22951
23001
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22952
23002
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22953
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23003
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22954
23004
|
let fetchResult;
|
|
22955
23005
|
try {
|
|
22956
23006
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23079,7 +23129,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23079
23129
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23080
23130
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23081
23131
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23082
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23132
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23083
23133
|
let fetchResult;
|
|
23084
23134
|
try {
|
|
23085
23135
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23208,7 +23258,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23208
23258
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23209
23259
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23210
23260
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23211
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23261
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23212
23262
|
let fetchResult;
|
|
23213
23263
|
try {
|
|
23214
23264
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23337,7 +23387,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23337
23387
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23338
23388
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23339
23389
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23340
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23390
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23341
23391
|
let fetchResult;
|
|
23342
23392
|
try {
|
|
23343
23393
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23466,7 +23516,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23466
23516
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23467
23517
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23468
23518
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23469
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23519
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23470
23520
|
let fetchResult;
|
|
23471
23521
|
try {
|
|
23472
23522
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23595,7 +23645,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23595
23645
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23596
23646
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23597
23647
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23598
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23648
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23599
23649
|
let fetchResult;
|
|
23600
23650
|
try {
|
|
23601
23651
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23724,7 +23774,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23724
23774
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23725
23775
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23726
23776
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23727
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23777
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23728
23778
|
let fetchResult;
|
|
23729
23779
|
try {
|
|
23730
23780
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23853,7 +23903,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23853
23903
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23854
23904
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23855
23905
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23856
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
23906
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23857
23907
|
let fetchResult;
|
|
23858
23908
|
try {
|
|
23859
23909
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24311,7 +24361,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
24311
24361
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24312
24362
|
*/
|
|
24313
24363
|
static async fromJsonLd(json, options = {}) {
|
|
24314
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
24364
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24315
24365
|
try {
|
|
24316
24366
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
24317
24367
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24846,7 +24896,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24846
24896
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24847
24897
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24848
24898
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24849
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
24899
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24850
24900
|
let fetchResult;
|
|
24851
24901
|
try {
|
|
24852
24902
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24976,7 +25026,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24976
25026
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24977
25027
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24978
25028
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24979
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
25029
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24980
25030
|
let fetchResult;
|
|
24981
25031
|
try {
|
|
24982
25032
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25105,7 +25155,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25105
25155
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25106
25156
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25107
25157
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25108
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
25158
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25109
25159
|
let fetchResult;
|
|
25110
25160
|
try {
|
|
25111
25161
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25400,7 +25450,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25400
25450
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25401
25451
|
*/
|
|
25402
25452
|
static async fromJsonLd(json, options = {}) {
|
|
25403
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
25453
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25404
25454
|
try {
|
|
25405
25455
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
25406
25456
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25658,7 +25708,7 @@ var Create = class Create extends Activity {
|
|
|
25658
25708
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25659
25709
|
*/
|
|
25660
25710
|
static async fromJsonLd(json, options = {}) {
|
|
25661
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
25711
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25662
25712
|
try {
|
|
25663
25713
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
25664
25714
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25836,7 +25886,7 @@ var Delete = class Delete extends Activity {
|
|
|
25836
25886
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25837
25887
|
*/
|
|
25838
25888
|
static async fromJsonLd(json, options = {}) {
|
|
25839
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
25889
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25840
25890
|
try {
|
|
25841
25891
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
25842
25892
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25991,7 +26041,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
25991
26041
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25992
26042
|
*/
|
|
25993
26043
|
static async fromJsonLd(json, options = {}) {
|
|
25994
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
26044
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25995
26045
|
try {
|
|
25996
26046
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
25997
26047
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26077,6 +26127,11 @@ var Endpoints = class {
|
|
|
26077
26127
|
get _warning() {
|
|
26078
26128
|
return this.#warning;
|
|
26079
26129
|
}
|
|
26130
|
+
/**
|
|
26131
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
26132
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
26133
|
+
* accessor name and its getter/setter semantics stable.
|
|
26134
|
+
*/
|
|
26080
26135
|
get _cachedJsonLd() {
|
|
26081
26136
|
return this.#cachedJsonLd;
|
|
26082
26137
|
}
|
|
@@ -26351,7 +26406,7 @@ var Endpoints = class {
|
|
|
26351
26406
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26352
26407
|
*/
|
|
26353
26408
|
static async fromJsonLd(json, options = {}) {
|
|
26354
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
26409
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26355
26410
|
try {
|
|
26356
26411
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
26357
26412
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26624,7 +26679,7 @@ var Event = class Event extends Object$1 {
|
|
|
26624
26679
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26625
26680
|
*/
|
|
26626
26681
|
static async fromJsonLd(json, options = {}) {
|
|
26627
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
26682
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26628
26683
|
try {
|
|
26629
26684
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
26630
26685
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26777,7 +26832,7 @@ var Flag = class Flag extends Activity {
|
|
|
26777
26832
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26778
26833
|
*/
|
|
26779
26834
|
static async fromJsonLd(json, options = {}) {
|
|
26780
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
26835
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26781
26836
|
try {
|
|
26782
26837
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
26783
26838
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26934,7 +26989,7 @@ var Follow = class Follow extends Activity {
|
|
|
26934
26989
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26935
26990
|
*/
|
|
26936
26991
|
static async fromJsonLd(json, options = {}) {
|
|
26937
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
26992
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26938
26993
|
try {
|
|
26939
26994
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
26940
26995
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27332,7 +27387,7 @@ var Group = class Group extends Object$1 {
|
|
|
27332
27387
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27333
27388
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27334
27389
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27335
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
27390
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27336
27391
|
let fetchResult;
|
|
27337
27392
|
try {
|
|
27338
27393
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27513,7 +27568,7 @@ var Group = class Group extends Object$1 {
|
|
|
27513
27568
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27514
27569
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27515
27570
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27516
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
27571
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27517
27572
|
let fetchResult;
|
|
27518
27573
|
try {
|
|
27519
27574
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27712,7 +27767,7 @@ var Group = class Group extends Object$1 {
|
|
|
27712
27767
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27713
27768
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27714
27769
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27715
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
27770
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27716
27771
|
let fetchResult;
|
|
27717
27772
|
try {
|
|
27718
27773
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27863,7 +27918,7 @@ var Group = class Group extends Object$1 {
|
|
|
27863
27918
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27864
27919
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27865
27920
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27866
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
27921
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27867
27922
|
let fetchResult;
|
|
27868
27923
|
try {
|
|
27869
27924
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28011,7 +28066,7 @@ var Group = class Group extends Object$1 {
|
|
|
28011
28066
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28012
28067
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28013
28068
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28014
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28069
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28015
28070
|
let fetchResult;
|
|
28016
28071
|
try {
|
|
28017
28072
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28144,7 +28199,7 @@ var Group = class Group extends Object$1 {
|
|
|
28144
28199
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28145
28200
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28146
28201
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28147
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28202
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28148
28203
|
let fetchResult;
|
|
28149
28204
|
try {
|
|
28150
28205
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28280,7 +28335,7 @@ var Group = class Group extends Object$1 {
|
|
|
28280
28335
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28281
28336
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28282
28337
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28283
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28338
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28284
28339
|
let fetchResult;
|
|
28285
28340
|
try {
|
|
28286
28341
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28414,7 +28469,7 @@ var Group = class Group extends Object$1 {
|
|
|
28414
28469
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28415
28470
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28416
28471
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28417
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28472
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28418
28473
|
let fetchResult;
|
|
28419
28474
|
try {
|
|
28420
28475
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28546,7 +28601,7 @@ var Group = class Group extends Object$1 {
|
|
|
28546
28601
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28547
28602
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28548
28603
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28549
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28604
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28550
28605
|
let fetchResult;
|
|
28551
28606
|
try {
|
|
28552
28607
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28678,7 +28733,7 @@ var Group = class Group extends Object$1 {
|
|
|
28678
28733
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28679
28734
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28680
28735
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28681
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28736
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28682
28737
|
let fetchResult;
|
|
28683
28738
|
try {
|
|
28684
28739
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28850,7 +28905,7 @@ var Group = class Group extends Object$1 {
|
|
|
28850
28905
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28851
28906
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28852
28907
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28853
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
28908
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28854
28909
|
let fetchResult;
|
|
28855
28910
|
try {
|
|
28856
28911
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29025,7 +29080,7 @@ var Group = class Group extends Object$1 {
|
|
|
29025
29080
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29026
29081
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29027
29082
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29028
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
29083
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29029
29084
|
let fetchResult;
|
|
29030
29085
|
try {
|
|
29031
29086
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29258,7 +29313,7 @@ var Group = class Group extends Object$1 {
|
|
|
29258
29313
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29259
29314
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29260
29315
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29261
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
29316
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29262
29317
|
let fetchResult;
|
|
29263
29318
|
try {
|
|
29264
29319
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29962,7 +30017,7 @@ var Group = class Group extends Object$1 {
|
|
|
29962
30017
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29963
30018
|
*/
|
|
29964
30019
|
static async fromJsonLd(json, options = {}) {
|
|
29965
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
30020
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29966
30021
|
try {
|
|
29967
30022
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
29968
30023
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30581,6 +30636,11 @@ var Link = class Link {
|
|
|
30581
30636
|
get _warning() {
|
|
30582
30637
|
return this.#warning;
|
|
30583
30638
|
}
|
|
30639
|
+
/**
|
|
30640
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
30641
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
30642
|
+
* accessor name and its getter/setter semantics stable.
|
|
30643
|
+
*/
|
|
30584
30644
|
get _cachedJsonLd() {
|
|
30585
30645
|
return this.#cachedJsonLd;
|
|
30586
30646
|
}
|
|
@@ -30791,7 +30851,7 @@ var Link = class Link {
|
|
|
30791
30851
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30792
30852
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30793
30853
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30794
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
30854
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30795
30855
|
let fetchResult;
|
|
30796
30856
|
try {
|
|
30797
30857
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31093,7 +31153,7 @@ var Link = class Link {
|
|
|
31093
31153
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31094
31154
|
*/
|
|
31095
31155
|
static async fromJsonLd(json, options = {}) {
|
|
31096
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
31156
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31097
31157
|
try {
|
|
31098
31158
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
31099
31159
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31476,7 +31536,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
31476
31536
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31477
31537
|
*/
|
|
31478
31538
|
static async fromJsonLd(json, options = {}) {
|
|
31479
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
31539
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31480
31540
|
try {
|
|
31481
31541
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
31482
31542
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31641,7 +31701,7 @@ var Image = class Image extends Document {
|
|
|
31641
31701
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31642
31702
|
*/
|
|
31643
31703
|
static async fromJsonLd(json, options = {}) {
|
|
31644
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
31704
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31645
31705
|
try {
|
|
31646
31706
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
31647
31707
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31794,7 +31854,7 @@ var Offer = class Offer extends Activity {
|
|
|
31794
31854
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31795
31855
|
*/
|
|
31796
31856
|
static async fromJsonLd(json, options = {}) {
|
|
31797
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
31857
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31798
31858
|
try {
|
|
31799
31859
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
31800
31860
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31947,7 +32007,7 @@ var Invite = class Invite extends Offer {
|
|
|
31947
32007
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31948
32008
|
*/
|
|
31949
32009
|
static async fromJsonLd(json, options = {}) {
|
|
31950
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32010
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31951
32011
|
try {
|
|
31952
32012
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
31953
32013
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32099,7 +32159,7 @@ var Join = class Join extends Activity {
|
|
|
32099
32159
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32100
32160
|
*/
|
|
32101
32161
|
static async fromJsonLd(json, options = {}) {
|
|
32102
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32162
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32103
32163
|
try {
|
|
32104
32164
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
32105
32165
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32251,7 +32311,7 @@ var Leave = class Leave extends Activity {
|
|
|
32251
32311
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32252
32312
|
*/
|
|
32253
32313
|
static async fromJsonLd(json, options = {}) {
|
|
32254
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32314
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32255
32315
|
try {
|
|
32256
32316
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
32257
32317
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32407,7 +32467,7 @@ var Like = class Like extends Activity {
|
|
|
32407
32467
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32408
32468
|
*/
|
|
32409
32469
|
static async fromJsonLd(json, options = {}) {
|
|
32410
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32470
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32411
32471
|
try {
|
|
32412
32472
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
32413
32473
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32558,7 +32618,7 @@ var Listen = class Listen extends Activity {
|
|
|
32558
32618
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32559
32619
|
*/
|
|
32560
32620
|
static async fromJsonLd(json, options = {}) {
|
|
32561
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32621
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32562
32622
|
try {
|
|
32563
32623
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
32564
32624
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32712,7 +32772,7 @@ var Mention = class Mention extends Link {
|
|
|
32712
32772
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32713
32773
|
*/
|
|
32714
32774
|
static async fromJsonLd(json, options = {}) {
|
|
32715
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32775
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32716
32776
|
try {
|
|
32717
32777
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
32718
32778
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32865,7 +32925,7 @@ var Move = class Move extends Activity {
|
|
|
32865
32925
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32866
32926
|
*/
|
|
32867
32927
|
static async fromJsonLd(json, options = {}) {
|
|
32868
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
32928
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32869
32929
|
try {
|
|
32870
32930
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
32871
32931
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32999,7 +33059,7 @@ var Note = class Note extends Object$1 {
|
|
|
32999
33059
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33000
33060
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33001
33061
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33002
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33062
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33003
33063
|
let fetchResult;
|
|
33004
33064
|
try {
|
|
33005
33065
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33146,7 +33206,7 @@ var Note = class Note extends Object$1 {
|
|
|
33146
33206
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33147
33207
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33148
33208
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33149
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33209
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33150
33210
|
let fetchResult;
|
|
33151
33211
|
try {
|
|
33152
33212
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33441,7 +33501,7 @@ var Note = class Note extends Object$1 {
|
|
|
33441
33501
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33442
33502
|
*/
|
|
33443
33503
|
static async fromJsonLd(json, options = {}) {
|
|
33444
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
33504
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33445
33505
|
try {
|
|
33446
33506
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
33447
33507
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33629,7 +33689,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33629
33689
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33630
33690
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33631
33691
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33632
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
33692
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33633
33693
|
let fetchResult;
|
|
33634
33694
|
try {
|
|
33635
33695
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33909,7 +33969,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33909
33969
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33910
33970
|
*/
|
|
33911
33971
|
static async fromJsonLd(json, options = {}) {
|
|
33912
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
33972
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33913
33973
|
try {
|
|
33914
33974
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
33915
33975
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34131,7 +34191,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
34131
34191
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34132
34192
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34133
34193
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34134
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
34194
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34135
34195
|
let fetchResult;
|
|
34136
34196
|
try {
|
|
34137
34197
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34434,7 +34494,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
34434
34494
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34435
34495
|
*/
|
|
34436
34496
|
static async fromJsonLd(json, options = {}) {
|
|
34437
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
34497
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34438
34498
|
try {
|
|
34439
34499
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
34440
34500
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34948,7 +35008,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34948
35008
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34949
35009
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34950
35010
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34951
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
35011
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34952
35012
|
let fetchResult;
|
|
34953
35013
|
try {
|
|
34954
35014
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35129,7 +35189,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35129
35189
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35130
35190
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35131
35191
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35132
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
35192
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35133
35193
|
let fetchResult;
|
|
35134
35194
|
try {
|
|
35135
35195
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35328,7 +35388,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35328
35388
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35329
35389
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35330
35390
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35331
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
35391
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35332
35392
|
let fetchResult;
|
|
35333
35393
|
try {
|
|
35334
35394
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35479,7 +35539,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35479
35539
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35480
35540
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35481
35541
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35482
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
35542
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35483
35543
|
let fetchResult;
|
|
35484
35544
|
try {
|
|
35485
35545
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35627,7 +35687,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35627
35687
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35628
35688
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35629
35689
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35630
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
35690
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35631
35691
|
let fetchResult;
|
|
35632
35692
|
try {
|
|
35633
35693
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35760,7 +35820,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35760
35820
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35761
35821
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35762
35822
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35763
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
35823
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35764
35824
|
let fetchResult;
|
|
35765
35825
|
try {
|
|
35766
35826
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35896,7 +35956,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35896
35956
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35897
35957
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35898
35958
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35899
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
35959
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35900
35960
|
let fetchResult;
|
|
35901
35961
|
try {
|
|
35902
35962
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36030,7 +36090,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36030
36090
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36031
36091
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36032
36092
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36033
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36093
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36034
36094
|
let fetchResult;
|
|
36035
36095
|
try {
|
|
36036
36096
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36162,7 +36222,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36162
36222
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36163
36223
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36164
36224
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36165
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36225
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36166
36226
|
let fetchResult;
|
|
36167
36227
|
try {
|
|
36168
36228
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36294,7 +36354,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36294
36354
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36295
36355
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36296
36356
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36297
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36357
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36298
36358
|
let fetchResult;
|
|
36299
36359
|
try {
|
|
36300
36360
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36466,7 +36526,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36466
36526
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36467
36527
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36468
36528
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36469
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36529
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36470
36530
|
let fetchResult;
|
|
36471
36531
|
try {
|
|
36472
36532
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36641,7 +36701,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36641
36701
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36642
36702
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36643
36703
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36644
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36704
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36645
36705
|
let fetchResult;
|
|
36646
36706
|
try {
|
|
36647
36707
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36874,7 +36934,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36874
36934
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36875
36935
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36876
36936
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36877
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
36937
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36878
36938
|
let fetchResult;
|
|
36879
36939
|
try {
|
|
36880
36940
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37578,7 +37638,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
37578
37638
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37579
37639
|
*/
|
|
37580
37640
|
static async fromJsonLd(json, options = {}) {
|
|
37581
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
37641
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37582
37642
|
try {
|
|
37583
37643
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
37584
37644
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38269,7 +38329,7 @@ var Page = class Page extends Document {
|
|
|
38269
38329
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38270
38330
|
*/
|
|
38271
38331
|
static async fromJsonLd(json, options = {}) {
|
|
38272
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
38332
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38273
38333
|
try {
|
|
38274
38334
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
38275
38335
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38667,7 +38727,7 @@ var Person = class Person extends Object$1 {
|
|
|
38667
38727
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38668
38728
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38669
38729
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38670
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
38730
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38671
38731
|
let fetchResult;
|
|
38672
38732
|
try {
|
|
38673
38733
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38848,7 +38908,7 @@ var Person = class Person extends Object$1 {
|
|
|
38848
38908
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38849
38909
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38850
38910
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38851
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
38911
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38852
38912
|
let fetchResult;
|
|
38853
38913
|
try {
|
|
38854
38914
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39047,7 +39107,7 @@ var Person = class Person extends Object$1 {
|
|
|
39047
39107
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39048
39108
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39049
39109
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39050
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39110
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39051
39111
|
let fetchResult;
|
|
39052
39112
|
try {
|
|
39053
39113
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39198,7 +39258,7 @@ var Person = class Person extends Object$1 {
|
|
|
39198
39258
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39199
39259
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39200
39260
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39201
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39261
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39202
39262
|
let fetchResult;
|
|
39203
39263
|
try {
|
|
39204
39264
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39346,7 +39406,7 @@ var Person = class Person extends Object$1 {
|
|
|
39346
39406
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39347
39407
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39348
39408
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39349
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39409
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39350
39410
|
let fetchResult;
|
|
39351
39411
|
try {
|
|
39352
39412
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39479,7 +39539,7 @@ var Person = class Person extends Object$1 {
|
|
|
39479
39539
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39480
39540
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39481
39541
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39482
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39542
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39483
39543
|
let fetchResult;
|
|
39484
39544
|
try {
|
|
39485
39545
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39615,7 +39675,7 @@ var Person = class Person extends Object$1 {
|
|
|
39615
39675
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39616
39676
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39617
39677
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39618
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39678
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39619
39679
|
let fetchResult;
|
|
39620
39680
|
try {
|
|
39621
39681
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39749,7 +39809,7 @@ var Person = class Person extends Object$1 {
|
|
|
39749
39809
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39750
39810
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39751
39811
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39752
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39812
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39753
39813
|
let fetchResult;
|
|
39754
39814
|
try {
|
|
39755
39815
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39881,7 +39941,7 @@ var Person = class Person extends Object$1 {
|
|
|
39881
39941
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39882
39942
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39883
39943
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39884
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
39944
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39885
39945
|
let fetchResult;
|
|
39886
39946
|
try {
|
|
39887
39947
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40013,7 +40073,7 @@ var Person = class Person extends Object$1 {
|
|
|
40013
40073
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40014
40074
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40015
40075
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40016
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40076
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40017
40077
|
let fetchResult;
|
|
40018
40078
|
try {
|
|
40019
40079
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40185,7 +40245,7 @@ var Person = class Person extends Object$1 {
|
|
|
40185
40245
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40186
40246
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40187
40247
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40188
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40248
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40189
40249
|
let fetchResult;
|
|
40190
40250
|
try {
|
|
40191
40251
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40360,7 +40420,7 @@ var Person = class Person extends Object$1 {
|
|
|
40360
40420
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40361
40421
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40362
40422
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40363
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40423
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40364
40424
|
let fetchResult;
|
|
40365
40425
|
try {
|
|
40366
40426
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40593,7 +40653,7 @@ var Person = class Person extends Object$1 {
|
|
|
40593
40653
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40594
40654
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40595
40655
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40596
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
40656
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40597
40657
|
let fetchResult;
|
|
40598
40658
|
try {
|
|
40599
40659
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41297,7 +41357,7 @@ var Person = class Person extends Object$1 {
|
|
|
41297
41357
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41298
41358
|
*/
|
|
41299
41359
|
static async fromJsonLd(json, options = {}) {
|
|
41300
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
41360
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41301
41361
|
try {
|
|
41302
41362
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
41303
41363
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42165,7 +42225,7 @@ var Place = class Place extends Object$1 {
|
|
|
42165
42225
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42166
42226
|
*/
|
|
42167
42227
|
static async fromJsonLd(json, options = {}) {
|
|
42168
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
42228
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42169
42229
|
try {
|
|
42170
42230
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
42171
42231
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42393,7 +42453,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
42393
42453
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42394
42454
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42395
42455
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42396
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
42456
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42397
42457
|
let fetchResult;
|
|
42398
42458
|
try {
|
|
42399
42459
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42603,7 +42663,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
42603
42663
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42604
42664
|
*/
|
|
42605
42665
|
static async fromJsonLd(json, options = {}) {
|
|
42606
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
42666
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42607
42667
|
try {
|
|
42608
42668
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
42609
42669
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42807,7 +42867,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42807
42867
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42808
42868
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42809
42869
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42810
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
42870
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42811
42871
|
let fetchResult;
|
|
42812
42872
|
try {
|
|
42813
42873
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42939,7 +42999,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42939
42999
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42940
43000
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42941
43001
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42942
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43002
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42943
43003
|
let fetchResult;
|
|
42944
43004
|
try {
|
|
42945
43005
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43087,7 +43147,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43087
43147
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43088
43148
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43089
43149
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43090
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43150
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43091
43151
|
let fetchResult;
|
|
43092
43152
|
try {
|
|
43093
43153
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43234,7 +43294,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43234
43294
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43235
43295
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43236
43296
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43237
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
43297
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43238
43298
|
let fetchResult;
|
|
43239
43299
|
try {
|
|
43240
43300
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43495,7 +43555,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43495
43555
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43496
43556
|
*/
|
|
43497
43557
|
static async fromJsonLd(json, options = {}) {
|
|
43498
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
43558
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43499
43559
|
try {
|
|
43500
43560
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
43501
43561
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43803,7 +43863,7 @@ var Read = class Read extends Activity {
|
|
|
43803
43863
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43804
43864
|
*/
|
|
43805
43865
|
static async fromJsonLd(json, options = {}) {
|
|
43806
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
43866
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43807
43867
|
try {
|
|
43808
43868
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
43809
43869
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43955,7 +44015,7 @@ var Reject = class Reject extends Activity {
|
|
|
43955
44015
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43956
44016
|
*/
|
|
43957
44017
|
static async fromJsonLd(json, options = {}) {
|
|
43958
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
44018
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43959
44019
|
try {
|
|
43960
44020
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
43961
44021
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44131,7 +44191,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44131
44191
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44132
44192
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44133
44193
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44134
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
44194
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44135
44195
|
let fetchResult;
|
|
44136
44196
|
try {
|
|
44137
44197
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44263,7 +44323,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44263
44323
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44264
44324
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44265
44325
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44266
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
44326
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44267
44327
|
let fetchResult;
|
|
44268
44328
|
try {
|
|
44269
44329
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44444,7 +44504,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44444
44504
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44445
44505
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44446
44506
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44447
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
44507
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44448
44508
|
let fetchResult;
|
|
44449
44509
|
try {
|
|
44450
44510
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44741,7 +44801,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44741
44801
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44742
44802
|
*/
|
|
44743
44803
|
static async fromJsonLd(json, options = {}) {
|
|
44744
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
44804
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44745
44805
|
try {
|
|
44746
44806
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
44747
44807
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44971,7 +45031,7 @@ var Remove = class Remove extends Activity {
|
|
|
44971
45031
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44972
45032
|
*/
|
|
44973
45033
|
static async fromJsonLd(json, options = {}) {
|
|
44974
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
45034
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44975
45035
|
try {
|
|
44976
45036
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
44977
45037
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45369,7 +45429,7 @@ var Service = class Service extends Object$1 {
|
|
|
45369
45429
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45370
45430
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45371
45431
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45372
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
45432
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45373
45433
|
let fetchResult;
|
|
45374
45434
|
try {
|
|
45375
45435
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45550,7 +45610,7 @@ var Service = class Service extends Object$1 {
|
|
|
45550
45610
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45551
45611
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45552
45612
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45553
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
45613
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45554
45614
|
let fetchResult;
|
|
45555
45615
|
try {
|
|
45556
45616
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45749,7 +45809,7 @@ var Service = class Service extends Object$1 {
|
|
|
45749
45809
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45750
45810
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45751
45811
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45752
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
45812
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45753
45813
|
let fetchResult;
|
|
45754
45814
|
try {
|
|
45755
45815
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45900,7 +45960,7 @@ var Service = class Service extends Object$1 {
|
|
|
45900
45960
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45901
45961
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45902
45962
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45903
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
45963
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45904
45964
|
let fetchResult;
|
|
45905
45965
|
try {
|
|
45906
45966
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46048,7 +46108,7 @@ var Service = class Service extends Object$1 {
|
|
|
46048
46108
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46049
46109
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46050
46110
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46051
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
46111
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46052
46112
|
let fetchResult;
|
|
46053
46113
|
try {
|
|
46054
46114
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46181,7 +46241,7 @@ var Service = class Service extends Object$1 {
|
|
|
46181
46241
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46182
46242
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46183
46243
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46184
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
46244
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46185
46245
|
let fetchResult;
|
|
46186
46246
|
try {
|
|
46187
46247
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46317,7 +46377,7 @@ var Service = class Service extends Object$1 {
|
|
|
46317
46377
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46318
46378
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46319
46379
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46320
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
46380
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46321
46381
|
let fetchResult;
|
|
46322
46382
|
try {
|
|
46323
46383
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46451,7 +46511,7 @@ var Service = class Service extends Object$1 {
|
|
|
46451
46511
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46452
46512
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46453
46513
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46454
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
46514
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46455
46515
|
let fetchResult;
|
|
46456
46516
|
try {
|
|
46457
46517
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46583,7 +46643,7 @@ var Service = class Service extends Object$1 {
|
|
|
46583
46643
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46584
46644
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46585
46645
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46586
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
46646
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46587
46647
|
let fetchResult;
|
|
46588
46648
|
try {
|
|
46589
46649
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46715,7 +46775,7 @@ var Service = class Service extends Object$1 {
|
|
|
46715
46775
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46716
46776
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46717
46777
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46718
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
46778
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46719
46779
|
let fetchResult;
|
|
46720
46780
|
try {
|
|
46721
46781
|
fetchResult = await documentLoader(url.href);
|
|
@@ -46887,7 +46947,7 @@ var Service = class Service extends Object$1 {
|
|
|
46887
46947
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46888
46948
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46889
46949
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46890
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
46950
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46891
46951
|
let fetchResult;
|
|
46892
46952
|
try {
|
|
46893
46953
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47062,7 +47122,7 @@ var Service = class Service extends Object$1 {
|
|
|
47062
47122
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47063
47123
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47064
47124
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47065
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
47125
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47066
47126
|
let fetchResult;
|
|
47067
47127
|
try {
|
|
47068
47128
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47295,7 +47355,7 @@ var Service = class Service extends Object$1 {
|
|
|
47295
47355
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47296
47356
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47297
47357
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47298
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.
|
|
47358
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47299
47359
|
let fetchResult;
|
|
47300
47360
|
try {
|
|
47301
47361
|
fetchResult = await documentLoader(url.href);
|
|
@@ -47999,7 +48059,7 @@ var Service = class Service extends Object$1 {
|
|
|
47999
48059
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48000
48060
|
*/
|
|
48001
48061
|
static async fromJsonLd(json, options = {}) {
|
|
48002
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
48062
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48003
48063
|
try {
|
|
48004
48064
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
48005
48065
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48611,6 +48671,11 @@ var Source = class {
|
|
|
48611
48671
|
get _warning() {
|
|
48612
48672
|
return this.#warning;
|
|
48613
48673
|
}
|
|
48674
|
+
/**
|
|
48675
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
48676
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
48677
|
+
* accessor name and its getter/setter semantics stable.
|
|
48678
|
+
*/
|
|
48614
48679
|
get _cachedJsonLd() {
|
|
48615
48680
|
return this.#cachedJsonLd;
|
|
48616
48681
|
}
|
|
@@ -48784,7 +48849,7 @@ var Source = class {
|
|
|
48784
48849
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48785
48850
|
*/
|
|
48786
48851
|
static async fromJsonLd(json, options = {}) {
|
|
48787
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
48852
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48788
48853
|
try {
|
|
48789
48854
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
48790
48855
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48973,7 +49038,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
48973
49038
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48974
49039
|
*/
|
|
48975
49040
|
static async fromJsonLd(json, options = {}) {
|
|
48976
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
49041
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48977
49042
|
try {
|
|
48978
49043
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
48979
49044
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49125,7 +49190,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
49125
49190
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49126
49191
|
*/
|
|
49127
49192
|
static async fromJsonLd(json, options = {}) {
|
|
49128
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
49193
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49129
49194
|
try {
|
|
49130
49195
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
49131
49196
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49366,7 +49431,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
49366
49431
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49367
49432
|
*/
|
|
49368
49433
|
static async fromJsonLd(json, options = {}) {
|
|
49369
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
49434
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49370
49435
|
try {
|
|
49371
49436
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
49372
49437
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49563,7 +49628,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
49563
49628
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49564
49629
|
*/
|
|
49565
49630
|
static async fromJsonLd(json, options = {}) {
|
|
49566
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
49631
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49567
49632
|
try {
|
|
49568
49633
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
49569
49634
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49729,7 +49794,7 @@ var Undo = class Undo extends Activity {
|
|
|
49729
49794
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49730
49795
|
*/
|
|
49731
49796
|
static async fromJsonLd(json, options = {}) {
|
|
49732
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
49797
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49733
49798
|
try {
|
|
49734
49799
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
49735
49800
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49943,7 +50008,7 @@ var Update = class Update extends Activity {
|
|
|
49943
50008
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49944
50009
|
*/
|
|
49945
50010
|
static async fromJsonLd(json, options = {}) {
|
|
49946
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
50011
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49947
50012
|
try {
|
|
49948
50013
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
49949
50014
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50108,7 +50173,7 @@ var Video = class Video extends Document {
|
|
|
50108
50173
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50109
50174
|
*/
|
|
50110
50175
|
static async fromJsonLd(json, options = {}) {
|
|
50111
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
50176
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50112
50177
|
try {
|
|
50113
50178
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
50114
50179
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50259,7 +50324,7 @@ var View = class View extends Activity {
|
|
|
50259
50324
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50260
50325
|
*/
|
|
50261
50326
|
static async fromJsonLd(json, options = {}) {
|
|
50262
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.
|
|
50327
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.2.20").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50263
50328
|
try {
|
|
50264
50329
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
50265
50330
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|