@fedify/vocab 2.1.30 → 2.1.31
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 +257 -202
- package/dist/mod.d.cts +55 -0
- package/dist/mod.d.ts +55 -0
- package/dist/mod.js +257 -202
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-C-AmqlF6.mjs → deno-B6BABxfi.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +22 -8
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BdFWN1ns.mjs → vocab-De7fFc2M.mjs} +256 -201
- package/dist-tests/vocab.test.mjs +11 -3
- package/package.json +5 -5
- package/src/lookup.test.ts +25 -5
- package/src/vocab.test.ts +13 -2
|
@@ -155,6 +155,11 @@ var Object$1 = class Object$1 {
|
|
|
155
155
|
get _warning() {
|
|
156
156
|
return this.#warning;
|
|
157
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
160
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
161
|
+
* accessor name and its getter/setter semantics stable.
|
|
162
|
+
*/
|
|
158
163
|
get _cachedJsonLd() {
|
|
159
164
|
return this.#cachedJsonLd;
|
|
160
165
|
}
|
|
@@ -797,7 +802,7 @@ var Object$1 = class Object$1 {
|
|
|
797
802
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
798
803
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
799
804
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
800
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
805
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
801
806
|
let fetchResult;
|
|
802
807
|
try {
|
|
803
808
|
fetchResult = await documentLoader(url.href);
|
|
@@ -953,7 +958,7 @@ var Object$1 = class Object$1 {
|
|
|
953
958
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
954
959
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
955
960
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
956
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
961
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
957
962
|
let fetchResult;
|
|
958
963
|
try {
|
|
959
964
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1184,7 +1189,7 @@ var Object$1 = class Object$1 {
|
|
|
1184
1189
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1185
1190
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1186
1191
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1187
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1192
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1188
1193
|
let fetchResult;
|
|
1189
1194
|
try {
|
|
1190
1195
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1387,7 +1392,7 @@ var Object$1 = class Object$1 {
|
|
|
1387
1392
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1388
1393
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1389
1394
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1390
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1395
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1391
1396
|
let fetchResult;
|
|
1392
1397
|
try {
|
|
1393
1398
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1559,7 +1564,7 @@ var Object$1 = class Object$1 {
|
|
|
1559
1564
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1560
1565
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1561
1566
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1562
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1567
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1563
1568
|
let fetchResult;
|
|
1564
1569
|
try {
|
|
1565
1570
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1699,7 +1704,7 @@ var Object$1 = class Object$1 {
|
|
|
1699
1704
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1700
1705
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1701
1706
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1702
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1707
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1703
1708
|
let fetchResult;
|
|
1704
1709
|
try {
|
|
1705
1710
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1884,7 +1889,7 @@ var Object$1 = class Object$1 {
|
|
|
1884
1889
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1885
1890
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1886
1891
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1887
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
1892
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1888
1893
|
let fetchResult;
|
|
1889
1894
|
try {
|
|
1890
1895
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2069,7 +2074,7 @@ var Object$1 = class Object$1 {
|
|
|
2069
2074
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2070
2075
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2071
2076
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2072
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2077
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2073
2078
|
let fetchResult;
|
|
2074
2079
|
try {
|
|
2075
2080
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2262,7 +2267,7 @@ var Object$1 = class Object$1 {
|
|
|
2262
2267
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2263
2268
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2264
2269
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2265
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2270
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2266
2271
|
let fetchResult;
|
|
2267
2272
|
try {
|
|
2268
2273
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2455,7 +2460,7 @@ var Object$1 = class Object$1 {
|
|
|
2455
2460
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2456
2461
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2457
2462
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2458
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2463
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2459
2464
|
let fetchResult;
|
|
2460
2465
|
try {
|
|
2461
2466
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2653,7 +2658,7 @@ var Object$1 = class Object$1 {
|
|
|
2653
2658
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2654
2659
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2655
2660
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2656
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2661
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2657
2662
|
let fetchResult;
|
|
2658
2663
|
try {
|
|
2659
2664
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2783,7 +2788,7 @@ var Object$1 = class Object$1 {
|
|
|
2783
2788
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2784
2789
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2785
2790
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2786
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2791
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2787
2792
|
let fetchResult;
|
|
2788
2793
|
try {
|
|
2789
2794
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2919,7 +2924,7 @@ var Object$1 = class Object$1 {
|
|
|
2919
2924
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2920
2925
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2921
2926
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2922
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
2927
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2923
2928
|
let fetchResult;
|
|
2924
2929
|
try {
|
|
2925
2930
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3055,7 +3060,7 @@ var Object$1 = class Object$1 {
|
|
|
3055
3060
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3056
3061
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3057
3062
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3058
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3063
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3059
3064
|
let fetchResult;
|
|
3060
3065
|
try {
|
|
3061
3066
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3209,7 +3214,7 @@ var Object$1 = class Object$1 {
|
|
|
3209
3214
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3210
3215
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3211
3216
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3212
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3217
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3213
3218
|
let fetchResult;
|
|
3214
3219
|
try {
|
|
3215
3220
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3371,7 +3376,7 @@ var Object$1 = class Object$1 {
|
|
|
3371
3376
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3372
3377
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3373
3378
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3374
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3379
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3375
3380
|
let fetchResult;
|
|
3376
3381
|
try {
|
|
3377
3382
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3554,7 +3559,7 @@ var Object$1 = class Object$1 {
|
|
|
3554
3559
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3555
3560
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3556
3561
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3557
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3562
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3558
3563
|
let fetchResult;
|
|
3559
3564
|
try {
|
|
3560
3565
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3737,7 +3742,7 @@ var Object$1 = class Object$1 {
|
|
|
3737
3742
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3738
3743
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3739
3744
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3740
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3745
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3741
3746
|
let fetchResult;
|
|
3742
3747
|
try {
|
|
3743
3748
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3920,7 +3925,7 @@ var Object$1 = class Object$1 {
|
|
|
3920
3925
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3921
3926
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3922
3927
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3923
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
3928
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3924
3929
|
let fetchResult;
|
|
3925
3930
|
try {
|
|
3926
3931
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4140,7 +4145,7 @@ var Object$1 = class Object$1 {
|
|
|
4140
4145
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4141
4146
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4142
4147
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4143
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4148
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4144
4149
|
let fetchResult;
|
|
4145
4150
|
try {
|
|
4146
4151
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4346,7 +4351,7 @@ var Object$1 = class Object$1 {
|
|
|
4346
4351
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4347
4352
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4348
4353
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4349
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4354
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4350
4355
|
let fetchResult;
|
|
4351
4356
|
try {
|
|
4352
4357
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4476,7 +4481,7 @@ var Object$1 = class Object$1 {
|
|
|
4476
4481
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4477
4482
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4478
4483
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4479
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4484
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4480
4485
|
let fetchResult;
|
|
4481
4486
|
try {
|
|
4482
4487
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4606,7 +4611,7 @@ var Object$1 = class Object$1 {
|
|
|
4606
4611
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4607
4612
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4608
4613
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4609
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
4614
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4610
4615
|
let fetchResult;
|
|
4611
4616
|
try {
|
|
4612
4617
|
fetchResult = await documentLoader(url.href);
|
|
@@ -5442,7 +5447,7 @@ var Object$1 = class Object$1 {
|
|
|
5442
5447
|
* @throws {TypeError} If the given `json` is invalid.
|
|
5443
5448
|
*/
|
|
5444
5449
|
static async fromJsonLd(json, options = {}) {
|
|
5445
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
5450
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
5446
5451
|
try {
|
|
5447
5452
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
5448
5453
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6919,7 +6924,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6919
6924
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6920
6925
|
*/
|
|
6921
6926
|
static async fromJsonLd(json, options = {}) {
|
|
6922
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
6927
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6923
6928
|
try {
|
|
6924
6929
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
6925
6930
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7161,7 +7166,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7161
7166
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7162
7167
|
*/
|
|
7163
7168
|
static async fromJsonLd(json, options = {}) {
|
|
7164
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
7169
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7165
7170
|
try {
|
|
7166
7171
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
7167
7172
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7451,7 +7456,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7451
7456
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7452
7457
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7453
7458
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7454
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7459
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7455
7460
|
let fetchResult;
|
|
7456
7461
|
try {
|
|
7457
7462
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7682,7 +7687,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7682
7687
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7683
7688
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7684
7689
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7685
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7690
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7686
7691
|
let fetchResult;
|
|
7687
7692
|
try {
|
|
7688
7693
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7867,7 +7872,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7867
7872
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7868
7873
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7869
7874
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7870
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
7875
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7871
7876
|
let fetchResult;
|
|
7872
7877
|
try {
|
|
7873
7878
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8058,7 +8063,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8058
8063
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8059
8064
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8060
8065
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8061
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
8066
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8062
8067
|
let fetchResult;
|
|
8063
8068
|
try {
|
|
8064
8069
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8243,7 +8248,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8243
8248
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8244
8249
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8245
8250
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8246
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
8251
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8247
8252
|
let fetchResult;
|
|
8248
8253
|
try {
|
|
8249
8254
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8430,7 +8435,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8430
8435
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8431
8436
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8432
8437
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8433
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
8438
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8434
8439
|
let fetchResult;
|
|
8435
8440
|
try {
|
|
8436
8441
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8700,7 +8705,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8700
8705
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8701
8706
|
*/
|
|
8702
8707
|
static async fromJsonLd(json, options = {}) {
|
|
8703
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
8708
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8704
8709
|
try {
|
|
8705
8710
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
8706
8711
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9039,7 +9044,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9039
9044
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9040
9045
|
*/
|
|
9041
9046
|
static async fromJsonLd(json, options = {}) {
|
|
9042
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9047
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9043
9048
|
try {
|
|
9044
9049
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
9045
9050
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9125,6 +9130,11 @@ var PropertyValue = class {
|
|
|
9125
9130
|
get _warning() {
|
|
9126
9131
|
return this.#warning;
|
|
9127
9132
|
}
|
|
9133
|
+
/**
|
|
9134
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
9135
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
9136
|
+
* accessor name and its getter/setter semantics stable.
|
|
9137
|
+
*/
|
|
9128
9138
|
get _cachedJsonLd() {
|
|
9129
9139
|
return this.#cachedJsonLd;
|
|
9130
9140
|
}
|
|
@@ -9300,7 +9310,7 @@ var PropertyValue = class {
|
|
|
9300
9310
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9301
9311
|
*/
|
|
9302
9312
|
static async fromJsonLd(json, options = {}) {
|
|
9303
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9313
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9304
9314
|
try {
|
|
9305
9315
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
9306
9316
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9471,7 +9481,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9471
9481
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9472
9482
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9473
9483
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9474
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
9484
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9475
9485
|
let fetchResult;
|
|
9476
9486
|
try {
|
|
9477
9487
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9601,7 +9611,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9601
9611
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9602
9612
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9603
9613
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9604
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
9614
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9605
9615
|
let fetchResult;
|
|
9606
9616
|
try {
|
|
9607
9617
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9826,7 +9836,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9826
9836
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9827
9837
|
*/
|
|
9828
9838
|
static async fromJsonLd(json, options = {}) {
|
|
9829
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
9839
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9830
9840
|
try {
|
|
9831
9841
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
9832
9842
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10030,7 +10040,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
10030
10040
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10031
10041
|
*/
|
|
10032
10042
|
static async fromJsonLd(json, options = {}) {
|
|
10033
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10043
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10034
10044
|
try {
|
|
10035
10045
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
10036
10046
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10121,6 +10131,11 @@ var InteractionPolicy = class {
|
|
|
10121
10131
|
get _warning() {
|
|
10122
10132
|
return this.#warning;
|
|
10123
10133
|
}
|
|
10134
|
+
/**
|
|
10135
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
10136
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
10137
|
+
* accessor name and its getter/setter semantics stable.
|
|
10138
|
+
*/
|
|
10124
10139
|
get _cachedJsonLd() {
|
|
10125
10140
|
return this.#cachedJsonLd;
|
|
10126
10141
|
}
|
|
@@ -10285,7 +10300,7 @@ var InteractionPolicy = class {
|
|
|
10285
10300
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10286
10301
|
*/
|
|
10287
10302
|
static async fromJsonLd(json, options = {}) {
|
|
10288
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10303
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10289
10304
|
try {
|
|
10290
10305
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
10291
10306
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10439,6 +10454,11 @@ var InteractionRule = class {
|
|
|
10439
10454
|
get _warning() {
|
|
10440
10455
|
return this.#warning;
|
|
10441
10456
|
}
|
|
10457
|
+
/**
|
|
10458
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
10459
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
10460
|
+
* accessor name and its getter/setter semantics stable.
|
|
10461
|
+
*/
|
|
10442
10462
|
get _cachedJsonLd() {
|
|
10443
10463
|
return this.#cachedJsonLd;
|
|
10444
10464
|
}
|
|
@@ -10608,7 +10628,7 @@ var InteractionRule = class {
|
|
|
10608
10628
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10609
10629
|
*/
|
|
10610
10630
|
static async fromJsonLd(json, options = {}) {
|
|
10611
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
10631
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10612
10632
|
try {
|
|
10613
10633
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
10614
10634
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10772,7 +10792,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10772
10792
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10773
10793
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10774
10794
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10775
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10795
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10776
10796
|
let fetchResult;
|
|
10777
10797
|
try {
|
|
10778
10798
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10902,7 +10922,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10902
10922
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
10903
10923
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
10904
10924
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
10905
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
10925
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10906
10926
|
let fetchResult;
|
|
10907
10927
|
try {
|
|
10908
10928
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11127,7 +11147,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11127
11147
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11128
11148
|
*/
|
|
11129
11149
|
static async fromJsonLd(json, options = {}) {
|
|
11130
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11150
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11131
11151
|
try {
|
|
11132
11152
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
11133
11153
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11330,7 +11350,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
11330
11350
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11331
11351
|
*/
|
|
11332
11352
|
static async fromJsonLd(json, options = {}) {
|
|
11333
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11353
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11334
11354
|
try {
|
|
11335
11355
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
11336
11356
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11464,7 +11484,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11464
11484
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11465
11485
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11466
11486
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11467
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
11487
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11468
11488
|
let fetchResult;
|
|
11469
11489
|
try {
|
|
11470
11490
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11594,7 +11614,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11594
11614
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11595
11615
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11596
11616
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11597
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
11617
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11598
11618
|
let fetchResult;
|
|
11599
11619
|
try {
|
|
11600
11620
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11819,7 +11839,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11819
11839
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11820
11840
|
*/
|
|
11821
11841
|
static async fromJsonLd(json, options = {}) {
|
|
11822
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
11842
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11823
11843
|
try {
|
|
11824
11844
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
11825
11845
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12022,7 +12042,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
12022
12042
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12023
12043
|
*/
|
|
12024
12044
|
static async fromJsonLd(json, options = {}) {
|
|
12025
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12045
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12026
12046
|
try {
|
|
12027
12047
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
12028
12048
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12111,6 +12131,11 @@ var DidService = class {
|
|
|
12111
12131
|
get _warning() {
|
|
12112
12132
|
return this.#warning;
|
|
12113
12133
|
}
|
|
12134
|
+
/**
|
|
12135
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
12136
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
12137
|
+
* accessor name and its getter/setter semantics stable.
|
|
12138
|
+
*/
|
|
12114
12139
|
get _cachedJsonLd() {
|
|
12115
12140
|
return this.#cachedJsonLd;
|
|
12116
12141
|
}
|
|
@@ -12243,7 +12268,7 @@ var DidService = class {
|
|
|
12243
12268
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12244
12269
|
*/
|
|
12245
12270
|
static async fromJsonLd(json, options = {}) {
|
|
12246
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12271
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12247
12272
|
try {
|
|
12248
12273
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
12249
12274
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12402,7 +12427,7 @@ var Export = class Export extends DidService {
|
|
|
12402
12427
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12403
12428
|
*/
|
|
12404
12429
|
static async fromJsonLd(json, options = {}) {
|
|
12405
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12430
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12406
12431
|
try {
|
|
12407
12432
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
12408
12433
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12489,6 +12514,11 @@ var DataIntegrityProof = class {
|
|
|
12489
12514
|
get _warning() {
|
|
12490
12515
|
return this.#warning;
|
|
12491
12516
|
}
|
|
12517
|
+
/**
|
|
12518
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
12519
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
12520
|
+
* accessor name and its getter/setter semantics stable.
|
|
12521
|
+
*/
|
|
12492
12522
|
get _cachedJsonLd() {
|
|
12493
12523
|
return this.#cachedJsonLd;
|
|
12494
12524
|
}
|
|
@@ -12590,7 +12620,7 @@ var DataIntegrityProof = class {
|
|
|
12590
12620
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12591
12621
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12592
12622
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12593
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
12623
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12594
12624
|
let fetchResult;
|
|
12595
12625
|
try {
|
|
12596
12626
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12809,7 +12839,7 @@ var DataIntegrityProof = class {
|
|
|
12809
12839
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12810
12840
|
*/
|
|
12811
12841
|
static async fromJsonLd(json, options = {}) {
|
|
12812
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
12842
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12813
12843
|
try {
|
|
12814
12844
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
12815
12845
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12972,6 +13002,11 @@ var CryptographicKey = class {
|
|
|
12972
13002
|
get _warning() {
|
|
12973
13003
|
return this.#warning;
|
|
12974
13004
|
}
|
|
13005
|
+
/**
|
|
13006
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
13007
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
13008
|
+
* accessor name and its getter/setter semantics stable.
|
|
13009
|
+
*/
|
|
12975
13010
|
get _cachedJsonLd() {
|
|
12976
13011
|
return this.#cachedJsonLd;
|
|
12977
13012
|
}
|
|
@@ -13048,7 +13083,7 @@ var CryptographicKey = class {
|
|
|
13048
13083
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13049
13084
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13050
13085
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13051
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
13086
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13052
13087
|
let fetchResult;
|
|
13053
13088
|
try {
|
|
13054
13089
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13319,7 +13354,7 @@ var CryptographicKey = class {
|
|
|
13319
13354
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13320
13355
|
*/
|
|
13321
13356
|
static async fromJsonLd(json, options = {}) {
|
|
13322
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13357
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13323
13358
|
try {
|
|
13324
13359
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
13325
13360
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13459,6 +13494,11 @@ var Multikey = class {
|
|
|
13459
13494
|
get _warning() {
|
|
13460
13495
|
return this.#warning;
|
|
13461
13496
|
}
|
|
13497
|
+
/**
|
|
13498
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
13499
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
13500
|
+
* accessor name and its getter/setter semantics stable.
|
|
13501
|
+
*/
|
|
13462
13502
|
get _cachedJsonLd() {
|
|
13463
13503
|
return this.#cachedJsonLd;
|
|
13464
13504
|
}
|
|
@@ -13535,7 +13575,7 @@ var Multikey = class {
|
|
|
13535
13575
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13536
13576
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13537
13577
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13538
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
13578
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13539
13579
|
let fetchResult;
|
|
13540
13580
|
try {
|
|
13541
13581
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13812,7 +13852,7 @@ var Multikey = class {
|
|
|
13812
13852
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13813
13853
|
*/
|
|
13814
13854
|
static async fromJsonLd(json, options = {}) {
|
|
13815
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
13855
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13816
13856
|
try {
|
|
13817
13857
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
13818
13858
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14016,7 +14056,7 @@ var Accept = class Accept extends Activity {
|
|
|
14016
14056
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14017
14057
|
*/
|
|
14018
14058
|
static async fromJsonLd(json, options = {}) {
|
|
14019
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
14059
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14020
14060
|
try {
|
|
14021
14061
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
14022
14062
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14171,7 +14211,7 @@ var Add = class Add extends Activity {
|
|
|
14171
14211
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14172
14212
|
*/
|
|
14173
14213
|
static async fromJsonLd(json, options = {}) {
|
|
14174
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
14214
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14175
14215
|
try {
|
|
14176
14216
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
14177
14217
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14343,7 +14383,7 @@ var Announce = class Announce extends Activity {
|
|
|
14343
14383
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14344
14384
|
*/
|
|
14345
14385
|
static async fromJsonLd(json, options = {}) {
|
|
14346
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
14386
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14347
14387
|
try {
|
|
14348
14388
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
14349
14389
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14741,7 +14781,7 @@ var Application = class Application extends Object$1 {
|
|
|
14741
14781
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14742
14782
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14743
14783
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14744
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14784
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14745
14785
|
let fetchResult;
|
|
14746
14786
|
try {
|
|
14747
14787
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14922,7 +14962,7 @@ var Application = class Application extends Object$1 {
|
|
|
14922
14962
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14923
14963
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14924
14964
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14925
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
14965
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14926
14966
|
let fetchResult;
|
|
14927
14967
|
try {
|
|
14928
14968
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15121,7 +15161,7 @@ var Application = class Application extends Object$1 {
|
|
|
15121
15161
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15122
15162
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15123
15163
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15124
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15164
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15125
15165
|
let fetchResult;
|
|
15126
15166
|
try {
|
|
15127
15167
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15272,7 +15312,7 @@ var Application = class Application extends Object$1 {
|
|
|
15272
15312
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15273
15313
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15274
15314
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15275
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15315
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15276
15316
|
let fetchResult;
|
|
15277
15317
|
try {
|
|
15278
15318
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15420,7 +15460,7 @@ var Application = class Application extends Object$1 {
|
|
|
15420
15460
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15421
15461
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15422
15462
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15423
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15463
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15424
15464
|
let fetchResult;
|
|
15425
15465
|
try {
|
|
15426
15466
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15553,7 +15593,7 @@ var Application = class Application extends Object$1 {
|
|
|
15553
15593
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15554
15594
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15555
15595
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15556
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15596
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15557
15597
|
let fetchResult;
|
|
15558
15598
|
try {
|
|
15559
15599
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15689,7 +15729,7 @@ var Application = class Application extends Object$1 {
|
|
|
15689
15729
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15690
15730
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15691
15731
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15692
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15732
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15693
15733
|
let fetchResult;
|
|
15694
15734
|
try {
|
|
15695
15735
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15823,7 +15863,7 @@ var Application = class Application extends Object$1 {
|
|
|
15823
15863
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15824
15864
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15825
15865
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15826
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15866
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15827
15867
|
let fetchResult;
|
|
15828
15868
|
try {
|
|
15829
15869
|
fetchResult = await documentLoader(url.href);
|
|
@@ -15955,7 +15995,7 @@ var Application = class Application extends Object$1 {
|
|
|
15955
15995
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15956
15996
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15957
15997
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15958
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
15998
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15959
15999
|
let fetchResult;
|
|
15960
16000
|
try {
|
|
15961
16001
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16087,7 +16127,7 @@ var Application = class Application extends Object$1 {
|
|
|
16087
16127
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16088
16128
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16089
16129
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16090
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
16130
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16091
16131
|
let fetchResult;
|
|
16092
16132
|
try {
|
|
16093
16133
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16259,7 +16299,7 @@ var Application = class Application extends Object$1 {
|
|
|
16259
16299
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16260
16300
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16261
16301
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16262
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
16302
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16263
16303
|
let fetchResult;
|
|
16264
16304
|
try {
|
|
16265
16305
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16434,7 +16474,7 @@ var Application = class Application extends Object$1 {
|
|
|
16434
16474
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16435
16475
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16436
16476
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16437
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
16477
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16438
16478
|
let fetchResult;
|
|
16439
16479
|
try {
|
|
16440
16480
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16667,7 +16707,7 @@ var Application = class Application extends Object$1 {
|
|
|
16667
16707
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16668
16708
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16669
16709
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16670
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
16710
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16671
16711
|
let fetchResult;
|
|
16672
16712
|
try {
|
|
16673
16713
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17371,7 +17411,7 @@ var Application = class Application extends Object$1 {
|
|
|
17371
17411
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17372
17412
|
*/
|
|
17373
17413
|
static async fromJsonLd(json, options = {}) {
|
|
17374
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
17414
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17375
17415
|
try {
|
|
17376
17416
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
17377
17417
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17982,7 +18022,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
17982
18022
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17983
18023
|
*/
|
|
17984
18024
|
static async fromJsonLd(json, options = {}) {
|
|
17985
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
18025
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17986
18026
|
try {
|
|
17987
18027
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
17988
18028
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18138,7 +18178,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
18138
18178
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18139
18179
|
*/
|
|
18140
18180
|
static async fromJsonLd(json, options = {}) {
|
|
18141
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
18181
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18142
18182
|
try {
|
|
18143
18183
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
18144
18184
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18378,7 +18418,7 @@ var Article = class Article extends Object$1 {
|
|
|
18378
18418
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18379
18419
|
*/
|
|
18380
18420
|
static async fromJsonLd(json, options = {}) {
|
|
18381
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
18421
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18382
18422
|
try {
|
|
18383
18423
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
18384
18424
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18624,7 +18664,7 @@ var Document = class Document extends Object$1 {
|
|
|
18624
18664
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18625
18665
|
*/
|
|
18626
18666
|
static async fromJsonLd(json, options = {}) {
|
|
18627
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
18667
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18628
18668
|
try {
|
|
18629
18669
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
18630
18670
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18822,7 +18862,7 @@ var Audio = class Audio extends Document {
|
|
|
18822
18862
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18823
18863
|
*/
|
|
18824
18864
|
static async fromJsonLd(json, options = {}) {
|
|
18825
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
18865
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18826
18866
|
try {
|
|
18827
18867
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
18828
18868
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18974,7 +19014,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
18974
19014
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18975
19015
|
*/
|
|
18976
19016
|
static async fromJsonLd(json, options = {}) {
|
|
18977
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
19017
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18978
19018
|
try {
|
|
18979
19019
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
18980
19020
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19129,7 +19169,7 @@ var Block = class Block extends Ignore {
|
|
|
19129
19169
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19130
19170
|
*/
|
|
19131
19171
|
static async fromJsonLd(json, options = {}) {
|
|
19132
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
19172
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19133
19173
|
try {
|
|
19134
19174
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
19135
19175
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19396,7 +19436,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19396
19436
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19397
19437
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19398
19438
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19399
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19439
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19400
19440
|
let fetchResult;
|
|
19401
19441
|
try {
|
|
19402
19442
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19526,7 +19566,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19526
19566
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19527
19567
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19528
19568
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19529
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19569
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19530
19570
|
let fetchResult;
|
|
19531
19571
|
try {
|
|
19532
19572
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19656,7 +19696,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19656
19696
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19657
19697
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19658
19698
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19659
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19699
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19660
19700
|
let fetchResult;
|
|
19661
19701
|
try {
|
|
19662
19702
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19786,7 +19826,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19786
19826
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19787
19827
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19788
19828
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19789
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19829
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19790
19830
|
let fetchResult;
|
|
19791
19831
|
try {
|
|
19792
19832
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19927,7 +19967,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
19927
19967
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19928
19968
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19929
19969
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19930
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
19970
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19931
19971
|
let fetchResult;
|
|
19932
19972
|
try {
|
|
19933
19973
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20056,7 +20096,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20056
20096
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20057
20097
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20058
20098
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20059
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20099
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20060
20100
|
let fetchResult;
|
|
20061
20101
|
try {
|
|
20062
20102
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20185,7 +20225,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20185
20225
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20186
20226
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20187
20227
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20188
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20228
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20189
20229
|
let fetchResult;
|
|
20190
20230
|
try {
|
|
20191
20231
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20314,7 +20354,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20314
20354
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20315
20355
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20316
20356
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20317
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20357
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20318
20358
|
let fetchResult;
|
|
20319
20359
|
try {
|
|
20320
20360
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20443,7 +20483,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20443
20483
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20444
20484
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20445
20485
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20446
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20486
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20447
20487
|
let fetchResult;
|
|
20448
20488
|
try {
|
|
20449
20489
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20572,7 +20612,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20572
20612
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20573
20613
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20574
20614
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20575
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20615
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20576
20616
|
let fetchResult;
|
|
20577
20617
|
try {
|
|
20578
20618
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20701,7 +20741,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20701
20741
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20702
20742
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20703
20743
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20704
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20744
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20705
20745
|
let fetchResult;
|
|
20706
20746
|
try {
|
|
20707
20747
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20830,7 +20870,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20830
20870
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20831
20871
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20832
20872
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20833
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
20873
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20834
20874
|
let fetchResult;
|
|
20835
20875
|
try {
|
|
20836
20876
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21268,7 +21308,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21268
21308
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21269
21309
|
*/
|
|
21270
21310
|
static async fromJsonLd(json, options = {}) {
|
|
21271
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
21311
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21272
21312
|
try {
|
|
21273
21313
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
21274
21314
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21752,7 +21792,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
21752
21792
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21753
21793
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21754
21794
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21755
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
21795
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21756
21796
|
let fetchResult;
|
|
21757
21797
|
try {
|
|
21758
21798
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21882,7 +21922,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
21882
21922
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21883
21923
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21884
21924
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21885
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
21925
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21886
21926
|
let fetchResult;
|
|
21887
21927
|
try {
|
|
21888
21928
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22011,7 +22051,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
22011
22051
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22012
22052
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22013
22053
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22014
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
22054
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22015
22055
|
let fetchResult;
|
|
22016
22056
|
try {
|
|
22017
22057
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22286,7 +22326,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
22286
22326
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22287
22327
|
*/
|
|
22288
22328
|
static async fromJsonLd(json, options = {}) {
|
|
22289
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22329
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22290
22330
|
try {
|
|
22291
22331
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
22292
22332
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22522,7 +22562,7 @@ var Create = class Create extends Activity {
|
|
|
22522
22562
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22523
22563
|
*/
|
|
22524
22564
|
static async fromJsonLd(json, options = {}) {
|
|
22525
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22565
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22526
22566
|
try {
|
|
22527
22567
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
22528
22568
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22690,7 +22730,7 @@ var Delete = class Delete extends Activity {
|
|
|
22690
22730
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22691
22731
|
*/
|
|
22692
22732
|
static async fromJsonLd(json, options = {}) {
|
|
22693
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22733
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22694
22734
|
try {
|
|
22695
22735
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
22696
22736
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22845,7 +22885,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
22845
22885
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22846
22886
|
*/
|
|
22847
22887
|
static async fromJsonLd(json, options = {}) {
|
|
22848
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
22888
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22849
22889
|
try {
|
|
22850
22890
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
22851
22891
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22931,6 +22971,11 @@ var Endpoints = class {
|
|
|
22931
22971
|
get _warning() {
|
|
22932
22972
|
return this.#warning;
|
|
22933
22973
|
}
|
|
22974
|
+
/**
|
|
22975
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
22976
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
22977
|
+
* accessor name and its getter/setter semantics stable.
|
|
22978
|
+
*/
|
|
22934
22979
|
get _cachedJsonLd() {
|
|
22935
22980
|
return this.#cachedJsonLd;
|
|
22936
22981
|
}
|
|
@@ -23205,7 +23250,7 @@ var Endpoints = class {
|
|
|
23205
23250
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23206
23251
|
*/
|
|
23207
23252
|
static async fromJsonLd(json, options = {}) {
|
|
23208
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
23253
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23209
23254
|
try {
|
|
23210
23255
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
23211
23256
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23454,7 +23499,7 @@ var Event = class Event extends Object$1 {
|
|
|
23454
23499
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23455
23500
|
*/
|
|
23456
23501
|
static async fromJsonLd(json, options = {}) {
|
|
23457
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
23502
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23458
23503
|
try {
|
|
23459
23504
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
23460
23505
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23607,7 +23652,7 @@ var Flag = class Flag extends Activity {
|
|
|
23607
23652
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23608
23653
|
*/
|
|
23609
23654
|
static async fromJsonLd(json, options = {}) {
|
|
23610
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
23655
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23611
23656
|
try {
|
|
23612
23657
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
23613
23658
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23764,7 +23809,7 @@ var Follow = class Follow extends Activity {
|
|
|
23764
23809
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23765
23810
|
*/
|
|
23766
23811
|
static async fromJsonLd(json, options = {}) {
|
|
23767
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
23812
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23768
23813
|
try {
|
|
23769
23814
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
23770
23815
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24162,7 +24207,7 @@ var Group = class Group extends Object$1 {
|
|
|
24162
24207
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24163
24208
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24164
24209
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24165
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24210
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24166
24211
|
let fetchResult;
|
|
24167
24212
|
try {
|
|
24168
24213
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24343,7 +24388,7 @@ var Group = class Group extends Object$1 {
|
|
|
24343
24388
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24344
24389
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24345
24390
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24346
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24391
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24347
24392
|
let fetchResult;
|
|
24348
24393
|
try {
|
|
24349
24394
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24542,7 +24587,7 @@ var Group = class Group extends Object$1 {
|
|
|
24542
24587
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24543
24588
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24544
24589
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24545
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24590
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24546
24591
|
let fetchResult;
|
|
24547
24592
|
try {
|
|
24548
24593
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24693,7 +24738,7 @@ var Group = class Group extends Object$1 {
|
|
|
24693
24738
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24694
24739
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24695
24740
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24696
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24741
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24697
24742
|
let fetchResult;
|
|
24698
24743
|
try {
|
|
24699
24744
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24841,7 +24886,7 @@ var Group = class Group extends Object$1 {
|
|
|
24841
24886
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24842
24887
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24843
24888
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24844
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
24889
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24845
24890
|
let fetchResult;
|
|
24846
24891
|
try {
|
|
24847
24892
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24974,7 +25019,7 @@ var Group = class Group extends Object$1 {
|
|
|
24974
25019
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24975
25020
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24976
25021
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24977
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25022
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24978
25023
|
let fetchResult;
|
|
24979
25024
|
try {
|
|
24980
25025
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25110,7 +25155,7 @@ var Group = class Group extends Object$1 {
|
|
|
25110
25155
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25111
25156
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25112
25157
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25113
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25158
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25114
25159
|
let fetchResult;
|
|
25115
25160
|
try {
|
|
25116
25161
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25244,7 +25289,7 @@ var Group = class Group extends Object$1 {
|
|
|
25244
25289
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25245
25290
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25246
25291
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25247
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25292
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25248
25293
|
let fetchResult;
|
|
25249
25294
|
try {
|
|
25250
25295
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25376,7 +25421,7 @@ var Group = class Group extends Object$1 {
|
|
|
25376
25421
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25377
25422
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25378
25423
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25379
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25424
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25380
25425
|
let fetchResult;
|
|
25381
25426
|
try {
|
|
25382
25427
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25508,7 +25553,7 @@ var Group = class Group extends Object$1 {
|
|
|
25508
25553
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25509
25554
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25510
25555
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25511
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25556
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25512
25557
|
let fetchResult;
|
|
25513
25558
|
try {
|
|
25514
25559
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25680,7 +25725,7 @@ var Group = class Group extends Object$1 {
|
|
|
25680
25725
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25681
25726
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25682
25727
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25683
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25728
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25684
25729
|
let fetchResult;
|
|
25685
25730
|
try {
|
|
25686
25731
|
fetchResult = await documentLoader(url.href);
|
|
@@ -25855,7 +25900,7 @@ var Group = class Group extends Object$1 {
|
|
|
25855
25900
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25856
25901
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25857
25902
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25858
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
25903
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25859
25904
|
let fetchResult;
|
|
25860
25905
|
try {
|
|
25861
25906
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26088,7 +26133,7 @@ var Group = class Group extends Object$1 {
|
|
|
26088
26133
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26089
26134
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26090
26135
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26091
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
26136
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26092
26137
|
let fetchResult;
|
|
26093
26138
|
try {
|
|
26094
26139
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26792,7 +26837,7 @@ var Group = class Group extends Object$1 {
|
|
|
26792
26837
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26793
26838
|
*/
|
|
26794
26839
|
static async fromJsonLd(json, options = {}) {
|
|
26795
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
26840
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26796
26841
|
try {
|
|
26797
26842
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
26798
26843
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27343,6 +27388,11 @@ var Link = class Link {
|
|
|
27343
27388
|
get _warning() {
|
|
27344
27389
|
return this.#warning;
|
|
27345
27390
|
}
|
|
27391
|
+
/**
|
|
27392
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
27393
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
27394
|
+
* accessor name and its getter/setter semantics stable.
|
|
27395
|
+
*/
|
|
27346
27396
|
get _cachedJsonLd() {
|
|
27347
27397
|
return this.#cachedJsonLd;
|
|
27348
27398
|
}
|
|
@@ -27553,7 +27603,7 @@ var Link = class Link {
|
|
|
27553
27603
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27554
27604
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27555
27605
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27556
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
27606
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27557
27607
|
let fetchResult;
|
|
27558
27608
|
try {
|
|
27559
27609
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27855,7 +27905,7 @@ var Link = class Link {
|
|
|
27855
27905
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27856
27906
|
*/
|
|
27857
27907
|
static async fromJsonLd(json, options = {}) {
|
|
27858
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
27908
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27859
27909
|
try {
|
|
27860
27910
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
27861
27911
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28211,7 +28261,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
28211
28261
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28212
28262
|
*/
|
|
28213
28263
|
static async fromJsonLd(json, options = {}) {
|
|
28214
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28264
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28215
28265
|
try {
|
|
28216
28266
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
28217
28267
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28376,7 +28426,7 @@ var Image = class Image extends Document {
|
|
|
28376
28426
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28377
28427
|
*/
|
|
28378
28428
|
static async fromJsonLd(json, options = {}) {
|
|
28379
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28429
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28380
28430
|
try {
|
|
28381
28431
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
28382
28432
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28529,7 +28579,7 @@ var Offer = class Offer extends Activity {
|
|
|
28529
28579
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28530
28580
|
*/
|
|
28531
28581
|
static async fromJsonLd(json, options = {}) {
|
|
28532
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28582
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28533
28583
|
try {
|
|
28534
28584
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
28535
28585
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28682,7 +28732,7 @@ var Invite = class Invite extends Offer {
|
|
|
28682
28732
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28683
28733
|
*/
|
|
28684
28734
|
static async fromJsonLd(json, options = {}) {
|
|
28685
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28735
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28686
28736
|
try {
|
|
28687
28737
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
28688
28738
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28834,7 +28884,7 @@ var Join = class Join extends Activity {
|
|
|
28834
28884
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28835
28885
|
*/
|
|
28836
28886
|
static async fromJsonLd(json, options = {}) {
|
|
28837
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
28887
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28838
28888
|
try {
|
|
28839
28889
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
28840
28890
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28986,7 +29036,7 @@ var Leave = class Leave extends Activity {
|
|
|
28986
29036
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28987
29037
|
*/
|
|
28988
29038
|
static async fromJsonLd(json, options = {}) {
|
|
28989
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
29039
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28990
29040
|
try {
|
|
28991
29041
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
28992
29042
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29142,7 +29192,7 @@ var Like = class Like extends Activity {
|
|
|
29142
29192
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29143
29193
|
*/
|
|
29144
29194
|
static async fromJsonLd(json, options = {}) {
|
|
29145
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
29195
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29146
29196
|
try {
|
|
29147
29197
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
29148
29198
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29293,7 +29343,7 @@ var Listen = class Listen extends Activity {
|
|
|
29293
29343
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29294
29344
|
*/
|
|
29295
29345
|
static async fromJsonLd(json, options = {}) {
|
|
29296
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
29346
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29297
29347
|
try {
|
|
29298
29348
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
29299
29349
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29447,7 +29497,7 @@ var Mention = class Mention extends Link {
|
|
|
29447
29497
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29448
29498
|
*/
|
|
29449
29499
|
static async fromJsonLd(json, options = {}) {
|
|
29450
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
29500
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29451
29501
|
try {
|
|
29452
29502
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
29453
29503
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29600,7 +29650,7 @@ var Move = class Move extends Activity {
|
|
|
29600
29650
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29601
29651
|
*/
|
|
29602
29652
|
static async fromJsonLd(json, options = {}) {
|
|
29603
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
29653
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29604
29654
|
try {
|
|
29605
29655
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
29606
29656
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29841,7 +29891,7 @@ var Note = class Note extends Object$1 {
|
|
|
29841
29891
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29842
29892
|
*/
|
|
29843
29893
|
static async fromJsonLd(json, options = {}) {
|
|
29844
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
29894
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29845
29895
|
try {
|
|
29846
29896
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
29847
29897
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29979,7 +30029,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
29979
30029
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29980
30030
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29981
30031
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29982
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30032
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29983
30033
|
let fetchResult;
|
|
29984
30034
|
try {
|
|
29985
30035
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30239,7 +30289,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
30239
30289
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30240
30290
|
*/
|
|
30241
30291
|
static async fromJsonLd(json, options = {}) {
|
|
30242
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
30292
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30243
30293
|
try {
|
|
30244
30294
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
30245
30295
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30458,7 +30508,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
30458
30508
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30459
30509
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30460
30510
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30461
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
30511
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30462
30512
|
let fetchResult;
|
|
30463
30513
|
try {
|
|
30464
30514
|
fetchResult = await documentLoader(url.href);
|
|
@@ -30741,7 +30791,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
30741
30791
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30742
30792
|
*/
|
|
30743
30793
|
static async fromJsonLd(json, options = {}) {
|
|
30744
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
30794
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30745
30795
|
try {
|
|
30746
30796
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
30747
30797
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31248,7 +31298,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31248
31298
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31249
31299
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31250
31300
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31251
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31301
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31252
31302
|
let fetchResult;
|
|
31253
31303
|
try {
|
|
31254
31304
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31429,7 +31479,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31429
31479
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31430
31480
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31431
31481
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31432
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31482
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31433
31483
|
let fetchResult;
|
|
31434
31484
|
try {
|
|
31435
31485
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31628,7 +31678,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31628
31678
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31629
31679
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31630
31680
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31631
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31681
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31632
31682
|
let fetchResult;
|
|
31633
31683
|
try {
|
|
31634
31684
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31779,7 +31829,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31779
31829
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31780
31830
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31781
31831
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31782
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31832
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31783
31833
|
let fetchResult;
|
|
31784
31834
|
try {
|
|
31785
31835
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31927,7 +31977,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
31927
31977
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31928
31978
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31929
31979
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31930
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
31980
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31931
31981
|
let fetchResult;
|
|
31932
31982
|
try {
|
|
31933
31983
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32060,7 +32110,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32060
32110
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32061
32111
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32062
32112
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32063
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32113
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32064
32114
|
let fetchResult;
|
|
32065
32115
|
try {
|
|
32066
32116
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32196,7 +32246,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32196
32246
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32197
32247
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32198
32248
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32199
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32249
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32200
32250
|
let fetchResult;
|
|
32201
32251
|
try {
|
|
32202
32252
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32330,7 +32380,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32330
32380
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32331
32381
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32332
32382
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32333
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32383
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32334
32384
|
let fetchResult;
|
|
32335
32385
|
try {
|
|
32336
32386
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32462,7 +32512,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32462
32512
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32463
32513
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32464
32514
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32465
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32515
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32466
32516
|
let fetchResult;
|
|
32467
32517
|
try {
|
|
32468
32518
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32594,7 +32644,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32594
32644
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32595
32645
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32596
32646
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32597
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32647
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32598
32648
|
let fetchResult;
|
|
32599
32649
|
try {
|
|
32600
32650
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32766,7 +32816,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32766
32816
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32767
32817
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32768
32818
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32769
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32819
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32770
32820
|
let fetchResult;
|
|
32771
32821
|
try {
|
|
32772
32822
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32941,7 +32991,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
32941
32991
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32942
32992
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32943
32993
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32944
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
32994
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32945
32995
|
let fetchResult;
|
|
32946
32996
|
try {
|
|
32947
32997
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33174,7 +33224,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33174
33224
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33175
33225
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33176
33226
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33177
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
33227
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33178
33228
|
let fetchResult;
|
|
33179
33229
|
try {
|
|
33180
33230
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33878,7 +33928,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33878
33928
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33879
33929
|
*/
|
|
33880
33930
|
static async fromJsonLd(json, options = {}) {
|
|
33881
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
33931
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33882
33932
|
try {
|
|
33883
33933
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
33884
33934
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34501,7 +34551,7 @@ var Page = class Page extends Document {
|
|
|
34501
34551
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34502
34552
|
*/
|
|
34503
34553
|
static async fromJsonLd(json, options = {}) {
|
|
34504
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
34554
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34505
34555
|
try {
|
|
34506
34556
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
34507
34557
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34899,7 +34949,7 @@ var Person = class Person extends Object$1 {
|
|
|
34899
34949
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34900
34950
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34901
34951
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34902
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
34952
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34903
34953
|
let fetchResult;
|
|
34904
34954
|
try {
|
|
34905
34955
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35080,7 +35130,7 @@ var Person = class Person extends Object$1 {
|
|
|
35080
35130
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35081
35131
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35082
35132
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35083
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
35133
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35084
35134
|
let fetchResult;
|
|
35085
35135
|
try {
|
|
35086
35136
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35279,7 +35329,7 @@ var Person = class Person extends Object$1 {
|
|
|
35279
35329
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35280
35330
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35281
35331
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35282
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
35332
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35283
35333
|
let fetchResult;
|
|
35284
35334
|
try {
|
|
35285
35335
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35430,7 +35480,7 @@ var Person = class Person extends Object$1 {
|
|
|
35430
35480
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35431
35481
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35432
35482
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35433
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
35483
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35434
35484
|
let fetchResult;
|
|
35435
35485
|
try {
|
|
35436
35486
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35578,7 +35628,7 @@ var Person = class Person extends Object$1 {
|
|
|
35578
35628
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35579
35629
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35580
35630
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35581
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
35631
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35582
35632
|
let fetchResult;
|
|
35583
35633
|
try {
|
|
35584
35634
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35711,7 +35761,7 @@ var Person = class Person extends Object$1 {
|
|
|
35711
35761
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35712
35762
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35713
35763
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35714
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
35764
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35715
35765
|
let fetchResult;
|
|
35716
35766
|
try {
|
|
35717
35767
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35847,7 +35897,7 @@ var Person = class Person extends Object$1 {
|
|
|
35847
35897
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35848
35898
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35849
35899
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35850
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
35900
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35851
35901
|
let fetchResult;
|
|
35852
35902
|
try {
|
|
35853
35903
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35981,7 +36031,7 @@ var Person = class Person extends Object$1 {
|
|
|
35981
36031
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35982
36032
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35983
36033
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35984
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36034
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35985
36035
|
let fetchResult;
|
|
35986
36036
|
try {
|
|
35987
36037
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36113,7 +36163,7 @@ var Person = class Person extends Object$1 {
|
|
|
36113
36163
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36114
36164
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36115
36165
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36116
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36166
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36117
36167
|
let fetchResult;
|
|
36118
36168
|
try {
|
|
36119
36169
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36245,7 +36295,7 @@ var Person = class Person extends Object$1 {
|
|
|
36245
36295
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36246
36296
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36247
36297
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36248
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36298
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36249
36299
|
let fetchResult;
|
|
36250
36300
|
try {
|
|
36251
36301
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36417,7 +36467,7 @@ var Person = class Person extends Object$1 {
|
|
|
36417
36467
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36418
36468
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36419
36469
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36420
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36470
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36421
36471
|
let fetchResult;
|
|
36422
36472
|
try {
|
|
36423
36473
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36592,7 +36642,7 @@ var Person = class Person extends Object$1 {
|
|
|
36592
36642
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36593
36643
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36594
36644
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36595
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36645
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36596
36646
|
let fetchResult;
|
|
36597
36647
|
try {
|
|
36598
36648
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36825,7 +36875,7 @@ var Person = class Person extends Object$1 {
|
|
|
36825
36875
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36826
36876
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36827
36877
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36828
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
36878
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36829
36879
|
let fetchResult;
|
|
36830
36880
|
try {
|
|
36831
36881
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37529,7 +37579,7 @@ var Person = class Person extends Object$1 {
|
|
|
37529
37579
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37530
37580
|
*/
|
|
37531
37581
|
static async fromJsonLd(json, options = {}) {
|
|
37532
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
37582
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37533
37583
|
try {
|
|
37534
37584
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
37535
37585
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38329,7 +38379,7 @@ var Place = class Place extends Object$1 {
|
|
|
38329
38379
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38330
38380
|
*/
|
|
38331
38381
|
static async fromJsonLd(json, options = {}) {
|
|
38332
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
38382
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38333
38383
|
try {
|
|
38334
38384
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
38335
38385
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38537,7 +38587,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
38537
38587
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38538
38588
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38539
38589
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38540
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
38590
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38541
38591
|
let fetchResult;
|
|
38542
38592
|
try {
|
|
38543
38593
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38747,7 +38797,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
38747
38797
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38748
38798
|
*/
|
|
38749
38799
|
static async fromJsonLd(json, options = {}) {
|
|
38750
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
38800
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38751
38801
|
try {
|
|
38752
38802
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
38753
38803
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38923,7 +38973,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
38923
38973
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38924
38974
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38925
38975
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38926
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
38976
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38927
38977
|
let fetchResult;
|
|
38928
38978
|
try {
|
|
38929
38979
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39055,7 +39105,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
39055
39105
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39056
39106
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39057
39107
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39058
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39108
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39059
39109
|
let fetchResult;
|
|
39060
39110
|
try {
|
|
39061
39111
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39329,7 +39379,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
39329
39379
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39330
39380
|
*/
|
|
39331
39381
|
static async fromJsonLd(json, options = {}) {
|
|
39332
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
39382
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39333
39383
|
try {
|
|
39334
39384
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
39335
39385
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39575,7 +39625,7 @@ var Read = class Read extends Activity {
|
|
|
39575
39625
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39576
39626
|
*/
|
|
39577
39627
|
static async fromJsonLd(json, options = {}) {
|
|
39578
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
39628
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39579
39629
|
try {
|
|
39580
39630
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
39581
39631
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39727,7 +39777,7 @@ var Reject = class Reject extends Activity {
|
|
|
39727
39777
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39728
39778
|
*/
|
|
39729
39779
|
static async fromJsonLd(json, options = {}) {
|
|
39730
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
39780
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39731
39781
|
try {
|
|
39732
39782
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
39733
39783
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39903,7 +39953,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
39903
39953
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39904
39954
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39905
39955
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39906
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
39956
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39907
39957
|
let fetchResult;
|
|
39908
39958
|
try {
|
|
39909
39959
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40035,7 +40085,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
40035
40085
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40036
40086
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40037
40087
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40038
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40088
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40039
40089
|
let fetchResult;
|
|
40040
40090
|
try {
|
|
40041
40091
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40216,7 +40266,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
40216
40266
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40217
40267
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40218
40268
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40219
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
40269
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40220
40270
|
let fetchResult;
|
|
40221
40271
|
try {
|
|
40222
40272
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40513,7 +40563,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
40513
40563
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40514
40564
|
*/
|
|
40515
40565
|
static async fromJsonLd(json, options = {}) {
|
|
40516
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
40566
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40517
40567
|
try {
|
|
40518
40568
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
40519
40569
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40731,7 +40781,7 @@ var Remove = class Remove extends Activity {
|
|
|
40731
40781
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40732
40782
|
*/
|
|
40733
40783
|
static async fromJsonLd(json, options = {}) {
|
|
40734
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
40784
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40735
40785
|
try {
|
|
40736
40786
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
40737
40787
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41129,7 +41179,7 @@ var Service = class Service extends Object$1 {
|
|
|
41129
41179
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41130
41180
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41131
41181
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41132
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
41182
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41133
41183
|
let fetchResult;
|
|
41134
41184
|
try {
|
|
41135
41185
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41310,7 +41360,7 @@ var Service = class Service extends Object$1 {
|
|
|
41310
41360
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41311
41361
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41312
41362
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41313
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
41363
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41314
41364
|
let fetchResult;
|
|
41315
41365
|
try {
|
|
41316
41366
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41509,7 +41559,7 @@ var Service = class Service extends Object$1 {
|
|
|
41509
41559
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41510
41560
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41511
41561
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41512
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
41562
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41513
41563
|
let fetchResult;
|
|
41514
41564
|
try {
|
|
41515
41565
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41660,7 +41710,7 @@ var Service = class Service extends Object$1 {
|
|
|
41660
41710
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41661
41711
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41662
41712
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41663
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
41713
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41664
41714
|
let fetchResult;
|
|
41665
41715
|
try {
|
|
41666
41716
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41808,7 +41858,7 @@ var Service = class Service extends Object$1 {
|
|
|
41808
41858
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41809
41859
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41810
41860
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41811
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
41861
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41812
41862
|
let fetchResult;
|
|
41813
41863
|
try {
|
|
41814
41864
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41941,7 +41991,7 @@ var Service = class Service extends Object$1 {
|
|
|
41941
41991
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41942
41992
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41943
41993
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41944
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
41994
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41945
41995
|
let fetchResult;
|
|
41946
41996
|
try {
|
|
41947
41997
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42077,7 +42127,7 @@ var Service = class Service extends Object$1 {
|
|
|
42077
42127
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42078
42128
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42079
42129
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42080
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
42130
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42081
42131
|
let fetchResult;
|
|
42082
42132
|
try {
|
|
42083
42133
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42211,7 +42261,7 @@ var Service = class Service extends Object$1 {
|
|
|
42211
42261
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42212
42262
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42213
42263
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42214
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
42264
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42215
42265
|
let fetchResult;
|
|
42216
42266
|
try {
|
|
42217
42267
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42343,7 +42393,7 @@ var Service = class Service extends Object$1 {
|
|
|
42343
42393
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42344
42394
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42345
42395
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42346
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
42396
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42347
42397
|
let fetchResult;
|
|
42348
42398
|
try {
|
|
42349
42399
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42475,7 +42525,7 @@ var Service = class Service extends Object$1 {
|
|
|
42475
42525
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42476
42526
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42477
42527
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42478
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
42528
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42479
42529
|
let fetchResult;
|
|
42480
42530
|
try {
|
|
42481
42531
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42647,7 +42697,7 @@ var Service = class Service extends Object$1 {
|
|
|
42647
42697
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42648
42698
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42649
42699
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42650
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
42700
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42651
42701
|
let fetchResult;
|
|
42652
42702
|
try {
|
|
42653
42703
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42822,7 +42872,7 @@ var Service = class Service extends Object$1 {
|
|
|
42822
42872
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42823
42873
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42824
42874
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42825
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
42875
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42826
42876
|
let fetchResult;
|
|
42827
42877
|
try {
|
|
42828
42878
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43055,7 +43105,7 @@ var Service = class Service extends Object$1 {
|
|
|
43055
43105
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43056
43106
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43057
43107
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43058
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.
|
|
43108
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43059
43109
|
let fetchResult;
|
|
43060
43110
|
try {
|
|
43061
43111
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43759,7 +43809,7 @@ var Service = class Service extends Object$1 {
|
|
|
43759
43809
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43760
43810
|
*/
|
|
43761
43811
|
static async fromJsonLd(json, options = {}) {
|
|
43762
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
43812
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43763
43813
|
try {
|
|
43764
43814
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
43765
43815
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44303,6 +44353,11 @@ var Source = class {
|
|
|
44303
44353
|
get _warning() {
|
|
44304
44354
|
return this.#warning;
|
|
44305
44355
|
}
|
|
44356
|
+
/**
|
|
44357
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
44358
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
44359
|
+
* accessor name and its getter/setter semantics stable.
|
|
44360
|
+
*/
|
|
44306
44361
|
get _cachedJsonLd() {
|
|
44307
44362
|
return this.#cachedJsonLd;
|
|
44308
44363
|
}
|
|
@@ -44476,7 +44531,7 @@ var Source = class {
|
|
|
44476
44531
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44477
44532
|
*/
|
|
44478
44533
|
static async fromJsonLd(json, options = {}) {
|
|
44479
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
44534
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44480
44535
|
try {
|
|
44481
44536
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
44482
44537
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44661,7 +44716,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
44661
44716
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44662
44717
|
*/
|
|
44663
44718
|
static async fromJsonLd(json, options = {}) {
|
|
44664
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
44719
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44665
44720
|
try {
|
|
44666
44721
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
44667
44722
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44813,7 +44868,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
44813
44868
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44814
44869
|
*/
|
|
44815
44870
|
static async fromJsonLd(json, options = {}) {
|
|
44816
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
44871
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44817
44872
|
try {
|
|
44818
44873
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
44819
44874
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45011,7 +45066,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
45011
45066
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45012
45067
|
*/
|
|
45013
45068
|
static async fromJsonLd(json, options = {}) {
|
|
45014
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
45069
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45015
45070
|
try {
|
|
45016
45071
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
45017
45072
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45180,7 +45235,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
45180
45235
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45181
45236
|
*/
|
|
45182
45237
|
static async fromJsonLd(json, options = {}) {
|
|
45183
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
45238
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45184
45239
|
try {
|
|
45185
45240
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
45186
45241
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45346,7 +45401,7 @@ var Undo = class Undo extends Activity {
|
|
|
45346
45401
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45347
45402
|
*/
|
|
45348
45403
|
static async fromJsonLd(json, options = {}) {
|
|
45349
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
45404
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45350
45405
|
try {
|
|
45351
45406
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
45352
45407
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45550,7 +45605,7 @@ var Update = class Update extends Activity {
|
|
|
45550
45605
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45551
45606
|
*/
|
|
45552
45607
|
static async fromJsonLd(json, options = {}) {
|
|
45553
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
45608
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45554
45609
|
try {
|
|
45555
45610
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
45556
45611
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45715,7 +45770,7 @@ var Video = class Video extends Document {
|
|
|
45715
45770
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45716
45771
|
*/
|
|
45717
45772
|
static async fromJsonLd(json, options = {}) {
|
|
45718
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
45773
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45719
45774
|
try {
|
|
45720
45775
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
45721
45776
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45866,7 +45921,7 @@ var View = class View extends Activity {
|
|
|
45866
45921
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45867
45922
|
*/
|
|
45868
45923
|
static async fromJsonLd(json, options = {}) {
|
|
45869
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.
|
|
45924
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.1.31").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45870
45925
|
try {
|
|
45871
45926
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
45872
45927
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|