@fedify/fedify 1.2.5 → 1.2.7
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 +268 -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;
|
@@ -2669,8 +2669,8 @@ export declare class Application extends Object {
|
|
2669
2669
|
assertionMethod?: Multikey | URL | null;
|
2670
2670
|
assertionMethods?: (Multikey | URL)[];
|
2671
2671
|
manuallyApprovesFollowers?: boolean | null;
|
2672
|
-
inbox?: OrderedCollection | URL | null;
|
2673
|
-
outbox?: OrderedCollection | URL | null;
|
2672
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2673
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2674
2674
|
following?: Collection | URL | null;
|
2675
2675
|
followers?: Collection | URL | null;
|
2676
2676
|
liked?: Collection | URL | null;
|
@@ -2791,7 +2791,7 @@ export declare class Application extends Object {
|
|
2791
2791
|
documentLoader?: DocumentLoader;
|
2792
2792
|
contextLoader?: DocumentLoader;
|
2793
2793
|
suppressError?: boolean;
|
2794
|
-
}): Promise<OrderedCollection | null>;
|
2794
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2795
2795
|
/**
|
2796
2796
|
* Similar to
|
2797
2797
|
* {@link Application.getOutbox},
|
@@ -2813,7 +2813,7 @@ export declare class Application extends Object {
|
|
2813
2813
|
documentLoader?: DocumentLoader;
|
2814
2814
|
contextLoader?: DocumentLoader;
|
2815
2815
|
suppressError?: boolean;
|
2816
|
-
}): Promise<OrderedCollection | null>;
|
2816
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2817
2817
|
/**
|
2818
2818
|
* Similar to
|
2819
2819
|
* {@link Application.getFollowing},
|
@@ -5860,8 +5860,8 @@ export declare class Group extends Object {
|
|
5860
5860
|
assertionMethod?: Multikey | URL | null;
|
5861
5861
|
assertionMethods?: (Multikey | URL)[];
|
5862
5862
|
manuallyApprovesFollowers?: boolean | null;
|
5863
|
-
inbox?: OrderedCollection | URL | null;
|
5864
|
-
outbox?: OrderedCollection | URL | null;
|
5863
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5864
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5865
5865
|
following?: Collection | URL | null;
|
5866
5866
|
followers?: Collection | URL | null;
|
5867
5867
|
liked?: Collection | URL | null;
|
@@ -5944,8 +5944,8 @@ export declare class Group extends Object {
|
|
5944
5944
|
assertionMethod?: Multikey | URL | null;
|
5945
5945
|
assertionMethods?: (Multikey | URL)[];
|
5946
5946
|
manuallyApprovesFollowers?: boolean | null;
|
5947
|
-
inbox?: OrderedCollection | URL | null;
|
5948
|
-
outbox?: OrderedCollection | URL | null;
|
5947
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5948
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5949
5949
|
following?: Collection | URL | null;
|
5950
5950
|
followers?: Collection | URL | null;
|
5951
5951
|
liked?: Collection | URL | null;
|
@@ -6066,7 +6066,7 @@ export declare class Group extends Object {
|
|
6066
6066
|
documentLoader?: DocumentLoader;
|
6067
6067
|
contextLoader?: DocumentLoader;
|
6068
6068
|
suppressError?: boolean;
|
6069
|
-
}): Promise<OrderedCollection | null>;
|
6069
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
6070
6070
|
/**
|
6071
6071
|
* Similar to
|
6072
6072
|
* {@link Group.getOutbox},
|
@@ -6088,7 +6088,7 @@ export declare class Group extends Object {
|
|
6088
6088
|
documentLoader?: DocumentLoader;
|
6089
6089
|
contextLoader?: DocumentLoader;
|
6090
6090
|
suppressError?: boolean;
|
6091
|
-
}): Promise<OrderedCollection | null>;
|
6091
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
6092
6092
|
/**
|
6093
6093
|
* Similar to
|
6094
6094
|
* {@link Group.getFollowing},
|
@@ -8596,8 +8596,8 @@ export declare class Organization extends Object {
|
|
8596
8596
|
assertionMethod?: Multikey | URL | null;
|
8597
8597
|
assertionMethods?: (Multikey | URL)[];
|
8598
8598
|
manuallyApprovesFollowers?: boolean | null;
|
8599
|
-
inbox?: OrderedCollection | URL | null;
|
8600
|
-
outbox?: OrderedCollection | URL | null;
|
8599
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8600
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8601
8601
|
following?: Collection | URL | null;
|
8602
8602
|
followers?: Collection | URL | null;
|
8603
8603
|
liked?: Collection | URL | null;
|
@@ -8680,8 +8680,8 @@ export declare class Organization extends Object {
|
|
8680
8680
|
assertionMethod?: Multikey | URL | null;
|
8681
8681
|
assertionMethods?: (Multikey | URL)[];
|
8682
8682
|
manuallyApprovesFollowers?: boolean | null;
|
8683
|
-
inbox?: OrderedCollection | URL | null;
|
8684
|
-
outbox?: OrderedCollection | URL | null;
|
8683
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8684
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8685
8685
|
following?: Collection | URL | null;
|
8686
8686
|
followers?: Collection | URL | null;
|
8687
8687
|
liked?: Collection | URL | null;
|
@@ -8802,7 +8802,7 @@ export declare class Organization extends Object {
|
|
8802
8802
|
documentLoader?: DocumentLoader;
|
8803
8803
|
contextLoader?: DocumentLoader;
|
8804
8804
|
suppressError?: boolean;
|
8805
|
-
}): Promise<OrderedCollection | null>;
|
8805
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
8806
8806
|
/**
|
8807
8807
|
* Similar to
|
8808
8808
|
* {@link Organization.getOutbox},
|
@@ -8824,7 +8824,7 @@ export declare class Organization extends Object {
|
|
8824
8824
|
documentLoader?: DocumentLoader;
|
8825
8825
|
contextLoader?: DocumentLoader;
|
8826
8826
|
suppressError?: boolean;
|
8827
|
-
}): Promise<OrderedCollection | null>;
|
8827
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
8828
8828
|
/**
|
8829
8829
|
* Similar to
|
8830
8830
|
* {@link Organization.getFollowing},
|
@@ -9281,8 +9281,8 @@ export declare class Person extends Object {
|
|
9281
9281
|
assertionMethod?: Multikey | URL | null;
|
9282
9282
|
assertionMethods?: (Multikey | URL)[];
|
9283
9283
|
manuallyApprovesFollowers?: boolean | null;
|
9284
|
-
inbox?: OrderedCollection | URL | null;
|
9285
|
-
outbox?: OrderedCollection | URL | null;
|
9284
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9285
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9286
9286
|
following?: Collection | URL | null;
|
9287
9287
|
followers?: Collection | URL | null;
|
9288
9288
|
liked?: Collection | URL | null;
|
@@ -9365,8 +9365,8 @@ export declare class Person extends Object {
|
|
9365
9365
|
assertionMethod?: Multikey | URL | null;
|
9366
9366
|
assertionMethods?: (Multikey | URL)[];
|
9367
9367
|
manuallyApprovesFollowers?: boolean | null;
|
9368
|
-
inbox?: OrderedCollection | URL | null;
|
9369
|
-
outbox?: OrderedCollection | URL | null;
|
9368
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9369
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
9370
9370
|
following?: Collection | URL | null;
|
9371
9371
|
followers?: Collection | URL | null;
|
9372
9372
|
liked?: Collection | URL | null;
|
@@ -9487,7 +9487,7 @@ export declare class Person extends Object {
|
|
9487
9487
|
documentLoader?: DocumentLoader;
|
9488
9488
|
contextLoader?: DocumentLoader;
|
9489
9489
|
suppressError?: boolean;
|
9490
|
-
}): Promise<OrderedCollection | null>;
|
9490
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
9491
9491
|
/**
|
9492
9492
|
* Similar to
|
9493
9493
|
* {@link Person.getOutbox},
|
@@ -9509,7 +9509,7 @@ export declare class Person extends Object {
|
|
9509
9509
|
documentLoader?: DocumentLoader;
|
9510
9510
|
contextLoader?: DocumentLoader;
|
9511
9511
|
suppressError?: boolean;
|
9512
|
-
}): Promise<OrderedCollection | null>;
|
9512
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
9513
9513
|
/**
|
9514
9514
|
* Similar to
|
9515
9515
|
* {@link Person.getFollowing},
|
@@ -11169,8 +11169,8 @@ export declare class Service extends Object {
|
|
11169
11169
|
assertionMethod?: Multikey | URL | null;
|
11170
11170
|
assertionMethods?: (Multikey | URL)[];
|
11171
11171
|
manuallyApprovesFollowers?: boolean | null;
|
11172
|
-
inbox?: OrderedCollection | URL | null;
|
11173
|
-
outbox?: OrderedCollection | URL | null;
|
11172
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11173
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11174
11174
|
following?: Collection | URL | null;
|
11175
11175
|
followers?: Collection | URL | null;
|
11176
11176
|
liked?: Collection | URL | null;
|
@@ -11253,8 +11253,8 @@ export declare class Service extends Object {
|
|
11253
11253
|
assertionMethod?: Multikey | URL | null;
|
11254
11254
|
assertionMethods?: (Multikey | URL)[];
|
11255
11255
|
manuallyApprovesFollowers?: boolean | null;
|
11256
|
-
inbox?: OrderedCollection | URL | null;
|
11257
|
-
outbox?: OrderedCollection | URL | null;
|
11256
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11257
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
11258
11258
|
following?: Collection | URL | null;
|
11259
11259
|
followers?: Collection | URL | null;
|
11260
11260
|
liked?: Collection | URL | null;
|
@@ -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.getOutbox},
|
@@ -11397,7 +11397,7 @@ export declare class Service extends Object {
|
|
11397
11397
|
documentLoader?: DocumentLoader;
|
11398
11398
|
contextLoader?: DocumentLoader;
|
11399
11399
|
suppressError?: boolean;
|
11400
|
-
}): Promise<OrderedCollection | null>;
|
11400
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
11401
11401
|
/**
|
11402
11402
|
* Similar to
|
11403
11403
|
* {@link Service.getFollowing},
|