@fedify/vocab 2.4.0-dev.2056 → 2.4.0-dev.2063
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/deno.json +1 -1
- package/dist/mod.cjs +3926 -749
- package/dist/mod.d.cts +23 -0
- package/dist/mod.d.ts +23 -0
- package/dist/mod.js +3927 -750
- package/dist-tests/{actor-BgeBgt_8.mjs → actor-hpNVHQvY.mjs} +2 -2
- package/dist-tests/actor.test.mjs +3 -3
- package/dist-tests/{esm-Df0Yo-Tp.mjs → esm-CuilqPDu.mjs} +1 -1
- package/dist-tests/gateway.test.mjs +239 -2
- package/dist-tests/{lookup-C13R72YU.mjs → lookup-Bi6dOTm_.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +3 -3
- package/dist-tests/portable-lookup.test.mjs +4 -4
- package/dist-tests/signed-representation.test.mjs +1 -1
- package/dist-tests/translation.test.mjs +3 -3
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BJGPw--L.mjs → vocab-DZq1JW3s.mjs} +3927 -750
- package/dist-tests/vocab.test.mjs +1 -1
- package/package.json +4 -4
- package/src/gateway.test.ts +355 -1
- package/src/lookup.ts +25 -0
package/dist/mod.d.cts
CHANGED
|
@@ -21228,6 +21228,29 @@ interface TraverseCollectionOptions {
|
|
|
21228
21228
|
* @default `{ seconds: 0 }`
|
|
21229
21229
|
*/
|
|
21230
21230
|
interval?: Temporal.Duration | Temporal.DurationLike;
|
|
21231
|
+
/**
|
|
21232
|
+
* Whether to trust objects whose origin differs from the collection or page
|
|
21233
|
+
* that refers to them. See the `crossOrigin` option of property accessors
|
|
21234
|
+
* such as `Collection.getItems()`.
|
|
21235
|
+
* @since 2.4.0
|
|
21236
|
+
*/
|
|
21237
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
21238
|
+
/**
|
|
21239
|
+
* The [FEP-ef61] gateways to fetch portable (`ap:`/`ap+ef61:`) pages and
|
|
21240
|
+
* items through, in order. See the `gateways` option of property
|
|
21241
|
+
* accessors.
|
|
21242
|
+
*
|
|
21243
|
+
* [FEP-ef61]: https://w3id.org/fep/ef61
|
|
21244
|
+
* @since 2.4.0
|
|
21245
|
+
*/
|
|
21246
|
+
gateways?: readonly (string | URL)[];
|
|
21247
|
+
/**
|
|
21248
|
+
* The policy to apply to portable pages and items fetched through
|
|
21249
|
+
* gateways, typically `verifyPortableObject()` from `@fedify/fedify`.
|
|
21250
|
+
* Portable pages and items are not fetched without it.
|
|
21251
|
+
* @since 2.4.0
|
|
21252
|
+
*/
|
|
21253
|
+
verifyPortableObject?: PortableObjectVerifier;
|
|
21231
21254
|
}
|
|
21232
21255
|
/**
|
|
21233
21256
|
* Traverses a collection, yielding each item in the collection.
|
package/dist/mod.d.ts
CHANGED
|
@@ -21228,6 +21228,29 @@ interface TraverseCollectionOptions {
|
|
|
21228
21228
|
* @default `{ seconds: 0 }`
|
|
21229
21229
|
*/
|
|
21230
21230
|
interval?: Temporal.Duration | Temporal.DurationLike;
|
|
21231
|
+
/**
|
|
21232
|
+
* Whether to trust objects whose origin differs from the collection or page
|
|
21233
|
+
* that refers to them. See the `crossOrigin` option of property accessors
|
|
21234
|
+
* such as `Collection.getItems()`.
|
|
21235
|
+
* @since 2.4.0
|
|
21236
|
+
*/
|
|
21237
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
21238
|
+
/**
|
|
21239
|
+
* The [FEP-ef61] gateways to fetch portable (`ap:`/`ap+ef61:`) pages and
|
|
21240
|
+
* items through, in order. See the `gateways` option of property
|
|
21241
|
+
* accessors.
|
|
21242
|
+
*
|
|
21243
|
+
* [FEP-ef61]: https://w3id.org/fep/ef61
|
|
21244
|
+
* @since 2.4.0
|
|
21245
|
+
*/
|
|
21246
|
+
gateways?: readonly (string | URL)[];
|
|
21247
|
+
/**
|
|
21248
|
+
* The policy to apply to portable pages and items fetched through
|
|
21249
|
+
* gateways, typically `verifyPortableObject()` from `@fedify/fedify`.
|
|
21250
|
+
* Portable pages and items are not fetched without it.
|
|
21251
|
+
* @since 2.4.0
|
|
21252
|
+
*/
|
|
21253
|
+
verifyPortableObject?: PortableObjectVerifier;
|
|
21231
21254
|
}
|
|
21232
21255
|
/**
|
|
21233
21256
|
* Traverses a collection, yielding each item in the collection.
|