@fedify/fedify 0.15.7 → 0.15.9
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/CHANGES.md +70 -0
- package/esm/testing/fixtures/example.com/orderedcollectionpage +24 -0
- package/esm/vocab/application.yaml +2 -0
- package/esm/vocab/group.yaml +2 -0
- package/esm/vocab/organization.yaml +2 -0
- package/esm/vocab/person.yaml +2 -0
- package/esm/vocab/service.yaml +2 -0
- package/esm/vocab/vocab.js +450 -110
- package/esm/webfinger/lookup.js +1 -1
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts +30 -30
- package/types/vocab/vocab.d.ts.map +1 -1
- package/types/webfinger/lookup.d.ts.map +1 -1
package/esm/webfinger/lookup.js
CHANGED
|
@@ -40,7 +40,7 @@ export async function lookupWebFinger(resource) {
|
|
|
40
40
|
}
|
|
41
41
|
if (response.status >= 300 && response.status < 400 &&
|
|
42
42
|
response.headers.has("Location")) {
|
|
43
|
-
url = new URL(response.headers.get("Location"));
|
|
43
|
+
url = new URL(response.headers.get("Location"), response.url == null || response.url === "" ? url : response.url);
|
|
44
44
|
continue;
|
|
45
45
|
}
|
|
46
46
|
if (!response.ok) {
|
package/package.json
CHANGED
package/types/vocab/vocab.d.ts
CHANGED
|
@@ -2272,8 +2272,8 @@ export declare class Application extends Object {
|
|
|
2272
2272
|
assertionMethod?: Multikey | URL | null;
|
|
2273
2273
|
assertionMethods?: (Multikey | URL)[];
|
|
2274
2274
|
manuallyApprovesFollowers?: boolean | null;
|
|
2275
|
-
inbox?: OrderedCollection | URL | null;
|
|
2276
|
-
outbox?: OrderedCollection | URL | null;
|
|
2275
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
2276
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
2277
2277
|
following?: Collection | URL | null;
|
|
2278
2278
|
followers?: Collection | URL | null;
|
|
2279
2279
|
liked?: Collection | URL | null;
|
|
@@ -2351,8 +2351,8 @@ export declare class Application extends Object {
|
|
|
2351
2351
|
assertionMethod?: Multikey | URL | null;
|
|
2352
2352
|
assertionMethods?: (Multikey | URL)[];
|
|
2353
2353
|
manuallyApprovesFollowers?: boolean | null;
|
|
2354
|
-
inbox?: OrderedCollection | URL | null;
|
|
2355
|
-
outbox?: OrderedCollection | URL | null;
|
|
2354
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
2355
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
2356
2356
|
following?: Collection | URL | null;
|
|
2357
2357
|
followers?: Collection | URL | null;
|
|
2358
2358
|
liked?: Collection | URL | null;
|
|
@@ -2468,7 +2468,7 @@ export declare class Application extends Object {
|
|
|
2468
2468
|
documentLoader?: DocumentLoader;
|
|
2469
2469
|
contextLoader?: DocumentLoader;
|
|
2470
2470
|
suppressError?: boolean;
|
|
2471
|
-
}): Promise<OrderedCollection | null>;
|
|
2471
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
2472
2472
|
/**
|
|
2473
2473
|
* Similar to
|
|
2474
2474
|
* {@link Application.getOutbox},
|
|
@@ -2490,7 +2490,7 @@ export declare class Application extends Object {
|
|
|
2490
2490
|
documentLoader?: DocumentLoader;
|
|
2491
2491
|
contextLoader?: DocumentLoader;
|
|
2492
2492
|
suppressError?: boolean;
|
|
2493
|
-
}): Promise<OrderedCollection | null>;
|
|
2493
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
2494
2494
|
/**
|
|
2495
2495
|
* Similar to
|
|
2496
2496
|
* {@link Application.getFollowing},
|
|
@@ -5483,8 +5483,8 @@ export declare class Group extends Object {
|
|
|
5483
5483
|
assertionMethod?: Multikey | URL | null;
|
|
5484
5484
|
assertionMethods?: (Multikey | URL)[];
|
|
5485
5485
|
manuallyApprovesFollowers?: boolean | null;
|
|
5486
|
-
inbox?: OrderedCollection | URL | null;
|
|
5487
|
-
outbox?: OrderedCollection | URL | null;
|
|
5486
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
5487
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
5488
5488
|
following?: Collection | URL | null;
|
|
5489
5489
|
followers?: Collection | URL | null;
|
|
5490
5490
|
liked?: Collection | URL | null;
|
|
@@ -5562,8 +5562,8 @@ export declare class Group extends Object {
|
|
|
5562
5562
|
assertionMethod?: Multikey | URL | null;
|
|
5563
5563
|
assertionMethods?: (Multikey | URL)[];
|
|
5564
5564
|
manuallyApprovesFollowers?: boolean | null;
|
|
5565
|
-
inbox?: OrderedCollection | URL | null;
|
|
5566
|
-
outbox?: OrderedCollection | URL | null;
|
|
5565
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
5566
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
5567
5567
|
following?: Collection | URL | null;
|
|
5568
5568
|
followers?: Collection | URL | null;
|
|
5569
5569
|
liked?: Collection | URL | null;
|
|
@@ -5679,7 +5679,7 @@ export declare class Group extends Object {
|
|
|
5679
5679
|
documentLoader?: DocumentLoader;
|
|
5680
5680
|
contextLoader?: DocumentLoader;
|
|
5681
5681
|
suppressError?: boolean;
|
|
5682
|
-
}): Promise<OrderedCollection | null>;
|
|
5682
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
5683
5683
|
/**
|
|
5684
5684
|
* Similar to
|
|
5685
5685
|
* {@link Group.getOutbox},
|
|
@@ -5701,7 +5701,7 @@ export declare class Group extends Object {
|
|
|
5701
5701
|
documentLoader?: DocumentLoader;
|
|
5702
5702
|
contextLoader?: DocumentLoader;
|
|
5703
5703
|
suppressError?: boolean;
|
|
5704
|
-
}): Promise<OrderedCollection | null>;
|
|
5704
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
5705
5705
|
/**
|
|
5706
5706
|
* Similar to
|
|
5707
5707
|
* {@link Group.getFollowing},
|
|
@@ -8155,8 +8155,8 @@ export declare class Organization extends Object {
|
|
|
8155
8155
|
assertionMethod?: Multikey | URL | null;
|
|
8156
8156
|
assertionMethods?: (Multikey | URL)[];
|
|
8157
8157
|
manuallyApprovesFollowers?: boolean | null;
|
|
8158
|
-
inbox?: OrderedCollection | URL | null;
|
|
8159
|
-
outbox?: OrderedCollection | URL | null;
|
|
8158
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8159
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8160
8160
|
following?: Collection | URL | null;
|
|
8161
8161
|
followers?: Collection | URL | null;
|
|
8162
8162
|
liked?: Collection | URL | null;
|
|
@@ -8234,8 +8234,8 @@ export declare class Organization extends Object {
|
|
|
8234
8234
|
assertionMethod?: Multikey | URL | null;
|
|
8235
8235
|
assertionMethods?: (Multikey | URL)[];
|
|
8236
8236
|
manuallyApprovesFollowers?: boolean | null;
|
|
8237
|
-
inbox?: OrderedCollection | URL | null;
|
|
8238
|
-
outbox?: OrderedCollection | URL | null;
|
|
8237
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8238
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8239
8239
|
following?: Collection | URL | null;
|
|
8240
8240
|
followers?: Collection | URL | null;
|
|
8241
8241
|
liked?: Collection | URL | null;
|
|
@@ -8351,7 +8351,7 @@ export declare class Organization extends Object {
|
|
|
8351
8351
|
documentLoader?: DocumentLoader;
|
|
8352
8352
|
contextLoader?: DocumentLoader;
|
|
8353
8353
|
suppressError?: boolean;
|
|
8354
|
-
}): Promise<OrderedCollection | null>;
|
|
8354
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
8355
8355
|
/**
|
|
8356
8356
|
* Similar to
|
|
8357
8357
|
* {@link Organization.getOutbox},
|
|
@@ -8373,7 +8373,7 @@ export declare class Organization extends Object {
|
|
|
8373
8373
|
documentLoader?: DocumentLoader;
|
|
8374
8374
|
contextLoader?: DocumentLoader;
|
|
8375
8375
|
suppressError?: boolean;
|
|
8376
|
-
}): Promise<OrderedCollection | null>;
|
|
8376
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
8377
8377
|
/**
|
|
8378
8378
|
* Similar to
|
|
8379
8379
|
* {@link Organization.getFollowing},
|
|
@@ -8776,8 +8776,8 @@ export declare class Person extends Object {
|
|
|
8776
8776
|
assertionMethod?: Multikey | URL | null;
|
|
8777
8777
|
assertionMethods?: (Multikey | URL)[];
|
|
8778
8778
|
manuallyApprovesFollowers?: boolean | null;
|
|
8779
|
-
inbox?: OrderedCollection | URL | null;
|
|
8780
|
-
outbox?: OrderedCollection | URL | null;
|
|
8779
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8780
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8781
8781
|
following?: Collection | URL | null;
|
|
8782
8782
|
followers?: Collection | URL | null;
|
|
8783
8783
|
liked?: Collection | URL | null;
|
|
@@ -8855,8 +8855,8 @@ export declare class Person extends Object {
|
|
|
8855
8855
|
assertionMethod?: Multikey | URL | null;
|
|
8856
8856
|
assertionMethods?: (Multikey | URL)[];
|
|
8857
8857
|
manuallyApprovesFollowers?: boolean | null;
|
|
8858
|
-
inbox?: OrderedCollection | URL | null;
|
|
8859
|
-
outbox?: OrderedCollection | URL | null;
|
|
8858
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8859
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
8860
8860
|
following?: Collection | URL | null;
|
|
8861
8861
|
followers?: Collection | URL | null;
|
|
8862
8862
|
liked?: Collection | URL | null;
|
|
@@ -8972,7 +8972,7 @@ export declare class Person extends Object {
|
|
|
8972
8972
|
documentLoader?: DocumentLoader;
|
|
8973
8973
|
contextLoader?: DocumentLoader;
|
|
8974
8974
|
suppressError?: boolean;
|
|
8975
|
-
}): Promise<OrderedCollection | null>;
|
|
8975
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
8976
8976
|
/**
|
|
8977
8977
|
* Similar to
|
|
8978
8978
|
* {@link Person.getOutbox},
|
|
@@ -8994,7 +8994,7 @@ export declare class Person extends Object {
|
|
|
8994
8994
|
documentLoader?: DocumentLoader;
|
|
8995
8995
|
contextLoader?: DocumentLoader;
|
|
8996
8996
|
suppressError?: boolean;
|
|
8997
|
-
}): Promise<OrderedCollection | null>;
|
|
8997
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
8998
8998
|
/**
|
|
8999
8999
|
* Similar to
|
|
9000
9000
|
* {@link Person.getFollowing},
|
|
@@ -10600,8 +10600,8 @@ export declare class Service extends Object {
|
|
|
10600
10600
|
assertionMethod?: Multikey | URL | null;
|
|
10601
10601
|
assertionMethods?: (Multikey | URL)[];
|
|
10602
10602
|
manuallyApprovesFollowers?: boolean | null;
|
|
10603
|
-
inbox?: OrderedCollection | URL | null;
|
|
10604
|
-
outbox?: OrderedCollection | URL | null;
|
|
10603
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
10604
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
10605
10605
|
following?: Collection | URL | null;
|
|
10606
10606
|
followers?: Collection | URL | null;
|
|
10607
10607
|
liked?: Collection | URL | null;
|
|
@@ -10679,8 +10679,8 @@ export declare class Service extends Object {
|
|
|
10679
10679
|
assertionMethod?: Multikey | URL | null;
|
|
10680
10680
|
assertionMethods?: (Multikey | URL)[];
|
|
10681
10681
|
manuallyApprovesFollowers?: boolean | null;
|
|
10682
|
-
inbox?: OrderedCollection | URL | null;
|
|
10683
|
-
outbox?: OrderedCollection | URL | null;
|
|
10682
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
10683
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
|
10684
10684
|
following?: Collection | URL | null;
|
|
10685
10685
|
followers?: Collection | URL | null;
|
|
10686
10686
|
liked?: Collection | URL | null;
|
|
@@ -10796,7 +10796,7 @@ export declare class Service extends Object {
|
|
|
10796
10796
|
documentLoader?: DocumentLoader;
|
|
10797
10797
|
contextLoader?: DocumentLoader;
|
|
10798
10798
|
suppressError?: boolean;
|
|
10799
|
-
}): Promise<OrderedCollection | null>;
|
|
10799
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
10800
10800
|
/**
|
|
10801
10801
|
* Similar to
|
|
10802
10802
|
* {@link Service.getOutbox},
|
|
@@ -10818,7 +10818,7 @@ export declare class Service extends Object {
|
|
|
10818
10818
|
documentLoader?: DocumentLoader;
|
|
10819
10819
|
contextLoader?: DocumentLoader;
|
|
10820
10820
|
suppressError?: boolean;
|
|
10821
|
-
}): Promise<OrderedCollection | null>;
|
|
10821
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
|
10822
10822
|
/**
|
|
10823
10823
|
* Similar to
|
|
10824
10824
|
* {@link Service.getFollowing},
|