@noy-db/hub 0.2.0-pre.17 → 0.2.0-pre.19
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/aggregate/index.cjs +227 -3
- package/dist/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +3 -3
- package/dist/aggregate/index.d.ts +3 -3
- package/dist/aggregate/index.js +5 -4
- package/dist/aggregate/index.js.map +1 -1
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +5 -5
- package/dist/attestation/index.d.ts +5 -5
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs +4 -10
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +6 -6
- package/dist/blobs/index.d.ts +6 -6
- package/dist/blobs/index.js +6 -6
- package/dist/bundle/index.cjs +1587 -392
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +7 -7
- package/dist/bundle/index.d.ts +7 -7
- package/dist/bundle/index.js +10 -10
- package/dist/{chunk-NBBMMJ2H.js → chunk-3FSMVWBN.js} +4 -4
- package/dist/{chunk-HGVSHKZW.js → chunk-3Q2AOPLT.js} +100 -29
- package/dist/chunk-3Q2AOPLT.js.map +1 -0
- package/dist/{chunk-SHX5QBCI.js → chunk-4ULLGYPA.js} +3 -3
- package/dist/{chunk-CD2AVTEM.js → chunk-5IGWRMEC.js} +5 -5
- package/dist/{chunk-QO6RGLLD.js → chunk-6KESZO5D.js} +35 -7
- package/dist/chunk-6KESZO5D.js.map +1 -0
- package/dist/{chunk-GP3SDSH2.js → chunk-6OSOE6BY.js} +15 -2
- package/dist/chunk-6OSOE6BY.js.map +1 -0
- package/dist/{chunk-F4G63NTZ.js → chunk-7C6VFNIY.js} +2 -2
- package/dist/{chunk-XJV6OB4D.js → chunk-7HD67R6U.js} +2 -2
- package/dist/{chunk-UMLVJTYV.js → chunk-ADB7GPM3.js} +7 -4
- package/dist/chunk-ADB7GPM3.js.map +1 -0
- package/dist/{chunk-NYSYPFXJ.js → chunk-B6E5IRPJ.js} +3 -3
- package/dist/chunk-CYNTFU2D.js +129 -0
- package/dist/chunk-CYNTFU2D.js.map +1 -0
- package/dist/{chunk-ZEGSDPB7.js → chunk-DJF3FXW5.js} +35 -1
- package/dist/chunk-DJF3FXW5.js.map +1 -0
- package/dist/{chunk-3G3W65EQ.js → chunk-DY3EOJEN.js} +2 -2
- package/dist/{chunk-YYVZYTWW.js → chunk-E66DSTJP.js} +3 -3
- package/dist/{chunk-5LIROIDM.js → chunk-FBLAWK6A.js} +2 -2
- package/dist/{chunk-E77UKJYL.js → chunk-FPHRTW2Z.js} +5 -5
- package/dist/{state-vault-W2OEABNO.js → chunk-G4PYA575.js} +24 -7
- package/dist/chunk-G4PYA575.js.map +1 -0
- package/dist/{chunk-U5QCMH3W.js → chunk-GKQAU52M.js} +4 -4
- package/dist/{chunk-2FU2FTXD.js → chunk-GYAWXHFO.js} +2 -2
- package/dist/{chunk-ROPJVUG3.js → chunk-H42KZXNV.js} +5 -210
- package/dist/chunk-H42KZXNV.js.map +1 -0
- package/dist/{chunk-XPIHJ34I.js → chunk-IBVTH4JR.js} +4 -4
- package/dist/{chunk-C3HYQPV4.js → chunk-IVP5IVON.js} +2 -2
- package/dist/{chunk-BL5GYANC.js → chunk-KEDJDWWQ.js} +3 -3
- package/dist/{chunk-I5IUYN7B.js → chunk-KNKNOJFS.js} +3 -3
- package/dist/chunk-KNKNOJFS.js.map +1 -0
- package/dist/{chunk-D77ZQSQQ.js → chunk-KYGGXXT6.js} +829 -170
- package/dist/chunk-KYGGXXT6.js.map +1 -0
- package/dist/{chunk-J7RWBXFY.js → chunk-LSIIPKYT.js} +2 -2
- package/dist/{chunk-BSZOCSDZ.js → chunk-M3FPNTO2.js} +4 -4
- package/dist/{chunk-XMVHEWF6.js → chunk-MI36HL5G.js} +4 -4
- package/dist/{chunk-ROVO6NPJ.js → chunk-NN6IISZO.js} +58 -3
- package/dist/chunk-NN6IISZO.js.map +1 -0
- package/dist/{chunk-7H2GEJ3O.js → chunk-OBMYMKGO.js} +29 -6
- package/dist/{chunk-7H2GEJ3O.js.map → chunk-OBMYMKGO.js.map} +1 -1
- package/dist/{chunk-UNTGHX5A.js → chunk-OKOKPYWH.js} +2 -2
- package/dist/{chunk-WV7WV6JO.js → chunk-OY7RX2VL.js} +9 -15
- package/dist/chunk-OY7RX2VL.js.map +1 -0
- package/dist/{chunk-H2MRGONI.js → chunk-PTGQPWMV.js} +2 -2
- package/dist/{chunk-BJSLBUJ7.js → chunk-PWFTQHYX.js} +2 -2
- package/dist/{chunk-5AXTH4QZ.js → chunk-Q5MCHUXZ.js} +2 -2
- package/dist/{chunk-QHM6XEAH.js → chunk-S22UOMHM.js} +6 -6
- package/dist/{chunk-WIAOUFFB.js → chunk-S3XA7G35.js} +2 -2
- package/dist/{chunk-SISBMAPO.js → chunk-SHIUFIPW.js} +1 -1
- package/dist/chunk-SHIUFIPW.js.map +1 -0
- package/dist/{chunk-KCEHMDZF.js → chunk-U7JNBSS3.js} +3 -3
- package/dist/{chunk-ZNGPEV5J.js → chunk-V3VIRTTE.js} +3 -3
- package/dist/{chunk-TIDXB5DF.js → chunk-V5FZWQNN.js} +4 -4
- package/dist/chunk-VEIVAYJ7.js +361 -0
- package/dist/chunk-VEIVAYJ7.js.map +1 -0
- package/dist/{chunk-AEIKD3PP.js → chunk-VNUE6FHP.js} +3 -3
- package/dist/{chunk-DYYYUW5D.js → chunk-WFK2EVYU.js} +10 -2
- package/dist/chunk-WFK2EVYU.js.map +1 -0
- package/dist/{chunk-XMHUK5PN.js → chunk-X7FJMKT3.js} +2 -2
- package/dist/{chunk-FEJDVE3Z.js → chunk-XPH3FWME.js} +7 -2
- package/dist/{chunk-FEJDVE3Z.js.map → chunk-XPH3FWME.js.map} +1 -1
- package/dist/{chunk-SNMJ7SB3.js → chunk-Y5J63SMF.js} +5 -5
- package/dist/{chunk-M476FOQ7.js → chunk-YLRRU72W.js} +2 -2
- package/dist/{chunk-DWEBTE2W.js → chunk-YX333DPS.js} +4 -4
- package/dist/{chunk-BH3X5L6A.js → chunk-YZE6C3TQ.js} +3 -3
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +6 -6
- package/dist/consent/index.d.ts +6 -6
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-7BN2HDWG.js → crypto-B46VNH6X.js} +3 -3
- package/dist/{delegation-MGH5SODX.js → delegation-5HON72PV.js} +5 -5
- package/dist/derivations/index.cjs +82 -2
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +7 -7
- package/dist/derivations/index.d.ts +7 -7
- package/dist/derivations/index.js +8 -6
- package/dist/{dev-unlock-iXbYFAWl.d.cts → dev-unlock-BR1rMOS-.d.cts} +1 -1
- package/dist/{dev-unlock-CI1ijTML.d.ts → dev-unlock-whL49sxV.d.ts} +1 -1
- package/dist/{errors-Dz64FA65.d.cts → errors-DL-zTrrF.d.cts} +29 -1
- package/dist/{errors-Dz64FA65.d.ts → errors-DL-zTrrF.d.ts} +29 -1
- package/dist/executor-44R5CUS2.js +12 -0
- package/dist/executor-AOACUK7Z.js +8 -0
- package/dist/executor-OKFLQCDW.js +8 -0
- package/dist/{fanout-sidecar-FIJJ46YG.js → fanout-sidecar-DCQWJQ6S.js} +2 -2
- package/dist/forget/index.cjs.map +1 -1
- package/dist/forget/index.d.cts +1 -1
- package/dist/forget/index.d.ts +1 -1
- package/dist/forget/index.js +4 -4
- package/dist/guards/index.cjs +80 -3
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +7 -7
- package/dist/guards/index.d.ts +7 -7
- package/dist/guards/index.js +8 -4
- package/dist/{hash-tEcM5fnv.d.cts → hash-BEUBmmI4.d.cts} +1 -1
- package/dist/{hash-blk7Bkes.d.ts → hash-Dtb7FwWd.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +7 -7
- package/dist/history/index.d.ts +7 -7
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs +149 -132
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +6 -6
- package/dist/i18n/index.d.ts +6 -6
- package/dist/i18n/index.js +14 -14
- package/dist/{index-u-kWzSrL.d.cts → index-BM7O48Ur.d.cts} +85 -9
- package/dist/{index-C-SSRIxP.d.cts → index-BMmajblo.d.cts} +14 -0
- package/dist/{index-C-SSRIxP.d.ts → index-BMmajblo.d.ts} +14 -0
- package/dist/{index-DpU6KWof.d.ts → index-BelbyUwz.d.ts} +85 -9
- package/dist/index.cjs +2206 -992
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -16
- package/dist/index.d.ts +29 -16
- package/dist/index.js +76 -54
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +4 -4
- package/dist/issue-EPA2PSWP.js +12 -0
- package/dist/{ledger-LFVLHE5H.js → ledger-LS6GXCBP.js} +5 -5
- package/dist/materialized-views/index.cjs +257 -4
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +7 -7
- package/dist/materialized-views/index.d.ts +7 -7
- package/dist/materialized-views/index.js +8 -7
- package/dist/noydb-BVKFP74P.js +38 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +7 -7
- package/dist/overlay-views/index.d.ts +7 -7
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +6 -6
- package/dist/periods/index.d.ts +6 -6
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-RXZNP3V6.js → public-envelope-AGU6SS4Z.js} +4 -4
- package/dist/query/index.cjs +320 -28
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +7 -6
- package/dist/read-only-facade-EX6WZZBP.js +7 -0
- package/dist/registry-ERNAMRDE.js +8 -0
- package/dist/registry-EXTHSXQW.js +8 -0
- package/dist/{registry-SECUWSGY.js → registry-RDPTFXQ7.js} +3 -3
- package/dist/{revoke-B54H2S2W.js → revoke-IFLXEZA5.js} +6 -6
- package/dist/sealed-record/index.cjs.map +1 -1
- package/dist/sealed-record/index.d.cts +1 -1
- package/dist/sealed-record/index.d.ts +1 -1
- package/dist/sealed-record/index.js +2 -2
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +7 -7
- package/dist/session/index.d.ts +7 -7
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +6 -6
- package/dist/shadow/index.d.ts +6 -6
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-YSXZT574.js → signer-UNWOUJAK.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +6 -6
- package/dist/snapshots/index.d.ts +6 -6
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-TOA36SRK.js → stale-NTEV5SLX.js} +2 -2
- package/dist/state-vault-TUTFRTOA.js +14 -0
- package/dist/state-vault-TUTFRTOA.js.map +1 -0
- package/dist/store/index.cjs +8 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +13 -6
- package/dist/store/index.d.ts +13 -6
- package/dist/store/index.js +2 -2
- package/dist/{strategy-4M9jo172.d.ts → strategy-BDxQnnTX.d.ts} +315 -4
- package/dist/{strategy-CLC1j79g.d.cts → strategy-C5ol6NdV.d.cts} +315 -4
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +6 -6
- package/dist/team/index.d.ts +6 -6
- package/dist/team/index.js +8 -8
- package/dist/transition-guard-B1N82hMf.d.cts +165 -0
- package/dist/transition-guard-C__YeF3_.d.ts +165 -0
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +6 -6
- package/dist/tx/index.d.ts +6 -6
- package/dist/tx/index.js +3 -3
- package/dist/{types-CljIHm_J.d.ts → types-CraiZOyO.d.ts} +609 -305
- package/dist/{types-CrSpRDuG.d.cts → types-D-gr5t0G.d.cts} +609 -305
- package/dist/{ulid-CrI7PPbA.d.cts → ulid-DQnSAP5W.d.cts} +1 -1
- package/dist/{ulid-CWfL2Vfv.d.ts → ulid-FFRRHkVf.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{vault-group-DHAHFX2A.js → vault-group-27EV7KB4.js} +205 -8
- package/dist/vault-group-27EV7KB4.js.map +1 -0
- package/dist/{with-materialized-view-NzF71cG_.d.cts → with-materialized-view-BboqxyV3.d.cts} +1 -1
- package/dist/{with-materialized-view-B892zYZV.d.ts → with-materialized-view-CguCeVcT.d.ts} +1 -1
- package/dist/{with-overlayed-view-CR6m7CHe.d.ts → with-overlayed-view-DO08u_tx.d.ts} +1 -1
- package/dist/{with-overlayed-view-UI8qSGL4.d.cts → with-overlayed-view-mmsg5Of3.d.cts} +1 -1
- package/dist/with-rollup-_TyBzz3T.d.ts +47 -0
- package/dist/with-rollup-aaxOZcIb.d.cts +47 -0
- package/package.json +3 -3
- package/dist/chunk-D77ZQSQQ.js.map +0 -1
- package/dist/chunk-DYYYUW5D.js.map +0 -1
- package/dist/chunk-GP3SDSH2.js.map +0 -1
- package/dist/chunk-HGVSHKZW.js.map +0 -1
- package/dist/chunk-I5IUYN7B.js.map +0 -1
- package/dist/chunk-JDWE6JMX.js +0 -139
- package/dist/chunk-JDWE6JMX.js.map +0 -1
- package/dist/chunk-PDULVIBY.js +0 -63
- package/dist/chunk-PDULVIBY.js.map +0 -1
- package/dist/chunk-QO6RGLLD.js.map +0 -1
- package/dist/chunk-ROPJVUG3.js.map +0 -1
- package/dist/chunk-ROVO6NPJ.js.map +0 -1
- package/dist/chunk-SISBMAPO.js.map +0 -1
- package/dist/chunk-UMLVJTYV.js.map +0 -1
- package/dist/chunk-WV7WV6JO.js.map +0 -1
- package/dist/chunk-ZEGSDPB7.js.map +0 -1
- package/dist/executor-3W63Y44O.js +0 -11
- package/dist/executor-CFFWPWBJ.js +0 -8
- package/dist/executor-VDQQOR4F.js +0 -8
- package/dist/immutable-guard-B5M95nbq.d.ts +0 -82
- package/dist/immutable-guard-qN3zF8o1.d.cts +0 -82
- package/dist/issue-TTMGHQ2J.js +0 -12
- package/dist/noydb-36S6GQNC.js +0 -37
- package/dist/read-only-facade-ITU6L7BL.js +0 -7
- package/dist/registry-3YFLZ7WD.js +0 -8
- package/dist/registry-TGZISEWC.js +0 -8
- package/dist/state-vault-W2OEABNO.js.map +0 -1
- package/dist/vault-group-DHAHFX2A.js.map +0 -1
- package/dist/with-derivation-BZ2y4bzF.d.ts +0 -13
- package/dist/with-derivation-Bozs8DmD.d.cts +0 -13
- /package/dist/{chunk-NBBMMJ2H.js.map → chunk-3FSMVWBN.js.map} +0 -0
- /package/dist/{chunk-SHX5QBCI.js.map → chunk-4ULLGYPA.js.map} +0 -0
- /package/dist/{chunk-CD2AVTEM.js.map → chunk-5IGWRMEC.js.map} +0 -0
- /package/dist/{chunk-F4G63NTZ.js.map → chunk-7C6VFNIY.js.map} +0 -0
- /package/dist/{chunk-XJV6OB4D.js.map → chunk-7HD67R6U.js.map} +0 -0
- /package/dist/{chunk-NYSYPFXJ.js.map → chunk-B6E5IRPJ.js.map} +0 -0
- /package/dist/{chunk-3G3W65EQ.js.map → chunk-DY3EOJEN.js.map} +0 -0
- /package/dist/{chunk-YYVZYTWW.js.map → chunk-E66DSTJP.js.map} +0 -0
- /package/dist/{chunk-5LIROIDM.js.map → chunk-FBLAWK6A.js.map} +0 -0
- /package/dist/{chunk-E77UKJYL.js.map → chunk-FPHRTW2Z.js.map} +0 -0
- /package/dist/{chunk-U5QCMH3W.js.map → chunk-GKQAU52M.js.map} +0 -0
- /package/dist/{chunk-2FU2FTXD.js.map → chunk-GYAWXHFO.js.map} +0 -0
- /package/dist/{chunk-XPIHJ34I.js.map → chunk-IBVTH4JR.js.map} +0 -0
- /package/dist/{chunk-C3HYQPV4.js.map → chunk-IVP5IVON.js.map} +0 -0
- /package/dist/{chunk-BL5GYANC.js.map → chunk-KEDJDWWQ.js.map} +0 -0
- /package/dist/{chunk-J7RWBXFY.js.map → chunk-LSIIPKYT.js.map} +0 -0
- /package/dist/{chunk-BSZOCSDZ.js.map → chunk-M3FPNTO2.js.map} +0 -0
- /package/dist/{chunk-XMVHEWF6.js.map → chunk-MI36HL5G.js.map} +0 -0
- /package/dist/{chunk-UNTGHX5A.js.map → chunk-OKOKPYWH.js.map} +0 -0
- /package/dist/{chunk-H2MRGONI.js.map → chunk-PTGQPWMV.js.map} +0 -0
- /package/dist/{chunk-BJSLBUJ7.js.map → chunk-PWFTQHYX.js.map} +0 -0
- /package/dist/{chunk-5AXTH4QZ.js.map → chunk-Q5MCHUXZ.js.map} +0 -0
- /package/dist/{chunk-QHM6XEAH.js.map → chunk-S22UOMHM.js.map} +0 -0
- /package/dist/{chunk-WIAOUFFB.js.map → chunk-S3XA7G35.js.map} +0 -0
- /package/dist/{chunk-KCEHMDZF.js.map → chunk-U7JNBSS3.js.map} +0 -0
- /package/dist/{chunk-ZNGPEV5J.js.map → chunk-V3VIRTTE.js.map} +0 -0
- /package/dist/{chunk-TIDXB5DF.js.map → chunk-V5FZWQNN.js.map} +0 -0
- /package/dist/{chunk-AEIKD3PP.js.map → chunk-VNUE6FHP.js.map} +0 -0
- /package/dist/{chunk-XMHUK5PN.js.map → chunk-X7FJMKT3.js.map} +0 -0
- /package/dist/{chunk-SNMJ7SB3.js.map → chunk-Y5J63SMF.js.map} +0 -0
- /package/dist/{chunk-M476FOQ7.js.map → chunk-YLRRU72W.js.map} +0 -0
- /package/dist/{chunk-DWEBTE2W.js.map → chunk-YX333DPS.js.map} +0 -0
- /package/dist/{chunk-BH3X5L6A.js.map → chunk-YZE6C3TQ.js.map} +0 -0
- /package/dist/{crypto-7BN2HDWG.js.map → crypto-B46VNH6X.js.map} +0 -0
- /package/dist/{delegation-MGH5SODX.js.map → delegation-5HON72PV.js.map} +0 -0
- /package/dist/{executor-3W63Y44O.js.map → executor-44R5CUS2.js.map} +0 -0
- /package/dist/{executor-CFFWPWBJ.js.map → executor-AOACUK7Z.js.map} +0 -0
- /package/dist/{executor-VDQQOR4F.js.map → executor-OKFLQCDW.js.map} +0 -0
- /package/dist/{fanout-sidecar-FIJJ46YG.js.map → fanout-sidecar-DCQWJQ6S.js.map} +0 -0
- /package/dist/{issue-TTMGHQ2J.js.map → issue-EPA2PSWP.js.map} +0 -0
- /package/dist/{ledger-LFVLHE5H.js.map → ledger-LS6GXCBP.js.map} +0 -0
- /package/dist/{noydb-36S6GQNC.js.map → noydb-BVKFP74P.js.map} +0 -0
- /package/dist/{public-envelope-RXZNP3V6.js.map → public-envelope-AGU6SS4Z.js.map} +0 -0
- /package/dist/{read-only-facade-ITU6L7BL.js.map → read-only-facade-EX6WZZBP.js.map} +0 -0
- /package/dist/{registry-3YFLZ7WD.js.map → registry-ERNAMRDE.js.map} +0 -0
- /package/dist/{registry-SECUWSGY.js.map → registry-EXTHSXQW.js.map} +0 -0
- /package/dist/{registry-TGZISEWC.js.map → registry-RDPTFXQ7.js.map} +0 -0
- /package/dist/{revoke-B54H2S2W.js.map → revoke-IFLXEZA5.js.map} +0 -0
- /package/dist/{signer-YSXZT574.js.map → signer-UNWOUJAK.js.map} +0 -0
- /package/dist/{stale-TOA36SRK.js.map → stale-NTEV5SLX.js.map} +0 -0
package/dist/history/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { L as LedgerEntry, c as canonicalJson, h as hashEntry, p as paddedIndex, a as parseIndex, s as sha256Hex } from '../index-
|
|
4
|
-
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-
|
|
1
|
+
import { aO as HistoryStrategy, aP as NoydbStore, aQ as HistoryOptions, aR as EncryptedEnvelope, aS as PruneOptions } from '../types-D-gr5t0G.cjs';
|
|
2
|
+
export { aT as AppendInput, aU as ChangeType, aV as CollectionInstant, aW as DiffEntry, aX as JsonPatch, aY as JsonPatchOp, aZ as LedgerStore, a_ as VaultEngine, a$ as VaultInstant, b0 as VerifyResult, b1 as applyPatch, b2 as computePatch, b3 as diff, b4 as formatDiff } from '../types-D-gr5t0G.cjs';
|
|
3
|
+
export { L as LedgerEntry, c as canonicalJson, h as hashEntry, p as paddedIndex, a as parseIndex, s as sha256Hex } from '../index-BMmajblo.cjs';
|
|
4
|
+
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-BEUBmmI4.cjs';
|
|
5
5
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
6
6
|
import '../predicate-BmhBSPCH.cjs';
|
|
7
|
-
import '../strategy-
|
|
8
|
-
import '../errors-
|
|
7
|
+
import '../strategy-C5ol6NdV.cjs';
|
|
8
|
+
import '../errors-DL-zTrrF.cjs';
|
|
9
9
|
import '../strategy-BSxFXGzb.cjs';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-BM7O48Ur.cjs';
|
|
11
11
|
import '@noy-db/attestation';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/history/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { L as LedgerEntry, c as canonicalJson, h as hashEntry, p as paddedIndex, a as parseIndex, s as sha256Hex } from '../index-
|
|
4
|
-
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-
|
|
1
|
+
import { aO as HistoryStrategy, aP as NoydbStore, aQ as HistoryOptions, aR as EncryptedEnvelope, aS as PruneOptions } from '../types-CraiZOyO.js';
|
|
2
|
+
export { aT as AppendInput, aU as ChangeType, aV as CollectionInstant, aW as DiffEntry, aX as JsonPatch, aY as JsonPatchOp, aZ as LedgerStore, a_ as VaultEngine, a$ as VaultInstant, b0 as VerifyResult, b1 as applyPatch, b2 as computePatch, b3 as diff, b4 as formatDiff } from '../types-CraiZOyO.js';
|
|
3
|
+
export { L as LedgerEntry, c as canonicalJson, h as hashEntry, p as paddedIndex, a as parseIndex, s as sha256Hex } from '../index-BMmajblo.js';
|
|
4
|
+
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-Dtb7FwWd.js';
|
|
5
5
|
import '../lazy-builder-ChSqcF5t.js';
|
|
6
6
|
import '../predicate-BmhBSPCH.js';
|
|
7
|
-
import '../strategy-
|
|
8
|
-
import '../errors-
|
|
7
|
+
import '../strategy-BDxQnnTX.js';
|
|
8
|
+
import '../errors-DL-zTrrF.js';
|
|
9
9
|
import '../strategy-BSxFXGzb.js';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-BelbyUwz.js';
|
|
11
11
|
import '@noy-db/attestation';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/history/index.js
CHANGED
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
pruneHistory,
|
|
10
10
|
saveHistory,
|
|
11
11
|
tombstoneHistory
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-IBVTH4JR.js";
|
|
13
13
|
import {
|
|
14
14
|
LEDGER_COLLECTION,
|
|
15
15
|
LEDGER_DELTAS_COLLECTION,
|
|
16
16
|
LedgerStore,
|
|
17
17
|
applyPatch,
|
|
18
18
|
computePatch
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-YX333DPS.js";
|
|
20
20
|
import {
|
|
21
21
|
canonicalJson,
|
|
22
22
|
envelopePayloadHash,
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
parseIndex,
|
|
26
26
|
sha256Hex
|
|
27
27
|
} from "../chunk-PDVP3C2I.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-SHIUFIPW.js";
|
|
29
|
+
import "../chunk-OKOKPYWH.js";
|
|
30
|
+
import "../chunk-DJF3FXW5.js";
|
|
31
31
|
|
|
32
32
|
// src/history/active.ts
|
|
33
33
|
function withHistory() {
|
package/dist/i18n/index.cjs
CHANGED
|
@@ -235,6 +235,136 @@ function resolvePolicy(onMissing, layer) {
|
|
|
235
235
|
return explicit ?? layerDefault ?? scalar ?? "throw";
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
// src/i18n/script.ts
|
|
239
|
+
var LATIN_BASE = /* @__PURE__ */ new Set([
|
|
240
|
+
"en",
|
|
241
|
+
"fr",
|
|
242
|
+
"de",
|
|
243
|
+
"es",
|
|
244
|
+
"it",
|
|
245
|
+
"pt",
|
|
246
|
+
"nl",
|
|
247
|
+
"sv",
|
|
248
|
+
"no",
|
|
249
|
+
"da",
|
|
250
|
+
"fi",
|
|
251
|
+
"is",
|
|
252
|
+
"pl",
|
|
253
|
+
"cs",
|
|
254
|
+
"sk",
|
|
255
|
+
"hu",
|
|
256
|
+
"ro",
|
|
257
|
+
"hr",
|
|
258
|
+
"sl",
|
|
259
|
+
"et",
|
|
260
|
+
"lv",
|
|
261
|
+
"lt",
|
|
262
|
+
"tr",
|
|
263
|
+
"vi",
|
|
264
|
+
"id",
|
|
265
|
+
"ms",
|
|
266
|
+
"tl",
|
|
267
|
+
"sw",
|
|
268
|
+
"af",
|
|
269
|
+
"ca",
|
|
270
|
+
"gl",
|
|
271
|
+
"eu",
|
|
272
|
+
"cy",
|
|
273
|
+
"ga"
|
|
274
|
+
]);
|
|
275
|
+
var SCRIPT_TABLE = {
|
|
276
|
+
th: ["Thai"],
|
|
277
|
+
ko: ["Hangul", "Han"],
|
|
278
|
+
ja: ["Han", "Hiragana", "Katakana"],
|
|
279
|
+
zh: ["Han"],
|
|
280
|
+
ar: ["Arabic"],
|
|
281
|
+
fa: ["Arabic"],
|
|
282
|
+
ur: ["Arabic"],
|
|
283
|
+
ru: ["Cyrillic"],
|
|
284
|
+
uk: ["Cyrillic"],
|
|
285
|
+
bg: ["Cyrillic"],
|
|
286
|
+
sr: ["Cyrillic"],
|
|
287
|
+
he: ["Hebrew"],
|
|
288
|
+
el: ["Greek"],
|
|
289
|
+
hi: ["Devanagari"],
|
|
290
|
+
ta: ["Tamil"],
|
|
291
|
+
km: ["Khmer"],
|
|
292
|
+
lo: ["Lao"],
|
|
293
|
+
my: ["Myanmar"]
|
|
294
|
+
};
|
|
295
|
+
var SUBTAG_SCRIPTS = {
|
|
296
|
+
Latn: ["Latin"],
|
|
297
|
+
Cyrl: ["Cyrillic", "Latin"],
|
|
298
|
+
Hans: ["Han", "Latin"],
|
|
299
|
+
Hant: ["Han", "Latin"],
|
|
300
|
+
Thai: ["Thai", "Latin"],
|
|
301
|
+
Arab: ["Arabic", "Latin"]
|
|
302
|
+
};
|
|
303
|
+
function inferScripts(locale) {
|
|
304
|
+
const parts = locale.split("-");
|
|
305
|
+
const subtag = parts.find((t) => /^[A-Z][a-z]{3}$/.test(t));
|
|
306
|
+
if (subtag && SUBTAG_SCRIPTS[subtag]) return SUBTAG_SCRIPTS[subtag];
|
|
307
|
+
const base = (parts[0] ?? "").toLowerCase();
|
|
308
|
+
if (LATIN_BASE.has(base)) return ["Latin"];
|
|
309
|
+
const primary = SCRIPT_TABLE[base];
|
|
310
|
+
if (primary) return [...primary, "Latin"];
|
|
311
|
+
return ["Latin"];
|
|
312
|
+
}
|
|
313
|
+
function allowedFor(descriptor, locale) {
|
|
314
|
+
const script = descriptor.options.script;
|
|
315
|
+
if (script && script !== "auto") {
|
|
316
|
+
const explicit = script[locale];
|
|
317
|
+
if (explicit) return explicit;
|
|
318
|
+
}
|
|
319
|
+
return inferScripts(locale);
|
|
320
|
+
}
|
|
321
|
+
var BASELINE = String.raw`\p{White_Space}\p{Script=Common}\p{Script=Inherited}\p{Mark}`;
|
|
322
|
+
function fullMatcher(scripts) {
|
|
323
|
+
const cls = scripts.map((s) => `\\p{Script=${s}}`).join("");
|
|
324
|
+
return new RegExp(`^[${BASELINE}${cls}]*$`, "u");
|
|
325
|
+
}
|
|
326
|
+
function charMatcher(scripts) {
|
|
327
|
+
const cls = scripts.map((s) => `\\p{Script=${s}}`).join("");
|
|
328
|
+
return new RegExp(`[${BASELINE}${cls}]`, "u");
|
|
329
|
+
}
|
|
330
|
+
function offendingSample(str, scripts) {
|
|
331
|
+
const ok = charMatcher(scripts);
|
|
332
|
+
const bad = [];
|
|
333
|
+
for (const ch of str) {
|
|
334
|
+
if (!ok.test(ch)) bad.push(ch);
|
|
335
|
+
if (bad.length >= 8) break;
|
|
336
|
+
}
|
|
337
|
+
return bad.join("");
|
|
338
|
+
}
|
|
339
|
+
function stripDisallowed(str, scripts) {
|
|
340
|
+
const ok = charMatcher(scripts);
|
|
341
|
+
let out = "";
|
|
342
|
+
for (const ch of str) if (ok.test(ch)) out += ch;
|
|
343
|
+
return out;
|
|
344
|
+
}
|
|
345
|
+
function enforceScript(value, field, descriptor) {
|
|
346
|
+
const opt = descriptor.options;
|
|
347
|
+
if (!opt.script) return { value, warnings: [] };
|
|
348
|
+
const mode = opt.onScriptViolation ?? "reject";
|
|
349
|
+
const warnings = [];
|
|
350
|
+
let out = value;
|
|
351
|
+
for (const [locale, raw] of Object.entries(value)) {
|
|
352
|
+
if (typeof raw !== "string") continue;
|
|
353
|
+
const allowed = allowedFor(descriptor, locale);
|
|
354
|
+
if (fullMatcher(allowed).test(raw)) continue;
|
|
355
|
+
const sample = offendingSample(raw, allowed);
|
|
356
|
+
if (mode === "reject") {
|
|
357
|
+
throw new ScriptViolationError(field, locale, allowed, sample);
|
|
358
|
+
}
|
|
359
|
+
warnings.push({ field, locale, expected: allowed, sample });
|
|
360
|
+
if (mode === "filter") {
|
|
361
|
+
if (out === value) out = { ...value };
|
|
362
|
+
out[locale] = stripDisallowed(raw, allowed);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return { value: out, warnings };
|
|
366
|
+
}
|
|
367
|
+
|
|
238
368
|
// src/i18n/core.ts
|
|
239
369
|
function i18nText(options) {
|
|
240
370
|
return { _noydbI18nText: true, options };
|
|
@@ -329,6 +459,10 @@ function resolveI18nText(value, locale, fallback, field, opts) {
|
|
|
329
459
|
if (policy === "substitute") {
|
|
330
460
|
const subHit = pickFromChain(value, toChain(opts?.substitute));
|
|
331
461
|
if (subHit !== void 0) return subHit;
|
|
462
|
+
if (opts?.smartSubstitute) {
|
|
463
|
+
const smartHit = pickNearestScript(value, locale);
|
|
464
|
+
if (smartHit !== void 0) return smartHit;
|
|
465
|
+
}
|
|
332
466
|
}
|
|
333
467
|
if (policy === "throw") {
|
|
334
468
|
throw new LocaleNotSpecifiedError(
|
|
@@ -338,6 +472,18 @@ function resolveI18nText(value, locale, fallback, field, opts) {
|
|
|
338
472
|
}
|
|
339
473
|
return null;
|
|
340
474
|
}
|
|
475
|
+
function pickNearestScript(value, target) {
|
|
476
|
+
const targetScript = inferScripts(target)[0] ?? "Latin";
|
|
477
|
+
let best;
|
|
478
|
+
for (const [loc, v] of Object.entries(value)) {
|
|
479
|
+
if (typeof v !== "string" || v === "") continue;
|
|
480
|
+
const s = inferScripts(loc)[0] ?? "Latin";
|
|
481
|
+
const score = s === targetScript ? 0 : s === "Latin" ? 1 : 2;
|
|
482
|
+
if (best === void 0 || score < best.score) best = { score, v };
|
|
483
|
+
if (score === 0) break;
|
|
484
|
+
}
|
|
485
|
+
return best?.v;
|
|
486
|
+
}
|
|
341
487
|
function getAtPath(obj, path) {
|
|
342
488
|
const arrayIdx = path.indexOf("[].");
|
|
343
489
|
if (arrayIdx !== -1) {
|
|
@@ -412,10 +558,11 @@ function applyI18nLocale(record, i18nFields, locale, fallback, layer = "read") {
|
|
|
412
558
|
if (fieldNames.length === 0) return record;
|
|
413
559
|
let result = record;
|
|
414
560
|
for (const [field, descriptor] of Object.entries(i18nFields)) {
|
|
415
|
-
const { onMissing, substitute } = descriptor.options;
|
|
561
|
+
const { onMissing, substitute, smartSubstitute } = descriptor.options;
|
|
416
562
|
const opts = {
|
|
417
563
|
policy: resolvePolicy(onMissing, layer),
|
|
418
|
-
...substitute !== void 0 ? { substitute } : {}
|
|
564
|
+
...substitute !== void 0 ? { substitute } : {},
|
|
565
|
+
...smartSubstitute ? { smartSubstitute } : {}
|
|
419
566
|
};
|
|
420
567
|
result = applyAtPath(result, field, locale, fallback, opts);
|
|
421
568
|
}
|
|
@@ -967,136 +1114,6 @@ var DictionaryHandle = class {
|
|
|
967
1114
|
}
|
|
968
1115
|
};
|
|
969
1116
|
|
|
970
|
-
// src/i18n/script.ts
|
|
971
|
-
var LATIN_BASE = /* @__PURE__ */ new Set([
|
|
972
|
-
"en",
|
|
973
|
-
"fr",
|
|
974
|
-
"de",
|
|
975
|
-
"es",
|
|
976
|
-
"it",
|
|
977
|
-
"pt",
|
|
978
|
-
"nl",
|
|
979
|
-
"sv",
|
|
980
|
-
"no",
|
|
981
|
-
"da",
|
|
982
|
-
"fi",
|
|
983
|
-
"is",
|
|
984
|
-
"pl",
|
|
985
|
-
"cs",
|
|
986
|
-
"sk",
|
|
987
|
-
"hu",
|
|
988
|
-
"ro",
|
|
989
|
-
"hr",
|
|
990
|
-
"sl",
|
|
991
|
-
"et",
|
|
992
|
-
"lv",
|
|
993
|
-
"lt",
|
|
994
|
-
"tr",
|
|
995
|
-
"vi",
|
|
996
|
-
"id",
|
|
997
|
-
"ms",
|
|
998
|
-
"tl",
|
|
999
|
-
"sw",
|
|
1000
|
-
"af",
|
|
1001
|
-
"ca",
|
|
1002
|
-
"gl",
|
|
1003
|
-
"eu",
|
|
1004
|
-
"cy",
|
|
1005
|
-
"ga"
|
|
1006
|
-
]);
|
|
1007
|
-
var SCRIPT_TABLE = {
|
|
1008
|
-
th: ["Thai"],
|
|
1009
|
-
ko: ["Hangul", "Han"],
|
|
1010
|
-
ja: ["Han", "Hiragana", "Katakana"],
|
|
1011
|
-
zh: ["Han"],
|
|
1012
|
-
ar: ["Arabic"],
|
|
1013
|
-
fa: ["Arabic"],
|
|
1014
|
-
ur: ["Arabic"],
|
|
1015
|
-
ru: ["Cyrillic"],
|
|
1016
|
-
uk: ["Cyrillic"],
|
|
1017
|
-
bg: ["Cyrillic"],
|
|
1018
|
-
sr: ["Cyrillic"],
|
|
1019
|
-
he: ["Hebrew"],
|
|
1020
|
-
el: ["Greek"],
|
|
1021
|
-
hi: ["Devanagari"],
|
|
1022
|
-
ta: ["Tamil"],
|
|
1023
|
-
km: ["Khmer"],
|
|
1024
|
-
lo: ["Lao"],
|
|
1025
|
-
my: ["Myanmar"]
|
|
1026
|
-
};
|
|
1027
|
-
var SUBTAG_SCRIPTS = {
|
|
1028
|
-
Latn: ["Latin"],
|
|
1029
|
-
Cyrl: ["Cyrillic", "Latin"],
|
|
1030
|
-
Hans: ["Han", "Latin"],
|
|
1031
|
-
Hant: ["Han", "Latin"],
|
|
1032
|
-
Thai: ["Thai", "Latin"],
|
|
1033
|
-
Arab: ["Arabic", "Latin"]
|
|
1034
|
-
};
|
|
1035
|
-
function inferScripts(locale) {
|
|
1036
|
-
const parts = locale.split("-");
|
|
1037
|
-
const subtag = parts.find((t) => /^[A-Z][a-z]{3}$/.test(t));
|
|
1038
|
-
if (subtag && SUBTAG_SCRIPTS[subtag]) return SUBTAG_SCRIPTS[subtag];
|
|
1039
|
-
const base = (parts[0] ?? "").toLowerCase();
|
|
1040
|
-
if (LATIN_BASE.has(base)) return ["Latin"];
|
|
1041
|
-
const primary = SCRIPT_TABLE[base];
|
|
1042
|
-
if (primary) return [...primary, "Latin"];
|
|
1043
|
-
return ["Latin"];
|
|
1044
|
-
}
|
|
1045
|
-
function allowedFor(descriptor, locale) {
|
|
1046
|
-
const script = descriptor.options.script;
|
|
1047
|
-
if (script && script !== "auto") {
|
|
1048
|
-
const explicit = script[locale];
|
|
1049
|
-
if (explicit) return explicit;
|
|
1050
|
-
}
|
|
1051
|
-
return inferScripts(locale);
|
|
1052
|
-
}
|
|
1053
|
-
var BASELINE = String.raw`\p{White_Space}\p{Script=Common}\p{Script=Inherited}\p{Mark}`;
|
|
1054
|
-
function fullMatcher(scripts) {
|
|
1055
|
-
const cls = scripts.map((s) => `\\p{Script=${s}}`).join("");
|
|
1056
|
-
return new RegExp(`^[${BASELINE}${cls}]*$`, "u");
|
|
1057
|
-
}
|
|
1058
|
-
function charMatcher(scripts) {
|
|
1059
|
-
const cls = scripts.map((s) => `\\p{Script=${s}}`).join("");
|
|
1060
|
-
return new RegExp(`[${BASELINE}${cls}]`, "u");
|
|
1061
|
-
}
|
|
1062
|
-
function offendingSample(str, scripts) {
|
|
1063
|
-
const ok = charMatcher(scripts);
|
|
1064
|
-
const bad = [];
|
|
1065
|
-
for (const ch of str) {
|
|
1066
|
-
if (!ok.test(ch)) bad.push(ch);
|
|
1067
|
-
if (bad.length >= 8) break;
|
|
1068
|
-
}
|
|
1069
|
-
return bad.join("");
|
|
1070
|
-
}
|
|
1071
|
-
function stripDisallowed(str, scripts) {
|
|
1072
|
-
const ok = charMatcher(scripts);
|
|
1073
|
-
let out = "";
|
|
1074
|
-
for (const ch of str) if (ok.test(ch)) out += ch;
|
|
1075
|
-
return out;
|
|
1076
|
-
}
|
|
1077
|
-
function enforceScript(value, field, descriptor) {
|
|
1078
|
-
const opt = descriptor.options;
|
|
1079
|
-
if (!opt.script) return { value, warnings: [] };
|
|
1080
|
-
const mode = opt.onScriptViolation ?? "reject";
|
|
1081
|
-
const warnings = [];
|
|
1082
|
-
let out = value;
|
|
1083
|
-
for (const [locale, raw] of Object.entries(value)) {
|
|
1084
|
-
if (typeof raw !== "string") continue;
|
|
1085
|
-
const allowed = allowedFor(descriptor, locale);
|
|
1086
|
-
if (fullMatcher(allowed).test(raw)) continue;
|
|
1087
|
-
const sample = offendingSample(raw, allowed);
|
|
1088
|
-
if (mode === "reject") {
|
|
1089
|
-
throw new ScriptViolationError(field, locale, allowed, sample);
|
|
1090
|
-
}
|
|
1091
|
-
warnings.push({ field, locale, expected: allowed, sample });
|
|
1092
|
-
if (mode === "filter") {
|
|
1093
|
-
if (out === value) out = { ...value };
|
|
1094
|
-
out[locale] = stripDisallowed(raw, allowed);
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
return { value: out, warnings };
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
1117
|
// src/i18n/active.ts
|
|
1101
1118
|
function withI18n() {
|
|
1102
1119
|
return {
|