@fedify/fedify 1.7.5-pr.293.995 → 1.7.6
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/dist/{actor-DCfCQoKy.js → actor-BPcHD1DQ.js} +3 -3
- package/dist/{actor-DpOCWBU2.js → actor-BnQGQxqE.js} +179 -179
- package/dist/{assert-0DSnLFa8.js → assert-DmFG7ppO.js} +1 -1
- package/dist/{assert_equals-XhPMqqO2.js → assert_equals-CTYbeopb.js} +29 -11
- package/dist/{assert_instance_of-v5adm_-K.js → assert_instance_of-CF09JHYM.js} +1 -1
- package/dist/{assert_is_error-Drwb_yQp.js → assert_is_error-nrwA1GeT.js} +1 -1
- package/dist/{assert_not_equals-BRPdeJ9D.js → assert_not_equals-Dc7y-V5Q.js} +1 -1
- package/dist/{assert_rejects-D_nYI1gs.js → assert_rejects-C-sxEMM5.js} +2 -2
- package/dist/{assert_throws-DNuPhPNp.js → assert_throws-Cn9C6Jur.js} +2 -2
- package/dist/{authdocloader-u7iRvJI6.js → authdocloader-Brpi6E4M.js} +3 -3
- package/dist/{authdocloader-C8ocs8WK.js → authdocloader-hZbuGYGe.js} +3 -3
- package/dist/{builder-CoMaHOSj.js → builder-CkEsZWb3.js} +3 -3
- package/dist/{client-ve1fySOk.js → client-DP--tJbJ.js} +1 -1
- package/dist/compat/transformers.test.js +20 -20
- package/dist/{context-DJ0lZffc.js → context-DdckLL3d.js} +2 -2
- package/dist/{docloader-CWnRyKZz.js → docloader-Bf7FNkEt.js} +1 -1
- package/dist/{docloader-0f763awu.js → docloader-WGNocIQl.js} +1 -1
- package/dist/federation/builder.test.js +12 -12
- package/dist/federation/collection.test.js +8 -8
- package/dist/federation/handler.test.js +27 -27
- package/dist/federation/inbox.test.js +6 -6
- package/dist/federation/keycache.test.js +6 -6
- package/dist/federation/kv.test.js +8 -8
- package/dist/federation/middleware.test.js +26 -26
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +8 -8
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +8 -8
- package/dist/federation/send.test.js +17 -17
- package/dist/{http-Ctrc1mTY.js → http-DrNOicWD.js} +30 -21
- package/dist/{http-C2jYH3Wj.js → http-kaBBOddv.js} +30 -21
- package/dist/{inbox-C0lZZQrn.js → inbox-DaVmbpgM.js} +2 -2
- package/dist/{key-DdzidiHt.js → key-B9cBiT7f.js} +4 -4
- package/dist/{key-Du7Mtz6c.js → key-BacJ7S4E.js} +2 -2
- package/dist/{key-w62j0nN_.js → key-DMk4CUyA.js} +3 -3
- package/dist/{key-DaROeJaM.js → key-DNbbkLEt.js} +5 -5
- package/dist/{keycache-HV9rL4Zg.js → keycache-1nfnh4MW.js} +1 -1
- package/dist/{keys-CLKmoYUK.js → keys-DqZTy_b8.js} +1 -1
- package/dist/{ld-d8SMvc77.js → ld-DhRNxRXj.js} +3 -3
- package/dist/{lookup-C0QZwcNp.js → lookup-DE4JI30z.js} +1 -1
- package/dist/{lookup-BhjMJsQq.js → lookup-Dom-VSN0.js} +1 -1
- package/dist/{lookup-vqz66SuH.js → lookup-DpBb3ixM.js} +3 -3
- package/dist/middleware-8reA9X9-.js +17 -0
- package/dist/{middleware-CaLPAUX8.js → middleware-D6e8hqRt.js} +11 -11
- package/dist/middleware-DZnPb6Ha.js +33 -0
- package/dist/{middleware-z6PAl2ao.js → middleware-DjGHOITR.js} +16 -16
- package/dist/{mod-sEI6_uZ2.d.ts → mod-DS-8N1r1.d.ts} +1 -1
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +10 -10
- package/dist/nodeinfo/handler.test.js +26 -26
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +8 -8
- package/dist/nodeinfo/types.test.js +8 -8
- package/dist/{owner-B681rcfZ.js → owner-Cj-uzr16.js} +3 -3
- package/dist/{proof-Ckfj_lUB.js → proof-BydqlnsK.js} +3 -3
- package/dist/{proof-R1Gw5CZB.js → proof-DfxuC-RR.js} +3 -3
- package/dist/runtime/authdocloader.test.js +16 -16
- package/dist/runtime/docloader.test.js +9 -9
- package/dist/runtime/key.test.js +13 -13
- package/dist/runtime/langstr.test.js +8 -8
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -8
- package/dist/runtime/url.test.js +4 -4
- package/dist/{send-C3nUuiVP.js → send-DHT4Dq2y.js} +2 -2
- package/dist/sig/http.test.js +63 -15
- package/dist/sig/key.test.js +14 -14
- package/dist/sig/ld.test.js +12 -12
- package/dist/sig/mod.d.ts +1 -1
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -16
- package/dist/sig/proof.test.js +15 -15
- package/dist/{std__assert-CmyZxqPw.js → std__assert-vp0TKMS1.js} +1 -1
- package/dist/testing/docloader.test.js +8 -8
- package/dist/{types-NuyNm5jf.js → types-DmNfU0QY.js} +1 -1
- package/dist/vocab/actor.test.js +12 -12
- package/dist/vocab/lookup.test.js +12 -12
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +48 -46
- package/dist/{vocab-CJVgR_C2.js → vocab-DTUqat8X.js} +178 -178
- package/dist/{vocab-BIEZj4Uc.js → vocab-DfjcfPXi.js} +3 -3
- package/dist/webfinger/handler.test.js +26 -26
- package/dist/webfinger/lookup.test.js +10 -10
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +8 -8
- package/package.json +1 -1
- package/dist/middleware-0Gslab3l.js +0 -33
- package/dist/middleware-DTBS4kbm.js +0 -17
package/dist/sig/ld.test.js
CHANGED
@@ -3,24 +3,24 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import { assert } from "../assert-DmFG7ppO.js";
|
8
|
+
import "../docloader-Bf7FNkEt.js";
|
9
9
|
import "../url-kTAI6_KP.js";
|
10
10
|
import "../multibase-DeCHcK8L.js";
|
11
|
-
import { CryptographicKey } from "../vocab-
|
11
|
+
import { CryptographicKey } from "../vocab-DTUqat8X.js";
|
12
12
|
import "../langstr-DbWheeIS.js";
|
13
|
-
import "../lookup-
|
13
|
+
import "../lookup-Dom-VSN0.js";
|
14
14
|
import "../type-D2s5lmbZ.js";
|
15
|
-
import "../actor-
|
16
|
-
import { generateCryptoKeyPair } from "../key-
|
17
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-
|
15
|
+
import "../actor-BPcHD1DQ.js";
|
16
|
+
import { generateCryptoKeyPair } from "../key-DMk4CUyA.js";
|
17
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-DhRNxRXj.js";
|
18
18
|
import { test } from "../testing-BZ0dJ4qn.js";
|
19
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
20
|
-
import "../assert_is_error-
|
21
|
-
import { assertThrows } from "../assert_throws-
|
19
|
+
import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
|
20
|
+
import "../assert_is_error-nrwA1GeT.js";
|
21
|
+
import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
|
22
22
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
23
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
23
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DqZTy_b8.js";
|
24
24
|
import { encodeBase64 } from "byte-encodings/base64";
|
25
25
|
|
26
26
|
//#region sig/ld.test.ts
|
package/dist/sig/mod.d.ts
CHANGED
@@ -6,5 +6,5 @@ import "../vocab-CzEfWQk2.js";
|
|
6
6
|
import "../actor-CPpvuBKU.js";
|
7
7
|
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-B8EiSgi2.js";
|
8
8
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-D0cOz8R5.js";
|
9
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-
|
9
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-DS-8N1r1.js";
|
10
10
|
export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/mod.js
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import "../actor-
|
7
|
-
import "../lookup-
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-
|
9
|
-
import { signRequest, verifyRequest } from "../http-
|
10
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
5
|
+
import "../docloader-WGNocIQl.js";
|
6
|
+
import "../actor-BnQGQxqE.js";
|
7
|
+
import "../lookup-DE4JI30z.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-BacJ7S4E.js";
|
9
|
+
import { signRequest, verifyRequest } from "../http-DrNOicWD.js";
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-BydqlnsK.js";
|
11
11
|
import "../sig-BXJO--F9.js";
|
12
12
|
|
13
13
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/owner.test.js
CHANGED
@@ -3,28 +3,28 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import { assert } from "../assert-DmFG7ppO.js";
|
8
|
+
import "../assert_instance_of-CF09JHYM.js";
|
9
|
+
import "../docloader-Bf7FNkEt.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Create } from "../vocab-
|
12
|
+
import { Create } from "../vocab-DTUqat8X.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Dom-VSN0.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
19
|
-
import { lookupObject } from "../lookup-
|
16
|
+
import "../actor-BPcHD1DQ.js";
|
17
|
+
import "../key-DMk4CUyA.js";
|
18
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-Cj-uzr16.js";
|
19
|
+
import { lookupObject } from "../lookup-DpBb3ixM.js";
|
20
20
|
import { test } from "../testing-BZ0dJ4qn.js";
|
21
|
-
import "../std__assert-
|
22
|
-
import { assertFalse } from "../assert_rejects-
|
23
|
-
import "../assert_is_error-
|
24
|
-
import "../assert_not_equals-
|
25
|
-
import "../assert_throws-
|
21
|
+
import "../std__assert-vp0TKMS1.js";
|
22
|
+
import { assertFalse } from "../assert_rejects-C-sxEMM5.js";
|
23
|
+
import "../assert_is_error-nrwA1GeT.js";
|
24
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
25
|
+
import "../assert_throws-Cn9C6Jur.js";
|
26
26
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
27
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
27
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-DqZTy_b8.js";
|
28
28
|
|
29
29
|
//#region sig/owner.test.ts
|
30
30
|
test("doesActorOwnKey()", async () => {
|
package/dist/sig/proof.test.js
CHANGED
@@ -3,27 +3,27 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import "../assert-DmFG7ppO.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
|
9
|
+
import "../docloader-Bf7FNkEt.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import { decode } from "../multibase-DeCHcK8L.js";
|
12
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-
|
12
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-DTUqat8X.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Dom-VSN0.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
16
|
+
import "../actor-BPcHD1DQ.js";
|
17
|
+
import "../key-DMk4CUyA.js";
|
18
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-DfxuC-RR.js";
|
19
19
|
import { test } from "../testing-BZ0dJ4qn.js";
|
20
|
-
import "../std__assert-
|
21
|
-
import { assertRejects } from "../assert_rejects-
|
22
|
-
import "../assert_is_error-
|
23
|
-
import "../assert_not_equals-
|
24
|
-
import "../assert_throws-
|
20
|
+
import "../std__assert-vp0TKMS1.js";
|
21
|
+
import { assertRejects } from "../assert_rejects-C-sxEMM5.js";
|
22
|
+
import "../assert_is_error-nrwA1GeT.js";
|
23
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
24
|
+
import "../assert_throws-Cn9C6Jur.js";
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
26
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
26
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DqZTy_b8.js";
|
27
27
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
28
28
|
|
29
29
|
//#region sig/proof.test.ts
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-
|
6
|
+
import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-CTYbeopb.js";
|
7
7
|
|
8
8
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js
|
9
9
|
/**
|
@@ -3,15 +3,15 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import "../assert_instance_of-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import "../assert-DmFG7ppO.js";
|
8
|
+
import "../assert_instance_of-CF09JHYM.js";
|
9
9
|
import { test } from "../testing-BZ0dJ4qn.js";
|
10
|
-
import "../std__assert-
|
11
|
-
import "../assert_rejects-
|
12
|
-
import "../assert_is_error-
|
13
|
-
import "../assert_not_equals-
|
14
|
-
import "../assert_throws-
|
10
|
+
import "../std__assert-vp0TKMS1.js";
|
11
|
+
import "../assert_rejects-C-sxEMM5.js";
|
12
|
+
import "../assert_is_error-nrwA1GeT.js";
|
13
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
14
|
+
import "../assert_throws-Cn9C6Jur.js";
|
15
15
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
16
16
|
|
17
17
|
//#region testing/docloader.test.ts
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { getUserAgent } from "./docloader-
|
5
|
+
import { getUserAgent } from "./docloader-WGNocIQl.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
|
8
8
|
//#region nodeinfo/semver.ts
|
package/dist/vocab/actor.test.js
CHANGED
@@ -4,23 +4,23 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { __export } from "../chunk-HsBuZ-b2.js";
|
7
|
-
import { assertEquals } from "../assert_equals-
|
8
|
-
import { assert } from "../assert-
|
9
|
-
import "../assert_instance_of-
|
10
|
-
import "../docloader-
|
7
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
8
|
+
import { assert } from "../assert-DmFG7ppO.js";
|
9
|
+
import "../assert_instance_of-CF09JHYM.js";
|
10
|
+
import "../docloader-Bf7FNkEt.js";
|
11
11
|
import "../url-kTAI6_KP.js";
|
12
12
|
import "../multibase-DeCHcK8L.js";
|
13
|
-
import { Application, Group, Organization, Person, Service } from "../vocab-
|
13
|
+
import { Application, Group, Organization, Person, Service } from "../vocab-DTUqat8X.js";
|
14
14
|
import "../langstr-DbWheeIS.js";
|
15
|
-
import "../lookup-
|
15
|
+
import "../lookup-Dom-VSN0.js";
|
16
16
|
import "../type-D2s5lmbZ.js";
|
17
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
17
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-BPcHD1DQ.js";
|
18
18
|
import { test } from "../testing-BZ0dJ4qn.js";
|
19
|
-
import { assertStrictEquals } from "../std__assert-
|
20
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
21
|
-
import "../assert_is_error-
|
22
|
-
import "../assert_not_equals-
|
23
|
-
import { assertThrows } from "../assert_throws-
|
19
|
+
import { assertStrictEquals } from "../std__assert-vp0TKMS1.js";
|
20
|
+
import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
|
21
|
+
import "../assert_is_error-nrwA1GeT.js";
|
22
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
23
|
+
import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
|
24
24
|
import { esm_default } from "../esm-CASHO3OR.js";
|
25
25
|
|
26
26
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
@@ -3,23 +3,23 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import "../assert-DmFG7ppO.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
|
9
|
+
import "../docloader-Bf7FNkEt.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Collection, Note, Object as Object$1, Person } from "../vocab-
|
12
|
+
import { Collection, Note, Object as Object$1, Person } from "../vocab-DTUqat8X.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Dom-VSN0.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-DpBb3ixM.js";
|
17
17
|
import { test } from "../testing-BZ0dJ4qn.js";
|
18
|
-
import "../std__assert-
|
19
|
-
import "../assert_rejects-
|
20
|
-
import "../assert_is_error-
|
21
|
-
import "../assert_not_equals-
|
22
|
-
import "../assert_throws-
|
18
|
+
import "../std__assert-vp0TKMS1.js";
|
19
|
+
import "../assert_rejects-C-sxEMM5.js";
|
20
|
+
import "../assert_is_error-nrwA1GeT.js";
|
21
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
22
|
+
import "../assert_throws-Cn9C6Jur.js";
|
23
23
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
24
24
|
import { esm_default } from "../esm-CASHO3OR.js";
|
25
25
|
|
package/dist/vocab/mod.js
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-
|
7
|
-
import "../lookup-
|
8
|
-
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-
|
5
|
+
import "../docloader-WGNocIQl.js";
|
6
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-BnQGQxqE.js";
|
7
|
+
import "../lookup-DE4JI30z.js";
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-DfjcfPXi.js";
|
9
9
|
|
10
10
|
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, lookupObject, normalizeActorHandle, traverseCollection };
|
package/dist/vocab/type.test.js
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import "../docloader-Bf7FNkEt.js";
|
8
8
|
import "../url-kTAI6_KP.js";
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
10
|
-
import { Person } from "../vocab-
|
10
|
+
import { Person } from "../vocab-DTUqat8X.js";
|
11
11
|
import "../langstr-DbWheeIS.js";
|
12
12
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
13
13
|
import { test } from "../testing-BZ0dJ4qn.js";
|
package/dist/vocab/vocab.test.js
CHANGED
@@ -3,22 +3,22 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals, isWindows } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals, isWindows } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import { assert } from "../assert-DmFG7ppO.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
|
9
|
+
import "../docloader-Bf7FNkEt.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import { decode } from "../multibase-DeCHcK8L.js";
|
12
|
-
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-
|
12
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-DTUqat8X.js";
|
13
13
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
14
14
|
import { test } from "../testing-BZ0dJ4qn.js";
|
15
|
-
import "../std__assert-
|
16
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
17
|
-
import "../assert_is_error-
|
18
|
-
import { assertNotEquals } from "../assert_not_equals-
|
19
|
-
import { assertThrows } from "../assert_throws-
|
15
|
+
import "../std__assert-vp0TKMS1.js";
|
16
|
+
import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
|
17
|
+
import "../assert_is_error-nrwA1GeT.js";
|
18
|
+
import { assertNotEquals } from "../assert_not_equals-Dc7y-V5Q.js";
|
19
|
+
import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
|
20
20
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-DqZTy_b8.js";
|
22
22
|
import { pascalCase } from "@es-toolkit/es-toolkit";
|
23
23
|
import { parseLanguageTag } from "@phensley/language-tag";
|
24
24
|
import { Validator } from "@cfworker/json-schema";
|
@@ -398,7 +398,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
398
398
|
}
|
399
399
|
|
400
400
|
//#endregion
|
401
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
401
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_chars.js
|
402
402
|
const TAB = 9;
|
403
403
|
const LINE_FEED = 10;
|
404
404
|
const CARRIAGE_RETURN = 13;
|
@@ -440,7 +440,7 @@ function isFlowIndicator(c) {
|
|
440
440
|
}
|
441
441
|
|
442
442
|
//#endregion
|
443
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
443
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/binary.js
|
444
444
|
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
445
445
|
function resolveYamlBinary(data) {
|
446
446
|
if (data === null) return false;
|
@@ -527,7 +527,7 @@ const binary = {
|
|
527
527
|
};
|
528
528
|
|
529
529
|
//#endregion
|
530
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
530
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/bool.js
|
531
531
|
const YAML_TRUE_BOOLEANS = [
|
532
532
|
"true",
|
533
533
|
"True",
|
@@ -563,7 +563,7 @@ const bool = {
|
|
563
563
|
};
|
564
564
|
|
565
565
|
//#endregion
|
566
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
566
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_utils.js
|
567
567
|
function isObject(value) {
|
568
568
|
return value !== null && typeof value === "object";
|
569
569
|
}
|
@@ -575,7 +575,7 @@ function isPlainObject(object) {
|
|
575
575
|
}
|
576
576
|
|
577
577
|
//#endregion
|
578
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
578
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/float.js
|
579
579
|
const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
580
580
|
function resolveYamlFloat(data) {
|
581
581
|
if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
|
@@ -626,7 +626,7 @@ const float = {
|
|
626
626
|
};
|
627
627
|
|
628
628
|
//#endregion
|
629
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
629
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/int.js
|
630
630
|
function isCharCodeInRange(c, lower, upper) {
|
631
631
|
return lower <= c && c <= upper;
|
632
632
|
}
|
@@ -737,7 +737,7 @@ const int = {
|
|
737
737
|
};
|
738
738
|
|
739
739
|
//#endregion
|
740
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
740
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/map.js
|
741
741
|
const map = {
|
742
742
|
tag: "tag:yaml.org,2002:map",
|
743
743
|
resolve() {
|
@@ -750,7 +750,7 @@ const map = {
|
|
750
750
|
};
|
751
751
|
|
752
752
|
//#endregion
|
753
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
753
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/merge.js
|
754
754
|
const merge = {
|
755
755
|
tag: "tag:yaml.org,2002:merge",
|
756
756
|
kind: "scalar",
|
@@ -759,7 +759,7 @@ const merge = {
|
|
759
759
|
};
|
760
760
|
|
761
761
|
//#endregion
|
762
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
762
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/nil.js
|
763
763
|
const nil = {
|
764
764
|
tag: "tag:yaml.org,2002:null",
|
765
765
|
kind: "scalar",
|
@@ -777,7 +777,7 @@ const nil = {
|
|
777
777
|
};
|
778
778
|
|
779
779
|
//#endregion
|
780
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
780
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/omap.js
|
781
781
|
function resolveYamlOmap(data) {
|
782
782
|
const objectKeys = /* @__PURE__ */ new Set();
|
783
783
|
for (const object of data) {
|
@@ -801,7 +801,7 @@ const omap = {
|
|
801
801
|
};
|
802
802
|
|
803
803
|
//#endregion
|
804
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
804
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/pairs.js
|
805
805
|
function resolveYamlPairs(data) {
|
806
806
|
if (data === null) return true;
|
807
807
|
return data.every((it) => isPlainObject(it) && Object.keys(it).length === 1);
|
@@ -816,7 +816,7 @@ const pairs = {
|
|
816
816
|
};
|
817
817
|
|
818
818
|
//#endregion
|
819
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
819
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/regexp.js
|
820
820
|
const REGEXP = /^\/(?<regexp>[\s\S]+)\/(?<modifiers>[gismuy]*)$/;
|
821
821
|
const regexp = {
|
822
822
|
tag: "tag:yaml.org,2002:js/regexp",
|
@@ -840,7 +840,7 @@ const regexp = {
|
|
840
840
|
};
|
841
841
|
|
842
842
|
//#endregion
|
843
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
843
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/seq.js
|
844
844
|
const seq = {
|
845
845
|
tag: "tag:yaml.org,2002:seq",
|
846
846
|
kind: "sequence",
|
@@ -849,7 +849,7 @@ const seq = {
|
|
849
849
|
};
|
850
850
|
|
851
851
|
//#endregion
|
852
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
852
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/set.js
|
853
853
|
const set = {
|
854
854
|
tag: "tag:yaml.org,2002:set",
|
855
855
|
kind: "mapping",
|
@@ -861,7 +861,7 @@ const set = {
|
|
861
861
|
};
|
862
862
|
|
863
863
|
//#endregion
|
864
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
864
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/str.js
|
865
865
|
const str = {
|
866
866
|
tag: "tag:yaml.org,2002:str",
|
867
867
|
kind: "scalar",
|
@@ -870,7 +870,7 @@ const str = {
|
|
870
870
|
};
|
871
871
|
|
872
872
|
//#endregion
|
873
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
873
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/timestamp.js
|
874
874
|
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
875
875
|
const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
876
876
|
function resolveYamlTimestamp(data) {
|
@@ -922,7 +922,7 @@ const timestamp = {
|
|
922
922
|
};
|
923
923
|
|
924
924
|
//#endregion
|
925
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
925
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/undefined.js
|
926
926
|
const undefinedType = {
|
927
927
|
tag: "tag:yaml.org,2002:js/undefined",
|
928
928
|
kind: "scalar",
|
@@ -941,7 +941,7 @@ const undefinedType = {
|
|
941
941
|
};
|
942
942
|
|
943
943
|
//#endregion
|
944
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
944
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_schema.js
|
945
945
|
function createTypeMap(implicitTypes, explicitTypes) {
|
946
946
|
const result = {
|
947
947
|
fallback: /* @__PURE__ */ new Map(),
|
@@ -1040,7 +1040,7 @@ const SCHEMA_MAP = new Map([
|
|
1040
1040
|
]);
|
1041
1041
|
|
1042
1042
|
//#endregion
|
1043
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
1043
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_loader_state.js
|
1044
1044
|
const CONTEXT_FLOW_IN = 1;
|
1045
1045
|
const CONTEXT_FLOW_OUT = 2;
|
1046
1046
|
const CONTEXT_BLOCK_IN = 3;
|
@@ -1145,7 +1145,6 @@ var LoaderState = class {
|
|
1145
1145
|
allowDuplicateKeys;
|
1146
1146
|
implicitTypes;
|
1147
1147
|
typeMap;
|
1148
|
-
version;
|
1149
1148
|
checkLineBreaks = false;
|
1150
1149
|
tagMap = /* @__PURE__ */ new Map();
|
1151
1150
|
anchorMap = /* @__PURE__ */ new Map();
|
@@ -1160,7 +1159,6 @@ var LoaderState = class {
|
|
1160
1159
|
this.implicitTypes = schema.implicitTypes;
|
1161
1160
|
this.typeMap = schema.typeMap;
|
1162
1161
|
this.length = input.length;
|
1163
|
-
this.version = null;
|
1164
1162
|
this.readIndent();
|
1165
1163
|
}
|
1166
1164
|
skipWhitespaces() {
|
@@ -1195,19 +1193,18 @@ var LoaderState = class {
|
|
1195
1193
|
const error = this.#createError(message);
|
1196
1194
|
this.onWarning?.(error);
|
1197
1195
|
}
|
1198
|
-
yamlDirectiveHandler(
|
1199
|
-
if (this.version !== null) throw this.#createError("Cannot handle YAML directive: duplication of %YAML directive");
|
1196
|
+
yamlDirectiveHandler(args) {
|
1200
1197
|
if (args.length !== 1) throw this.#createError("Cannot handle YAML directive: YAML directive accepts exactly one argument");
|
1201
1198
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
1202
1199
|
if (match === null) throw this.#createError("Cannot handle YAML directive: ill-formed argument");
|
1203
1200
|
const major = parseInt(match[1], 10);
|
1204
1201
|
const minor = parseInt(match[2], 10);
|
1205
1202
|
if (major !== 1) throw this.#createError("Cannot handle YAML directive: unacceptable YAML version");
|
1206
|
-
this.version = args[0] ?? null;
|
1207
1203
|
this.checkLineBreaks = minor < 2;
|
1208
|
-
if (minor !== 1 && minor !== 2)
|
1204
|
+
if (minor !== 1 && minor !== 2) this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
|
1205
|
+
return args[0] ?? null;
|
1209
1206
|
}
|
1210
|
-
tagDirectiveHandler(
|
1207
|
+
tagDirectiveHandler(args) {
|
1211
1208
|
if (args.length !== 2) throw this.#createError(`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
|
1212
1209
|
const handle = args[0];
|
1213
1210
|
const prefix = args[1];
|
@@ -1876,13 +1873,9 @@ var LoaderState = class {
|
|
1876
1873
|
} else throw this.#createError(`Cannot resolve unknown tag !<${this.tag}>`);
|
1877
1874
|
return this.tag !== null || this.anchor !== null || hasContent;
|
1878
1875
|
}
|
1879
|
-
|
1880
|
-
const documentStart = this.position;
|
1876
|
+
readDirectives() {
|
1881
1877
|
let hasDirectives = false;
|
1882
|
-
|
1883
|
-
this.checkLineBreaks = false;
|
1884
|
-
this.tagMap = /* @__PURE__ */ new Map();
|
1885
|
-
this.anchorMap = /* @__PURE__ */ new Map();
|
1878
|
+
let version = null;
|
1886
1879
|
let ch = this.peek();
|
1887
1880
|
while (ch !== 0) {
|
1888
1881
|
this.skipSeparationSpace(true, -1);
|
@@ -1907,10 +1900,11 @@ var LoaderState = class {
|
|
1907
1900
|
if (ch !== 0) this.readLineBreak();
|
1908
1901
|
switch (directiveName) {
|
1909
1902
|
case "YAML":
|
1910
|
-
this
|
1903
|
+
if (version !== null) throw this.#createError("Cannot handle YAML directive: duplication of %YAML directive");
|
1904
|
+
version = this.yamlDirectiveHandler(directiveArgs);
|
1911
1905
|
break;
|
1912
1906
|
case "TAG":
|
1913
|
-
this.tagDirectiveHandler(
|
1907
|
+
this.tagDirectiveHandler(directiveArgs);
|
1914
1908
|
break;
|
1915
1909
|
default:
|
1916
1910
|
this.dispatchWarning(`unknown document directive "${directiveName}"`);
|
@@ -1918,6 +1912,14 @@ var LoaderState = class {
|
|
1918
1912
|
}
|
1919
1913
|
ch = this.peek();
|
1920
1914
|
}
|
1915
|
+
return hasDirectives;
|
1916
|
+
}
|
1917
|
+
readDocument() {
|
1918
|
+
const documentStart = this.position;
|
1919
|
+
this.checkLineBreaks = false;
|
1920
|
+
this.tagMap = /* @__PURE__ */ new Map();
|
1921
|
+
this.anchorMap = /* @__PURE__ */ new Map();
|
1922
|
+
const hasDirectives = this.readDirectives();
|
1921
1923
|
this.skipSeparationSpace(true, -1);
|
1922
1924
|
if (this.lineIndent === 0 && this.peek() === MINUS && this.peek(1) === MINUS && this.peek(2) === MINUS) {
|
1923
1925
|
this.position += 3;
|
@@ -1945,7 +1947,7 @@ var LoaderState = class {
|
|
1945
1947
|
};
|
1946
1948
|
|
1947
1949
|
//#endregion
|
1948
|
-
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.
|
1950
|
+
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/parse.js
|
1949
1951
|
function sanitizeInput(input) {
|
1950
1952
|
input = String(input);
|
1951
1953
|
if (input.length > 0) {
|