@fedify/fedify 0.15.0-dev.372 → 0.15.0-dev.374
Sign up to get free protection for your applications and to get access to all the features.
package/esm/vocab/vocab.js
CHANGED
@@ -2761,14 +2761,6 @@ export class Object {
|
|
2761
2761
|
* @returns The JSON-LD representation of this object.
|
2762
2762
|
*/
|
2763
2763
|
async toJsonLd(options = {}) {
|
2764
|
-
if (options.expand != null) {
|
2765
|
-
if (options.format != null) {
|
2766
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
2767
|
-
"with the format option.");
|
2768
|
-
}
|
2769
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
2770
|
-
options = { ...options, format: "expand", expand: undefined };
|
2771
|
-
}
|
2772
2764
|
if (options.format == null && this.#cachedJsonLd != null) {
|
2773
2765
|
return this.#cachedJsonLd;
|
2774
2766
|
}
|
@@ -5337,14 +5329,6 @@ export class Emoji extends Object {
|
|
5337
5329
|
* @returns The JSON-LD representation of this object.
|
5338
5330
|
*/
|
5339
5331
|
async toJsonLd(options = {}) {
|
5340
|
-
if (options.expand != null) {
|
5341
|
-
if (options.format != null) {
|
5342
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
5343
|
-
"with the format option.");
|
5344
|
-
}
|
5345
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
5346
|
-
options = { ...options, format: "expand", expand: undefined };
|
5347
|
-
}
|
5348
5332
|
if (options.format == null && this.#cachedJsonLd != null) {
|
5349
5333
|
return this.#cachedJsonLd;
|
5350
5334
|
}
|
@@ -5520,14 +5504,6 @@ export class ChatMessage extends Object {
|
|
5520
5504
|
* @returns The JSON-LD representation of this object.
|
5521
5505
|
*/
|
5522
5506
|
async toJsonLd(options = {}) {
|
5523
|
-
if (options.expand != null) {
|
5524
|
-
if (options.format != null) {
|
5525
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
5526
|
-
"with the format option.");
|
5527
|
-
}
|
5528
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
5529
|
-
options = { ...options, format: "expand", expand: undefined };
|
5530
|
-
}
|
5531
5507
|
if (options.format == null && this.#cachedJsonLd != null) {
|
5532
5508
|
return this.#cachedJsonLd;
|
5533
5509
|
}
|
@@ -5786,14 +5762,6 @@ export class PropertyValue {
|
|
5786
5762
|
* @returns The JSON-LD representation of this object.
|
5787
5763
|
*/
|
5788
5764
|
async toJsonLd(options = {}) {
|
5789
|
-
if (options.expand != null) {
|
5790
|
-
if (options.format != null) {
|
5791
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
5792
|
-
"with the format option.");
|
5793
|
-
}
|
5794
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
5795
|
-
options = { ...options, format: "expand", expand: undefined };
|
5796
|
-
}
|
5797
5765
|
if (options.format == null && this.#cachedJsonLd != null) {
|
5798
5766
|
return this.#cachedJsonLd;
|
5799
5767
|
}
|
@@ -6299,14 +6267,6 @@ export class DataIntegrityProof {
|
|
6299
6267
|
* @returns The JSON-LD representation of this object.
|
6300
6268
|
*/
|
6301
6269
|
async toJsonLd(options = {}) {
|
6302
|
-
if (options.expand != null) {
|
6303
|
-
if (options.format != null) {
|
6304
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
6305
|
-
"with the format option.");
|
6306
|
-
}
|
6307
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
6308
|
-
options = { ...options, format: "expand", expand: undefined };
|
6309
|
-
}
|
6310
6270
|
if (options.format == null && this.#cachedJsonLd != null) {
|
6311
6271
|
return this.#cachedJsonLd;
|
6312
6272
|
}
|
@@ -6784,14 +6744,6 @@ export class CryptographicKey {
|
|
6784
6744
|
* @returns The JSON-LD representation of this object.
|
6785
6745
|
*/
|
6786
6746
|
async toJsonLd(options = {}) {
|
6787
|
-
if (options.expand != null) {
|
6788
|
-
if (options.format != null) {
|
6789
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
6790
|
-
"with the format option.");
|
6791
|
-
}
|
6792
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
6793
|
-
options = { ...options, format: "expand", expand: undefined };
|
6794
|
-
}
|
6795
6747
|
if (options.format == null && this.#cachedJsonLd != null) {
|
6796
6748
|
return this.#cachedJsonLd;
|
6797
6749
|
}
|
@@ -7266,14 +7218,6 @@ export class Multikey {
|
|
7266
7218
|
* @returns The JSON-LD representation of this object.
|
7267
7219
|
*/
|
7268
7220
|
async toJsonLd(options = {}) {
|
7269
|
-
if (options.expand != null) {
|
7270
|
-
if (options.format != null) {
|
7271
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
7272
|
-
"with the format option.");
|
7273
|
-
}
|
7274
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
7275
|
-
options = { ...options, format: "expand", expand: undefined };
|
7276
|
-
}
|
7277
7221
|
if (options.format == null && this.#cachedJsonLd != null) {
|
7278
7222
|
return this.#cachedJsonLd;
|
7279
7223
|
}
|
@@ -8456,14 +8400,6 @@ export class Activity extends Object {
|
|
8456
8400
|
* @returns The JSON-LD representation of this object.
|
8457
8401
|
*/
|
8458
8402
|
async toJsonLd(options = {}) {
|
8459
|
-
if (options.expand != null) {
|
8460
|
-
if (options.format != null) {
|
8461
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
8462
|
-
"with the format option.");
|
8463
|
-
}
|
8464
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
8465
|
-
options = { ...options, format: "expand", expand: undefined };
|
8466
|
-
}
|
8467
8403
|
if (options.format == null && this.#cachedJsonLd != null) {
|
8468
8404
|
return this.#cachedJsonLd;
|
8469
8405
|
}
|
@@ -9137,14 +9073,6 @@ export class Accept extends Activity {
|
|
9137
9073
|
* @returns The JSON-LD representation of this object.
|
9138
9074
|
*/
|
9139
9075
|
async toJsonLd(options = {}) {
|
9140
|
-
if (options.expand != null) {
|
9141
|
-
if (options.format != null) {
|
9142
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
9143
|
-
"with the format option.");
|
9144
|
-
}
|
9145
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
9146
|
-
options = { ...options, format: "expand", expand: undefined };
|
9147
|
-
}
|
9148
9076
|
if (options.format == null && this.#cachedJsonLd != null) {
|
9149
9077
|
return this.#cachedJsonLd;
|
9150
9078
|
}
|
@@ -9322,14 +9250,6 @@ export class Add extends Activity {
|
|
9322
9250
|
* @returns The JSON-LD representation of this object.
|
9323
9251
|
*/
|
9324
9252
|
async toJsonLd(options = {}) {
|
9325
|
-
if (options.expand != null) {
|
9326
|
-
if (options.format != null) {
|
9327
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
9328
|
-
"with the format option.");
|
9329
|
-
}
|
9330
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
9331
|
-
options = { ...options, format: "expand", expand: undefined };
|
9332
|
-
}
|
9333
9253
|
if (options.format == null && this.#cachedJsonLd != null) {
|
9334
9254
|
return this.#cachedJsonLd;
|
9335
9255
|
}
|
@@ -9503,14 +9423,6 @@ export class Announce extends Activity {
|
|
9503
9423
|
* @returns The JSON-LD representation of this object.
|
9504
9424
|
*/
|
9505
9425
|
async toJsonLd(options = {}) {
|
9506
|
-
if (options.expand != null) {
|
9507
|
-
if (options.format != null) {
|
9508
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
9509
|
-
"with the format option.");
|
9510
|
-
}
|
9511
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
9512
|
-
options = { ...options, format: "expand", expand: undefined };
|
9513
|
-
}
|
9514
9426
|
if (options.format == null && this.#cachedJsonLd != null) {
|
9515
9427
|
return this.#cachedJsonLd;
|
9516
9428
|
}
|
@@ -11084,14 +10996,6 @@ export class Application extends Object {
|
|
11084
10996
|
* @returns The JSON-LD representation of this object.
|
11085
10997
|
*/
|
11086
10998
|
async toJsonLd(options = {}) {
|
11087
|
-
if (options.expand != null) {
|
11088
|
-
if (options.format != null) {
|
11089
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
11090
|
-
"with the format option.");
|
11091
|
-
}
|
11092
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
11093
|
-
options = { ...options, format: "expand", expand: undefined };
|
11094
|
-
}
|
11095
10999
|
if (options.format == null && this.#cachedJsonLd != null) {
|
11096
11000
|
return this.#cachedJsonLd;
|
11097
11001
|
}
|
@@ -12294,14 +12198,6 @@ export class IntransitiveActivity extends Activity {
|
|
12294
12198
|
* @returns The JSON-LD representation of this object.
|
12295
12199
|
*/
|
12296
12200
|
async toJsonLd(options = {}) {
|
12297
|
-
if (options.expand != null) {
|
12298
|
-
if (options.format != null) {
|
12299
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
12300
|
-
"with the format option.");
|
12301
|
-
}
|
12302
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
12303
|
-
options = { ...options, format: "expand", expand: undefined };
|
12304
|
-
}
|
12305
12201
|
if (options.format == null && this.#cachedJsonLd != null) {
|
12306
12202
|
return this.#cachedJsonLd;
|
12307
12203
|
}
|
@@ -12486,14 +12382,6 @@ export class Arrive extends IntransitiveActivity {
|
|
12486
12382
|
* @returns The JSON-LD representation of this object.
|
12487
12383
|
*/
|
12488
12384
|
async toJsonLd(options = {}) {
|
12489
|
-
if (options.expand != null) {
|
12490
|
-
if (options.format != null) {
|
12491
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
12492
|
-
"with the format option.");
|
12493
|
-
}
|
12494
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
12495
|
-
options = { ...options, format: "expand", expand: undefined };
|
12496
|
-
}
|
12497
12385
|
if (options.format == null && this.#cachedJsonLd != null) {
|
12498
12386
|
return this.#cachedJsonLd;
|
12499
12387
|
}
|
@@ -12648,14 +12536,6 @@ export class Article extends Object {
|
|
12648
12536
|
* @returns The JSON-LD representation of this object.
|
12649
12537
|
*/
|
12650
12538
|
async toJsonLd(options = {}) {
|
12651
|
-
if (options.expand != null) {
|
12652
|
-
if (options.format != null) {
|
12653
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
12654
|
-
"with the format option.");
|
12655
|
-
}
|
12656
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
12657
|
-
options = { ...options, format: "expand", expand: undefined };
|
12658
|
-
}
|
12659
12539
|
if (options.format == null && this.#cachedJsonLd != null) {
|
12660
12540
|
return this.#cachedJsonLd;
|
12661
12541
|
}
|
@@ -12903,14 +12783,6 @@ export class Document extends Object {
|
|
12903
12783
|
* @returns The JSON-LD representation of this object.
|
12904
12784
|
*/
|
12905
12785
|
async toJsonLd(options = {}) {
|
12906
|
-
if (options.expand != null) {
|
12907
|
-
if (options.format != null) {
|
12908
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
12909
|
-
"with the format option.");
|
12910
|
-
}
|
12911
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
12912
|
-
options = { ...options, format: "expand", expand: undefined };
|
12913
|
-
}
|
12914
12786
|
if (options.format == null && this.#cachedJsonLd != null) {
|
12915
12787
|
return this.#cachedJsonLd;
|
12916
12788
|
}
|
@@ -13186,14 +13058,6 @@ export class Audio extends Document {
|
|
13186
13058
|
* @returns The JSON-LD representation of this object.
|
13187
13059
|
*/
|
13188
13060
|
async toJsonLd(options = {}) {
|
13189
|
-
if (options.expand != null) {
|
13190
|
-
if (options.format != null) {
|
13191
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
13192
|
-
"with the format option.");
|
13193
|
-
}
|
13194
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
13195
|
-
options = { ...options, format: "expand", expand: undefined };
|
13196
|
-
}
|
13197
13061
|
if (options.format == null && this.#cachedJsonLd != null) {
|
13198
13062
|
return this.#cachedJsonLd;
|
13199
13063
|
}
|
@@ -13366,14 +13230,6 @@ export class Ignore extends Activity {
|
|
13366
13230
|
* @returns The JSON-LD representation of this object.
|
13367
13231
|
*/
|
13368
13232
|
async toJsonLd(options = {}) {
|
13369
|
-
if (options.expand != null) {
|
13370
|
-
if (options.format != null) {
|
13371
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
13372
|
-
"with the format option.");
|
13373
|
-
}
|
13374
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
13375
|
-
options = { ...options, format: "expand", expand: undefined };
|
13376
|
-
}
|
13377
13233
|
if (options.format == null && this.#cachedJsonLd != null) {
|
13378
13234
|
return this.#cachedJsonLd;
|
13379
13235
|
}
|
@@ -13551,14 +13407,6 @@ export class Block extends Ignore {
|
|
13551
13407
|
* @returns The JSON-LD representation of this object.
|
13552
13408
|
*/
|
13553
13409
|
async toJsonLd(options = {}) {
|
13554
|
-
if (options.expand != null) {
|
13555
|
-
if (options.format != null) {
|
13556
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
13557
|
-
"with the format option.");
|
13558
|
-
}
|
13559
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
13560
|
-
options = { ...options, format: "expand", expand: undefined };
|
13561
|
-
}
|
13562
13410
|
if (options.format == null && this.#cachedJsonLd != null) {
|
13563
13411
|
return this.#cachedJsonLd;
|
13564
13412
|
}
|
@@ -14090,14 +13938,6 @@ export class Collection extends Object {
|
|
14090
13938
|
* @returns The JSON-LD representation of this object.
|
14091
13939
|
*/
|
14092
13940
|
async toJsonLd(options = {}) {
|
14093
|
-
if (options.expand != null) {
|
14094
|
-
if (options.format != null) {
|
14095
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
14096
|
-
"with the format option.");
|
14097
|
-
}
|
14098
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
14099
|
-
options = { ...options, format: "expand", expand: undefined };
|
14100
|
-
}
|
14101
13941
|
if (options.format == null && this.#cachedJsonLd != null) {
|
14102
13942
|
return this.#cachedJsonLd;
|
14103
13943
|
}
|
@@ -14868,14 +14708,6 @@ export class CollectionPage extends Collection {
|
|
14868
14708
|
* @returns The JSON-LD representation of this object.
|
14869
14709
|
*/
|
14870
14710
|
async toJsonLd(options = {}) {
|
14871
|
-
if (options.expand != null) {
|
14872
|
-
if (options.format != null) {
|
14873
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
14874
|
-
"with the format option.");
|
14875
|
-
}
|
14876
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
14877
|
-
options = { ...options, format: "expand", expand: undefined };
|
14878
|
-
}
|
14879
14711
|
if (options.format == null && this.#cachedJsonLd != null) {
|
14880
14712
|
return this.#cachedJsonLd;
|
14881
14713
|
}
|
@@ -15225,14 +15057,6 @@ export class Create extends Activity {
|
|
15225
15057
|
* @returns The JSON-LD representation of this object.
|
15226
15058
|
*/
|
15227
15059
|
async toJsonLd(options = {}) {
|
15228
|
-
if (options.expand != null) {
|
15229
|
-
if (options.format != null) {
|
15230
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
15231
|
-
"with the format option.");
|
15232
|
-
}
|
15233
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
15234
|
-
options = { ...options, format: "expand", expand: undefined };
|
15235
|
-
}
|
15236
15060
|
if (options.format == null && this.#cachedJsonLd != null) {
|
15237
15061
|
return this.#cachedJsonLd;
|
15238
15062
|
}
|
@@ -15421,14 +15245,6 @@ export class Delete extends Activity {
|
|
15421
15245
|
* @returns The JSON-LD representation of this object.
|
15422
15246
|
*/
|
15423
15247
|
async toJsonLd(options = {}) {
|
15424
|
-
if (options.expand != null) {
|
15425
|
-
if (options.format != null) {
|
15426
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
15427
|
-
"with the format option.");
|
15428
|
-
}
|
15429
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
15430
|
-
options = { ...options, format: "expand", expand: undefined };
|
15431
|
-
}
|
15432
15248
|
if (options.format == null && this.#cachedJsonLd != null) {
|
15433
15249
|
return this.#cachedJsonLd;
|
15434
15250
|
}
|
@@ -15616,14 +15432,6 @@ export class Dislike extends Activity {
|
|
15616
15432
|
* @returns The JSON-LD representation of this object.
|
15617
15433
|
*/
|
15618
15434
|
async toJsonLd(options = {}) {
|
15619
|
-
if (options.expand != null) {
|
15620
|
-
if (options.format != null) {
|
15621
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
15622
|
-
"with the format option.");
|
15623
|
-
}
|
15624
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
15625
|
-
options = { ...options, format: "expand", expand: undefined };
|
15626
|
-
}
|
15627
15435
|
if (options.format == null && this.#cachedJsonLd != null) {
|
15628
15436
|
return this.#cachedJsonLd;
|
15629
15437
|
}
|
@@ -16015,14 +15823,6 @@ export class Endpoints {
|
|
16015
15823
|
* @returns The JSON-LD representation of this object.
|
16016
15824
|
*/
|
16017
15825
|
async toJsonLd(options = {}) {
|
16018
|
-
if (options.expand != null) {
|
16019
|
-
if (options.format != null) {
|
16020
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
16021
|
-
"with the format option.");
|
16022
|
-
}
|
16023
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
16024
|
-
options = { ...options, format: "expand", expand: undefined };
|
16025
|
-
}
|
16026
15826
|
if (options.format == null && this.#cachedJsonLd != null) {
|
16027
15827
|
return this.#cachedJsonLd;
|
16028
15828
|
}
|
@@ -16425,14 +16225,6 @@ export class Event extends Object {
|
|
16425
16225
|
* @returns The JSON-LD representation of this object.
|
16426
16226
|
*/
|
16427
16227
|
async toJsonLd(options = {}) {
|
16428
|
-
if (options.expand != null) {
|
16429
|
-
if (options.format != null) {
|
16430
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
16431
|
-
"with the format option.");
|
16432
|
-
}
|
16433
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
16434
|
-
options = { ...options, format: "expand", expand: undefined };
|
16435
|
-
}
|
16436
16228
|
if (options.format == null && this.#cachedJsonLd != null) {
|
16437
16229
|
return this.#cachedJsonLd;
|
16438
16230
|
}
|
@@ -16606,14 +16398,6 @@ export class Flag extends Activity {
|
|
16606
16398
|
* @returns The JSON-LD representation of this object.
|
16607
16399
|
*/
|
16608
16400
|
async toJsonLd(options = {}) {
|
16609
|
-
if (options.expand != null) {
|
16610
|
-
if (options.format != null) {
|
16611
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
16612
|
-
"with the format option.");
|
16613
|
-
}
|
16614
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
16615
|
-
options = { ...options, format: "expand", expand: undefined };
|
16616
|
-
}
|
16617
16401
|
if (options.format == null && this.#cachedJsonLd != null) {
|
16618
16402
|
return this.#cachedJsonLd;
|
16619
16403
|
}
|
@@ -16788,14 +16572,6 @@ export class Follow extends Activity {
|
|
16788
16572
|
* @returns The JSON-LD representation of this object.
|
16789
16573
|
*/
|
16790
16574
|
async toJsonLd(options = {}) {
|
16791
|
-
if (options.expand != null) {
|
16792
|
-
if (options.format != null) {
|
16793
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
16794
|
-
"with the format option.");
|
16795
|
-
}
|
16796
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
16797
|
-
options = { ...options, format: "expand", expand: undefined };
|
16798
|
-
}
|
16799
16575
|
if (options.format == null && this.#cachedJsonLd != null) {
|
16800
16576
|
return this.#cachedJsonLd;
|
16801
16577
|
}
|
@@ -18355,14 +18131,6 @@ export class Group extends Object {
|
|
18355
18131
|
* @returns The JSON-LD representation of this object.
|
18356
18132
|
*/
|
18357
18133
|
async toJsonLd(options = {}) {
|
18358
|
-
if (options.expand != null) {
|
18359
|
-
if (options.format != null) {
|
18360
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
18361
|
-
"with the format option.");
|
18362
|
-
}
|
18363
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
18364
|
-
options = { ...options, format: "expand", expand: undefined };
|
18365
|
-
}
|
18366
18134
|
if (options.format == null && this.#cachedJsonLd != null) {
|
18367
18135
|
return this.#cachedJsonLd;
|
18368
18136
|
}
|
@@ -19972,14 +19740,6 @@ export class Link {
|
|
19972
19740
|
* @returns The JSON-LD representation of this object.
|
19973
19741
|
*/
|
19974
19742
|
async toJsonLd(options = {}) {
|
19975
|
-
if (options.expand != null) {
|
19976
|
-
if (options.format != null) {
|
19977
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
19978
|
-
"with the format option.");
|
19979
|
-
}
|
19980
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
19981
|
-
options = { ...options, format: "expand", expand: undefined };
|
19982
|
-
}
|
19983
19743
|
if (options.format == null && this.#cachedJsonLd != null) {
|
19984
19744
|
return this.#cachedJsonLd;
|
19985
19745
|
}
|
@@ -20603,14 +20363,6 @@ export class Hashtag extends Link {
|
|
20603
20363
|
* @returns The JSON-LD representation of this object.
|
20604
20364
|
*/
|
20605
20365
|
async toJsonLd(options = {}) {
|
20606
|
-
if (options.expand != null) {
|
20607
|
-
if (options.format != null) {
|
20608
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
20609
|
-
"with the format option.");
|
20610
|
-
}
|
20611
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
20612
|
-
options = { ...options, format: "expand", expand: undefined };
|
20613
|
-
}
|
20614
20366
|
if (options.format == null && this.#cachedJsonLd != null) {
|
20615
20367
|
return this.#cachedJsonLd;
|
20616
20368
|
}
|
@@ -20767,14 +20519,6 @@ export class Image extends Document {
|
|
20767
20519
|
* @returns The JSON-LD representation of this object.
|
20768
20520
|
*/
|
20769
20521
|
async toJsonLd(options = {}) {
|
20770
|
-
if (options.expand != null) {
|
20771
|
-
if (options.format != null) {
|
20772
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
20773
|
-
"with the format option.");
|
20774
|
-
}
|
20775
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
20776
|
-
options = { ...options, format: "expand", expand: undefined };
|
20777
|
-
}
|
20778
20522
|
if (options.format == null && this.#cachedJsonLd != null) {
|
20779
20523
|
return this.#cachedJsonLd;
|
20780
20524
|
}
|
@@ -20942,14 +20686,6 @@ export class Offer extends Activity {
|
|
20942
20686
|
* @returns The JSON-LD representation of this object.
|
20943
20687
|
*/
|
20944
20688
|
async toJsonLd(options = {}) {
|
20945
|
-
if (options.expand != null) {
|
20946
|
-
if (options.format != null) {
|
20947
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
20948
|
-
"with the format option.");
|
20949
|
-
}
|
20950
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
20951
|
-
options = { ...options, format: "expand", expand: undefined };
|
20952
|
-
}
|
20953
20689
|
if (options.format == null && this.#cachedJsonLd != null) {
|
20954
20690
|
return this.#cachedJsonLd;
|
20955
20691
|
}
|
@@ -21125,14 +20861,6 @@ export class Invite extends Offer {
|
|
21125
20861
|
* @returns The JSON-LD representation of this object.
|
21126
20862
|
*/
|
21127
20863
|
async toJsonLd(options = {}) {
|
21128
|
-
if (options.expand != null) {
|
21129
|
-
if (options.format != null) {
|
21130
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
21131
|
-
"with the format option.");
|
21132
|
-
}
|
21133
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
21134
|
-
options = { ...options, format: "expand", expand: undefined };
|
21135
|
-
}
|
21136
20864
|
if (options.format == null && this.#cachedJsonLd != null) {
|
21137
20865
|
return this.#cachedJsonLd;
|
21138
20866
|
}
|
@@ -21305,14 +21033,6 @@ export class Join extends Activity {
|
|
21305
21033
|
* @returns The JSON-LD representation of this object.
|
21306
21034
|
*/
|
21307
21035
|
async toJsonLd(options = {}) {
|
21308
|
-
if (options.expand != null) {
|
21309
|
-
if (options.format != null) {
|
21310
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
21311
|
-
"with the format option.");
|
21312
|
-
}
|
21313
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
21314
|
-
options = { ...options, format: "expand", expand: undefined };
|
21315
|
-
}
|
21316
21036
|
if (options.format == null && this.#cachedJsonLd != null) {
|
21317
21037
|
return this.#cachedJsonLd;
|
21318
21038
|
}
|
@@ -21485,14 +21205,6 @@ export class Leave extends Activity {
|
|
21485
21205
|
* @returns The JSON-LD representation of this object.
|
21486
21206
|
*/
|
21487
21207
|
async toJsonLd(options = {}) {
|
21488
|
-
if (options.expand != null) {
|
21489
|
-
if (options.format != null) {
|
21490
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
21491
|
-
"with the format option.");
|
21492
|
-
}
|
21493
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
21494
|
-
options = { ...options, format: "expand", expand: undefined };
|
21495
|
-
}
|
21496
21208
|
if (options.format == null && this.#cachedJsonLd != null) {
|
21497
21209
|
return this.#cachedJsonLd;
|
21498
21210
|
}
|
@@ -21665,14 +21377,6 @@ export class Like extends Activity {
|
|
21665
21377
|
* @returns The JSON-LD representation of this object.
|
21666
21378
|
*/
|
21667
21379
|
async toJsonLd(options = {}) {
|
21668
|
-
if (options.expand != null) {
|
21669
|
-
if (options.format != null) {
|
21670
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
21671
|
-
"with the format option.");
|
21672
|
-
}
|
21673
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
21674
|
-
options = { ...options, format: "expand", expand: undefined };
|
21675
|
-
}
|
21676
21380
|
if (options.format == null && this.#cachedJsonLd != null) {
|
21677
21381
|
return this.#cachedJsonLd;
|
21678
21382
|
}
|
@@ -21844,14 +21548,6 @@ export class Listen extends Activity {
|
|
21844
21548
|
* @returns The JSON-LD representation of this object.
|
21845
21549
|
*/
|
21846
21550
|
async toJsonLd(options = {}) {
|
21847
|
-
if (options.expand != null) {
|
21848
|
-
if (options.format != null) {
|
21849
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
21850
|
-
"with the format option.");
|
21851
|
-
}
|
21852
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
21853
|
-
options = { ...options, format: "expand", expand: undefined };
|
21854
|
-
}
|
21855
21551
|
if (options.format == null && this.#cachedJsonLd != null) {
|
21856
21552
|
return this.#cachedJsonLd;
|
21857
21553
|
}
|
@@ -22023,14 +21719,6 @@ export class Mention extends Link {
|
|
22023
21719
|
* @returns The JSON-LD representation of this object.
|
22024
21720
|
*/
|
22025
21721
|
async toJsonLd(options = {}) {
|
22026
|
-
if (options.expand != null) {
|
22027
|
-
if (options.format != null) {
|
22028
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
22029
|
-
"with the format option.");
|
22030
|
-
}
|
22031
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
22032
|
-
options = { ...options, format: "expand", expand: undefined };
|
22033
|
-
}
|
22034
21722
|
if (options.format == null && this.#cachedJsonLd != null) {
|
22035
21723
|
return this.#cachedJsonLd;
|
22036
21724
|
}
|
@@ -22187,14 +21875,6 @@ export class Move extends Activity {
|
|
22187
21875
|
* @returns The JSON-LD representation of this object.
|
22188
21876
|
*/
|
22189
21877
|
async toJsonLd(options = {}) {
|
22190
|
-
if (options.expand != null) {
|
22191
|
-
if (options.format != null) {
|
22192
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
22193
|
-
"with the format option.");
|
22194
|
-
}
|
22195
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
22196
|
-
options = { ...options, format: "expand", expand: undefined };
|
22197
|
-
}
|
22198
21878
|
if (options.format == null && this.#cachedJsonLd != null) {
|
22199
21879
|
return this.#cachedJsonLd;
|
22200
21880
|
}
|
@@ -22367,14 +22047,6 @@ export class Note extends Object {
|
|
22367
22047
|
* @returns The JSON-LD representation of this object.
|
22368
22048
|
*/
|
22369
22049
|
async toJsonLd(options = {}) {
|
22370
|
-
if (options.expand != null) {
|
22371
|
-
if (options.format != null) {
|
22372
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
22373
|
-
"with the format option.");
|
22374
|
-
}
|
22375
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
22376
|
-
options = { ...options, format: "expand", expand: undefined };
|
22377
|
-
}
|
22378
22050
|
if (options.format == null && this.#cachedJsonLd != null) {
|
22379
22051
|
return this.#cachedJsonLd;
|
22380
22052
|
}
|
@@ -22646,14 +22318,6 @@ export class OrderedCollection extends Collection {
|
|
22646
22318
|
* @returns The JSON-LD representation of this object.
|
22647
22319
|
*/
|
22648
22320
|
async toJsonLd(options = {}) {
|
22649
|
-
if (options.expand != null) {
|
22650
|
-
if (options.format != null) {
|
22651
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
22652
|
-
"with the format option.");
|
22653
|
-
}
|
22654
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
22655
|
-
options = { ...options, format: "expand", expand: undefined };
|
22656
|
-
}
|
22657
22321
|
if (options.format == null && this.#cachedJsonLd != null) {
|
22658
22322
|
return this.#cachedJsonLd;
|
22659
22323
|
}
|
@@ -23096,14 +22760,6 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
23096
22760
|
* @returns The JSON-LD representation of this object.
|
23097
22761
|
*/
|
23098
22762
|
async toJsonLd(options = {}) {
|
23099
|
-
if (options.expand != null) {
|
23100
|
-
if (options.format != null) {
|
23101
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
23102
|
-
"with the format option.");
|
23103
|
-
}
|
23104
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
23105
|
-
options = { ...options, format: "expand", expand: undefined };
|
23106
|
-
}
|
23107
22763
|
if (options.format == null && this.#cachedJsonLd != null) {
|
23108
22764
|
return this.#cachedJsonLd;
|
23109
22765
|
}
|
@@ -24859,14 +24515,6 @@ export class Organization extends Object {
|
|
24859
24515
|
* @returns The JSON-LD representation of this object.
|
24860
24516
|
*/
|
24861
24517
|
async toJsonLd(options = {}) {
|
24862
|
-
if (options.expand != null) {
|
24863
|
-
if (options.format != null) {
|
24864
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
24865
|
-
"with the format option.");
|
24866
|
-
}
|
24867
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
24868
|
-
options = { ...options, format: "expand", expand: undefined };
|
24869
|
-
}
|
24870
24518
|
if (options.format == null && this.#cachedJsonLd != null) {
|
24871
24519
|
return this.#cachedJsonLd;
|
24872
24520
|
}
|
@@ -26067,14 +25715,6 @@ export class Page extends Document {
|
|
26067
25715
|
* @returns The JSON-LD representation of this object.
|
26068
25716
|
*/
|
26069
25717
|
async toJsonLd(options = {}) {
|
26070
|
-
if (options.expand != null) {
|
26071
|
-
if (options.format != null) {
|
26072
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
26073
|
-
"with the format option.");
|
26074
|
-
}
|
26075
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
26076
|
-
options = { ...options, format: "expand", expand: undefined };
|
26077
|
-
}
|
26078
25718
|
if (options.format == null && this.#cachedJsonLd != null) {
|
26079
25719
|
return this.#cachedJsonLd;
|
26080
25720
|
}
|
@@ -27634,14 +27274,6 @@ export class Person extends Object {
|
|
27634
27274
|
* @returns The JSON-LD representation of this object.
|
27635
27275
|
*/
|
27636
27276
|
async toJsonLd(options = {}) {
|
27637
|
-
if (options.expand != null) {
|
27638
|
-
if (options.format != null) {
|
27639
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
27640
|
-
"with the format option.");
|
27641
|
-
}
|
27642
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
27643
|
-
options = { ...options, format: "expand", expand: undefined };
|
27644
|
-
}
|
27645
27277
|
if (options.format == null && this.#cachedJsonLd != null) {
|
27646
27278
|
return this.#cachedJsonLd;
|
27647
27279
|
}
|
@@ -29032,14 +28664,6 @@ export class Place extends Object {
|
|
29032
28664
|
* @returns The JSON-LD representation of this object.
|
29033
28665
|
*/
|
29034
28666
|
async toJsonLd(options = {}) {
|
29035
|
-
if (options.expand != null) {
|
29036
|
-
if (options.format != null) {
|
29037
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
29038
|
-
"with the format option.");
|
29039
|
-
}
|
29040
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
29041
|
-
options = { ...options, format: "expand", expand: undefined };
|
29042
|
-
}
|
29043
28667
|
if (options.format == null && this.#cachedJsonLd != null) {
|
29044
28668
|
return this.#cachedJsonLd;
|
29045
28669
|
}
|
@@ -29583,14 +29207,6 @@ export class Profile extends Object {
|
|
29583
29207
|
* @returns The JSON-LD representation of this object.
|
29584
29208
|
*/
|
29585
29209
|
async toJsonLd(options = {}) {
|
29586
|
-
if (options.expand != null) {
|
29587
|
-
if (options.format != null) {
|
29588
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
29589
|
-
"with the format option.");
|
29590
|
-
}
|
29591
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
29592
|
-
options = { ...options, format: "expand", expand: undefined };
|
29593
|
-
}
|
29594
29210
|
if (options.format == null && this.#cachedJsonLd != null) {
|
29595
29211
|
return this.#cachedJsonLd;
|
29596
29212
|
}
|
@@ -30043,14 +29659,6 @@ export class Question extends IntransitiveActivity {
|
|
30043
29659
|
* @returns The JSON-LD representation of this object.
|
30044
29660
|
*/
|
30045
29661
|
async toJsonLd(options = {}) {
|
30046
|
-
if (options.expand != null) {
|
30047
|
-
if (options.format != null) {
|
30048
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
30049
|
-
"with the format option.");
|
30050
|
-
}
|
30051
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
30052
|
-
options = { ...options, format: "expand", expand: undefined };
|
30053
|
-
}
|
30054
29662
|
if (options.format == null && this.#cachedJsonLd != null) {
|
30055
29663
|
return this.#cachedJsonLd;
|
30056
29664
|
}
|
@@ -30452,14 +30060,6 @@ export class Read extends Activity {
|
|
30452
30060
|
* @returns The JSON-LD representation of this object.
|
30453
30061
|
*/
|
30454
30062
|
async toJsonLd(options = {}) {
|
30455
|
-
if (options.expand != null) {
|
30456
|
-
if (options.format != null) {
|
30457
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
30458
|
-
"with the format option.");
|
30459
|
-
}
|
30460
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
30461
|
-
options = { ...options, format: "expand", expand: undefined };
|
30462
|
-
}
|
30463
30063
|
if (options.format == null && this.#cachedJsonLd != null) {
|
30464
30064
|
return this.#cachedJsonLd;
|
30465
30065
|
}
|
@@ -30632,14 +30232,6 @@ export class Reject extends Activity {
|
|
30632
30232
|
* @returns The JSON-LD representation of this object.
|
30633
30233
|
*/
|
30634
30234
|
async toJsonLd(options = {}) {
|
30635
|
-
if (options.expand != null) {
|
30636
|
-
if (options.format != null) {
|
30637
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
30638
|
-
"with the format option.");
|
30639
|
-
}
|
30640
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
30641
|
-
options = { ...options, format: "expand", expand: undefined };
|
30642
|
-
}
|
30643
30235
|
if (options.format == null && this.#cachedJsonLd != null) {
|
30644
30236
|
return this.#cachedJsonLd;
|
30645
30237
|
}
|
@@ -31174,14 +30766,6 @@ export class Relationship extends Object {
|
|
31174
30766
|
* @returns The JSON-LD representation of this object.
|
31175
30767
|
*/
|
31176
30768
|
async toJsonLd(options = {}) {
|
31177
|
-
if (options.expand != null) {
|
31178
|
-
if (options.format != null) {
|
31179
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
31180
|
-
"with the format option.");
|
31181
|
-
}
|
31182
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
31183
|
-
options = { ...options, format: "expand", expand: undefined };
|
31184
|
-
}
|
31185
30769
|
if (options.format == null && this.#cachedJsonLd != null) {
|
31186
30770
|
return this.#cachedJsonLd;
|
31187
30771
|
}
|
@@ -31526,14 +31110,6 @@ export class Remove extends Activity {
|
|
31526
31110
|
* @returns The JSON-LD representation of this object.
|
31527
31111
|
*/
|
31528
31112
|
async toJsonLd(options = {}) {
|
31529
|
-
if (options.expand != null) {
|
31530
|
-
if (options.format != null) {
|
31531
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
31532
|
-
"with the format option.");
|
31533
|
-
}
|
31534
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
31535
|
-
options = { ...options, format: "expand", expand: undefined };
|
31536
|
-
}
|
31537
31113
|
if (options.format == null && this.#cachedJsonLd != null) {
|
31538
31114
|
return this.#cachedJsonLd;
|
31539
31115
|
}
|
@@ -33093,14 +32669,6 @@ export class Service extends Object {
|
|
33093
32669
|
* @returns The JSON-LD representation of this object.
|
33094
32670
|
*/
|
33095
32671
|
async toJsonLd(options = {}) {
|
33096
|
-
if (options.expand != null) {
|
33097
|
-
if (options.format != null) {
|
33098
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
33099
|
-
"with the format option.");
|
33100
|
-
}
|
33101
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
33102
|
-
options = { ...options, format: "expand", expand: undefined };
|
33103
|
-
}
|
33104
32672
|
if (options.format == null && this.#cachedJsonLd != null) {
|
33105
32673
|
return this.#cachedJsonLd;
|
33106
32674
|
}
|
@@ -34415,14 +33983,6 @@ export class Source {
|
|
34415
33983
|
* @returns The JSON-LD representation of this object.
|
34416
33984
|
*/
|
34417
33985
|
async toJsonLd(options = {}) {
|
34418
|
-
if (options.expand != null) {
|
34419
|
-
if (options.format != null) {
|
34420
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
34421
|
-
"with the format option.");
|
34422
|
-
}
|
34423
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
34424
|
-
options = { ...options, format: "expand", expand: undefined };
|
34425
|
-
}
|
34426
33986
|
if (options.format == null && this.#cachedJsonLd != null) {
|
34427
33987
|
return this.#cachedJsonLd;
|
34428
33988
|
}
|
@@ -34676,14 +34236,6 @@ export class TentativeAccept extends Accept {
|
|
34676
34236
|
* @returns The JSON-LD representation of this object.
|
34677
34237
|
*/
|
34678
34238
|
async toJsonLd(options = {}) {
|
34679
|
-
if (options.expand != null) {
|
34680
|
-
if (options.format != null) {
|
34681
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
34682
|
-
"with the format option.");
|
34683
|
-
}
|
34684
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
34685
|
-
options = { ...options, format: "expand", expand: undefined };
|
34686
|
-
}
|
34687
34239
|
if (options.format == null && this.#cachedJsonLd != null) {
|
34688
34240
|
return this.#cachedJsonLd;
|
34689
34241
|
}
|
@@ -34856,14 +34408,6 @@ export class TentativeReject extends Reject {
|
|
34856
34408
|
* @returns The JSON-LD representation of this object.
|
34857
34409
|
*/
|
34858
34410
|
async toJsonLd(options = {}) {
|
34859
|
-
if (options.expand != null) {
|
34860
|
-
if (options.format != null) {
|
34861
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
34862
|
-
"with the format option.");
|
34863
|
-
}
|
34864
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
34865
|
-
options = { ...options, format: "expand", expand: undefined };
|
34866
|
-
}
|
34867
34411
|
if (options.format == null && this.#cachedJsonLd != null) {
|
34868
34412
|
return this.#cachedJsonLd;
|
34869
34413
|
}
|
@@ -35067,14 +34611,6 @@ export class Tombstone extends Object {
|
|
35067
34611
|
* @returns The JSON-LD representation of this object.
|
35068
34612
|
*/
|
35069
34613
|
async toJsonLd(options = {}) {
|
35070
|
-
if (options.expand != null) {
|
35071
|
-
if (options.format != null) {
|
35072
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
35073
|
-
"with the format option.");
|
35074
|
-
}
|
35075
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
35076
|
-
options = { ...options, format: "expand", expand: undefined };
|
35077
|
-
}
|
35078
34614
|
if (options.format == null && this.#cachedJsonLd != null) {
|
35079
34615
|
return this.#cachedJsonLd;
|
35080
34616
|
}
|
@@ -35295,14 +34831,6 @@ export class Travel extends IntransitiveActivity {
|
|
35295
34831
|
* @returns The JSON-LD representation of this object.
|
35296
34832
|
*/
|
35297
34833
|
async toJsonLd(options = {}) {
|
35298
|
-
if (options.expand != null) {
|
35299
|
-
if (options.format != null) {
|
35300
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
35301
|
-
"with the format option.");
|
35302
|
-
}
|
35303
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
35304
|
-
options = { ...options, format: "expand", expand: undefined };
|
35305
|
-
}
|
35306
34834
|
if (options.format == null && this.#cachedJsonLd != null) {
|
35307
34835
|
return this.#cachedJsonLd;
|
35308
34836
|
}
|
@@ -35480,14 +35008,6 @@ export class Undo extends Activity {
|
|
35480
35008
|
* @returns The JSON-LD representation of this object.
|
35481
35009
|
*/
|
35482
35010
|
async toJsonLd(options = {}) {
|
35483
|
-
if (options.expand != null) {
|
35484
|
-
if (options.format != null) {
|
35485
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
35486
|
-
"with the format option.");
|
35487
|
-
}
|
35488
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
35489
|
-
options = { ...options, format: "expand", expand: undefined };
|
35490
|
-
}
|
35491
35011
|
if (options.format == null && this.#cachedJsonLd != null) {
|
35492
35012
|
return this.#cachedJsonLd;
|
35493
35013
|
}
|
@@ -35663,14 +35183,6 @@ export class Update extends Activity {
|
|
35663
35183
|
* @returns The JSON-LD representation of this object.
|
35664
35184
|
*/
|
35665
35185
|
async toJsonLd(options = {}) {
|
35666
|
-
if (options.expand != null) {
|
35667
|
-
if (options.format != null) {
|
35668
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
35669
|
-
"with the format option.");
|
35670
|
-
}
|
35671
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
35672
|
-
options = { ...options, format: "expand", expand: undefined };
|
35673
|
-
}
|
35674
35186
|
if (options.format == null && this.#cachedJsonLd != null) {
|
35675
35187
|
return this.#cachedJsonLd;
|
35676
35188
|
}
|
@@ -35858,14 +35370,6 @@ export class Video extends Document {
|
|
35858
35370
|
* @returns The JSON-LD representation of this object.
|
35859
35371
|
*/
|
35860
35372
|
async toJsonLd(options = {}) {
|
35861
|
-
if (options.expand != null) {
|
35862
|
-
if (options.format != null) {
|
35863
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
35864
|
-
"with the format option.");
|
35865
|
-
}
|
35866
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
35867
|
-
options = { ...options, format: "expand", expand: undefined };
|
35868
|
-
}
|
35869
35373
|
if (options.format == null && this.#cachedJsonLd != null) {
|
35870
35374
|
return this.#cachedJsonLd;
|
35871
35375
|
}
|
@@ -36037,14 +35541,6 @@ export class View extends Activity {
|
|
36037
35541
|
* @returns The JSON-LD representation of this object.
|
36038
35542
|
*/
|
36039
35543
|
async toJsonLd(options = {}) {
|
36040
|
-
if (options.expand != null) {
|
36041
|
-
if (options.format != null) {
|
36042
|
-
throw new TypeError("The expand option, which is deprecated, cannot be used together " +
|
36043
|
-
"with the format option.");
|
36044
|
-
}
|
36045
|
-
getLogger(["fedify", "vocab"]).warn("The expand option is deprecated; use format: 'expand' instead.");
|
36046
|
-
options = { ...options, format: "expand", expand: undefined };
|
36047
|
-
}
|
36048
35544
|
if (options.format == null && this.#cachedJsonLd != null) {
|
36049
35545
|
return this.#cachedJsonLd;
|
36050
35546
|
}
|