@fedify/fedify 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +136 -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;
|
@@ -2352,8 +2352,8 @@ export declare class Application extends Object {
|
|
2352
2352
|
assertionMethod?: Multikey | URL | null;
|
2353
2353
|
assertionMethods?: (Multikey | URL)[];
|
2354
2354
|
manuallyApprovesFollowers?: boolean | null;
|
2355
|
-
inbox?: OrderedCollection | URL | null;
|
2356
|
-
outbox?: OrderedCollection | URL | null;
|
2355
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2356
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
2357
2357
|
following?: Collection | URL | null;
|
2358
2358
|
followers?: Collection | URL | null;
|
2359
2359
|
liked?: Collection | URL | null;
|
@@ -2470,7 +2470,7 @@ export declare class Application extends Object {
|
|
2470
2470
|
documentLoader?: DocumentLoader;
|
2471
2471
|
contextLoader?: DocumentLoader;
|
2472
2472
|
suppressError?: boolean;
|
2473
|
-
}): Promise<OrderedCollection | null>;
|
2473
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2474
2474
|
/**
|
2475
2475
|
* Similar to
|
2476
2476
|
* {@link Application.getOutbox},
|
@@ -2492,7 +2492,7 @@ export declare class Application extends Object {
|
|
2492
2492
|
documentLoader?: DocumentLoader;
|
2493
2493
|
contextLoader?: DocumentLoader;
|
2494
2494
|
suppressError?: boolean;
|
2495
|
-
}): Promise<OrderedCollection | null>;
|
2495
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2496
2496
|
/**
|
2497
2497
|
* Similar to
|
2498
2498
|
* {@link Application.getFollowing},
|
@@ -5491,8 +5491,8 @@ export declare class Group extends Object {
|
|
5491
5491
|
assertionMethod?: Multikey | URL | null;
|
5492
5492
|
assertionMethods?: (Multikey | URL)[];
|
5493
5493
|
manuallyApprovesFollowers?: boolean | null;
|
5494
|
-
inbox?: OrderedCollection | URL | null;
|
5495
|
-
outbox?: OrderedCollection | URL | null;
|
5494
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5495
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5496
5496
|
following?: Collection | URL | null;
|
5497
5497
|
followers?: Collection | URL | null;
|
5498
5498
|
liked?: Collection | URL | null;
|
@@ -5571,8 +5571,8 @@ export declare class Group extends Object {
|
|
5571
5571
|
assertionMethod?: Multikey | URL | null;
|
5572
5572
|
assertionMethods?: (Multikey | URL)[];
|
5573
5573
|
manuallyApprovesFollowers?: boolean | null;
|
5574
|
-
inbox?: OrderedCollection | URL | null;
|
5575
|
-
outbox?: OrderedCollection | URL | null;
|
5574
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5575
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
5576
5576
|
following?: Collection | URL | null;
|
5577
5577
|
followers?: Collection | URL | null;
|
5578
5578
|
liked?: Collection | URL | null;
|
@@ -5689,7 +5689,7 @@ export declare class Group extends Object {
|
|
5689
5689
|
documentLoader?: DocumentLoader;
|
5690
5690
|
contextLoader?: DocumentLoader;
|
5691
5691
|
suppressError?: boolean;
|
5692
|
-
}): Promise<OrderedCollection | null>;
|
5692
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
5693
5693
|
/**
|
5694
5694
|
* Similar to
|
5695
5695
|
* {@link Group.getOutbox},
|
@@ -5711,7 +5711,7 @@ export declare class Group extends Object {
|
|
5711
5711
|
documentLoader?: DocumentLoader;
|
5712
5712
|
contextLoader?: DocumentLoader;
|
5713
5713
|
suppressError?: boolean;
|
5714
|
-
}): Promise<OrderedCollection | null>;
|
5714
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
5715
5715
|
/**
|
5716
5716
|
* Similar to
|
5717
5717
|
* {@link Group.getFollowing},
|
@@ -8171,8 +8171,8 @@ export declare class Organization extends Object {
|
|
8171
8171
|
assertionMethod?: Multikey | URL | null;
|
8172
8172
|
assertionMethods?: (Multikey | URL)[];
|
8173
8173
|
manuallyApprovesFollowers?: boolean | null;
|
8174
|
-
inbox?: OrderedCollection | URL | null;
|
8175
|
-
outbox?: OrderedCollection | URL | null;
|
8174
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8175
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8176
8176
|
following?: Collection | URL | null;
|
8177
8177
|
followers?: Collection | URL | null;
|
8178
8178
|
liked?: Collection | URL | null;
|
@@ -8251,8 +8251,8 @@ export declare class Organization extends Object {
|
|
8251
8251
|
assertionMethod?: Multikey | URL | null;
|
8252
8252
|
assertionMethods?: (Multikey | URL)[];
|
8253
8253
|
manuallyApprovesFollowers?: boolean | null;
|
8254
|
-
inbox?: OrderedCollection | URL | null;
|
8255
|
-
outbox?: OrderedCollection | URL | null;
|
8254
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8255
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8256
8256
|
following?: Collection | URL | null;
|
8257
8257
|
followers?: Collection | URL | null;
|
8258
8258
|
liked?: Collection | URL | null;
|
@@ -8369,7 +8369,7 @@ export declare class Organization extends Object {
|
|
8369
8369
|
documentLoader?: DocumentLoader;
|
8370
8370
|
contextLoader?: DocumentLoader;
|
8371
8371
|
suppressError?: boolean;
|
8372
|
-
}): Promise<OrderedCollection | null>;
|
8372
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
8373
8373
|
/**
|
8374
8374
|
* Similar to
|
8375
8375
|
* {@link Organization.getOutbox},
|
@@ -8391,7 +8391,7 @@ export declare class Organization extends Object {
|
|
8391
8391
|
documentLoader?: DocumentLoader;
|
8392
8392
|
contextLoader?: DocumentLoader;
|
8393
8393
|
suppressError?: boolean;
|
8394
|
-
}): Promise<OrderedCollection | null>;
|
8394
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
8395
8395
|
/**
|
8396
8396
|
* Similar to
|
8397
8397
|
* {@link Organization.getFollowing},
|
@@ -8800,8 +8800,8 @@ export declare class Person extends Object {
|
|
8800
8800
|
assertionMethod?: Multikey | URL | null;
|
8801
8801
|
assertionMethods?: (Multikey | URL)[];
|
8802
8802
|
manuallyApprovesFollowers?: boolean | null;
|
8803
|
-
inbox?: OrderedCollection | URL | null;
|
8804
|
-
outbox?: OrderedCollection | URL | null;
|
8803
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8804
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8805
8805
|
following?: Collection | URL | null;
|
8806
8806
|
followers?: Collection | URL | null;
|
8807
8807
|
liked?: Collection | URL | null;
|
@@ -8880,8 +8880,8 @@ export declare class Person extends Object {
|
|
8880
8880
|
assertionMethod?: Multikey | URL | null;
|
8881
8881
|
assertionMethods?: (Multikey | URL)[];
|
8882
8882
|
manuallyApprovesFollowers?: boolean | null;
|
8883
|
-
inbox?: OrderedCollection | URL | null;
|
8884
|
-
outbox?: OrderedCollection | URL | null;
|
8883
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8884
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
8885
8885
|
following?: Collection | URL | null;
|
8886
8886
|
followers?: Collection | URL | null;
|
8887
8887
|
liked?: Collection | URL | null;
|
@@ -8998,7 +8998,7 @@ export declare class Person extends Object {
|
|
8998
8998
|
documentLoader?: DocumentLoader;
|
8999
8999
|
contextLoader?: DocumentLoader;
|
9000
9000
|
suppressError?: boolean;
|
9001
|
-
}): Promise<OrderedCollection | null>;
|
9001
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
9002
9002
|
/**
|
9003
9003
|
* Similar to
|
9004
9004
|
* {@link Person.getOutbox},
|
@@ -9020,7 +9020,7 @@ export declare class Person extends Object {
|
|
9020
9020
|
documentLoader?: DocumentLoader;
|
9021
9021
|
contextLoader?: DocumentLoader;
|
9022
9022
|
suppressError?: boolean;
|
9023
|
-
}): Promise<OrderedCollection | null>;
|
9023
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
9024
9024
|
/**
|
9025
9025
|
* Similar to
|
9026
9026
|
* {@link Person.getFollowing},
|
@@ -10632,8 +10632,8 @@ export declare class Service extends Object {
|
|
10632
10632
|
assertionMethod?: Multikey | URL | null;
|
10633
10633
|
assertionMethods?: (Multikey | URL)[];
|
10634
10634
|
manuallyApprovesFollowers?: boolean | null;
|
10635
|
-
inbox?: OrderedCollection | URL | null;
|
10636
|
-
outbox?: OrderedCollection | URL | null;
|
10635
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
10636
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
10637
10637
|
following?: Collection | URL | null;
|
10638
10638
|
followers?: Collection | URL | null;
|
10639
10639
|
liked?: Collection | URL | null;
|
@@ -10712,8 +10712,8 @@ export declare class Service extends Object {
|
|
10712
10712
|
assertionMethod?: Multikey | URL | null;
|
10713
10713
|
assertionMethods?: (Multikey | URL)[];
|
10714
10714
|
manuallyApprovesFollowers?: boolean | null;
|
10715
|
-
inbox?: OrderedCollection | URL | null;
|
10716
|
-
outbox?: OrderedCollection | URL | null;
|
10715
|
+
inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
10716
|
+
outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
|
10717
10717
|
following?: Collection | URL | null;
|
10718
10718
|
followers?: Collection | URL | null;
|
10719
10719
|
liked?: Collection | URL | null;
|
@@ -10830,7 +10830,7 @@ export declare class Service extends Object {
|
|
10830
10830
|
documentLoader?: DocumentLoader;
|
10831
10831
|
contextLoader?: DocumentLoader;
|
10832
10832
|
suppressError?: boolean;
|
10833
|
-
}): Promise<OrderedCollection | null>;
|
10833
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
10834
10834
|
/**
|
10835
10835
|
* Similar to
|
10836
10836
|
* {@link Service.getOutbox},
|
@@ -10852,7 +10852,7 @@ export declare class Service extends Object {
|
|
10852
10852
|
documentLoader?: DocumentLoader;
|
10853
10853
|
contextLoader?: DocumentLoader;
|
10854
10854
|
suppressError?: boolean;
|
10855
|
-
}): Promise<OrderedCollection | null>;
|
10855
|
+
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
10856
10856
|
/**
|
10857
10857
|
* Similar to
|
10858
10858
|
* {@link Service.getFollowing},
|