@fedify/vocab 2.5.0-dev.2448 → 2.5.0-dev.2492
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 +80 -3
- package/dist/mod.d.cts +75 -0
- package/dist/mod.d.ts +75 -0
- package/dist/mod.js +80 -3
- package/dist-tests/{actor-C93GLWk5.mjs → actor-BjUFWXfi.mjs} +6 -4
- package/dist-tests/actor.test.mjs +4 -3
- package/dist-tests/{esm-DtAfYdqR.mjs → esm-BIqRhjGA.mjs} +1 -1
- package/dist-tests/gateway.test.mjs +4 -4
- package/dist-tests/license.test.mjs +2 -2
- package/dist-tests/{lookup-C4i0dNeY.mjs → lookup-BQqIkZ5j.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +35 -15
- package/dist-tests/portable-lookup.test.mjs +52 -13
- package/dist-tests/rolldown-runtime-BWJg4WE8.mjs +37 -0
- package/dist-tests/signed-representation.test.mjs +1 -1
- package/dist-tests/{src-Dn87CPDV.mjs → src-DQiQQv6h.mjs} +3 -3
- package/dist-tests/translation.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/undici-D88PC0XH.mjs +22898 -0
- package/dist-tests/{vocab-jHKm_LJ6.mjs → vocab-BMEyHiOV.mjs} +77 -34
- package/dist-tests/vocab.test.mjs +6064 -8
- package/package.json +5 -5
- package/src/actor.ts +4 -0
- package/src/gateway.test.ts +1 -1
- package/src/lookup.test.ts +37 -11
- package/src/portable-lookup.test.ts +72 -7
- package/src/vocab.test.ts +40 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import "
|
|
3
|
+
import { n as __exportAll } from "./rolldown-runtime-BWJg4WE8.mjs";
|
|
4
4
|
import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, formatIri, getDocumentLoader, importMultibaseKey, importPem, isDecimal, isGatewayUrl, normalizeLanguageTag, parseDecimal, parseGatewayUrl, parseIri, parseJsonLdId } from "@fedify/vocab-runtime";
|
|
5
5
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
6
6
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
@@ -9,38 +9,6 @@ import { compactJsonLdCache, createScopedContextLoader, getPortableActorGateways
|
|
|
9
9
|
import { copyPortableProvenance, createSnapshotContextLoader, dereferencePortableIri, getPortableResponseClaim, getReferrerGateways, isPortableIri, isPortableMode, isUnsecuredPortableObject, isUnverifiedPortableClaim, markUnverifiedPortableClaim, mustDereferencePortableObject, parseCompatibleEf61Reference, recordPortableReferrer, rejectMalformedCompatibleReference, warnUnverifiableEmbeddedObject } from "@fedify/vocab-runtime/internal/portable-dereference";
|
|
10
10
|
import { enterSignedValueScope, resolveSignedValues, retainedSignedValueRef } from "@fedify/vocab-runtime/internal/signed-representation";
|
|
11
11
|
import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/temporal";
|
|
12
|
-
//#region \0rolldown/runtime.js
|
|
13
|
-
var __create = Object.create;
|
|
14
|
-
var __defProp = Object.defineProperty;
|
|
15
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
16
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
17
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
18
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
19
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
20
|
-
var __exportAll = (all, no_symbols) => {
|
|
21
|
-
let target = {};
|
|
22
|
-
for (var name in all) __defProp(target, name, {
|
|
23
|
-
get: all[name],
|
|
24
|
-
enumerable: true
|
|
25
|
-
});
|
|
26
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
var __copyProps = (to, from, except, desc) => {
|
|
30
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
31
|
-
key = keys[i];
|
|
32
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
33
|
-
get: ((k) => from[k]).bind(null, key),
|
|
34
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return to;
|
|
38
|
-
};
|
|
39
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
40
|
-
value: mod,
|
|
41
|
-
enumerable: true
|
|
42
|
-
}) : target, mod));
|
|
43
|
-
//#endregion
|
|
44
12
|
//#region src/preprocessors.ts
|
|
45
13
|
/**
|
|
46
14
|
* A property preprocessor that normalizes Link values to Image objects.
|
|
@@ -463,6 +431,11 @@ var Object$1 = class Object$1 {
|
|
|
463
431
|
get _warning() {
|
|
464
432
|
return this.#warning;
|
|
465
433
|
}
|
|
434
|
+
/**
|
|
435
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
436
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
437
|
+
* accessor name and its getter/setter semantics stable.
|
|
438
|
+
*/
|
|
466
439
|
get _cachedJsonLd() {
|
|
467
440
|
return this.#cachedJsonLd;
|
|
468
441
|
}
|
|
@@ -14147,6 +14120,11 @@ var PropertyValue = class {
|
|
|
14147
14120
|
get _warning() {
|
|
14148
14121
|
return this.#warning;
|
|
14149
14122
|
}
|
|
14123
|
+
/**
|
|
14124
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
14125
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
14126
|
+
* accessor name and its getter/setter semantics stable.
|
|
14127
|
+
*/
|
|
14150
14128
|
get _cachedJsonLd() {
|
|
14151
14129
|
return this.#cachedJsonLd;
|
|
14152
14130
|
}
|
|
@@ -14524,6 +14502,11 @@ var Measure = class {
|
|
|
14524
14502
|
get _warning() {
|
|
14525
14503
|
return this.#warning;
|
|
14526
14504
|
}
|
|
14505
|
+
/**
|
|
14506
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
14507
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
14508
|
+
* accessor name and its getter/setter semantics stable.
|
|
14509
|
+
*/
|
|
14527
14510
|
get _cachedJsonLd() {
|
|
14528
14511
|
return this.#cachedJsonLd;
|
|
14529
14512
|
}
|
|
@@ -15922,6 +15905,11 @@ var InteractionPolicy = class {
|
|
|
15922
15905
|
get _warning() {
|
|
15923
15906
|
return this.#warning;
|
|
15924
15907
|
}
|
|
15908
|
+
/**
|
|
15909
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
15910
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
15911
|
+
* accessor name and its getter/setter semantics stable.
|
|
15912
|
+
*/
|
|
15925
15913
|
get _cachedJsonLd() {
|
|
15926
15914
|
return this.#cachedJsonLd;
|
|
15927
15915
|
}
|
|
@@ -16435,6 +16423,11 @@ var InteractionRule = class {
|
|
|
16435
16423
|
get _warning() {
|
|
16436
16424
|
return this.#warning;
|
|
16437
16425
|
}
|
|
16426
|
+
/**
|
|
16427
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
16428
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
16429
|
+
* accessor name and its getter/setter semantics stable.
|
|
16430
|
+
*/
|
|
16438
16431
|
get _cachedJsonLd() {
|
|
16439
16432
|
return this.#cachedJsonLd;
|
|
16440
16433
|
}
|
|
@@ -19911,6 +19904,11 @@ var Translation = class {
|
|
|
19911
19904
|
get _warning() {
|
|
19912
19905
|
return this.#warning;
|
|
19913
19906
|
}
|
|
19907
|
+
/**
|
|
19908
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
19909
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
19910
|
+
* accessor name and its getter/setter semantics stable.
|
|
19911
|
+
*/
|
|
19914
19912
|
get _cachedJsonLd() {
|
|
19915
19913
|
return this.#cachedJsonLd;
|
|
19916
19914
|
}
|
|
@@ -27596,6 +27594,11 @@ var DidService = class {
|
|
|
27596
27594
|
get _warning() {
|
|
27597
27595
|
return this.#warning;
|
|
27598
27596
|
}
|
|
27597
|
+
/**
|
|
27598
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
27599
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
27600
|
+
* accessor name and its getter/setter semantics stable.
|
|
27601
|
+
*/
|
|
27599
27602
|
get _cachedJsonLd() {
|
|
27600
27603
|
return this.#cachedJsonLd;
|
|
27601
27604
|
}
|
|
@@ -28112,6 +28115,11 @@ var DataIntegrityProof = class {
|
|
|
28112
28115
|
get _warning() {
|
|
28113
28116
|
return this.#warning;
|
|
28114
28117
|
}
|
|
28118
|
+
/**
|
|
28119
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
28120
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
28121
|
+
* accessor name and its getter/setter semantics stable.
|
|
28122
|
+
*/
|
|
28115
28123
|
get _cachedJsonLd() {
|
|
28116
28124
|
return this.#cachedJsonLd;
|
|
28117
28125
|
}
|
|
@@ -28803,6 +28811,11 @@ var CryptographicKey = class {
|
|
|
28803
28811
|
get _warning() {
|
|
28804
28812
|
return this.#warning;
|
|
28805
28813
|
}
|
|
28814
|
+
/**
|
|
28815
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
28816
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
28817
|
+
* accessor name and its getter/setter semantics stable.
|
|
28818
|
+
*/
|
|
28806
28819
|
get _cachedJsonLd() {
|
|
28807
28820
|
return this.#cachedJsonLd;
|
|
28808
28821
|
}
|
|
@@ -29475,6 +29488,11 @@ var Multikey = class {
|
|
|
29475
29488
|
get _warning() {
|
|
29476
29489
|
return this.#warning;
|
|
29477
29490
|
}
|
|
29491
|
+
/**
|
|
29492
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
29493
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
29494
|
+
* accessor name and its getter/setter semantics stable.
|
|
29495
|
+
*/
|
|
29478
29496
|
get _cachedJsonLd() {
|
|
29479
29497
|
return this.#cachedJsonLd;
|
|
29480
29498
|
}
|
|
@@ -30547,6 +30565,11 @@ var Commitment = class {
|
|
|
30547
30565
|
get _warning() {
|
|
30548
30566
|
return this.#warning;
|
|
30549
30567
|
}
|
|
30568
|
+
/**
|
|
30569
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
30570
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
30571
|
+
* accessor name and its getter/setter semantics stable.
|
|
30572
|
+
*/
|
|
30550
30573
|
get _cachedJsonLd() {
|
|
30551
30574
|
return this.#cachedJsonLd;
|
|
30552
30575
|
}
|
|
@@ -30938,6 +30961,11 @@ var Intent = class {
|
|
|
30938
30961
|
get _warning() {
|
|
30939
30962
|
return this.#warning;
|
|
30940
30963
|
}
|
|
30964
|
+
/**
|
|
30965
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
30966
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
30967
|
+
* accessor name and its getter/setter semantics stable.
|
|
30968
|
+
*/
|
|
30941
30969
|
get _cachedJsonLd() {
|
|
30942
30970
|
return this.#cachedJsonLd;
|
|
30943
30971
|
}
|
|
@@ -42362,6 +42390,11 @@ var Endpoints = class {
|
|
|
42362
42390
|
get _warning() {
|
|
42363
42391
|
return this.#warning;
|
|
42364
42392
|
}
|
|
42393
|
+
/**
|
|
42394
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
42395
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
42396
|
+
* accessor name and its getter/setter semantics stable.
|
|
42397
|
+
*/
|
|
42365
42398
|
get _cachedJsonLd() {
|
|
42366
42399
|
return this.#cachedJsonLd;
|
|
42367
42400
|
}
|
|
@@ -49143,6 +49176,11 @@ var Link = class Link {
|
|
|
49143
49176
|
get _warning() {
|
|
49144
49177
|
return this.#warning;
|
|
49145
49178
|
}
|
|
49179
|
+
/**
|
|
49180
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
49181
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
49182
|
+
* accessor name and its getter/setter semantics stable.
|
|
49183
|
+
*/
|
|
49146
49184
|
get _cachedJsonLd() {
|
|
49147
49185
|
return this.#cachedJsonLd;
|
|
49148
49186
|
}
|
|
@@ -75263,6 +75301,11 @@ var Source = class {
|
|
|
75263
75301
|
get _warning() {
|
|
75264
75302
|
return this.#warning;
|
|
75265
75303
|
}
|
|
75304
|
+
/**
|
|
75305
|
+
* Internal cross-package contract with @fedify/testing, which copies this
|
|
75306
|
+
* cache when attaching document loaders to an activity clone. Keep this
|
|
75307
|
+
* accessor name and its getter/setter semantics stable.
|
|
75308
|
+
*/
|
|
75266
75309
|
get _cachedJsonLd() {
|
|
75267
75310
|
return this.#cachedJsonLd;
|
|
75268
75311
|
}
|
|
@@ -77699,4 +77742,4 @@ function getEntityTypeById(id) {
|
|
|
77699
77742
|
return entityTypeIds.get(typeof id === "string" ? id : id?.href);
|
|
77700
77743
|
}
|
|
77701
77744
|
//#endregion
|
|
77702
|
-
export {
|
|
77745
|
+
export { Object$1 as A, QuoteAuthorization as B, Intent as C, Measure as D, Link as E, Person as F, Tombstone as G, Reject as H, Place as I, Video as J, Translation as K, PropertyValue as L, OrderedCollection as M, OrderedCollectionPage as N, Multikey as O, Organization as P, Proposal as R, Image as S, InteractionRule as T, Service as U, QuoteRequest as V, Source as W, isEntityType as X, getEntityTypeById as Y, vocab_exports as Z, FeaturedCollection as _, Application as a, Group as b, CollectionPage as c, CryptographicKey as d, Delete as f, FeatureRequest as g, FeatureAuthorization as h, Announce as i, Offer as j, Note as k, Commitment as l, Endpoints as m, Activity as n, Article as o, Document as p, Update as q, Agreement as r, Collection as s, Accept as t, Create as u, FeaturedItem as v, InteractionPolicy as w, Hashtag as x, Follow as y, Question as z };
|