@fedify/fedify 1.1.5 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +202 -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
@@ -2585,8 +2585,8 @@ export declare class Application extends Object {
|
|
2585
2585
|
assertionMethod?: Multikey | URL | null;
|
2586
2586
|
assertionMethods?: (Multikey | URL)[];
|
2587
2587
|
manuallyApprovesFollowers?: boolean | null;
|
2588
|
-
inbox?: OrderedCollection | URL | null;
|
2589
|
-
outbox?: OrderedCollection | URL | null;
|
2588
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2589
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2590
2590
|
following?: Collection | URL | null;
|
2591
2591
|
followers?: Collection | URL | null;
|
2592
2592
|
liked?: Collection | URL | null;
|
@@ -2668,8 +2668,8 @@ export declare class Application extends Object {
|
|
2668
2668
|
assertionMethod?: Multikey | URL | null;
|
2669
2669
|
assertionMethods?: (Multikey | URL)[];
|
2670
2670
|
manuallyApprovesFollowers?: boolean | null;
|
2671
|
-
inbox?: OrderedCollection | URL | null;
|
2672
|
-
outbox?: OrderedCollection | URL | null;
|
2671
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2672
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2673
2673
|
following?: Collection | URL | null;
|
2674
2674
|
followers?: Collection | URL | null;
|
2675
2675
|
liked?: Collection | URL | null;
|
@@ -2789,7 +2789,7 @@ export declare class Application extends Object {
|
|
2789
2789
|
documentLoader?: DocumentLoader;
|
2790
2790
|
contextLoader?: DocumentLoader;
|
2791
2791
|
suppressError?: boolean;
|
2792
|
-
}): Promise<OrderedCollection | null>;
|
2792
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2793
2793
|
/**
|
2794
2794
|
* Similar to
|
2795
2795
|
* {@link Application.getOutbox},
|
@@ -2811,7 +2811,7 @@ export declare class Application extends Object {
|
|
2811
2811
|
documentLoader?: DocumentLoader;
|
2812
2812
|
contextLoader?: DocumentLoader;
|
2813
2813
|
suppressError?: boolean;
|
2814
|
-
}): Promise<OrderedCollection | null>;
|
2814
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2815
2815
|
/**
|
2816
2816
|
* Similar to
|
2817
2817
|
* {@link Application.getFollowing},
|
@@ -5855,8 +5855,8 @@ export declare class Group extends Object {
|
|
5855
5855
|
assertionMethod?: Multikey | URL | null;
|
5856
5856
|
assertionMethods?: (Multikey | URL)[];
|
5857
5857
|
manuallyApprovesFollowers?: boolean | null;
|
5858
|
-
inbox?: OrderedCollection | URL | null;
|
5859
|
-
outbox?: OrderedCollection | URL | null;
|
5858
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5859
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5860
5860
|
following?: Collection | URL | null;
|
5861
5861
|
followers?: Collection | URL | null;
|
5862
5862
|
liked?: Collection | URL | null;
|
@@ -5938,8 +5938,8 @@ export declare class Group extends Object {
|
|
5938
5938
|
assertionMethod?: Multikey | URL | null;
|
5939
5939
|
assertionMethods?: (Multikey | URL)[];
|
5940
5940
|
manuallyApprovesFollowers?: boolean | null;
|
5941
|
-
inbox?: OrderedCollection | URL | null;
|
5942
|
-
outbox?: OrderedCollection | URL | null;
|
5941
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5942
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5943
5943
|
following?: Collection | URL | null;
|
5944
5944
|
followers?: Collection | URL | null;
|
5945
5945
|
liked?: Collection | URL | null;
|
@@ -6059,7 +6059,7 @@ export declare class Group extends Object {
|
|
6059
6059
|
documentLoader?: DocumentLoader;
|
6060
6060
|
contextLoader?: DocumentLoader;
|
6061
6061
|
suppressError?: boolean;
|
6062
|
-
}): Promise<OrderedCollection | null>;
|
6062
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
6063
6063
|
/**
|
6064
6064
|
* Similar to
|
6065
6065
|
* {@link Group.getOutbox},
|
@@ -6081,7 +6081,7 @@ export declare class Group extends Object {
|
|
6081
6081
|
documentLoader?: DocumentLoader;
|
6082
6082
|
contextLoader?: DocumentLoader;
|
6083
6083
|
suppressError?: boolean;
|
6084
|
-
}): Promise<OrderedCollection | null>;
|
6084
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
6085
6085
|
/**
|
6086
6086
|
* Similar to
|
6087
6087
|
* {@link Group.getFollowing},
|
@@ -8586,8 +8586,8 @@ export declare class Organization extends Object {
|
|
8586
8586
|
assertionMethod?: Multikey | URL | null;
|
8587
8587
|
assertionMethods?: (Multikey | URL)[];
|
8588
8588
|
manuallyApprovesFollowers?: boolean | null;
|
8589
|
-
inbox?: OrderedCollection | URL | null;
|
8590
|
-
outbox?: OrderedCollection | URL | null;
|
8589
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8590
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8591
8591
|
following?: Collection | URL | null;
|
8592
8592
|
followers?: Collection | URL | null;
|
8593
8593
|
liked?: Collection | URL | null;
|
@@ -8669,8 +8669,8 @@ export declare class Organization extends Object {
|
|
8669
8669
|
assertionMethod?: Multikey | URL | null;
|
8670
8670
|
assertionMethods?: (Multikey | URL)[];
|
8671
8671
|
manuallyApprovesFollowers?: boolean | null;
|
8672
|
-
inbox?: OrderedCollection | URL | null;
|
8673
|
-
outbox?: OrderedCollection | URL | null;
|
8672
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8673
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8674
8674
|
following?: Collection | URL | null;
|
8675
8675
|
followers?: Collection | URL | null;
|
8676
8676
|
liked?: Collection | URL | null;
|
@@ -8790,7 +8790,7 @@ export declare class Organization extends Object {
|
|
8790
8790
|
documentLoader?: DocumentLoader;
|
8791
8791
|
contextLoader?: DocumentLoader;
|
8792
8792
|
suppressError?: boolean;
|
8793
|
-
}): Promise<OrderedCollection | null>;
|
8793
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
8794
8794
|
/**
|
8795
8795
|
* Similar to
|
8796
8796
|
* {@link Organization.getOutbox},
|
@@ -8812,7 +8812,7 @@ export declare class Organization extends Object {
|
|
8812
8812
|
documentLoader?: DocumentLoader;
|
8813
8813
|
contextLoader?: DocumentLoader;
|
8814
8814
|
suppressError?: boolean;
|
8815
|
-
}): Promise<OrderedCollection | null>;
|
8815
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
8816
8816
|
/**
|
8817
8817
|
* Similar to
|
8818
8818
|
* {@link Organization.getFollowing},
|
@@ -9266,8 +9266,8 @@ export declare class Person extends Object {
|
|
9266
9266
|
assertionMethod?: Multikey | URL | null;
|
9267
9267
|
assertionMethods?: (Multikey | URL)[];
|
9268
9268
|
manuallyApprovesFollowers?: boolean | null;
|
9269
|
-
inbox?: OrderedCollection | URL | null;
|
9270
|
-
outbox?: OrderedCollection | URL | null;
|
9269
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9270
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9271
9271
|
following?: Collection | URL | null;
|
9272
9272
|
followers?: Collection | URL | null;
|
9273
9273
|
liked?: Collection | URL | null;
|
@@ -9349,8 +9349,8 @@ export declare class Person extends Object {
|
|
9349
9349
|
assertionMethod?: Multikey | URL | null;
|
9350
9350
|
assertionMethods?: (Multikey | URL)[];
|
9351
9351
|
manuallyApprovesFollowers?: boolean | null;
|
9352
|
-
inbox?: OrderedCollection | URL | null;
|
9353
|
-
outbox?: OrderedCollection | URL | null;
|
9352
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9353
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9354
9354
|
following?: Collection | URL | null;
|
9355
9355
|
followers?: Collection | URL | null;
|
9356
9356
|
liked?: Collection | URL | null;
|
@@ -9470,7 +9470,7 @@ export declare class Person extends Object {
|
|
9470
9470
|
documentLoader?: DocumentLoader;
|
9471
9471
|
contextLoader?: DocumentLoader;
|
9472
9472
|
suppressError?: boolean;
|
9473
|
-
}): Promise<OrderedCollection | null>;
|
9473
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
9474
9474
|
/**
|
9475
9475
|
* Similar to
|
9476
9476
|
* {@link Person.getOutbox},
|
@@ -9492,7 +9492,7 @@ export declare class Person extends Object {
|
|
9492
9492
|
documentLoader?: DocumentLoader;
|
9493
9493
|
contextLoader?: DocumentLoader;
|
9494
9494
|
suppressError?: boolean;
|
9495
|
-
}): Promise<OrderedCollection | null>;
|
9495
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
9496
9496
|
/**
|
9497
9497
|
* Similar to
|
9498
9498
|
* {@link Person.getFollowing},
|
@@ -11149,8 +11149,8 @@ export declare class Service extends Object {
|
|
11149
11149
|
assertionMethod?: Multikey | URL | null;
|
11150
11150
|
assertionMethods?: (Multikey | URL)[];
|
11151
11151
|
manuallyApprovesFollowers?: boolean | null;
|
11152
|
-
inbox?: OrderedCollection | URL | null;
|
11153
|
-
outbox?: OrderedCollection | URL | null;
|
11152
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11153
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11154
11154
|
following?: Collection | URL | null;
|
11155
11155
|
followers?: Collection | URL | null;
|
11156
11156
|
liked?: Collection | URL | null;
|
@@ -11232,8 +11232,8 @@ export declare class Service extends Object {
|
|
11232
11232
|
assertionMethod?: Multikey | URL | null;
|
11233
11233
|
assertionMethods?: (Multikey | URL)[];
|
11234
11234
|
manuallyApprovesFollowers?: boolean | null;
|
11235
|
-
inbox?: OrderedCollection | URL | null;
|
11236
|
-
outbox?: OrderedCollection | URL | null;
|
11235
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11236
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11237
11237
|
following?: Collection | URL | null;
|
11238
11238
|
followers?: Collection | URL | null;
|
11239
11239
|
liked?: Collection | URL | null;
|
@@ -11353,7 +11353,7 @@ export declare class Service extends Object {
|
|
11353
11353
|
documentLoader?: DocumentLoader;
|
11354
11354
|
contextLoader?: DocumentLoader;
|
11355
11355
|
suppressError?: boolean;
|
11356
|
-
}): Promise<OrderedCollection | null>;
|
11356
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
11357
11357
|
/**
|
11358
11358
|
* Similar to
|
11359
11359
|
* {@link Service.getOutbox},
|
@@ -11375,7 +11375,7 @@ export declare class Service extends Object {
|
|
11375
11375
|
documentLoader?: DocumentLoader;
|
11376
11376
|
contextLoader?: DocumentLoader;
|
11377
11377
|
suppressError?: boolean;
|
11378
|
-
}): Promise<OrderedCollection | null>;
|
11378
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
11379
11379
|
/**
|
11380
11380
|
* Similar to
|
11381
11381
|
* {@link Service.getFollowing},
|