@prisma/orm-framework 0.16.0-dev.36
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/LICENSE +201 -0
- package/README.md +27 -0
- package/dist/abortable-CQO6uG9F.mjs +39 -0
- package/dist/abortable-CQO6uG9F.mjs.map +1 -0
- package/dist/abortable-DBbAaT_4.d.mts +29 -0
- package/dist/abortable-DBbAaT_4.d.mts.map +1 -0
- package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts +7 -0
- package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +1 -0
- package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs +12 -0
- package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs.map +1 -0
- package/dist/array-equal-28xupwIB.mjs +26 -0
- package/dist/array-equal-28xupwIB.mjs.map +1 -0
- package/dist/array-equal-dUd-VPlk.d.mts +22 -0
- package/dist/array-equal-dUd-VPlk.d.mts.map +1 -0
- package/dist/assertions-BEQnOIQd.d.mts +31 -0
- package/dist/assertions-BEQnOIQd.d.mts.map +1 -0
- package/dist/assertions-Cz-GWH8P.mjs +36 -0
- package/dist/assertions-Cz-GWH8P.mjs.map +1 -0
- package/dist/authoring-Dd7p6pTS.d.mts +1 -0
- package/dist/canonical-stringify-Bl6agy_g.d.mts +51 -0
- package/dist/canonical-stringify-Bl6agy_g.d.mts.map +1 -0
- package/dist/canonical-stringify-DY4NaAJi.mjs +104 -0
- package/dist/canonical-stringify-DY4NaAJi.mjs.map +1 -0
- package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts +69 -0
- package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts.map +1 -0
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +25 -0
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +1 -0
- package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs +64 -0
- package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs.map +1 -0
- package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts +34 -0
- package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts.map +1 -0
- package/dist/casts-D29CHGrr.d.mts +78 -0
- package/dist/casts-D29CHGrr.d.mts.map +1 -0
- package/dist/casts-DpaahrlC-Bd5n2coI.mjs +82 -0
- package/dist/casts-DpaahrlC-Bd5n2coI.mjs.map +1 -0
- package/dist/codec-Cly9VPoA.mjs +78 -0
- package/dist/codec-Cly9VPoA.mjs.map +1 -0
- package/dist/codec-D3GVAkR_.d.mts +116 -0
- package/dist/codec-D3GVAkR_.d.mts.map +1 -0
- package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts +221 -0
- package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts.map +1 -0
- package/dist/components-CawuxTia.d.mts +1 -0
- package/dist/components.d.mts +20 -0
- package/dist/components.mjs +15 -0
- package/dist/components__authoring.d.mts +3 -0
- package/dist/components__authoring.mjs +2 -0
- package/dist/components__codec.d.mts +3 -0
- package/dist/components__codec.mjs +3 -0
- package/dist/components__components.d.mts +4 -0
- package/dist/components__components.mjs +3 -0
- package/dist/components__control.d.mts +4 -0
- package/dist/components__control.mjs +2 -0
- package/dist/components__emission.d.mts +4 -0
- package/dist/components__emission.mjs +2 -0
- package/dist/components__execution.d.mts +2 -0
- package/dist/components__execution.mjs +2 -0
- package/dist/components__ir.d.mts +3 -0
- package/dist/components__ir.mjs +3 -0
- package/dist/components__psl-ast.d.mts +4 -0
- package/dist/components__psl-ast.mjs +2 -0
- package/dist/components__runtime.d.mts +2 -0
- package/dist/components__runtime.mjs +3 -0
- package/dist/components__utils.d.mts +2 -0
- package/dist/components__utils.mjs +2 -0
- package/dist/config-errors-CBdiX587-DwIyJIX9.mjs +9 -0
- package/dist/config-errors-CBdiX587-DwIyJIX9.mjs.map +1 -0
- package/dist/config-types-Cf9lVsHR.mjs +62 -0
- package/dist/config-types-Cf9lVsHR.mjs.map +1 -0
- package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts +162 -0
- package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts.map +1 -0
- package/dist/config-types-zrHI32Om.d.mts +1 -0
- package/dist/config-validation-ByGTw6zQ.mjs +99 -0
- package/dist/config-validation-ByGTw6zQ.mjs.map +1 -0
- package/dist/config-validation-DXggMTZf.d.mts +14 -0
- package/dist/config-validation-DXggMTZf.d.mts.map +1 -0
- package/dist/config.d.mts +4 -0
- package/dist/config.mjs +3 -0
- package/dist/config__config-types.d.mts +3 -0
- package/dist/config__config-types.mjs +2 -0
- package/dist/config__config-validation.d.mts +2 -0
- package/dist/config__config-validation.mjs +2 -0
- package/dist/contract-authoring.d.mts +213 -0
- package/dist/contract-authoring.d.mts.map +1 -0
- package/dist/contract-authoring.mjs +133 -0
- package/dist/contract-authoring.mjs.map +1 -0
- package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts +77 -0
- package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +1 -0
- package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs +14 -0
- package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +1 -0
- package/dist/contract-validation-error-R7cMoK04.d.mts +11 -0
- package/dist/contract-validation-error-R7cMoK04.d.mts.map +1 -0
- package/dist/contract.d.mts +14 -0
- package/dist/contract.mjs +13 -0
- package/dist/contract__apply-specifier-default-control-policy.d.mts +2 -0
- package/dist/contract__apply-specifier-default-control-policy.mjs +2 -0
- package/dist/contract__contract-validation-error.d.mts +2 -0
- package/dist/contract__contract-validation-error.mjs +2 -0
- package/dist/contract__default-namespace.d.mts +2 -0
- package/dist/contract__default-namespace.mjs +2 -0
- package/dist/contract__enum-accessor.d.mts +2 -0
- package/dist/contract__enum-accessor.mjs +2 -0
- package/dist/contract__hashing-utils.d.mts +2 -0
- package/dist/contract__hashing-utils.mjs +3 -0
- package/dist/contract__hashing.d.mts +3 -0
- package/dist/contract__hashing.mjs +2 -0
- package/dist/contract__is-plain-record.d.mts +2 -0
- package/dist/contract__is-plain-record.mjs +2 -0
- package/dist/contract__resolve-domain-model.d.mts +2 -0
- package/dist/contract__resolve-domain-model.mjs +2 -0
- package/dist/contract__types.d.mts +6 -0
- package/dist/contract__types.mjs +5 -0
- package/dist/contract__validate-domain.d.mts +2 -0
- package/dist/contract__validate-domain.mjs +2 -0
- package/dist/control-B87KWI_K-C_R8WfEr.d.mts +213 -0
- package/dist/control-B87KWI_K-C_R8WfEr.d.mts.map +1 -0
- package/dist/control-CBvTj7Ia.d.mts +1383 -0
- package/dist/control-CBvTj7Ia.d.mts.map +1 -0
- package/dist/control-DTouE89s.mjs +621 -0
- package/dist/control-DTouE89s.mjs.map +1 -0
- package/dist/control-Ftiau058-CCeJcAVQ.mjs +284 -0
- package/dist/control-Ftiau058-CCeJcAVQ.mjs.map +1 -0
- package/dist/declarations-DR6To8_k-BFwkCGeP.mjs +1046 -0
- package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +1 -0
- package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs +39 -0
- package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs.map +1 -0
- package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts +26 -0
- package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts.map +1 -0
- package/dist/defined-BQWA85QH-BRSBMULx.mjs +31 -0
- package/dist/defined-BQWA85QH-BRSBMULx.mjs.map +1 -0
- package/dist/defined-BSXuxrnl.d.mts +28 -0
- package/dist/defined-BSXuxrnl.d.mts.map +1 -0
- package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts +359 -0
- package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +1 -0
- package/dist/emission-CeoAV9mj.mjs +26 -0
- package/dist/emission-CeoAV9mj.mjs.map +1 -0
- package/dist/emission-DeoQufVd.d.mts +1 -0
- package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts +75 -0
- package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts.map +1 -0
- package/dist/enum-accessor-Db5DaTNX.mjs +35 -0
- package/dist/enum-accessor-Db5DaTNX.mjs.map +1 -0
- package/dist/enum-accessor-PH5vjghI.d.mts +85 -0
- package/dist/enum-accessor-PH5vjghI.d.mts.map +1 -0
- package/dist/errors.d.mts +4 -0
- package/dist/errors.mjs +4 -0
- package/dist/errors__control.d.mts +2 -0
- package/dist/errors__control.mjs +2 -0
- package/dist/errors__execution.d.mts +2 -0
- package/dist/errors__execution.mjs +2 -0
- package/dist/errors__migration.d.mts +2 -0
- package/dist/errors__migration.mjs +2 -0
- package/dist/execution-BNwBzmRd.mjs +40 -0
- package/dist/execution-BNwBzmRd.mjs.map +1 -0
- package/dist/execution-BbOD4GyR.mjs +164 -0
- package/dist/execution-BbOD4GyR.mjs.map +1 -0
- package/dist/execution-Bo5Bu2Ys.d.mts +79 -0
- package/dist/execution-Bo5Bu2Ys.d.mts.map +1 -0
- package/dist/execution-MOde1lmD.d.mts +98 -0
- package/dist/execution-MOde1lmD.d.mts.map +1 -0
- package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts +777 -0
- package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts.map +1 -0
- package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs +698 -0
- package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs.map +1 -0
- package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs +27 -0
- package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs.map +1 -0
- package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts +388 -0
- package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts.map +1 -0
- package/dist/hash-content-Bugg_nZn.mjs +63 -0
- package/dist/hash-content-Bugg_nZn.mjs.map +1 -0
- package/dist/hash-content-DwEUh-Rx.d.mts +59 -0
- package/dist/hash-content-DwEUh-Rx.d.mts.map +1 -0
- package/dist/hashing-BtIZVNYX.mjs +199 -0
- package/dist/hashing-BtIZVNYX.mjs.map +1 -0
- package/dist/hashing-CccSPELN.d.mts +25 -0
- package/dist/hashing-CccSPELN.d.mts.map +1 -0
- package/dist/hashing-utils-DQgS3nOe.mjs +48 -0
- package/dist/hashing-utils-DQgS3nOe.mjs.map +1 -0
- package/dist/hashing-utils-qKu59RSC.d.mts +19 -0
- package/dist/hashing-utils-qKu59RSC.d.mts.map +1 -0
- package/dist/ids.d.mts +44 -0
- package/dist/ids.d.mts.map +1 -0
- package/dist/ids.mjs +96 -0
- package/dist/ids.mjs.map +1 -0
- package/dist/ids__runtime.d.mts +7 -0
- package/dist/ids__runtime.d.mts.map +1 -0
- package/dist/ids__runtime.mjs +31 -0
- package/dist/ids__runtime.mjs.map +1 -0
- package/dist/index-GY2oGH9L.d.mts +120 -0
- package/dist/index-GY2oGH9L.d.mts.map +1 -0
- package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs +24 -0
- package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +1 -0
- package/dist/internal-error-kK8QvlDE.d.mts +19 -0
- package/dist/internal-error-kK8QvlDE.d.mts.map +1 -0
- package/dist/ir-BvE7L9FK.d.mts +359 -0
- package/dist/ir-BvE7L9FK.d.mts.map +1 -0
- package/dist/ir-ChmSSAhX.mjs +200 -0
- package/dist/ir-ChmSSAhX.mjs.map +1 -0
- package/dist/is-plain-record-C9BWiqcw.d.mts +12 -0
- package/dist/is-plain-record-C9BWiqcw.d.mts.map +1 -0
- package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs +16 -0
- package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs.map +1 -0
- package/dist/json-Dkqr3say.d.mts +26 -0
- package/dist/json-Dkqr3say.d.mts.map +1 -0
- package/dist/migration-4VOHVEzx.mjs +118 -0
- package/dist/migration-4VOHVEzx.mjs.map +1 -0
- package/dist/migration-DKbDzBwy.d.mts +74 -0
- package/dist/migration-DKbDzBwy.d.mts.map +1 -0
- package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs +9 -0
- package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs.map +1 -0
- package/dist/operations.d.mts +46 -0
- package/dist/operations.d.mts.map +1 -0
- package/dist/operations.mjs +28 -0
- package/dist/operations.mjs.map +1 -0
- package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts +427 -0
- package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts.map +1 -0
- package/dist/parse-GbZGfMUj-BFSrD2AN.mjs +621 -0
- package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +1 -0
- package/dist/promise-D8meygPf.mjs +13 -0
- package/dist/promise-D8meygPf.mjs.map +1 -0
- package/dist/promise-DHJWZv49.d.mts +11 -0
- package/dist/promise-DHJWZv49.d.mts.map +1 -0
- package/dist/psl-ast-BEwO80EH.d.mts +37 -0
- package/dist/psl-ast-BEwO80EH.d.mts.map +1 -0
- package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts +259 -0
- package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts.map +1 -0
- package/dist/psl-ast-DUCvVXbB.mjs +239 -0
- package/dist/psl-ast-DUCvVXbB.mjs.map +1 -0
- package/dist/psl-parser.d.mts +158 -0
- package/dist/psl-parser.d.mts.map +1 -0
- package/dist/psl-parser.mjs +804 -0
- package/dist/psl-parser.mjs.map +1 -0
- package/dist/psl-parser__format.d.mts +12 -0
- package/dist/psl-parser__format.d.mts.map +1 -0
- package/dist/psl-parser__format.mjs +464 -0
- package/dist/psl-parser__format.mjs.map +1 -0
- package/dist/psl-parser__interpret.d.mts +40 -0
- package/dist/psl-parser__interpret.d.mts.map +1 -0
- package/dist/psl-parser__interpret.mjs +25 -0
- package/dist/psl-parser__interpret.mjs.map +1 -0
- package/dist/psl-parser__syntax.d.mts +31 -0
- package/dist/psl-parser__syntax.d.mts.map +1 -0
- package/dist/psl-parser__syntax.mjs +43 -0
- package/dist/psl-parser__syntax.mjs.map +1 -0
- package/dist/psl-parser__tokenizer.d.mts +2 -0
- package/dist/psl-parser__tokenizer.mjs +2 -0
- package/dist/psl-printer.d.mts +37 -0
- package/dist/psl-printer.d.mts.map +1 -0
- package/dist/psl-printer.mjs +393 -0
- package/dist/psl-printer.mjs.map +1 -0
- package/dist/redact-db-url-BlaloOwt.d.mts +22 -0
- package/dist/redact-db-url-BlaloOwt.d.mts.map +1 -0
- package/dist/redact-db-url-CRWJWdB1.mjs +26 -0
- package/dist/redact-db-url-CRWJWdB1.mjs.map +1 -0
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +59 -0
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +1 -0
- package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts +17 -0
- package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +1 -0
- package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs +20 -0
- package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs.map +1 -0
- package/dist/result-Bpupv5vO.d.mts +54 -0
- package/dist/result-Bpupv5vO.d.mts.map +1 -0
- package/dist/result-CBZ8X9mU.mjs +92 -0
- package/dist/result-CBZ8X9mU.mjs.map +1 -0
- package/dist/runtime--RZXG1zP.d.mts +901 -0
- package/dist/runtime--RZXG1zP.d.mts.map +1 -0
- package/dist/runtime-DYTFHGwh.mjs +516 -0
- package/dist/runtime-DYTFHGwh.mjs.map +1 -0
- package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs +40 -0
- package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs.map +1 -0
- package/dist/simplify-deep-Dw9I_ZUl.d.mts +6 -0
- package/dist/simplify-deep-Dw9I_ZUl.d.mts.map +1 -0
- package/dist/structured-error-BVmv2aPB.d.mts +34 -0
- package/dist/structured-error-BVmv2aPB.d.mts.map +1 -0
- package/dist/structured-error-H6WU9Kjt.mjs +31 -0
- package/dist/structured-error-H6WU9Kjt.mjs.map +1 -0
- package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts +125 -0
- package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts.map +1 -0
- package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs +228 -0
- package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +1 -0
- package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts +16 -0
- package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +1 -0
- package/dist/ts-render.d.mts +2 -0
- package/dist/ts-render.mjs +240 -0
- package/dist/ts-render.mjs.map +1 -0
- package/dist/types-ByeQhU9p.d.mts +17 -0
- package/dist/types-ByeQhU9p.d.mts.map +1 -0
- package/dist/types-DGxlljKG.d.mts +7 -0
- package/dist/types-DGxlljKG.d.mts.map +1 -0
- package/dist/types-DgdgskBY.mjs +96 -0
- package/dist/types-DgdgskBY.mjs.map +1 -0
- package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts +14 -0
- package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts.map +1 -0
- package/dist/utils-DMAM0unR.mjs +20 -0
- package/dist/utils-DMAM0unR.mjs.map +1 -0
- package/dist/utils-DeWL_zD9.d.mts +11 -0
- package/dist/utils-DeWL_zD9.d.mts.map +1 -0
- package/dist/utils.d.mts +16 -0
- package/dist/utils.mjs +13 -0
- package/dist/utils__abortable.d.mts +2 -0
- package/dist/utils__abortable.mjs +2 -0
- package/dist/utils__array-equal.d.mts +2 -0
- package/dist/utils__array-equal.mjs +2 -0
- package/dist/utils__assertions.d.mts +2 -0
- package/dist/utils__assertions.mjs +2 -0
- package/dist/utils__canonical-stringify.d.mts +2 -0
- package/dist/utils__canonical-stringify.mjs +2 -0
- package/dist/utils__casts.d.mts +2 -0
- package/dist/utils__casts.mjs +2 -0
- package/dist/utils__defined.d.mts +2 -0
- package/dist/utils__defined.mjs +2 -0
- package/dist/utils__hash-content.d.mts +2 -0
- package/dist/utils__hash-content.mjs +2 -0
- package/dist/utils__internal-error.d.mts +2 -0
- package/dist/utils__internal-error.mjs +2 -0
- package/dist/utils__json.d.mts +2 -0
- package/dist/utils__json.mjs +1 -0
- package/dist/utils__promise.d.mts +2 -0
- package/dist/utils__promise.mjs +2 -0
- package/dist/utils__redact-db-url.d.mts +2 -0
- package/dist/utils__redact-db-url.mjs +2 -0
- package/dist/utils__result.d.mts +2 -0
- package/dist/utils__result.mjs +2 -0
- package/dist/utils__simplify-deep.d.mts +2 -0
- package/dist/utils__simplify-deep.mjs +1 -0
- package/dist/utils__structured-error.d.mts +2 -0
- package/dist/utils__structured-error.mjs +2 -0
- package/dist/utils__types.d.mts +2 -0
- package/dist/utils__types.mjs +1 -0
- package/dist/validate-domain-BNBs-TVv.d.mts +22 -0
- package/dist/validate-domain-BNBs-TVv.d.mts.map +1 -0
- package/dist/validate-domain-BkvFlY3B.mjs +143 -0
- package/dist/validate-domain-BkvFlY3B.mjs.map +1 -0
- package/package.json +114 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [2026] [Prisma Data, Inc]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @prisma/orm-framework
|
|
2
|
+
|
|
3
|
+
The target-agnostic core of Prisma Next: the contract model, the component/registry system, and the authoring surface that emitted contracts and application code reach at runtime.
|
|
4
|
+
|
|
5
|
+
Most applications never install this package directly — it arrives as an exact-pinned dependency of a database facade (`@prisma/orm-postgres`, `@prisma/orm-sqlite`, `@prisma/orm-mongo`), which is the package app developers should install. Extension authors and decomposed installs (applications replacing part of the default wiring) depend on it directly.
|
|
6
|
+
|
|
7
|
+
## Entrypoints
|
|
8
|
+
|
|
9
|
+
Each subpath namespace consolidates one internal framework module; a bare namespace import (e.g. `@prisma/orm-framework/contract`) aggregates that module's full surface, and deeper paths (e.g. `@prisma/orm-framework/contract/hashing`) select individual modules.
|
|
10
|
+
|
|
11
|
+
| Namespace | Surface |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `/contract` | contract types, validation, hashing, domain resolution |
|
|
14
|
+
| `/components` | component descriptors, control stack, registries, codecs |
|
|
15
|
+
| `/contract-authoring` | authoring-time contract construction |
|
|
16
|
+
| `/psl-parser`, `/psl-printer` | PSL parsing, formatting, printing |
|
|
17
|
+
| `/config` | configuration types and validation |
|
|
18
|
+
| `/errors` | control, execution, and migration error types |
|
|
19
|
+
| `/ids`, `/operations`, `/ts-render`, `/utils` | identifiers, operation model, TypeScript rendering, shared utilities |
|
|
20
|
+
|
|
21
|
+
## Responsibilities
|
|
22
|
+
|
|
23
|
+
Everything runtime and authoring code needs independently of a concrete database: contract representation and validation, component wiring, PSL handling, and shared utilities. No database drivers, no build tooling (that is `@prisma/orm-toolchain`).
|
|
24
|
+
|
|
25
|
+
## Dependencies
|
|
26
|
+
|
|
27
|
+
Self-contained apart from small third-party runtime libraries (`arktype`, `@standard-schema/spec`, `pathe`, `uniku`). It is the root of the platform-package graph: the family, target, and toolchain packages all depend on it.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/abortable.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Allows aborting an async operation by returning a Promise which rejects if
|
|
4
|
+
* the provided AbortSignal aborts and otherwise resolves with the result of
|
|
5
|
+
* the async operation.
|
|
6
|
+
*
|
|
7
|
+
* Throws immediately if the signal is already aborted.
|
|
8
|
+
* When the signal is aborted later, any wrapped promise will reject with
|
|
9
|
+
* the signal's reason (or a default DOMException).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const { signal = new AbortController().signal } = options;
|
|
14
|
+
* const unlessAborted = abortable(signal);
|
|
15
|
+
*
|
|
16
|
+
* // Any of these will reject if signal is aborted
|
|
17
|
+
* await unlessAborted(asyncOperation());
|
|
18
|
+
* await unlessAborted(fetch(url));
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @param signal - The AbortSignal to race against
|
|
22
|
+
* @returns A function that wraps promises to be cancelable
|
|
23
|
+
* @throws If signal is already aborted
|
|
24
|
+
*/
|
|
25
|
+
function abortable(signal) {
|
|
26
|
+
signal.throwIfAborted();
|
|
27
|
+
const abortPromise = new Promise((_resolve, reject) => {
|
|
28
|
+
signal.addEventListener("abort", () => {
|
|
29
|
+
reject(signal.reason ?? new DOMException("Operation cancelled"));
|
|
30
|
+
}, { once: true });
|
|
31
|
+
});
|
|
32
|
+
return (operation) => {
|
|
33
|
+
return Promise.race([operation, abortPromise]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { abortable as t };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=abortable-CQO6uG9F.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abortable-CQO6uG9F.mjs","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/abortable.mjs"],"sourcesContent":["//#region src/abortable.ts\n/**\n* Allows aborting an async operation by returning a Promise which rejects if\n* the provided AbortSignal aborts and otherwise resolves with the result of\n* the async operation.\n*\n* Throws immediately if the signal is already aborted.\n* When the signal is aborted later, any wrapped promise will reject with\n* the signal's reason (or a default DOMException).\n*\n* @example\n* ```typescript\n* const { signal = new AbortController().signal } = options;\n* const unlessAborted = abortable(signal);\n*\n* // Any of these will reject if signal is aborted\n* await unlessAborted(asyncOperation());\n* await unlessAborted(fetch(url));\n* ```\n*\n* @param signal - The AbortSignal to race against\n* @returns A function that wraps promises to be cancelable\n* @throws If signal is already aborted\n*/\nfunction abortable(signal) {\n\tsignal.throwIfAborted();\n\tconst abortPromise = new Promise((_resolve, reject) => {\n\t\tsignal.addEventListener(\"abort\", () => {\n\t\t\treject(signal.reason ?? new DOMException(\"Operation cancelled\"));\n\t\t}, { once: true });\n\t});\n\treturn (operation) => {\n\t\treturn Promise.race([operation, abortPromise]);\n\t};\n}\n//#endregion\nexport { abortable };\n\n//# sourceMappingURL=abortable.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAS,UAAU,QAAQ;CAC1B,OAAO,eAAe;CACtB,MAAM,eAAe,IAAI,SAAS,UAAU,WAAW;EACtD,OAAO,iBAAiB,eAAe;GACtC,OAAO,OAAO,UAAU,IAAI,aAAa,qBAAqB,CAAC;EAChE,GAAG,EAAE,MAAM,KAAK,CAAC;CAClB,CAAC;CACD,QAAQ,cAAc;EACrB,OAAO,QAAQ,KAAK,CAAC,WAAW,YAAY,CAAC;CAC9C;AACD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/abortable.d.mts
|
|
2
|
+
//#region src/abortable.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Allows aborting an async operation by returning a Promise which rejects if
|
|
5
|
+
* the provided AbortSignal aborts and otherwise resolves with the result of
|
|
6
|
+
* the async operation.
|
|
7
|
+
*
|
|
8
|
+
* Throws immediately if the signal is already aborted.
|
|
9
|
+
* When the signal is aborted later, any wrapped promise will reject with
|
|
10
|
+
* the signal's reason (or a default DOMException).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const { signal = new AbortController().signal } = options;
|
|
15
|
+
* const unlessAborted = abortable(signal);
|
|
16
|
+
*
|
|
17
|
+
* // Any of these will reject if signal is aborted
|
|
18
|
+
* await unlessAborted(asyncOperation());
|
|
19
|
+
* await unlessAborted(fetch(url));
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @param signal - The AbortSignal to race against
|
|
23
|
+
* @returns A function that wraps promises to be cancelable
|
|
24
|
+
* @throws If signal is already aborted
|
|
25
|
+
*/
|
|
26
|
+
declare function abortable(signal: AbortSignal): <T>(promise: Promise<T>) => Promise<T>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { abortable as t };
|
|
29
|
+
//# sourceMappingURL=abortable-DBbAaT_4.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abortable-DBbAaT_4.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/abortable.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;iBAwBiB,UAAU,QAAQ,eAAe,GAAG,SAAS,QAAQ,OAAO,QAAQ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { i as ControlPolicy, t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
|
|
2
|
+
//#region ../../../1-framework/0-foundation/contract/dist/apply-specifier-default-control-policy.d.mts
|
|
3
|
+
//#region src/apply-specifier-default-control-policy.d.ts
|
|
4
|
+
declare function applySpecifierDefaultControlPolicy(contract: Contract, specifierDefault: ControlPolicy | undefined): Contract;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { applySpecifierDefaultControlPolicy as t };
|
|
7
|
+
//# sourceMappingURL=apply-specifier-default-control-policy-CAxiXxKg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-specifier-default-control-policy-CAxiXxKg.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/apply-specifier-default-control-policy.d.mts"],"mappings":";;;iBAEiB,mCAAmC,UAAU,UAAU,kBAAkB,4BAA4B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/contract/dist/apply-specifier-default-control-policy.mjs
|
|
2
|
+
function applySpecifierDefaultControlPolicy(contract, specifierDefault) {
|
|
3
|
+
if (specifierDefault === void 0 || contract.defaultControlPolicy !== void 0) return contract;
|
|
4
|
+
return {
|
|
5
|
+
...contract,
|
|
6
|
+
defaultControlPolicy: specifierDefault
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { applySpecifierDefaultControlPolicy as t };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=apply-specifier-default-control-policy-CsYHsfTF.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-specifier-default-control-policy-CsYHsfTF.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/apply-specifier-default-control-policy.mjs"],"sourcesContent":["//#region src/apply-specifier-default-control-policy.ts\nfunction applySpecifierDefaultControlPolicy(contract, specifierDefault) {\n\tif (specifierDefault === void 0 || contract.defaultControlPolicy !== void 0) return contract;\n\treturn {\n\t\t...contract,\n\t\tdefaultControlPolicy: specifierDefault\n\t};\n}\n//#endregion\nexport { applySpecifierDefaultControlPolicy };\n\n//# sourceMappingURL=apply-specifier-default-control-policy.mjs.map"],"mappings":";AACA,SAAS,mCAAmC,UAAU,kBAAkB;CACvE,IAAI,qBAAqB,KAAK,KAAK,SAAS,yBAAyB,KAAK,GAAG,OAAO;CACpF,OAAO;EACN,GAAG;EACH,sBAAsB;CACvB;AACD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/array-equal.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Checks if two arrays are equal using Object.is() for element comparison.
|
|
4
|
+
* Arrays are considered equal if they have the same length and each element
|
|
5
|
+
* at corresponding indices is equal according to Object.is().
|
|
6
|
+
*
|
|
7
|
+
* @param a - First array to compare
|
|
8
|
+
* @param b - Second array to compare
|
|
9
|
+
* @returns true if arrays are equal, false otherwise
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* isArrayEqual(['a', 'b'], ['a', 'b']); // true
|
|
14
|
+
* isArrayEqual(['a'], ['a', 'b']); // false
|
|
15
|
+
* isArrayEqual([0], [-0]); // false (Object.is distinguishes +0 and -0)
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
function isArrayEqual(a, b) {
|
|
19
|
+
if (a.length !== b.length) return false;
|
|
20
|
+
for (let i = 0; i < a.length; i++) if (!Object.is(a[i], b[i])) return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { isArrayEqual as t };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=array-equal-28xupwIB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-equal-28xupwIB.mjs","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/array-equal.mjs"],"sourcesContent":["//#region src/array-equal.ts\n/**\n* Checks if two arrays are equal using Object.is() for element comparison.\n* Arrays are considered equal if they have the same length and each element\n* at corresponding indices is equal according to Object.is().\n*\n* @param a - First array to compare\n* @param b - Second array to compare\n* @returns true if arrays are equal, false otherwise\n*\n* @example\n* ```typescript\n* isArrayEqual(['a', 'b'], ['a', 'b']); // true\n* isArrayEqual(['a'], ['a', 'b']); // false\n* isArrayEqual([0], [-0]); // false (Object.is distinguishes +0 and -0)\n* ```\n*/\nfunction isArrayEqual(a, b) {\n\tif (a.length !== b.length) return false;\n\tfor (let i = 0; i < a.length; i++) if (!Object.is(a[i], b[i])) return false;\n\treturn true;\n}\n//#endregion\nexport { isArrayEqual };\n\n//# sourceMappingURL=array-equal.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,aAAa,GAAG,GAAG;CAC3B,IAAI,EAAE,WAAW,EAAE,QAAQ,OAAO;CAClC,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,OAAO;CACtE,OAAO;AACR"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/array-equal.d.mts
|
|
2
|
+
//#region src/array-equal.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Checks if two arrays are equal using Object.is() for element comparison.
|
|
5
|
+
* Arrays are considered equal if they have the same length and each element
|
|
6
|
+
* at corresponding indices is equal according to Object.is().
|
|
7
|
+
*
|
|
8
|
+
* @param a - First array to compare
|
|
9
|
+
* @param b - Second array to compare
|
|
10
|
+
* @returns true if arrays are equal, false otherwise
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* isArrayEqual(['a', 'b'], ['a', 'b']); // true
|
|
15
|
+
* isArrayEqual(['a'], ['a', 'b']); // false
|
|
16
|
+
* isArrayEqual([0], [-0]); // false (Object.is distinguishes +0 and -0)
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare function isArrayEqual<T>(a: readonly T[], b: readonly T[]): boolean;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { isArrayEqual as t };
|
|
22
|
+
//# sourceMappingURL=array-equal-dUd-VPlk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-equal-dUd-VPlk.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/array-equal.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;iBAiBiB,aAAa,GAAG,YAAY,KAAK,YAAY"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/assertions.d.mts
|
|
2
|
+
//#region src/assertions.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Asserts that a value is defined (not null or undefined).
|
|
5
|
+
* Use for invariants where the value should always exist at runtime.
|
|
6
|
+
*
|
|
7
|
+
* @throws Error if value is null or undefined
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const table = storage.namespaces[namespaceId].entries.table[tableName];
|
|
12
|
+
* assertDefined(table, `Table "${tableName}" not found`);
|
|
13
|
+
* // table is now narrowed to non-nullable
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare function assertDefined<T>(value: T | null | undefined, message: string): asserts value is T;
|
|
17
|
+
/**
|
|
18
|
+
* Asserts that a condition is true.
|
|
19
|
+
* Use for invariants that should always hold at runtime.
|
|
20
|
+
*
|
|
21
|
+
* @throws Error if condition is false
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* invariant(columns.length > 0, 'Primary key must have at least one column');
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare function invariant(condition: boolean, message: string): asserts condition;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { invariant as n, assertDefined as t };
|
|
31
|
+
//# sourceMappingURL=assertions-BEQnOIQd.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertions-BEQnOIQd.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/assertions.d.mts"],"mappings":";;;;;;;;;;;;;;;iBAciB,cAAc,GAAG,OAAO,sBAAsB,0BAA0B,SAAS;;;;;;;;;;;;iBAYjF,UAAU,oBAAoB,0BAA0B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as InternalError } from "./internal-error-BIc-ehme-ouBQPoEL.mjs";
|
|
2
|
+
//#region ../../../1-framework/0-foundation/utils/dist/assertions.mjs
|
|
3
|
+
/**
|
|
4
|
+
* Asserts that a value is defined (not null or undefined).
|
|
5
|
+
* Use for invariants where the value should always exist at runtime.
|
|
6
|
+
*
|
|
7
|
+
* @throws Error if value is null or undefined
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const table = storage.namespaces[namespaceId].entries.table[tableName];
|
|
12
|
+
* assertDefined(table, `Table "${tableName}" not found`);
|
|
13
|
+
* // table is now narrowed to non-nullable
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
function assertDefined(value, message) {
|
|
17
|
+
if (value === null || value === void 0) throw new InternalError(message);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Asserts that a condition is true.
|
|
21
|
+
* Use for invariants that should always hold at runtime.
|
|
22
|
+
*
|
|
23
|
+
* @throws Error if condition is false
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* invariant(columns.length > 0, 'Primary key must have at least one column');
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function invariant(condition, message) {
|
|
31
|
+
if (!condition) throw new InternalError(message);
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { invariant as n, assertDefined as t };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=assertions-Cz-GWH8P.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertions-Cz-GWH8P.mjs","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/assertions.mjs"],"sourcesContent":["import { t as InternalError } from \"./internal-error-BIc-ehme.mjs\";\n//#region src/assertions.ts\n/**\n* Asserts that a value is defined (not null or undefined).\n* Use for invariants where the value should always exist at runtime.\n*\n* @throws Error if value is null or undefined\n*\n* @example\n* ```typescript\n* const table = storage.namespaces[namespaceId].entries.table[tableName];\n* assertDefined(table, `Table \"${tableName}\" not found`);\n* // table is now narrowed to non-nullable\n* ```\n*/\nfunction assertDefined(value, message) {\n\tif (value === null || value === void 0) throw new InternalError(message);\n}\n/**\n* Asserts that a condition is true.\n* Use for invariants that should always hold at runtime.\n*\n* @throws Error if condition is false\n*\n* @example\n* ```typescript\n* invariant(columns.length > 0, 'Primary key must have at least one column');\n* ```\n*/\nfunction invariant(condition, message) {\n\tif (!condition) throw new InternalError(message);\n}\n//#endregion\nexport { assertDefined, invariant };\n\n//# sourceMappingURL=assertions.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAS,cAAc,OAAO,SAAS;CACtC,IAAI,UAAU,QAAQ,UAAU,KAAK,GAAG,MAAM,IAAI,cAAc,OAAO;AACxE;;;;;;;;;;;;AAYA,SAAS,UAAU,WAAW,SAAS;CACtC,IAAI,CAAC,WAAW,MAAM,IAAI,cAAc,OAAO;AAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./framework-authoring-7YMP9TwM-C9P-N6_a.mjs";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/canonical-stringify.d.mts
|
|
2
|
+
//#region src/canonical-stringify.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Produces a deterministic, JSON-like string representation of a value.
|
|
5
|
+
*
|
|
6
|
+
* Designed for use as a stable identity / cache key. Two values that are
|
|
7
|
+
* structurally equivalent — regardless of object key insertion order —
|
|
8
|
+
* produce the same string. Two values that differ in any meaningful way
|
|
9
|
+
* (including types that JSON would conflate, like `BigInt(1)` vs `1`)
|
|
10
|
+
* produce different strings.
|
|
11
|
+
*
|
|
12
|
+
* Supported inputs:
|
|
13
|
+
* - `null`, `undefined` (distinguishable: `null` → `"null"`, `undefined` → `"undefined"`)
|
|
14
|
+
* - `boolean`, `string`, `number` (including `NaN`, `Infinity`, `-Infinity`)
|
|
15
|
+
* - `bigint` (suffixed with `n` to disambiguate from `number`)
|
|
16
|
+
* - `Date` (tagged + ISO string)
|
|
17
|
+
* - `Buffer` / `Uint8Array` (tagged + hex-encoded as `Bytes(<hex>)`)
|
|
18
|
+
* - Other `ArrayBuffer` views — `Int8Array`, `Uint16Array`, `Float64Array`,
|
|
19
|
+
* `DataView`, etc. (tagged with the constructor name + hex-encoded over
|
|
20
|
+
* the underlying bytes, e.g. `Uint16Array(<hex>)`). Note that the bytes
|
|
21
|
+
* are read in host byte order, so callers that need cross-platform
|
|
22
|
+
* stability for multi-byte typed arrays should normalize endianness
|
|
23
|
+
* before passing the value in.
|
|
24
|
+
* - Arrays (order-preserving)
|
|
25
|
+
* - Plain objects (key-sorted) — only objects whose prototype is
|
|
26
|
+
* `Object.prototype` or `null`. Non-plain objects (`Map`, `Set`,
|
|
27
|
+
* `RegExp`, class instances, etc.) are rejected so they cannot silently
|
|
28
|
+
* collapse to `{}` and collide with each other.
|
|
29
|
+
*
|
|
30
|
+
* Throws on `function`, `symbol`, circular references, non-plain objects,
|
|
31
|
+
* and objects with symbol-keyed properties (which `Object.keys` would
|
|
32
|
+
* silently drop). Callers that need to canonicalize any of these must
|
|
33
|
+
* convert them to a supported representation first.
|
|
34
|
+
*
|
|
35
|
+
* The output format is intentionally not JSON: the type tags and BigInt
|
|
36
|
+
* suffix mean it cannot be round-tripped via `JSON.parse`. The goal is
|
|
37
|
+
* keying, not serialization.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* canonicalStringify({ a: 1, b: 2 }) === canonicalStringify({ b: 2, a: 1 })
|
|
42
|
+
* // → true
|
|
43
|
+
*
|
|
44
|
+
* canonicalStringify(1n) !== canonicalStringify(1)
|
|
45
|
+
* // → true
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare function canonicalStringify(value: unknown): string;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { canonicalStringify as t };
|
|
51
|
+
//# sourceMappingURL=canonical-stringify-Bl6agy_g.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical-stringify-Bl6agy_g.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/canonical-stringify.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8CiB,mBAAmB"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/canonical-stringify.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Produces a deterministic, JSON-like string representation of a value.
|
|
4
|
+
*
|
|
5
|
+
* Designed for use as a stable identity / cache key. Two values that are
|
|
6
|
+
* structurally equivalent — regardless of object key insertion order —
|
|
7
|
+
* produce the same string. Two values that differ in any meaningful way
|
|
8
|
+
* (including types that JSON would conflate, like `BigInt(1)` vs `1`)
|
|
9
|
+
* produce different strings.
|
|
10
|
+
*
|
|
11
|
+
* Supported inputs:
|
|
12
|
+
* - `null`, `undefined` (distinguishable: `null` → `"null"`, `undefined` → `"undefined"`)
|
|
13
|
+
* - `boolean`, `string`, `number` (including `NaN`, `Infinity`, `-Infinity`)
|
|
14
|
+
* - `bigint` (suffixed with `n` to disambiguate from `number`)
|
|
15
|
+
* - `Date` (tagged + ISO string)
|
|
16
|
+
* - `Buffer` / `Uint8Array` (tagged + hex-encoded as `Bytes(<hex>)`)
|
|
17
|
+
* - Other `ArrayBuffer` views — `Int8Array`, `Uint16Array`, `Float64Array`,
|
|
18
|
+
* `DataView`, etc. (tagged with the constructor name + hex-encoded over
|
|
19
|
+
* the underlying bytes, e.g. `Uint16Array(<hex>)`). Note that the bytes
|
|
20
|
+
* are read in host byte order, so callers that need cross-platform
|
|
21
|
+
* stability for multi-byte typed arrays should normalize endianness
|
|
22
|
+
* before passing the value in.
|
|
23
|
+
* - Arrays (order-preserving)
|
|
24
|
+
* - Plain objects (key-sorted) — only objects whose prototype is
|
|
25
|
+
* `Object.prototype` or `null`. Non-plain objects (`Map`, `Set`,
|
|
26
|
+
* `RegExp`, class instances, etc.) are rejected so they cannot silently
|
|
27
|
+
* collapse to `{}` and collide with each other.
|
|
28
|
+
*
|
|
29
|
+
* Throws on `function`, `symbol`, circular references, non-plain objects,
|
|
30
|
+
* and objects with symbol-keyed properties (which `Object.keys` would
|
|
31
|
+
* silently drop). Callers that need to canonicalize any of these must
|
|
32
|
+
* convert them to a supported representation first.
|
|
33
|
+
*
|
|
34
|
+
* The output format is intentionally not JSON: the type tags and BigInt
|
|
35
|
+
* suffix mean it cannot be round-tripped via `JSON.parse`. The goal is
|
|
36
|
+
* keying, not serialization.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* canonicalStringify({ a: 1, b: 2 }) === canonicalStringify({ b: 2, a: 1 })
|
|
41
|
+
* // → true
|
|
42
|
+
*
|
|
43
|
+
* canonicalStringify(1n) !== canonicalStringify(1)
|
|
44
|
+
* // → true
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
function canonicalStringify(value) {
|
|
48
|
+
return write(value, /* @__PURE__ */ new Set());
|
|
49
|
+
}
|
|
50
|
+
function write(value, seen) {
|
|
51
|
+
if (value === null) return "null";
|
|
52
|
+
if (value === void 0) return "undefined";
|
|
53
|
+
switch (typeof value) {
|
|
54
|
+
case "boolean": return value ? "true" : "false";
|
|
55
|
+
case "number": return writeNumber(value);
|
|
56
|
+
case "bigint": return `${value.toString()}n`;
|
|
57
|
+
case "string": return JSON.stringify(value);
|
|
58
|
+
case "function": throw new TypeError("canonicalStringify: functions are not supported");
|
|
59
|
+
case "symbol": throw new TypeError("canonicalStringify: symbols are not supported");
|
|
60
|
+
}
|
|
61
|
+
const obj = value;
|
|
62
|
+
if (value instanceof Date) return `Date(${value.toISOString()})`;
|
|
63
|
+
if (value instanceof Uint8Array) return `Bytes(${bytesToHex(value)})`;
|
|
64
|
+
if (ArrayBuffer.isView(value)) return `${value.constructor.name}(${bytesToHex(new Uint8Array(value.buffer, value.byteOffset, value.byteLength))})`;
|
|
65
|
+
if (seen.has(obj)) throw new TypeError("canonicalStringify: circular reference detected");
|
|
66
|
+
seen.add(obj);
|
|
67
|
+
try {
|
|
68
|
+
if (Array.isArray(value)) return `[${value.map((item) => write(item, seen)).join(",")}]`;
|
|
69
|
+
return writePlainObject(obj, seen);
|
|
70
|
+
} finally {
|
|
71
|
+
seen.delete(obj);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function writeNumber(value) {
|
|
75
|
+
if (Number.isNaN(value)) return "NaN";
|
|
76
|
+
if (value === Number.POSITIVE_INFINITY) return "Infinity";
|
|
77
|
+
if (value === Number.NEGATIVE_INFINITY) return "-Infinity";
|
|
78
|
+
if (value === 0 && 1 / value === Number.NEGATIVE_INFINITY) return "-0";
|
|
79
|
+
return String(value);
|
|
80
|
+
}
|
|
81
|
+
function writePlainObject(obj, seen) {
|
|
82
|
+
const proto = Object.getPrototypeOf(obj);
|
|
83
|
+
if (proto !== Object.prototype && proto !== null) {
|
|
84
|
+
const tag = proto?.constructor?.name ?? "unknown";
|
|
85
|
+
throw new TypeError(`canonicalStringify: non-plain objects are not supported (got ${tag})`);
|
|
86
|
+
}
|
|
87
|
+
if (Object.getOwnPropertySymbols(obj).length > 0) throw new TypeError("canonicalStringify: objects with symbol-keyed properties are not supported");
|
|
88
|
+
const keys = Object.keys(obj).sort();
|
|
89
|
+
const parts = [];
|
|
90
|
+
for (const key of keys) parts.push(`${JSON.stringify(key)}:${write(obj[key], seen)}`);
|
|
91
|
+
return `{${parts.join(",")}}`;
|
|
92
|
+
}
|
|
93
|
+
function bytesToHex(bytes) {
|
|
94
|
+
let out = "";
|
|
95
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
96
|
+
const byte = bytes[i];
|
|
97
|
+
out += byte.toString(16).padStart(2, "0");
|
|
98
|
+
}
|
|
99
|
+
return out;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { canonicalStringify as t };
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=canonical-stringify-DY4NaAJi.mjs.map
|