@noy-db/hub 0.2.0-pre.27 → 0.2.0-pre.29
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 +7 -0
- 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 -5
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +4 -4
- package/dist/attestation/index.d.ts +4 -4
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs +2 -2
- 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 +947 -6
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +6 -6
- package/dist/bundle/index.d.ts +6 -6
- package/dist/bundle/index.js +10 -10
- package/dist/{chunk-KA5A5CSD.js → chunk-2QDWRK3B.js} +5 -5
- package/dist/{chunk-6H4CAHMQ.js → chunk-2UT7HJJR.js} +4 -4
- package/dist/{chunk-E5TJAQS7.js → chunk-2ZYIN3BL.js} +2 -2
- package/dist/{chunk-CVTPNW2Y.js → chunk-45QJXLLS.js} +8 -8
- package/dist/{chunk-H4XFA2LM.js → chunk-4K4QKYK4.js} +3 -3
- package/dist/{chunk-RHVYFAVQ.js → chunk-4L6N56B4.js} +2 -2
- package/dist/{chunk-EW3H5Y7N.js → chunk-4YD7VZH4.js} +2 -2
- package/dist/{chunk-BOMH3637.js → chunk-553CK4E2.js} +3 -3
- package/dist/{chunk-I2RX62RX.js → chunk-5PTX7PKD.js} +4 -4
- package/dist/{chunk-7DDTFGXY.js → chunk-6BSYMFYS.js} +7 -7
- package/dist/chunk-6BSYMFYS.js.map +1 -0
- package/dist/{chunk-TESFHBOW.js → chunk-6EKRQ7QF.js} +3 -3
- package/dist/{chunk-Q7P4WHTL.js → chunk-7GPQPLGO.js} +2 -2
- package/dist/{chunk-AD6RNBAW.js → chunk-A7DNZVAV.js} +1 -1
- package/dist/chunk-A7DNZVAV.js.map +1 -0
- package/dist/{chunk-OMBPGXCL.js → chunk-ASIGWYRA.js} +2 -2
- package/dist/{chunk-IWGVH2RR.js → chunk-AWU4JF7C.js} +6 -6
- package/dist/{chunk-SKYBEGHB.js → chunk-BEZ2EV43.js} +2 -2
- package/dist/{chunk-EJJTUDNI.js → chunk-BITB3T5Z.js} +3 -3
- package/dist/{chunk-6M5JKTUQ.js → chunk-CIZDUAHI.js} +4 -4
- package/dist/{chunk-5EITJMUJ.js → chunk-CUPTCF4R.js} +5 -5
- package/dist/{chunk-FO5WEDKF.js → chunk-DEE4CRYN.js} +2 -2
- package/dist/{chunk-WVYL6HM7.js → chunk-DJO4OYCJ.js} +2 -2
- package/dist/{chunk-7JSP3E67.js → chunk-E2MDPPOC.js} +2 -2
- package/dist/{chunk-LX4CPLU6.js → chunk-FFKQ65YX.js} +2 -2
- package/dist/{chunk-VUUQYWF5.js → chunk-G7ALNCQH.js} +2 -2
- package/dist/{chunk-Z3BJF7SF.js → chunk-GGXN73NM.js} +36 -4
- package/dist/chunk-GGXN73NM.js.map +1 -0
- package/dist/{chunk-HAKEZTA7.js → chunk-JOJPBZSZ.js} +5 -5
- package/dist/{chunk-DDOYOMAD.js → chunk-JZ5DS4DP.js} +32 -2
- package/dist/chunk-JZ5DS4DP.js.map +1 -0
- package/dist/{chunk-C7UIT5XY.js → chunk-K6NVSHAH.js} +4 -4
- package/dist/{chunk-3BANVNDH.js → chunk-KJ3K5VZM.js} +2 -2
- package/dist/{chunk-ZW2YSN6G.js → chunk-LBILABKZ.js} +4 -4
- package/dist/{chunk-K6PCTYAH.js → chunk-LXKBG52H.js} +4 -4
- package/dist/{chunk-YYTM4U4J.js → chunk-MPIZQGFA.js} +2 -2
- package/dist/{chunk-SID2NJNF.js → chunk-MRJPSXPE.js} +3 -3
- package/dist/{chunk-J73KU4AE.js → chunk-MSMDDDDJ.js} +2 -2
- package/dist/{chunk-6ZKXFMUG.js → chunk-QBLPY44S.js} +3 -3
- package/dist/{chunk-PS6PSEZL.js → chunk-QGBBQKDS.js} +35 -5
- package/dist/chunk-QGBBQKDS.js.map +1 -0
- package/dist/{chunk-2NYVA6FW.js → chunk-QWJCNXH2.js} +3 -3
- package/dist/{chunk-KD253AI5.js → chunk-QXWJQ7UU.js} +23 -4
- package/dist/chunk-QXWJQ7UU.js.map +1 -0
- package/dist/{chunk-YRQPI67X.js → chunk-RCB6GWTC.js} +2 -2
- package/dist/{chunk-PFKAT4NT.js → chunk-REHF3HSJ.js} +5 -5
- package/dist/{chunk-FUDVHE2U.js → chunk-SAAJYSVV.js} +2 -2
- package/dist/{chunk-VJNV2GRF.js → chunk-SHJ3BRTZ.js} +5 -5
- package/dist/{chunk-BMDVFBCL.js → chunk-SQXTKZL7.js} +3 -3
- package/dist/{chunk-2KA3PDUR.js → chunk-TMUMMAWV.js} +2 -2
- package/dist/{chunk-DONPLWRC.js → chunk-TZGWI5AX.js} +4 -4
- package/dist/{chunk-KNJ7MK4B.js → chunk-UBF5JEOJ.js} +2 -2
- package/dist/{chunk-FJ3C3ELF.js → chunk-XAYDHD2O.js} +2 -2
- package/dist/{chunk-RRCRITDM.js → chunk-XYW2CSCI.js} +3 -3
- package/dist/{chunk-LXA2E3VI.js → chunk-ZCMOS4H2.js} +4 -4
- package/dist/{chunk-KSKKLVPA.js → chunk-ZDW22N3E.js} +822 -57
- package/dist/chunk-ZDW22N3E.js.map +1 -0
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-YBKBNPVM.js → crypto-G6XU2V2Y.js} +3 -3
- package/dist/{decrypt-partition-CptDdcCx.d.ts → decrypt-partition-5Gt0EcTc.d.ts} +1 -1
- package/dist/{decrypt-partition-DmkeOB4I.d.cts → decrypt-partition-DDSArPPW.d.cts} +1 -1
- package/dist/{delegation-4JSMM6BB.js → delegation-ZEH4LKEM.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +6 -6
- package/dist/derivations/index.d.ts +6 -6
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-Y9znMkQ2.d.ts → dev-unlock-BF9IhLPn.d.ts} +1 -1
- package/dist/{dev-unlock-DUTLA3Sc.d.cts → dev-unlock-CIkHrcRm.d.cts} +1 -1
- package/dist/{errors-Dwk2k1xY.d.ts → errors-BAWO5Z5a.d.cts} +25 -1
- package/dist/{errors-Dwk2k1xY.d.cts → errors-BAWO5Z5a.d.ts} +25 -1
- package/dist/executor-DWVP4BSJ.js +8 -0
- package/dist/executor-HB2YMIYC.js +12 -0
- package/dist/executor-HO3SIRSF.js +8 -0
- package/dist/{fanout-sidecar-OC4QVTS2.js → fanout-sidecar-BMT7I6FI.js} +2 -2
- package/dist/forget/index.js +4 -4
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +6 -6
- package/dist/guards/index.d.ts +6 -6
- package/dist/guards/index.js +3 -3
- package/dist/{hash-DFK7cGdo.d.cts → hash-DfhndFcd.d.cts} +1 -1
- package/dist/{hash-Btl9IvQS.d.ts → hash-Jl0qarQx.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +6 -6
- package/dist/history/index.d.ts +6 -6
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs +98 -1
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +5 -5
- package/dist/i18n/index.d.ts +5 -5
- package/dist/i18n/index.js +85 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-DoxKSsMj.d.cts → index-C1SC1EPe.d.cts} +19 -2
- package/dist/{index-CqzZml-D.d.cts → index-DPG2nFmT.d.cts} +28 -5
- package/dist/{index-wRwJVVJQ.d.ts → index-DcxTv3zx.d.ts} +28 -5
- package/dist/{index-LaexBi3v.d.ts → index-Ddm8D3Oo.d.ts} +19 -2
- package/dist/index.cjs +969 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +54 -47
- 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-FZRTVGRE.js +12 -0
- package/dist/kernel/index.cjs +33 -0
- package/dist/kernel/index.cjs.map +1 -1
- package/dist/kernel/index.d.cts +5 -5
- package/dist/kernel/index.d.ts +5 -5
- package/dist/kernel/index.js +9 -7
- package/dist/{ledger-XQ4KVFQ6.js → ledger-PMTR2Q62.js} +5 -5
- package/dist/materialized-views/index.cjs +7 -0
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +6 -6
- package/dist/materialized-views/index.d.ts +6 -6
- package/dist/materialized-views/index.js +8 -8
- package/dist/{mime-magic-OiPT1qed.d.ts → mime-magic-BOI-I5dq.d.ts} +1 -1
- package/dist/{mime-magic-Co4Pyj-O.d.cts → mime-magic-C0TM7FtF.d.cts} +1 -1
- package/dist/noydb-Y3ZLZNXA.js +39 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +6 -6
- package/dist/overlay-views/index.d.ts +6 -6
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +5 -5
- package/dist/periods/index.d.ts +5 -5
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-O6X6AUUS.js → public-envelope-S2S2VR3F.js} +4 -4
- package/dist/query/index.cjs +37 -0
- 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 -7
- package/dist/{registry-OUZ3VBZA.js → registry-53A55ZZE.js} +3 -3
- package/dist/registry-FKL4SLU4.js +8 -0
- package/dist/registry-IEU6ATO7.js +8 -0
- package/dist/{revoke-QJ2HUM4W.js → revoke-AOCAVR56.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 +6 -6
- package/dist/session/index.d.ts +6 -6
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +5 -5
- package/dist/shadow/index.d.ts +5 -5
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-SCJ6C6HQ.js → signer-JMK6W2Y6.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +5 -5
- package/dist/snapshots/index.d.ts +5 -5
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-KKCHF2VB.js → stale-IIIGOHBW.js} +2 -2
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +5 -5
- package/dist/store/index.d.ts +5 -5
- package/dist/store/index.js +2 -2
- package/dist/{strategy-D1zjEV3n.d.cts → strategy-8QGs5KQE.d.ts} +21 -2
- package/dist/{strategy-YQ1qJWyq.d.ts → strategy-mJExw4LQ.d.cts} +21 -2
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +4 -4
- package/dist/sync/index.d.ts +4 -4
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +5 -5
- package/dist/team/index.d.ts +5 -5
- package/dist/team/index.js +8 -8
- package/dist/{transition-guard-CJmb8O8q.d.ts → transition-guard-BixCDmBI.d.ts} +1 -1
- package/dist/{transition-guard-Dzj68JWC.d.cts → transition-guard-DnAlUf9R.d.cts} +1 -1
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +5 -5
- package/dist/tx/index.d.ts +5 -5
- package/dist/tx/index.js +3 -3
- package/dist/{types-CwrTuYFI.d.cts → types-Ba1vQ3AY.d.cts} +203 -6
- package/dist/{types-CkSWJt0H.d.ts → types-CUmZYJwN.d.ts} +203 -6
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-materialized-view-BVfcPlaE.d.ts → with-materialized-view-Bjx6VYPc.d.ts} +1 -1
- package/dist/{with-materialized-view-dPG213gd.d.cts → with-materialized-view-Z_aHLln6.d.cts} +1 -1
- package/dist/{with-overlayed-view-zYPQzGGh.d.ts → with-overlayed-view-B8PkL179.d.ts} +1 -1
- package/dist/{with-overlayed-view-CJ2UDBol.d.cts → with-overlayed-view-pTOFgHRq.d.cts} +1 -1
- package/dist/{with-rollup-BvaJefEs.d.ts → with-rollup-Cd3t01Mz.d.ts} +1 -1
- package/dist/{with-rollup-B_zbRi3f.d.cts → with-rollup-D9qQoffP.d.cts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-7DDTFGXY.js.map +0 -1
- package/dist/chunk-AD6RNBAW.js.map +0 -1
- package/dist/chunk-DDOYOMAD.js.map +0 -1
- package/dist/chunk-KD253AI5.js.map +0 -1
- package/dist/chunk-KSKKLVPA.js.map +0 -1
- package/dist/chunk-PS6PSEZL.js.map +0 -1
- package/dist/chunk-Z3BJF7SF.js.map +0 -1
- package/dist/executor-3SVNESQ3.js +0 -8
- package/dist/executor-BIW4FT5R.js +0 -12
- package/dist/executor-VEZUBJNQ.js +0 -8
- package/dist/issue-ZZ2XPOGP.js +0 -12
- package/dist/noydb-EY52NVH4.js +0 -39
- package/dist/registry-CMEVTOCN.js +0 -8
- package/dist/registry-XUBRO5JJ.js +0 -8
- /package/dist/{chunk-KA5A5CSD.js.map → chunk-2QDWRK3B.js.map} +0 -0
- /package/dist/{chunk-6H4CAHMQ.js.map → chunk-2UT7HJJR.js.map} +0 -0
- /package/dist/{chunk-E5TJAQS7.js.map → chunk-2ZYIN3BL.js.map} +0 -0
- /package/dist/{chunk-CVTPNW2Y.js.map → chunk-45QJXLLS.js.map} +0 -0
- /package/dist/{chunk-H4XFA2LM.js.map → chunk-4K4QKYK4.js.map} +0 -0
- /package/dist/{chunk-RHVYFAVQ.js.map → chunk-4L6N56B4.js.map} +0 -0
- /package/dist/{chunk-EW3H5Y7N.js.map → chunk-4YD7VZH4.js.map} +0 -0
- /package/dist/{chunk-BOMH3637.js.map → chunk-553CK4E2.js.map} +0 -0
- /package/dist/{chunk-I2RX62RX.js.map → chunk-5PTX7PKD.js.map} +0 -0
- /package/dist/{chunk-TESFHBOW.js.map → chunk-6EKRQ7QF.js.map} +0 -0
- /package/dist/{chunk-Q7P4WHTL.js.map → chunk-7GPQPLGO.js.map} +0 -0
- /package/dist/{chunk-OMBPGXCL.js.map → chunk-ASIGWYRA.js.map} +0 -0
- /package/dist/{chunk-IWGVH2RR.js.map → chunk-AWU4JF7C.js.map} +0 -0
- /package/dist/{chunk-SKYBEGHB.js.map → chunk-BEZ2EV43.js.map} +0 -0
- /package/dist/{chunk-EJJTUDNI.js.map → chunk-BITB3T5Z.js.map} +0 -0
- /package/dist/{chunk-6M5JKTUQ.js.map → chunk-CIZDUAHI.js.map} +0 -0
- /package/dist/{chunk-5EITJMUJ.js.map → chunk-CUPTCF4R.js.map} +0 -0
- /package/dist/{chunk-FO5WEDKF.js.map → chunk-DEE4CRYN.js.map} +0 -0
- /package/dist/{chunk-WVYL6HM7.js.map → chunk-DJO4OYCJ.js.map} +0 -0
- /package/dist/{chunk-7JSP3E67.js.map → chunk-E2MDPPOC.js.map} +0 -0
- /package/dist/{chunk-LX4CPLU6.js.map → chunk-FFKQ65YX.js.map} +0 -0
- /package/dist/{chunk-VUUQYWF5.js.map → chunk-G7ALNCQH.js.map} +0 -0
- /package/dist/{chunk-HAKEZTA7.js.map → chunk-JOJPBZSZ.js.map} +0 -0
- /package/dist/{chunk-C7UIT5XY.js.map → chunk-K6NVSHAH.js.map} +0 -0
- /package/dist/{chunk-3BANVNDH.js.map → chunk-KJ3K5VZM.js.map} +0 -0
- /package/dist/{chunk-ZW2YSN6G.js.map → chunk-LBILABKZ.js.map} +0 -0
- /package/dist/{chunk-K6PCTYAH.js.map → chunk-LXKBG52H.js.map} +0 -0
- /package/dist/{chunk-YYTM4U4J.js.map → chunk-MPIZQGFA.js.map} +0 -0
- /package/dist/{chunk-SID2NJNF.js.map → chunk-MRJPSXPE.js.map} +0 -0
- /package/dist/{chunk-J73KU4AE.js.map → chunk-MSMDDDDJ.js.map} +0 -0
- /package/dist/{chunk-6ZKXFMUG.js.map → chunk-QBLPY44S.js.map} +0 -0
- /package/dist/{chunk-2NYVA6FW.js.map → chunk-QWJCNXH2.js.map} +0 -0
- /package/dist/{chunk-YRQPI67X.js.map → chunk-RCB6GWTC.js.map} +0 -0
- /package/dist/{chunk-PFKAT4NT.js.map → chunk-REHF3HSJ.js.map} +0 -0
- /package/dist/{chunk-FUDVHE2U.js.map → chunk-SAAJYSVV.js.map} +0 -0
- /package/dist/{chunk-VJNV2GRF.js.map → chunk-SHJ3BRTZ.js.map} +0 -0
- /package/dist/{chunk-BMDVFBCL.js.map → chunk-SQXTKZL7.js.map} +0 -0
- /package/dist/{chunk-2KA3PDUR.js.map → chunk-TMUMMAWV.js.map} +0 -0
- /package/dist/{chunk-DONPLWRC.js.map → chunk-TZGWI5AX.js.map} +0 -0
- /package/dist/{chunk-KNJ7MK4B.js.map → chunk-UBF5JEOJ.js.map} +0 -0
- /package/dist/{chunk-FJ3C3ELF.js.map → chunk-XAYDHD2O.js.map} +0 -0
- /package/dist/{chunk-RRCRITDM.js.map → chunk-XYW2CSCI.js.map} +0 -0
- /package/dist/{chunk-LXA2E3VI.js.map → chunk-ZCMOS4H2.js.map} +0 -0
- /package/dist/{crypto-YBKBNPVM.js.map → crypto-G6XU2V2Y.js.map} +0 -0
- /package/dist/{delegation-4JSMM6BB.js.map → delegation-ZEH4LKEM.js.map} +0 -0
- /package/dist/{executor-3SVNESQ3.js.map → executor-DWVP4BSJ.js.map} +0 -0
- /package/dist/{executor-BIW4FT5R.js.map → executor-HB2YMIYC.js.map} +0 -0
- /package/dist/{executor-VEZUBJNQ.js.map → executor-HO3SIRSF.js.map} +0 -0
- /package/dist/{fanout-sidecar-OC4QVTS2.js.map → fanout-sidecar-BMT7I6FI.js.map} +0 -0
- /package/dist/{issue-ZZ2XPOGP.js.map → issue-FZRTVGRE.js.map} +0 -0
- /package/dist/{ledger-XQ4KVFQ6.js.map → ledger-PMTR2Q62.js.map} +0 -0
- /package/dist/{noydb-EY52NVH4.js.map → noydb-Y3ZLZNXA.js.map} +0 -0
- /package/dist/{public-envelope-O6X6AUUS.js.map → public-envelope-S2S2VR3F.js.map} +0 -0
- /package/dist/{registry-CMEVTOCN.js.map → registry-53A55ZZE.js.map} +0 -0
- /package/dist/{registry-OUZ3VBZA.js.map → registry-FKL4SLU4.js.map} +0 -0
- /package/dist/{registry-XUBRO5JJ.js.map → registry-IEU6ATO7.js.map} +0 -0
- /package/dist/{revoke-QJ2HUM4W.js.map → revoke-AOCAVR56.js.map} +0 -0
- /package/dist/{signer-SCJ6C6HQ.js.map → signer-JMK6W2Y6.js.map} +0 -0
- /package/dist/{stale-KKCHF2VB.js.map → stale-IIIGOHBW.js.map} +0 -0
package/dist/history/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { aV as HistoryStrategy, aW as NoydbStore, aX as HistoryOptions, aY as EncryptedEnvelope, aZ as PruneOptions } from '../types-
|
|
2
|
-
export { a_ as AppendInput, a$ as ChangeType, b0 as CollectionInstant, b1 as DiffEntry, b2 as JsonPatch, b3 as JsonPatchOp, b4 as LedgerStore, b5 as VaultEngine, b6 as VaultInstant, b7 as VerifyResult, b8 as applyPatch, b9 as computePatch, ba as diff, bb as formatDiff } from '../types-
|
|
1
|
+
import { aV as HistoryStrategy, aW as NoydbStore, aX as HistoryOptions, aY as EncryptedEnvelope, aZ as PruneOptions } from '../types-Ba1vQ3AY.cjs';
|
|
2
|
+
export { a_ as AppendInput, a$ as ChangeType, b0 as CollectionInstant, b1 as DiffEntry, b2 as JsonPatch, b3 as JsonPatchOp, b4 as LedgerStore, b5 as VaultEngine, b6 as VaultInstant, b7 as VerifyResult, b8 as applyPatch, b9 as computePatch, ba as diff, bb as formatDiff } from '../types-Ba1vQ3AY.cjs';
|
|
3
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-
|
|
4
|
+
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-DfhndFcd.cjs';
|
|
5
5
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
6
6
|
import '../predicate-BmhBSPCH.cjs';
|
|
7
|
-
import '../strategy-
|
|
8
|
-
import '../errors-
|
|
7
|
+
import '../strategy-mJExw4LQ.cjs';
|
|
8
|
+
import '../errors-BAWO5Z5a.cjs';
|
|
9
9
|
import '../strategy-BSxFXGzb.cjs';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-C1SC1EPe.cjs';
|
|
11
11
|
import '@noy-db/attestation';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/history/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { aV as HistoryStrategy, aW as NoydbStore, aX as HistoryOptions, aY as EncryptedEnvelope, aZ as PruneOptions } from '../types-
|
|
2
|
-
export { a_ as AppendInput, a$ as ChangeType, b0 as CollectionInstant, b1 as DiffEntry, b2 as JsonPatch, b3 as JsonPatchOp, b4 as LedgerStore, b5 as VaultEngine, b6 as VaultInstant, b7 as VerifyResult, b8 as applyPatch, b9 as computePatch, ba as diff, bb as formatDiff } from '../types-
|
|
1
|
+
import { aV as HistoryStrategy, aW as NoydbStore, aX as HistoryOptions, aY as EncryptedEnvelope, aZ as PruneOptions } from '../types-CUmZYJwN.js';
|
|
2
|
+
export { a_ as AppendInput, a$ as ChangeType, b0 as CollectionInstant, b1 as DiffEntry, b2 as JsonPatch, b3 as JsonPatchOp, b4 as LedgerStore, b5 as VaultEngine, b6 as VaultInstant, b7 as VerifyResult, b8 as applyPatch, b9 as computePatch, ba as diff, bb as formatDiff } from '../types-CUmZYJwN.js';
|
|
3
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-
|
|
4
|
+
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-Jl0qarQx.js';
|
|
5
5
|
import '../lazy-builder-ChSqcF5t.js';
|
|
6
6
|
import '../predicate-BmhBSPCH.js';
|
|
7
|
-
import '../strategy-
|
|
8
|
-
import '../errors-
|
|
7
|
+
import '../strategy-8QGs5KQE.js';
|
|
8
|
+
import '../errors-BAWO5Z5a.js';
|
|
9
9
|
import '../strategy-BSxFXGzb.js';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-Ddm8D3Oo.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-CIZDUAHI.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-2UT7HJJR.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-A7DNZVAV.js";
|
|
29
|
+
import "../chunk-E2MDPPOC.js";
|
|
30
|
+
import "../chunk-JZ5DS4DP.js";
|
|
31
31
|
|
|
32
32
|
// src/history/active.ts
|
|
33
33
|
function withHistory() {
|
package/dist/i18n/index.cjs
CHANGED
|
@@ -46,6 +46,7 @@ __export(i18n_exports, {
|
|
|
46
46
|
resolvePolicy: () => resolvePolicy,
|
|
47
47
|
setAtPathInPlace: () => setAtPathInPlace,
|
|
48
48
|
staticDict: () => staticDict,
|
|
49
|
+
stripI18nFilled: () => stripI18nFilled,
|
|
49
50
|
validateI18nTextValue: () => validateI18nTextValue,
|
|
50
51
|
withI18n: () => withI18n
|
|
51
52
|
});
|
|
@@ -342,13 +343,14 @@ function stripDisallowed(str, scripts) {
|
|
|
342
343
|
for (const ch of str) if (ok.test(ch)) out += ch;
|
|
343
344
|
return out;
|
|
344
345
|
}
|
|
345
|
-
function enforceScript(value, field, descriptor) {
|
|
346
|
+
function enforceScript(value, field, descriptor, exempt) {
|
|
346
347
|
const opt = descriptor.options;
|
|
347
348
|
if (!opt.script) return { value, warnings: [] };
|
|
348
349
|
const mode = opt.onScriptViolation ?? "reject";
|
|
349
350
|
const warnings = [];
|
|
350
351
|
let out = value;
|
|
351
352
|
for (const [locale, raw] of Object.entries(value)) {
|
|
353
|
+
if (exempt?.has(locale)) continue;
|
|
352
354
|
if (typeof raw !== "string") continue;
|
|
353
355
|
const allowed = allowedFor(descriptor, locale);
|
|
354
356
|
if (fullMatcher(allowed).test(raw)) continue;
|
|
@@ -367,8 +369,18 @@ function enforceScript(value, field, descriptor) {
|
|
|
367
369
|
|
|
368
370
|
// src/i18n/core.ts
|
|
369
371
|
function i18nText(options) {
|
|
372
|
+
if (options.densifyOnWrite === true && hasThrowPolicy(options.onMissing)) {
|
|
373
|
+
throw new Error(
|
|
374
|
+
`i18nText: densifyOnWrite cannot be combined with an explicit onMissing 'throw' policy \u2014 densify fills every empty slot, so a 'throw' would be unreachable. Remove the 'throw' policy or disable densifyOnWrite.`
|
|
375
|
+
);
|
|
376
|
+
}
|
|
370
377
|
return { _noydbI18nText: true, options };
|
|
371
378
|
}
|
|
379
|
+
function hasThrowPolicy(onMissing) {
|
|
380
|
+
if (onMissing === void 0) return false;
|
|
381
|
+
if (typeof onMissing === "string") return onMissing === "throw";
|
|
382
|
+
return Object.values(onMissing).includes("throw");
|
|
383
|
+
}
|
|
372
384
|
function isI18nTextDescriptor(x) {
|
|
373
385
|
return typeof x === "object" && x !== null && x._noydbI18nText === true;
|
|
374
386
|
}
|
|
@@ -566,8 +578,15 @@ function applyI18nLocale(record, i18nFields, locale, fallback, layer = "read") {
|
|
|
566
578
|
};
|
|
567
579
|
result = applyAtPath(result, field, locale, fallback, opts);
|
|
568
580
|
}
|
|
581
|
+
result = stripI18nFilled(result);
|
|
569
582
|
return result;
|
|
570
583
|
}
|
|
584
|
+
function stripI18nFilled(record) {
|
|
585
|
+
if (!Object.prototype.hasOwnProperty.call(record, "_i18nFilled")) return record;
|
|
586
|
+
const rest = { ...record };
|
|
587
|
+
delete rest._i18nFilled;
|
|
588
|
+
return rest;
|
|
589
|
+
}
|
|
571
590
|
|
|
572
591
|
// src/types.ts
|
|
573
592
|
var NOYDB_FORMAT_VERSION = 1;
|
|
@@ -1114,12 +1133,89 @@ var DictionaryHandle = class {
|
|
|
1114
1133
|
}
|
|
1115
1134
|
};
|
|
1116
1135
|
|
|
1136
|
+
// src/i18n/densify.ts
|
|
1137
|
+
var MARKER = "_i18nFilled";
|
|
1138
|
+
function priorFilled(prior, field) {
|
|
1139
|
+
if (!prior) return /* @__PURE__ */ new Set();
|
|
1140
|
+
const marker = prior[MARKER];
|
|
1141
|
+
return new Set(marker?.[field] ?? []);
|
|
1142
|
+
}
|
|
1143
|
+
function singleLeaf(record, field) {
|
|
1144
|
+
const leaves = getAtPath(record, field);
|
|
1145
|
+
if (leaves.length !== 1) return void 0;
|
|
1146
|
+
const leaf = leaves[0];
|
|
1147
|
+
if (!leaf || typeof leaf !== "object" || Array.isArray(leaf)) return void 0;
|
|
1148
|
+
return leaf;
|
|
1149
|
+
}
|
|
1150
|
+
function computeExemptFills(prior, incoming, fields) {
|
|
1151
|
+
const out = /* @__PURE__ */ new Map();
|
|
1152
|
+
if (!prior) return out;
|
|
1153
|
+
for (const field of Object.keys(fields)) {
|
|
1154
|
+
const filled = priorFilled(prior, field);
|
|
1155
|
+
if (filled.size === 0) continue;
|
|
1156
|
+
const priorLeaf = singleLeaf(prior, field);
|
|
1157
|
+
const incLeaf = singleLeaf(incoming, field);
|
|
1158
|
+
if (!priorLeaf || !incLeaf) continue;
|
|
1159
|
+
const exempt = /* @__PURE__ */ new Set();
|
|
1160
|
+
for (const loc of filled) {
|
|
1161
|
+
if (incLeaf[loc] !== void 0 && incLeaf[loc] !== "" && incLeaf[loc] === priorLeaf[loc]) {
|
|
1162
|
+
exempt.add(loc);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
if (exempt.size > 0) out.set(field, exempt);
|
|
1166
|
+
}
|
|
1167
|
+
return out;
|
|
1168
|
+
}
|
|
1169
|
+
function densify(record, prior, fields) {
|
|
1170
|
+
let marker = record[MARKER];
|
|
1171
|
+
for (const [field, descriptor] of Object.entries(fields)) {
|
|
1172
|
+
const leaf = singleLeaf(record, field);
|
|
1173
|
+
if (!leaf) continue;
|
|
1174
|
+
const { languages, substitute, smartSubstitute } = descriptor.options;
|
|
1175
|
+
const filledSet = priorFilled(prior, field);
|
|
1176
|
+
const priorLeaf = singleLeaf(prior ?? {}, field);
|
|
1177
|
+
const isUnchangedFill = (loc) => filledSet.has(loc) && priorLeaf?.[loc] !== void 0 && leaf[loc] === priorLeaf[loc];
|
|
1178
|
+
const authored = {};
|
|
1179
|
+
for (const [loc, val] of Object.entries(leaf)) {
|
|
1180
|
+
if (typeof val === "string" && val !== "" && !isUnchangedFill(loc)) authored[loc] = val;
|
|
1181
|
+
}
|
|
1182
|
+
const filled = [];
|
|
1183
|
+
for (const loc of languages) {
|
|
1184
|
+
if (authored[loc] !== void 0) continue;
|
|
1185
|
+
const sub = resolveI18nText(authored, loc, void 0, field, {
|
|
1186
|
+
policy: "substitute",
|
|
1187
|
+
substitute: substitute ?? ["any"],
|
|
1188
|
+
...smartSubstitute ? { smartSubstitute } : {}
|
|
1189
|
+
});
|
|
1190
|
+
if (typeof sub === "string" && sub !== "") {
|
|
1191
|
+
leaf[loc] = sub;
|
|
1192
|
+
filled.push(loc);
|
|
1193
|
+
} else if (isUnchangedFill(loc)) {
|
|
1194
|
+
delete leaf[loc];
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if (filled.length > 0) {
|
|
1198
|
+
marker ??= {};
|
|
1199
|
+
marker[field] = filled;
|
|
1200
|
+
} else if (marker) {
|
|
1201
|
+
delete marker[field];
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
if (marker && Object.keys(marker).length > 0) {
|
|
1205
|
+
record[MARKER] = marker;
|
|
1206
|
+
} else {
|
|
1207
|
+
delete record[MARKER];
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1117
1211
|
// src/i18n/active.ts
|
|
1118
1212
|
function withI18n() {
|
|
1119
1213
|
return {
|
|
1120
1214
|
applyI18nLocale,
|
|
1121
1215
|
validateI18nTextValue,
|
|
1122
1216
|
enforceScript,
|
|
1217
|
+
computeExemptFills,
|
|
1218
|
+
densify,
|
|
1123
1219
|
buildDictionaryHandle(opts) {
|
|
1124
1220
|
return new DictionaryHandle(
|
|
1125
1221
|
opts.adapter,
|
|
@@ -1164,6 +1260,7 @@ function withI18n() {
|
|
|
1164
1260
|
resolvePolicy,
|
|
1165
1261
|
setAtPathInPlace,
|
|
1166
1262
|
staticDict,
|
|
1263
|
+
stripI18nFilled,
|
|
1167
1264
|
validateI18nTextValue,
|
|
1168
1265
|
withI18n
|
|
1169
1266
|
});
|