@noy-db/hub 0.2.0-pre.7 → 0.2.0-pre.9
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.map +1 -1
- package/dist/aggregate/index.js +2 -2
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +2 -2
- package/dist/attestation/index.d.ts +2 -2
- package/dist/attestation/index.js +5 -5
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +3 -3
- package/dist/blobs/index.d.ts +3 -3
- package/dist/blobs/index.js +4 -4
- package/dist/bundle/index.cjs +255 -15
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +4 -4
- package/dist/bundle/index.d.ts +4 -4
- package/dist/bundle/index.js +8 -8
- package/dist/{chunk-AYRTGXF3.js → chunk-22DWZL57.js} +62 -26
- package/dist/chunk-22DWZL57.js.map +1 -0
- package/dist/{chunk-4EOVWJL6.js → chunk-2GLDA55J.js} +2 -2
- package/dist/{chunk-CBHPW77B.js → chunk-2WUSG3IT.js} +2 -2
- package/dist/{chunk-WBUG3324.js → chunk-3BFJOWSU.js} +2 -2
- package/dist/{chunk-7IH5FDXD.js → chunk-3YPCK6JX.js} +5 -5
- package/dist/{chunk-SYOSRZN4.js → chunk-53XBRIRT.js} +4 -4
- package/dist/{chunk-UPBZ7NVY.js → chunk-5T22KDPN.js} +4 -4
- package/dist/{chunk-KK44CQ5B.js → chunk-5XHKQ56N.js} +2 -2
- package/dist/{chunk-3O5FNO5O.js → chunk-6CME4UEK.js} +259 -50
- package/dist/chunk-6CME4UEK.js.map +1 -0
- package/dist/chunk-6STK5TQP.js +139 -0
- package/dist/chunk-6STK5TQP.js.map +1 -0
- package/dist/{chunk-REQJJIPP.js → chunk-B6PB7JLN.js} +23 -1
- package/dist/{chunk-REQJJIPP.js.map → chunk-B6PB7JLN.js.map} +1 -1
- package/dist/{chunk-2TXMTYWZ.js → chunk-BVRYKATC.js} +3 -3
- package/dist/{chunk-6ILPGZXZ.js → chunk-DE6GKS6G.js} +2 -2
- package/dist/{chunk-TS4FQPDD.js → chunk-DFMLEQZB.js} +2 -2
- package/dist/{chunk-3XCXUJTM.js → chunk-DJHHA6XH.js} +2 -2
- package/dist/{chunk-LSY46G55.js → chunk-DL3HWOQ5.js} +3 -3
- package/dist/{chunk-6MXGU2PW.js → chunk-DO7C2TOG.js} +2 -2
- package/dist/{chunk-N4CDTRDH.js → chunk-DONMZAD2.js} +3 -3
- package/dist/{chunk-HNC55FLJ.js → chunk-F3GDRNUT.js} +3 -3
- package/dist/{chunk-VZOZ3DBN.js → chunk-H2X3ISXG.js} +3 -3
- package/dist/{chunk-XZCBBZLS.js → chunk-HNRHLRDC.js} +2 -2
- package/dist/{chunk-22ESLVUM.js → chunk-I5FOWO4J.js} +2 -2
- package/dist/{chunk-O3JCRQT3.js → chunk-JWRVQKRZ.js} +3 -3
- package/dist/{chunk-CSHY53CZ.js → chunk-K3DK3NU5.js} +2 -2
- package/dist/{chunk-BNUCCUES.js → chunk-ML236QKC.js} +2 -2
- package/dist/{chunk-GZIDTXC4.js → chunk-NONAAENK.js} +2 -2
- package/dist/{chunk-JZDA2SRB.js → chunk-O3VZPBZG.js} +4 -4
- package/dist/{chunk-PJKGXUMG.js → chunk-OQ6PIGHA.js} +2 -2
- package/dist/{chunk-QYO6I7KK.js → chunk-PE2FR4J3.js} +3 -3
- package/dist/{chunk-YAMTXW77.js → chunk-PP6W64Y3.js} +2 -2
- package/dist/{chunk-HNFXKQD7.js → chunk-PX35GA7L.js} +4 -4
- package/dist/{chunk-OXCFFRF3.js → chunk-QEILDE6R.js} +2 -2
- package/dist/{chunk-4YVVF6JN.js → chunk-QODLLGQ7.js} +4 -4
- package/dist/{chunk-ASFE2X62.js → chunk-RAZ4OVLL.js} +2 -2
- package/dist/{chunk-WM5GFORS.js → chunk-SYMWGEET.js} +2 -2
- package/dist/{chunk-SLJQIBT7.js → chunk-T7JEBOGN.js} +2 -2
- package/dist/{chunk-OA6HE2RW.js → chunk-TFBP23BX.js} +3 -3
- package/dist/{chunk-GI6S5ZF2.js → chunk-U26HQ6KJ.js} +2 -2
- package/dist/{chunk-WMKCAN4H.js → chunk-VTKGMEPP.js} +2 -2
- package/dist/{chunk-BRZFN354.js → chunk-WPLVTJ5D.js} +3 -3
- package/dist/{chunk-DCP4L4SH.js → chunk-XJFLDA7A.js} +2 -2
- package/dist/{chunk-BE5ZALMB.js → chunk-ZYWZWG6G.js} +4 -4
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +3 -3
- package/dist/consent/index.d.ts +3 -3
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-TRZ5BJMY.js → crypto-HTZ4FJOP.js} +3 -3
- package/dist/{delegation-TLZTK2XW.js → delegation-RI54P6I5.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +4 -4
- package/dist/derivations/index.d.ts +4 -4
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-ClAEZQC4.d.ts → dev-unlock-B4kDxep_.d.ts} +1 -1
- package/dist/{dev-unlock-L3z34v0J.d.cts → dev-unlock-BIoEFbwm.d.cts} +1 -1
- package/dist/executor-5PNY7LGW.js +8 -0
- package/dist/executor-B4QIYGZX.js +8 -0
- package/dist/executor-BWXXDQ7K.js +11 -0
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +4 -4
- package/dist/guards/index.d.ts +4 -4
- package/dist/guards/index.js +3 -3
- package/dist/{hash-M6-JI3Yu.d.cts → hash-DdpVypUp.d.cts} +1 -1
- package/dist/{hash-B3lV6lw3.d.ts → hash-HJqD14vS.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +4 -4
- package/dist/history/index.d.ts +4 -4
- package/dist/history/index.js +4 -4
- package/dist/i18n/index.cjs +217 -22
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +15 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-vB43MAt4.d.cts → index-4fBVt8j9.d.cts} +21 -1
- package/dist/{index-CmWQyC4e.d.ts → index-D8I_pyJD.d.ts} +21 -1
- package/dist/index.cjs +439 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +48 -38
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/issue-VGDPP4B5.js +12 -0
- package/dist/{ledger-SQVVE2DR.js → ledger-TMRZYNVJ.js} +4 -4
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +5 -5
- package/dist/materialized-views/index.d.ts +5 -5
- package/dist/materialized-views/index.js +6 -6
- package/dist/noydb-G725ZSZG.js +34 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +4 -4
- package/dist/overlay-views/index.d.ts +4 -4
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +3 -3
- package/dist/periods/index.d.ts +3 -3
- package/dist/periods/index.js +4 -4
- package/dist/{public-envelope-BXPXMN3U.js → public-envelope-BW6OXORV.js} +3 -3
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +3 -3
- package/dist/registry-3QP3YKQS.js +8 -0
- package/dist/{registry-4R4IURUM.js → registry-OJIOSBV6.js} +3 -3
- package/dist/registry-USRVT6YF.js +8 -0
- package/dist/{revoke-Y7UDOXGH.js → revoke-JCC7N56X.js} +5 -5
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +4 -4
- package/dist/session/index.d.ts +4 -4
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +3 -3
- package/dist/shadow/index.d.ts +3 -3
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-UD2ZSVDJ.js → signer-72QAUSVW.js} +4 -4
- package/dist/snapshots/index.cjs +37 -3
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +13 -6
- package/dist/snapshots/index.d.ts +13 -6
- package/dist/snapshots/index.js +40 -6
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-F4V5E7ZK.js → stale-6ZDBTQT7.js} +2 -2
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +3 -3
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js +2 -2
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +2 -2
- package/dist/sync/index.d.ts +2 -2
- package/dist/sync/index.js +3 -3
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +3 -3
- package/dist/team/index.d.ts +3 -3
- package/dist/team/index.js +7 -7
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +3 -3
- package/dist/tx/index.d.ts +3 -3
- package/dist/tx/index.js +3 -3
- package/dist/{types-DT7cXRHq.d.ts → types-Df28QFKb.d.ts} +216 -5
- package/dist/{types-r-y7TIqj.d.cts → types-DyXYr8rE.d.cts} +216 -5
- package/dist/{ulid-Dt55yn4s.d.ts → ulid-CJ8RzRrm.d.ts} +1 -1
- package/dist/{ulid-BkW3mLlz.d.cts → ulid-Drr7ykr6.d.cts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-derivation-D_Ids_H6.d.ts → with-derivation-DFnFByiQ.d.ts} +1 -1
- package/dist/{with-derivation-DB63Po2m.d.cts → with-derivation-DU3Sjazm.d.cts} +1 -1
- package/dist/{with-guard-BHThLppa.d.cts → with-guard-ByyxmEe7.d.cts} +1 -1
- package/dist/{with-guard-BJwdc0s6.d.ts → with-guard-qube6BMI.d.ts} +1 -1
- package/dist/{with-materialized-view-D-CRVSDX.d.ts → with-materialized-view-BLkQxoQN.d.ts} +1 -1
- package/dist/{with-materialized-view-BJmJ-FrO.d.cts → with-materialized-view-BmEToIR1.d.cts} +1 -1
- package/dist/{with-overlayed-view-zePNtUSq.d.cts → with-overlayed-view-BMsQQbWm.d.cts} +1 -1
- package/dist/{with-overlayed-view-CNf6GbDG.d.ts → with-overlayed-view-CRsSEwHR.d.ts} +1 -1
- package/package.json +5 -4
- package/dist/chunk-3O5FNO5O.js.map +0 -1
- package/dist/chunk-AYRTGXF3.js.map +0 -1
- package/dist/executor-HAVRTQN4.js +0 -11
- package/dist/executor-V3DKOADS.js +0 -8
- package/dist/executor-XO4M4243.js +0 -8
- package/dist/issue-EJKUQ6FA.js +0 -12
- package/dist/noydb-MK4UQ626.js +0 -34
- package/dist/registry-GPBLCHG7.js +0 -8
- package/dist/registry-ZON5HNIV.js +0 -8
- /package/dist/{chunk-4EOVWJL6.js.map → chunk-2GLDA55J.js.map} +0 -0
- /package/dist/{chunk-CBHPW77B.js.map → chunk-2WUSG3IT.js.map} +0 -0
- /package/dist/{chunk-WBUG3324.js.map → chunk-3BFJOWSU.js.map} +0 -0
- /package/dist/{chunk-7IH5FDXD.js.map → chunk-3YPCK6JX.js.map} +0 -0
- /package/dist/{chunk-SYOSRZN4.js.map → chunk-53XBRIRT.js.map} +0 -0
- /package/dist/{chunk-UPBZ7NVY.js.map → chunk-5T22KDPN.js.map} +0 -0
- /package/dist/{chunk-KK44CQ5B.js.map → chunk-5XHKQ56N.js.map} +0 -0
- /package/dist/{chunk-2TXMTYWZ.js.map → chunk-BVRYKATC.js.map} +0 -0
- /package/dist/{chunk-6ILPGZXZ.js.map → chunk-DE6GKS6G.js.map} +0 -0
- /package/dist/{chunk-TS4FQPDD.js.map → chunk-DFMLEQZB.js.map} +0 -0
- /package/dist/{chunk-3XCXUJTM.js.map → chunk-DJHHA6XH.js.map} +0 -0
- /package/dist/{chunk-LSY46G55.js.map → chunk-DL3HWOQ5.js.map} +0 -0
- /package/dist/{chunk-6MXGU2PW.js.map → chunk-DO7C2TOG.js.map} +0 -0
- /package/dist/{chunk-N4CDTRDH.js.map → chunk-DONMZAD2.js.map} +0 -0
- /package/dist/{chunk-HNC55FLJ.js.map → chunk-F3GDRNUT.js.map} +0 -0
- /package/dist/{chunk-VZOZ3DBN.js.map → chunk-H2X3ISXG.js.map} +0 -0
- /package/dist/{chunk-XZCBBZLS.js.map → chunk-HNRHLRDC.js.map} +0 -0
- /package/dist/{chunk-22ESLVUM.js.map → chunk-I5FOWO4J.js.map} +0 -0
- /package/dist/{chunk-O3JCRQT3.js.map → chunk-JWRVQKRZ.js.map} +0 -0
- /package/dist/{chunk-CSHY53CZ.js.map → chunk-K3DK3NU5.js.map} +0 -0
- /package/dist/{chunk-BNUCCUES.js.map → chunk-ML236QKC.js.map} +0 -0
- /package/dist/{chunk-GZIDTXC4.js.map → chunk-NONAAENK.js.map} +0 -0
- /package/dist/{chunk-JZDA2SRB.js.map → chunk-O3VZPBZG.js.map} +0 -0
- /package/dist/{chunk-PJKGXUMG.js.map → chunk-OQ6PIGHA.js.map} +0 -0
- /package/dist/{chunk-QYO6I7KK.js.map → chunk-PE2FR4J3.js.map} +0 -0
- /package/dist/{chunk-YAMTXW77.js.map → chunk-PP6W64Y3.js.map} +0 -0
- /package/dist/{chunk-HNFXKQD7.js.map → chunk-PX35GA7L.js.map} +0 -0
- /package/dist/{chunk-OXCFFRF3.js.map → chunk-QEILDE6R.js.map} +0 -0
- /package/dist/{chunk-4YVVF6JN.js.map → chunk-QODLLGQ7.js.map} +0 -0
- /package/dist/{chunk-ASFE2X62.js.map → chunk-RAZ4OVLL.js.map} +0 -0
- /package/dist/{chunk-WM5GFORS.js.map → chunk-SYMWGEET.js.map} +0 -0
- /package/dist/{chunk-SLJQIBT7.js.map → chunk-T7JEBOGN.js.map} +0 -0
- /package/dist/{chunk-OA6HE2RW.js.map → chunk-TFBP23BX.js.map} +0 -0
- /package/dist/{chunk-GI6S5ZF2.js.map → chunk-U26HQ6KJ.js.map} +0 -0
- /package/dist/{chunk-WMKCAN4H.js.map → chunk-VTKGMEPP.js.map} +0 -0
- /package/dist/{chunk-BRZFN354.js.map → chunk-WPLVTJ5D.js.map} +0 -0
- /package/dist/{chunk-DCP4L4SH.js.map → chunk-XJFLDA7A.js.map} +0 -0
- /package/dist/{chunk-BE5ZALMB.js.map → chunk-ZYWZWG6G.js.map} +0 -0
- /package/dist/{crypto-TRZ5BJMY.js.map → crypto-HTZ4FJOP.js.map} +0 -0
- /package/dist/{delegation-TLZTK2XW.js.map → delegation-RI54P6I5.js.map} +0 -0
- /package/dist/{executor-HAVRTQN4.js.map → executor-5PNY7LGW.js.map} +0 -0
- /package/dist/{executor-V3DKOADS.js.map → executor-B4QIYGZX.js.map} +0 -0
- /package/dist/{executor-XO4M4243.js.map → executor-BWXXDQ7K.js.map} +0 -0
- /package/dist/{issue-EJKUQ6FA.js.map → issue-VGDPP4B5.js.map} +0 -0
- /package/dist/{ledger-SQVVE2DR.js.map → ledger-TMRZYNVJ.js.map} +0 -0
- /package/dist/{noydb-MK4UQ626.js.map → noydb-G725ZSZG.js.map} +0 -0
- /package/dist/{public-envelope-BXPXMN3U.js.map → public-envelope-BW6OXORV.js.map} +0 -0
- /package/dist/{registry-4R4IURUM.js.map → registry-3QP3YKQS.js.map} +0 -0
- /package/dist/{registry-GPBLCHG7.js.map → registry-OJIOSBV6.js.map} +0 -0
- /package/dist/{registry-ZON5HNIV.js.map → registry-USRVT6YF.js.map} +0 -0
- /package/dist/{revoke-Y7UDOXGH.js.map → revoke-JCC7N56X.js.map} +0 -0
- /package/dist/{signer-UD2ZSVDJ.js.map → signer-72QAUSVW.js.map} +0 -0
- /package/dist/{stale-F4V5E7ZK.js.map → stale-6ZDBTQT7.js.map} +0 -0
package/dist/i18n/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as I18nStrategy } from '../types-
|
|
2
|
-
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as
|
|
3
|
-
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, T as TranslatorNotConfiguredError } from '../index-
|
|
1
|
+
import { I as I18nStrategy } from '../types-DyXYr8rE.cjs';
|
|
2
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-DyXYr8rE.cjs';
|
|
3
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, T as TranslatorNotConfiguredError } from '../index-4fBVt8j9.cjs';
|
|
4
4
|
import '../lazy-builder-wY4pMCEe.cjs';
|
|
5
5
|
import '../predicate-BSAGEyu5.cjs';
|
|
6
6
|
import '../strategy-DSTrsZ8t.cjs';
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as I18nStrategy } from '../types-
|
|
2
|
-
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as
|
|
3
|
-
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, T as TranslatorNotConfiguredError } from '../index-
|
|
1
|
+
import { I as I18nStrategy } from '../types-Df28QFKb.js';
|
|
2
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-Df28QFKb.js';
|
|
3
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, T as TranslatorNotConfiguredError } from '../index-D8I_pyJD.js';
|
|
4
4
|
import '../lazy-builder-7tIpFyWN.js';
|
|
5
5
|
import '../predicate-BSAGEyu5.js';
|
|
6
6
|
import '../strategy-DSTrsZ8t.js';
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
enforceScript,
|
|
3
|
+
inferScripts
|
|
4
|
+
} from "../chunk-6STK5TQP.js";
|
|
1
5
|
import {
|
|
2
6
|
DICT_COLLECTION_PREFIX,
|
|
3
7
|
DictionaryHandle,
|
|
@@ -10,27 +14,30 @@ import {
|
|
|
10
14
|
isDictKeyDescriptor,
|
|
11
15
|
isI18nTextDescriptor,
|
|
12
16
|
resolveI18nText,
|
|
17
|
+
resolvePolicy,
|
|
13
18
|
setAtPathInPlace,
|
|
14
19
|
validateI18nTextValue
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-22DWZL57.js";
|
|
21
|
+
import "../chunk-DONMZAD2.js";
|
|
17
22
|
import "../chunk-Z6FNBOTC.js";
|
|
18
23
|
import "../chunk-WIRRPTFH.js";
|
|
19
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-PP6W64Y3.js";
|
|
20
25
|
import {
|
|
21
26
|
DictKeyInUseError,
|
|
22
27
|
DictKeyMissingError,
|
|
23
28
|
LocaleNotSpecifiedError,
|
|
24
29
|
MissingTranslationError,
|
|
25
30
|
ReservedCollectionNameError,
|
|
31
|
+
ScriptViolationError,
|
|
26
32
|
TranslatorNotConfiguredError
|
|
27
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-B6PB7JLN.js";
|
|
28
34
|
|
|
29
35
|
// src/i18n/active.ts
|
|
30
36
|
function withI18n() {
|
|
31
37
|
return {
|
|
32
38
|
applyI18nLocale,
|
|
33
39
|
validateI18nTextValue,
|
|
40
|
+
enforceScript,
|
|
34
41
|
buildDictionaryHandle(opts) {
|
|
35
42
|
return new DictionaryHandle(
|
|
36
43
|
opts.adapter,
|
|
@@ -55,16 +62,20 @@ export {
|
|
|
55
62
|
LocaleNotSpecifiedError,
|
|
56
63
|
MissingTranslationError,
|
|
57
64
|
ReservedCollectionNameError,
|
|
65
|
+
ScriptViolationError,
|
|
58
66
|
TranslatorNotConfiguredError,
|
|
59
67
|
applyI18nLocale,
|
|
60
68
|
dictCollectionName,
|
|
61
69
|
dictKey,
|
|
70
|
+
enforceScript,
|
|
62
71
|
getAtPath,
|
|
63
72
|
i18nText,
|
|
73
|
+
inferScripts,
|
|
64
74
|
isDictCollectionName,
|
|
65
75
|
isDictKeyDescriptor,
|
|
66
76
|
isI18nTextDescriptor,
|
|
67
77
|
resolveI18nText,
|
|
78
|
+
resolvePolicy,
|
|
68
79
|
setAtPathInPlace,
|
|
69
80
|
validateI18nTextValue,
|
|
70
81
|
withI18n
|
package/dist/i18n/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/i18n/active.ts"],"sourcesContent":["/**\n * Active i18n strategy — `withI18n()` returns the real implementation\n * that wires multi-locale resolution, i18nText validation, and the\n * `DictionaryHandle` for `dictKey` fields into the core read/write\n * paths.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withI18n } from '@noy-db/hub/i18n'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * i18nStrategy: withI18n(),\n * })\n * ```\n *\n * The factory delegates to the existing `core.ts` and `dictionary.ts`\n * modules. Splitting the import chain through this file is what lets\n * tsup tree-shake the `~854 LOC` of dictionary + locale resolution\n * out of the default bundle when no `withI18n()` import is present.\n *\n * @public\n */\n\nimport type { I18nStrategy, BuildDictionaryHandleOptions } from './strategy.js'\nimport { applyI18nLocale, validateI18nTextValue } from './core.js'\nimport { DictionaryHandle } from './dictionary.js'\n\nexport function withI18n(): I18nStrategy {\n return {\n applyI18nLocale,\n validateI18nTextValue,\n buildDictionaryHandle<Keys extends string = string>(\n opts: BuildDictionaryHandleOptions<Keys>,\n ): DictionaryHandle<Keys> {\n return new DictionaryHandle<Keys>(\n opts.adapter,\n opts.compartmentName,\n opts.dictionaryName,\n opts.keyring,\n opts.getDEK,\n opts.encrypted,\n opts.ledger,\n opts.options,\n opts.findAndUpdateReferences,\n opts.emitter,\n )\n },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/i18n/active.ts"],"sourcesContent":["/**\n * Active i18n strategy — `withI18n()` returns the real implementation\n * that wires multi-locale resolution, i18nText validation, and the\n * `DictionaryHandle` for `dictKey` fields into the core read/write\n * paths.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withI18n } from '@noy-db/hub/i18n'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * i18nStrategy: withI18n(),\n * })\n * ```\n *\n * The factory delegates to the existing `core.ts` and `dictionary.ts`\n * modules. Splitting the import chain through this file is what lets\n * tsup tree-shake the `~854 LOC` of dictionary + locale resolution\n * out of the default bundle when no `withI18n()` import is present.\n *\n * @public\n */\n\nimport type { I18nStrategy, BuildDictionaryHandleOptions } from './strategy.js'\nimport { applyI18nLocale, validateI18nTextValue } from './core.js'\nimport { enforceScript } from './script.js'\nimport { DictionaryHandle } from './dictionary.js'\n\nexport function withI18n(): I18nStrategy {\n return {\n applyI18nLocale,\n validateI18nTextValue,\n enforceScript,\n buildDictionaryHandle<Keys extends string = string>(\n opts: BuildDictionaryHandleOptions<Keys>,\n ): DictionaryHandle<Keys> {\n return new DictionaryHandle<Keys>(\n opts.adapter,\n opts.compartmentName,\n opts.dictionaryName,\n opts.keyring,\n opts.getDEK,\n opts.encrypted,\n opts.ledger,\n opts.options,\n opts.findAndUpdateReferences,\n opts.emitter,\n )\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCO,SAAS,WAAyB;AACvC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,sBACE,MACwB;AACxB,aAAO,IAAI;AAAA,QACT,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,MACP;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -796,6 +796,26 @@ declare class LocaleNotSpecifiedError extends NoydbError {
|
|
|
796
796
|
readonly field: string;
|
|
797
797
|
constructor(field: string, message?: string);
|
|
798
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
* Thrown at write time when an `i18nText` slot's value contains
|
|
801
|
+
* characters outside the script set allowed for that locale, and the
|
|
802
|
+
* field's `onScriptViolation` policy is `'reject'` (the default).
|
|
803
|
+
*
|
|
804
|
+
* Distinct from {@link MissingTranslationError} (write-shape) and
|
|
805
|
+
* {@link LocaleNotSpecifiedError} (read-hole) so callers can tell a
|
|
806
|
+
* wrong-script value from a missing one.
|
|
807
|
+
*/
|
|
808
|
+
declare class ScriptViolationError extends NoydbError {
|
|
809
|
+
/** The field whose value violated its script constraint. */
|
|
810
|
+
readonly field: string;
|
|
811
|
+
/** The locale slot (e.g. `'en'`) that was checked. */
|
|
812
|
+
readonly locale: string;
|
|
813
|
+
/** The Unicode scripts allowed for this slot. */
|
|
814
|
+
readonly expected: readonly string[];
|
|
815
|
+
/** A short sample of the offending characters, for diagnostics. */
|
|
816
|
+
readonly sample: string;
|
|
817
|
+
constructor(field: string, locale: string, expected: readonly string[], sample: string, message?: string);
|
|
818
|
+
}
|
|
799
819
|
/**
|
|
800
820
|
* Thrown when a collection has an `i18nText` field with
|
|
801
821
|
* `autoTranslate: true` but no `plaintextTranslator` was configured
|
|
@@ -2364,4 +2384,4 @@ declare class ScanBuilder<T> implements AsyncIterable<T> {
|
|
|
2364
2384
|
private recordMatches;
|
|
2365
2385
|
}
|
|
2366
2386
|
|
|
2367
|
-
export {
|
|
2387
|
+
export { ImportCapabilityError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, ConflictError as C, DictKeyInUseError as D, CrossJoinSourceUnknownError as E, FieldFrozenError as F, CrossJoinTooLargeError as G, DEFAULT_CROSS_JOIN_MAX_ROWS as H, InvariantError as I, DEFAULT_JOIN_MAX_ROWS as J, DanglingReferenceError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, Query as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, DecryptionError as U, DelegationTargetMissingError as V, DirectoryDisabledError as W, ElevationExpiredError as X, ExportCapabilityError as Y, FilenameSanitizationError as Z, GroupCardinalityError as _, DictKeyMissingError as a, IndexRequiredError as a0, IndexWriteFailureError as a1, InvalidKeyError as a2, type JoinContext as a3, type JoinLeg as a4, type JoinStrategy as a5, JoinTooLargeError as a6, type JoinableSource as a7, KeyringCorruptError as a8, KeyringExpiredError as a9, type ScanPageProvider as aA, SchemaFenceError as aB, SchemaLockedError as aC, SchemaUpdateError as aD, SchemaValidationError as aE, StoreCapabilityError as aF, TamperedError as aG, TierDemoteDeniedError as aH, TierNotGrantedError as aI, ValidationError as aJ, applyJoins as aK, buildLiveQuery as aL, executePlan as aM, ref as aN, resetJoinWarnings as aO, LedgerContentionError as aa, type LiveQuery as ab, type LiveUpstream as ac, MigrationRequiredError as ad, NetworkError as ae, NoAccessError as af, NonAdditiveSchemaChangeError as ag, NotFoundError as ah, type OrderBy as ai, PathEscapeError as aj, PeriodClosedError as ak, PermissionDeniedError as al, PrivilegeEscalationError as am, type QueryPlan as an, type QuerySource as ao, QuiesceTimeoutError as ap, ReadOnlyAtInstantError as aq, ReadOnlyError as ar, ReadOnlyFrameError as as, type RefDescriptor as at, RefIntegrityError as au, type RefMode as av, RefRegistry as aw, RefScopeError as ax, type RefViolation as ay, ScanBuilder as az, SessionExpiredError as b, SessionNotFoundError as c, SessionPolicyError as d, RecordLockedError as e, SnapshotNotFoundError as f, DerivationCapExceededError as g, DerivationCycleError as h, DerivationDepthError as i, DerivationOutputShapeError as j, DerivationOutputUnknownError as k, OverlayCollectionUnavailableError as l, OverlayIdMismatchError as m, OverlayNameCollisionError as n, AttestationError as o, AdoptionStateError as p, BackupLedgerError as q, BundleIntegrityError as r, BundleSealMismatchError as s, BundleVersionConflictError as t, TransferSealError as u, MaterializedViewConfigError as v, MaterializedViewCycleError as w, MaterializedViewSourceUnknownError as x, MaterializedViewTooLargeError as y, AlreadyElevatedError as z };
|
|
@@ -796,6 +796,26 @@ declare class LocaleNotSpecifiedError extends NoydbError {
|
|
|
796
796
|
readonly field: string;
|
|
797
797
|
constructor(field: string, message?: string);
|
|
798
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
* Thrown at write time when an `i18nText` slot's value contains
|
|
801
|
+
* characters outside the script set allowed for that locale, and the
|
|
802
|
+
* field's `onScriptViolation` policy is `'reject'` (the default).
|
|
803
|
+
*
|
|
804
|
+
* Distinct from {@link MissingTranslationError} (write-shape) and
|
|
805
|
+
* {@link LocaleNotSpecifiedError} (read-hole) so callers can tell a
|
|
806
|
+
* wrong-script value from a missing one.
|
|
807
|
+
*/
|
|
808
|
+
declare class ScriptViolationError extends NoydbError {
|
|
809
|
+
/** The field whose value violated its script constraint. */
|
|
810
|
+
readonly field: string;
|
|
811
|
+
/** The locale slot (e.g. `'en'`) that was checked. */
|
|
812
|
+
readonly locale: string;
|
|
813
|
+
/** The Unicode scripts allowed for this slot. */
|
|
814
|
+
readonly expected: readonly string[];
|
|
815
|
+
/** A short sample of the offending characters, for diagnostics. */
|
|
816
|
+
readonly sample: string;
|
|
817
|
+
constructor(field: string, locale: string, expected: readonly string[], sample: string, message?: string);
|
|
818
|
+
}
|
|
799
819
|
/**
|
|
800
820
|
* Thrown when a collection has an `i18nText` field with
|
|
801
821
|
* `autoTranslate: true` but no `plaintextTranslator` was configured
|
|
@@ -2364,4 +2384,4 @@ declare class ScanBuilder<T> implements AsyncIterable<T> {
|
|
|
2364
2384
|
private recordMatches;
|
|
2365
2385
|
}
|
|
2366
2386
|
|
|
2367
|
-
export {
|
|
2387
|
+
export { ImportCapabilityError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, ConflictError as C, DictKeyInUseError as D, CrossJoinSourceUnknownError as E, FieldFrozenError as F, CrossJoinTooLargeError as G, DEFAULT_CROSS_JOIN_MAX_ROWS as H, InvariantError as I, DEFAULT_JOIN_MAX_ROWS as J, DanglingReferenceError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, Query as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, DecryptionError as U, DelegationTargetMissingError as V, DirectoryDisabledError as W, ElevationExpiredError as X, ExportCapabilityError as Y, FilenameSanitizationError as Z, GroupCardinalityError as _, DictKeyMissingError as a, IndexRequiredError as a0, IndexWriteFailureError as a1, InvalidKeyError as a2, type JoinContext as a3, type JoinLeg as a4, type JoinStrategy as a5, JoinTooLargeError as a6, type JoinableSource as a7, KeyringCorruptError as a8, KeyringExpiredError as a9, type ScanPageProvider as aA, SchemaFenceError as aB, SchemaLockedError as aC, SchemaUpdateError as aD, SchemaValidationError as aE, StoreCapabilityError as aF, TamperedError as aG, TierDemoteDeniedError as aH, TierNotGrantedError as aI, ValidationError as aJ, applyJoins as aK, buildLiveQuery as aL, executePlan as aM, ref as aN, resetJoinWarnings as aO, LedgerContentionError as aa, type LiveQuery as ab, type LiveUpstream as ac, MigrationRequiredError as ad, NetworkError as ae, NoAccessError as af, NonAdditiveSchemaChangeError as ag, NotFoundError as ah, type OrderBy as ai, PathEscapeError as aj, PeriodClosedError as ak, PermissionDeniedError as al, PrivilegeEscalationError as am, type QueryPlan as an, type QuerySource as ao, QuiesceTimeoutError as ap, ReadOnlyAtInstantError as aq, ReadOnlyError as ar, ReadOnlyFrameError as as, type RefDescriptor as at, RefIntegrityError as au, type RefMode as av, RefRegistry as aw, RefScopeError as ax, type RefViolation as ay, ScanBuilder as az, SessionExpiredError as b, SessionNotFoundError as c, SessionPolicyError as d, RecordLockedError as e, SnapshotNotFoundError as f, DerivationCapExceededError as g, DerivationCycleError as h, DerivationDepthError as i, DerivationOutputShapeError as j, DerivationOutputUnknownError as k, OverlayCollectionUnavailableError as l, OverlayIdMismatchError as m, OverlayNameCollisionError as n, AttestationError as o, AdoptionStateError as p, BackupLedgerError as q, BundleIntegrityError as r, BundleSealMismatchError as s, BundleVersionConflictError as t, TransferSealError as u, MaterializedViewConfigError as v, MaterializedViewCycleError as w, MaterializedViewSourceUnknownError as x, MaterializedViewTooLargeError as y, AlreadyElevatedError as z };
|