@mionjs/run-types 0.13.2 → 0.14.0
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/README.md +3 -3
- package/dist/builders/atomic.js.map +1 -1
- package/dist/builders/compose.js.map +1 -1
- package/dist/builders/index.js.map +1 -1
- package/dist/builders/static.js.map +1 -1
- package/dist/builders/utility.js.map +1 -1
- package/dist/createRTFunctions.js.map +1 -1
- package/dist/enrich/createFriendlyText.js.map +1 -1
- package/dist/enrich/friendlyText.js.map +1 -1
- package/dist/enrich/mockData.js.map +1 -1
- package/dist/fnHash.js.map +1 -1
- package/dist/formats/bigintFormats.js.map +1 -1
- package/dist/formats/datetime/dateFormats.js.map +1 -1
- package/dist/formats/datetime/dateTime-pure-fns.d.ts +21 -21
- package/dist/formats/datetime/dateTime-pure-fns.js +7 -0
- package/dist/formats/datetime/dateTime-pure-fns.js.map +1 -1
- package/dist/formats/datetime/dateTimeParams.js.map +1 -1
- package/dist/formats/datetime/stringDateTimeFormats.js.map +1 -1
- package/dist/formats/datetime/temporalFormats.js.map +1 -1
- package/dist/formats/index.js.map +1 -1
- package/dist/formats/numberFormats.js.map +1 -1
- package/dist/formats/refineFormat.js.map +1 -1
- package/dist/formats/scalars.js.map +1 -1
- package/dist/formats/string/credit-card-pure-fns.d.ts +4 -4
- package/dist/formats/string/credit-card-pure-fns.js.map +1 -1
- package/dist/formats/string/string-formats-pure-fns.d.ts +12 -12
- package/dist/formats/string/string-formats-pure-fns.js +9 -0
- package/dist/formats/string/string-formats-pure-fns.js.map +1 -1
- package/dist/formats/string/string-patterns.js.map +1 -1
- package/dist/formats/string/stringFormats.js.map +1 -1
- package/dist/formats/structural.js.map +1 -1
- package/dist/getRunType.js.map +1 -1
- package/dist/go-generated/fnHashes.generated.js.map +1 -1
- package/dist/go-generated/formatErrorKeys.generated.js.map +1 -1
- package/dist/go-generated/runTypeKind.generated.js.map +1 -1
- package/dist/go-generated/typeFormats.generated.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/markers.js.map +1 -1
- package/dist/mion-pure-fns/_rt/-yTRFuK01Y.js +2 -0
- package/dist/mion-pure-fns/_rt/0yJQ37XnmN.js +2 -0
- package/dist/mion-pure-fns/_rt/2xtQHAMu-y.js +1 -0
- package/dist/mion-pure-fns/_rt/3RndhrueRD.js +2 -0
- package/dist/mion-pure-fns/_rt/5oCqd7YyfA.js +1 -0
- package/dist/mion-pure-fns/_rt/6E7qWsIwaF.js +1 -0
- package/dist/mion-pure-fns/_rt/8AgZCCAhyw.js +1 -0
- package/dist/mion-pure-fns/_rt/AmEsDA-eXW.js +2 -0
- package/dist/mion-pure-fns/_rt/D503ooPt08.js +2 -0
- package/dist/mion-pure-fns/_rt/GA20s6bj41.js +1 -0
- package/dist/mion-pure-fns/_rt/GaLOTE4b_F.js +2 -0
- package/dist/mion-pure-fns/_rt/ICDNQUtC8e.js +1 -0
- package/dist/mion-pure-fns/_rt/IyjvBbz0zS.js +1 -0
- package/dist/mion-pure-fns/_rt/Nnf7kyDfjI.js +2 -0
- package/dist/mion-pure-fns/_rt/OCJ1B0-ZCA.js +1 -0
- package/dist/mion-pure-fns/_rt/OXVO2EpSFv.js +1 -0
- package/dist/mion-pure-fns/_rt/PZzwu-J2YB.js +2 -0
- package/dist/mion-pure-fns/_rt/Qd_9GJQlOC.js +1 -0
- package/dist/mion-pure-fns/_rt/T48n0wyjPx.js +2 -0
- package/dist/mion-pure-fns/_rt/VJiknJ2exR.js +1 -0
- package/dist/mion-pure-fns/_rt/Z2sc5xQPKB.js +1 -0
- package/dist/mion-pure-fns/_rt/ZPLfUKoTJQ.js +1 -0
- package/dist/mion-pure-fns/_rt/_abcB3do2M.js +1 -0
- package/dist/mion-pure-fns/_rt/cK87_2eKQW.js +1 -0
- package/dist/mion-pure-fns/_rt/cgwpjq6rGs.js +1 -0
- package/dist/mion-pure-fns/_rt/d8U9HjmMsN.js +1 -0
- package/dist/mion-pure-fns/_rt/eglb1lzTW9.js +1 -0
- package/dist/mion-pure-fns/_rt/eupKgBrCGt.js +2 -0
- package/dist/mion-pure-fns/_rt/gNpMnJMAUE.js +4 -0
- package/dist/mion-pure-fns/_rt/hiotRbfSKF.js +1 -0
- package/dist/mion-pure-fns/_rt/i-jWpjiwhL.js +1 -0
- package/dist/mion-pure-fns/_rt/iFXkEtW54e.js +1 -0
- package/dist/mion-pure-fns/_rt/jKlKNzqG2-.js +1 -0
- package/dist/mion-pure-fns/_rt/kSLD_nEHux.js +1 -0
- package/dist/mion-pure-fns/_rt/lBHf1kg5nQ.js +1 -0
- package/dist/mion-pure-fns/_rt/lFYcgG5ZSI.js +1 -0
- package/dist/mion-pure-fns/_rt/nLaf1XVvS4.js +2 -0
- package/dist/mion-pure-fns/_rt/n_ZOWff4X3.js +1 -0
- package/dist/mion-pure-fns/_rt/nsU8QeJCuC.js +1 -0
- package/dist/mion-pure-fns/_rt/oUfCfYMODo.js +2 -0
- package/dist/mion-pure-fns/_rt/t3CflNaUUJ.js +2 -0
- package/dist/mion-pure-fns/_rt/tfRjnFZVF8.js +1 -0
- package/dist/mion-pure-fns/_rt/u0Mw9bizvB.js +1 -0
- package/dist/mion-pure-fns/_rt/vPNeWxcCkj.js +3 -0
- package/dist/mion-pure-fns/_rt/wSBaXrUNw9.js +1 -0
- package/dist/mion-pure-fns/_rt/zaCgqTB_lJ.js +5 -0
- package/dist/mion-pure-fns/index.json +114 -114
- package/dist/mocking/childMatch.js.map +1 -1
- package/dist/mocking/constants.mock.d.ts +0 -1
- package/dist/mocking/constants.mock.js +0 -1
- package/dist/mocking/constants.mock.js.map +1 -1
- package/dist/mocking/createMockData.js.map +1 -1
- package/dist/mocking/index.js.map +1 -1
- package/dist/mocking/isMultipleOf.js.map +1 -1
- package/dist/mocking/mockBigIntFormat.js.map +1 -1
- package/dist/mocking/mockDateTimeBounds.js.map +1 -1
- package/dist/mocking/mockInvalid.js.map +1 -1
- package/dist/mocking/mockNumberFormat.js.map +1 -1
- package/dist/mocking/mockRandom.js.map +1 -1
- package/dist/mocking/mockRegistry.js.map +1 -1
- package/dist/mocking/mockStringFormat.js +1 -1
- package/dist/mocking/mockStringFormat.js.map +1 -1
- package/dist/mocking/mockTemporal.js.map +1 -1
- package/dist/mocking/mockType.js.map +1 -1
- package/dist/mocking/mockTypes.js.map +1 -1
- package/dist/mocking/structuralFormat.js.map +1 -1
- package/dist/modelTypes.js.map +1 -1
- package/dist/overrideRTFunctions.js.map +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtypes/builderCore.js.map +1 -1
- package/dist/runtypes/builderTypes.js.map +1 -1
- package/dist/runtypes/circular-pure-fns.d.ts +1 -1
- package/dist/runtypes/circular-pure-fns.js.map +1 -1
- package/dist/runtypes/circular.js.map +1 -1
- package/dist/runtypes/classSerializerRegistry.js.map +1 -1
- package/dist/runtypes/dataOnly.js.map +1 -1
- package/dist/runtypes/entryTuple.js +30 -3
- package/dist/runtypes/entryTuple.js.map +1 -1
- package/dist/runtypes/formatAnnotation.js.map +1 -1
- package/dist/runtypes/formatErrors.js.map +1 -1
- package/dist/runtypes/formatPattern.js.map +1 -1
- package/dist/runtypes/jsonShape.js.map +1 -1
- package/dist/runtypes/pure-fn-ids.generated.d.ts +47 -47
- package/dist/runtypes/pure-fn-ids.generated.js +47 -47
- package/dist/runtypes/pure-fn-ids.generated.js.map +1 -1
- package/dist/runtypes/pure-fns-utils.d.ts +8 -8
- package/dist/runtypes/pure-fns-utils.js +0 -1
- package/dist/runtypes/pure-fns-utils.js.map +1 -1
- package/dist/runtypes/pureFn.js.map +1 -1
- package/dist/runtypes/rtUtils.js +16 -3
- package/dist/runtypes/rtUtils.js.map +1 -1
- package/dist/runtypes/sentinelKeys.js.map +1 -1
- package/dist/runtypes/stripRunTypeMeta.js.map +1 -1
- package/dist/runtypes/typeFormat.js.map +1 -1
- package/dist/runtypes/types.js.map +1 -1
- package/dist/standard/createJsonSchemaFn.js.map +1 -1
- package/dist/standard/createStandardSchema.js.map +1 -1
- package/dist/standard/issueMapping.js +2 -0
- package/dist/standard/issueMapping.js.map +1 -1
- package/dist/standard/jsonSchemaDoc.js.map +1 -1
- package/dist/standard/spec.js.map +1 -1
- package/package.json +21 -58
- package/dist/cjs/builders/atomic.d.ts +0 -12
- package/dist/cjs/builders/atomic.js +0 -43
- package/dist/cjs/builders/compose.d.ts +0 -60
- package/dist/cjs/builders/compose.js +0 -122
- package/dist/cjs/builders/index.d.ts +0 -5
- package/dist/cjs/builders/index.js +0 -48
- package/dist/cjs/builders/static.d.ts +0 -137
- package/dist/cjs/builders/static.js +0 -2
- package/dist/cjs/builders/utility.d.ts +0 -12
- package/dist/cjs/builders/utility.js +0 -43
- package/dist/cjs/createRTFunctions.d.ts +0 -90
- package/dist/cjs/createRTFunctions.js +0 -38
- package/dist/cjs/enrich/createFriendlyText.d.ts +0 -25
- package/dist/cjs/enrich/createFriendlyText.js +0 -275
- package/dist/cjs/enrich/friendlyText.d.ts +0 -56
- package/dist/cjs/enrich/friendlyText.js +0 -2
- package/dist/cjs/enrich/mockData.d.ts +0 -53
- package/dist/cjs/enrich/mockData.js +0 -2
- package/dist/cjs/fnHash.d.ts +0 -8
- package/dist/cjs/fnHash.js +0 -41
- package/dist/cjs/formats/bigintFormats.d.ts +0 -41
- package/dist/cjs/formats/bigintFormats.js +0 -10
- package/dist/cjs/formats/datetime/dateFormats.d.ts +0 -10
- package/dist/cjs/formats/datetime/dateFormats.js +0 -2
- package/dist/cjs/formats/datetime/dateTime-pure-fns.d.ts +0 -21
- package/dist/cjs/formats/datetime/dateTime-pure-fns.js +0 -405
- package/dist/cjs/formats/datetime/dateTimeParams.d.ts +0 -14
- package/dist/cjs/formats/datetime/dateTimeParams.js +0 -2
- package/dist/cjs/formats/datetime/stringDateTimeFormats.d.ts +0 -33
- package/dist/cjs/formats/datetime/stringDateTimeFormats.js +0 -2
- package/dist/cjs/formats/datetime/temporalFormats.d.ts +0 -84
- package/dist/cjs/formats/datetime/temporalFormats.js +0 -23
- package/dist/cjs/formats/index.d.ts +0 -18
- package/dist/cjs/formats/index.js +0 -88
- package/dist/cjs/formats/numberFormats.d.ts +0 -82
- package/dist/cjs/formats/numberFormats.js +0 -16
- package/dist/cjs/formats/refineFormat.d.ts +0 -24
- package/dist/cjs/formats/refineFormat.js +0 -2
- package/dist/cjs/formats/scalars.d.ts +0 -32
- package/dist/cjs/formats/scalars.js +0 -30
- package/dist/cjs/formats/string/credit-card-pure-fns.d.ts +0 -26
- package/dist/cjs/formats/string/credit-card-pure-fns.js +0 -151
- package/dist/cjs/formats/string/string-formats-pure-fns.d.ts +0 -12
- package/dist/cjs/formats/string/string-formats-pure-fns.js +0 -517
- package/dist/cjs/formats/string/string-patterns.d.ts +0 -111
- package/dist/cjs/formats/string/string-patterns.js +0 -115
- package/dist/cjs/formats/string/stringFormats.d.ts +0 -489
- package/dist/cjs/formats/string/stringFormats.js +0 -84
- package/dist/cjs/formats/structural.d.ts +0 -105
- package/dist/cjs/formats/structural.js +0 -7
- package/dist/cjs/getRunType.d.ts +0 -4
- package/dist/cjs/getRunType.js +0 -20
- package/dist/cjs/go-generated/fnHashes.generated.d.ts +0 -196
- package/dist/cjs/go-generated/fnHashes.generated.js +0 -78
- package/dist/cjs/go-generated/formatErrorKeys.generated.d.ts +0 -78
- package/dist/cjs/go-generated/formatErrorKeys.generated.js +0 -40
- package/dist/cjs/go-generated/runTypeKind.generated.d.ts +0 -62
- package/dist/cjs/go-generated/runTypeKind.generated.js +0 -61
- package/dist/cjs/go-generated/typeFormats.generated.d.ts +0 -104
- package/dist/cjs/go-generated/typeFormats.generated.js +0 -30
- package/dist/cjs/index.d.ts +0 -28
- package/dist/cjs/index.js +0 -47
- package/dist/cjs/markers.d.ts +0 -33
- package/dist/cjs/markers.js +0 -14
- package/dist/cjs/mocking/childMatch.d.ts +0 -3
- package/dist/cjs/mocking/childMatch.js +0 -357
- package/dist/cjs/mocking/constants.mock.d.ts +0 -7
- package/dist/cjs/mocking/constants.mock.js +0 -87
- package/dist/cjs/mocking/createMockData.d.ts +0 -8
- package/dist/cjs/mocking/createMockData.js +0 -53
- package/dist/cjs/mocking/index.d.ts +0 -4
- package/dist/cjs/mocking/index.js +0 -9
- package/dist/cjs/mocking/isMultipleOf.d.ts +0 -2
- package/dist/cjs/mocking/isMultipleOf.js +0 -11
- package/dist/cjs/mocking/mockBigIntFormat.d.ts +0 -1
- package/dist/cjs/mocking/mockBigIntFormat.js +0 -38
- package/dist/cjs/mocking/mockDateTimeBounds.d.ts +0 -13
- package/dist/cjs/mocking/mockDateTimeBounds.js +0 -277
- package/dist/cjs/mocking/mockInvalid.d.ts +0 -15
- package/dist/cjs/mocking/mockInvalid.js +0 -233
- package/dist/cjs/mocking/mockNumberFormat.d.ts +0 -1
- package/dist/cjs/mocking/mockNumberFormat.js +0 -56
- package/dist/cjs/mocking/mockRandom.d.ts +0 -20
- package/dist/cjs/mocking/mockRandom.js +0 -106
- package/dist/cjs/mocking/mockRegistry.d.ts +0 -7
- package/dist/cjs/mocking/mockRegistry.js +0 -11
- package/dist/cjs/mocking/mockStringFormat.d.ts +0 -5
- package/dist/cjs/mocking/mockStringFormat.js +0 -238
- package/dist/cjs/mocking/mockTemporal.d.ts +0 -13
- package/dist/cjs/mocking/mockTemporal.js +0 -233
- package/dist/cjs/mocking/mockType.d.ts +0 -3
- package/dist/cjs/mocking/mockType.js +0 -810
- package/dist/cjs/mocking/mockTypes.d.ts +0 -54
- package/dist/cjs/mocking/mockTypes.js +0 -2
- package/dist/cjs/mocking/structuralFormat.d.ts +0 -5
- package/dist/cjs/mocking/structuralFormat.js +0 -82
- package/dist/cjs/modelTypes.d.ts +0 -11
- package/dist/cjs/modelTypes.js +0 -2
- package/dist/cjs/overrideRTFunctions.d.ts +0 -9
- package/dist/cjs/overrideRTFunctions.js +0 -20
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/runtime/index.d.ts +0 -10
- package/dist/cjs/runtime/index.js +0 -25
- package/dist/cjs/runtypes/builderCore.d.ts +0 -7
- package/dist/cjs/runtypes/builderCore.js +0 -39
- package/dist/cjs/runtypes/builderTypes.d.ts +0 -51
- package/dist/cjs/runtypes/builderTypes.js +0 -2
- package/dist/cjs/runtypes/circular-pure-fns.d.ts +0 -11
- package/dist/cjs/runtypes/circular-pure-fns.js +0 -117
- package/dist/cjs/runtypes/circular.d.ts +0 -6
- package/dist/cjs/runtypes/circular.js +0 -25
- package/dist/cjs/runtypes/classSerializerRegistry.d.ts +0 -28
- package/dist/cjs/runtypes/classSerializerRegistry.js +0 -141
- package/dist/cjs/runtypes/dataOnly.d.ts +0 -29
- package/dist/cjs/runtypes/dataOnly.js +0 -2
- package/dist/cjs/runtypes/entryTuple.d.ts +0 -101
- package/dist/cjs/runtypes/entryTuple.js +0 -395
- package/dist/cjs/runtypes/formatAnnotation.d.ts +0 -4
- package/dist/cjs/runtypes/formatAnnotation.js +0 -2
- package/dist/cjs/runtypes/formatErrors.d.ts +0 -18
- package/dist/cjs/runtypes/formatErrors.js +0 -2
- package/dist/cjs/runtypes/formatPattern.d.ts +0 -20
- package/dist/cjs/runtypes/formatPattern.js +0 -17
- package/dist/cjs/runtypes/jsonShape.d.ts +0 -22
- package/dist/cjs/runtypes/jsonShape.js +0 -2
- package/dist/cjs/runtypes/pure-fn-ids.generated.d.ts +0 -47
- package/dist/cjs/runtypes/pure-fn-ids.generated.js +0 -50
- package/dist/cjs/runtypes/pure-fns-utils.d.ts +0 -8
- package/dist/cjs/runtypes/pure-fns-utils.js +0 -147
- package/dist/cjs/runtypes/pureFn.d.ts +0 -7
- package/dist/cjs/runtypes/pureFn.js +0 -52
- package/dist/cjs/runtypes/rtUtils.d.ts +0 -45
- package/dist/cjs/runtypes/rtUtils.js +0 -218
- package/dist/cjs/runtypes/sentinelKeys.d.ts +0 -7
- package/dist/cjs/runtypes/sentinelKeys.js +0 -2
- package/dist/cjs/runtypes/stripRunTypeMeta.d.ts +0 -53
- package/dist/cjs/runtypes/stripRunTypeMeta.js +0 -2
- package/dist/cjs/runtypes/typeFormat.d.ts +0 -14
- package/dist/cjs/runtypes/typeFormat.js +0 -2
- package/dist/cjs/runtypes/types.d.ts +0 -114
- package/dist/cjs/runtypes/types.js +0 -2
- package/dist/cjs/standard/createJsonSchemaFn.d.ts +0 -8
- package/dist/cjs/standard/createJsonSchemaFn.js +0 -16
- package/dist/cjs/standard/createStandardSchema.d.ts +0 -18
- package/dist/cjs/standard/createStandardSchema.js +0 -30
- package/dist/cjs/standard/issueMapping.d.ts +0 -12
- package/dist/cjs/standard/issueMapping.js +0 -36
- package/dist/cjs/standard/jsonSchemaDoc.d.ts +0 -7
- package/dist/cjs/standard/jsonSchemaDoc.js +0 -95
- package/dist/cjs/standard/spec.d.ts +0 -47
- package/dist/cjs/standard/spec.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/-y__pOnrgnvRMz.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/0ofEnb55W0BDIY.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/18wDCH5CXZoQKV.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/2xtQHAMu-yOBo6.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/5oCqd7YyfA9rEw.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/6E7qWsIwaFRGn6.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/6xkN1Qfs9nqO79.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/8Mj42N3ytEEn67.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/A3KjzpjelkcBST.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/AgOXcprpjsrTKk.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/E29ul2pUOyD_Ay.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/EG8OkOOSnT9bZn.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/EYsxRHRDgAykA_.js +0 -3
- package/dist/mion-pure-fns/@mionjs/run-types/Eube1z0GFHuqlM.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/GA20s6bj41GC1A.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/GfQK19ktpvibuZ.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/IyjvBbz0zSlgCJ.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/LqTR2O-h6MYq9J.js +0 -4
- package/dist/mion-pure-fns/@mionjs/run-types/MnJ72PqkyXHiSP.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/NJ9TCGDnkv_9Mn.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/OCJ1B0-ZCAwagS.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/PQVLEBllZckw8I.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/Qd_9GJQlOCVqDe.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/R0IFkkw4SM2gvv.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/THkAA-KNR1HeAe.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/VJiknJ2exR2oMF.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/XYGjy-tcgDROBw.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/Z2sc5xQPKB0oav.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/_3Pmrr5aNmyNi4.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/cgwpjq6rGsI8jb.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/d8U9HjmMsNFd6Z.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/fL3v1v6aVZwJ7-.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/gFl-yXbCxJqWgQ.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/hiotRbfSKFAuK4.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/lFYcgG5ZSI-8em.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/n_ZOWff4X3qBMQ.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/ndkQPoji6DFHx2.js +0 -2
- package/dist/mion-pure-fns/@mionjs/run-types/nsU8QeJCuCF8Kr.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/qMsNYN8hy_sC8i.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/rXVwGkGDX08BsQ.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/rgWveqNi_HeFF8.js +0 -5
- package/dist/mion-pure-fns/@mionjs/run-types/s-tZDRlQfCG5m2.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/t-ntJ9S0FuxkC2.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/tfRjnFZVF8lqI_.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/vLId7t0J8HNWlN.js +0 -1
- package/dist/mion-pure-fns/@mionjs/run-types/zXMPEMyjGR4ZRc.js +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { MockData } from '../enrich/mockData.ts';
|
|
2
|
-
import type { MockRandom } from './mockRandom.ts';
|
|
3
|
-
export interface MockOptions {
|
|
4
|
-
anyValuesList: unknown[];
|
|
5
|
-
minNumber?: number;
|
|
6
|
-
maxNumber?: number;
|
|
7
|
-
minDate?: number | Date;
|
|
8
|
-
maxDate?: number | Date;
|
|
9
|
-
enumIndex?: number;
|
|
10
|
-
objectList: object[];
|
|
11
|
-
promiseTimeOut: number;
|
|
12
|
-
promiseReject?: unknown;
|
|
13
|
-
regexpList: RegExp[];
|
|
14
|
-
maxRandomStringLength: number;
|
|
15
|
-
stringLength?: number;
|
|
16
|
-
stringCharSet: string;
|
|
17
|
-
symbolLength?: number;
|
|
18
|
-
symbolCharSet?: string;
|
|
19
|
-
symbolName?: string;
|
|
20
|
-
maxRandomItemsLength: number;
|
|
21
|
-
arrayLength?: number;
|
|
22
|
-
optionalProbability: number;
|
|
23
|
-
optionalPropertyProbability?: Record<string | number, number>;
|
|
24
|
-
parentObj?: Record<string | number | symbol, unknown>;
|
|
25
|
-
unionIndex?: number;
|
|
26
|
-
tupleOptions?: MockOptions[];
|
|
27
|
-
paramsOptions?: MockOptions[];
|
|
28
|
-
maxStackDepth: number;
|
|
29
|
-
maxMockRecursion: number;
|
|
30
|
-
nonDataTypes?: boolean;
|
|
31
|
-
invalid?: boolean;
|
|
32
|
-
invalidLeafProbability?: number;
|
|
33
|
-
testCreditCards?: boolean;
|
|
34
|
-
seed?: number;
|
|
35
|
-
random?: MockRandom;
|
|
36
|
-
}
|
|
37
|
-
export interface MockDataNode {
|
|
38
|
-
pool?: unknown[];
|
|
39
|
-
min?: number | Date;
|
|
40
|
-
max?: number | Date;
|
|
41
|
-
rt$items?: MockDataNode;
|
|
42
|
-
rt$length?: number | [number, number];
|
|
43
|
-
rt$optional?: number;
|
|
44
|
-
[property: string]: unknown;
|
|
45
|
-
}
|
|
46
|
-
export interface RunTypeMockOptions<T = unknown> {
|
|
47
|
-
mock?: DeepPartial<MockOptions>;
|
|
48
|
-
data?: MockData<T>;
|
|
49
|
-
dataNode?: MockDataNode;
|
|
50
|
-
}
|
|
51
|
-
export type MockTypeFn<T = unknown> = (options?: DeepPartial<RunTypeMockOptions>) => T;
|
|
52
|
-
export type DeepPartial<T> = T extends object ? (T extends ReadonlyArray<unknown> ? T : {
|
|
53
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
54
|
-
}) : T;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FormatAnnotation } from '../runtypes/formatAnnotation.ts';
|
|
2
|
-
export declare function canonicalJson(value: unknown): string;
|
|
3
|
-
export declare function hasDuplicateItems(items: readonly unknown[]): boolean;
|
|
4
|
-
export declare function isStructuralFormat(annotation: FormatAnnotation | undefined): boolean;
|
|
5
|
-
export declare function structuralFormatAccepts(value: unknown, annotation: FormatAnnotation | undefined): boolean;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.canonicalJson = canonicalJson;
|
|
4
|
-
exports.hasDuplicateItems = hasDuplicateItems;
|
|
5
|
-
exports.isStructuralFormat = isStructuralFormat;
|
|
6
|
-
exports.structuralFormatAccepts = structuralFormatAccepts;
|
|
7
|
-
function canonicalJson(value) {
|
|
8
|
-
if (value === null || typeof value !== 'object') {
|
|
9
|
-
return typeof value === 'string' ? JSON.stringify(value) : typeof value + ':' + String(value);
|
|
10
|
-
}
|
|
11
|
-
if (Array.isArray(value))
|
|
12
|
-
return '[' + value.map(canonicalJson).join(',') + ']';
|
|
13
|
-
const record = value;
|
|
14
|
-
const keys = Object.keys(record).sort();
|
|
15
|
-
return '{' + keys.map((key) => JSON.stringify(key) + ':' + canonicalJson(record[key])).join(',') + '}';
|
|
16
|
-
}
|
|
17
|
-
function hasDuplicateItems(items) {
|
|
18
|
-
const seen = new Set();
|
|
19
|
-
for (const item of items) {
|
|
20
|
-
const key = canonicalJson(item);
|
|
21
|
-
if (seen.has(key))
|
|
22
|
-
return true;
|
|
23
|
-
seen.add(key);
|
|
24
|
-
}
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
function isStructuralFormat(annotation) {
|
|
28
|
-
if (annotation === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
switch (annotation.name) {
|
|
31
|
-
case 'formattedArray':
|
|
32
|
-
case 'formattedObject':
|
|
33
|
-
case 'formattedSet':
|
|
34
|
-
case 'formattedMap':
|
|
35
|
-
return true;
|
|
36
|
-
default:
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function itemKeywordsAccept(items, params) {
|
|
41
|
-
if (typeof params.minItems === 'number' && items.length < params.minItems)
|
|
42
|
-
return false;
|
|
43
|
-
if (typeof params.maxItems === 'number' && items.length > params.maxItems)
|
|
44
|
-
return false;
|
|
45
|
-
if (params.uniqueItems === true && hasDuplicateItems(items))
|
|
46
|
-
return false;
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
function structuralFormatAccepts(value, annotation) {
|
|
50
|
-
if (!annotation)
|
|
51
|
-
return true;
|
|
52
|
-
const params = (annotation.params ?? {});
|
|
53
|
-
if (annotation.name === 'formattedArray') {
|
|
54
|
-
return Array.isArray(value) && itemKeywordsAccept(value, params);
|
|
55
|
-
}
|
|
56
|
-
if (annotation.name === 'formattedSet') {
|
|
57
|
-
return value instanceof Set && itemKeywordsAccept([...value], params);
|
|
58
|
-
}
|
|
59
|
-
if (annotation.name === 'formattedMap') {
|
|
60
|
-
return value instanceof Map && itemKeywordsAccept([...value], params);
|
|
61
|
-
}
|
|
62
|
-
if (annotation.name === 'formattedObject') {
|
|
63
|
-
if (typeof value !== 'object' || value === null)
|
|
64
|
-
return false;
|
|
65
|
-
const keys = Object.keys(value);
|
|
66
|
-
if (typeof params.minProperties === 'number' && keys.length < params.minProperties)
|
|
67
|
-
return false;
|
|
68
|
-
if (typeof params.maxProperties === 'number' && keys.length > params.maxProperties)
|
|
69
|
-
return false;
|
|
70
|
-
const closed = params.closed;
|
|
71
|
-
if (Array.isArray(closed)) {
|
|
72
|
-
const patterns = Array.isArray(params.closedPatterns)
|
|
73
|
-
? params.closedPatterns.filter((entry) => typeof entry === 'string')
|
|
74
|
-
: [];
|
|
75
|
-
const allowed = (key) => closed.includes(key) || patterns.some((source) => new RegExp(source).test(key));
|
|
76
|
-
if (!keys.every(allowed))
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
return true;
|
|
82
|
-
}
|
package/dist/cjs/modelTypes.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Prettify<T> = {
|
|
2
|
-
[K in keyof T]: T[K];
|
|
3
|
-
} & {};
|
|
4
|
-
export type SelectModel<T> = Prettify<{
|
|
5
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? NonNullable<T[K]> | null : T[K];
|
|
6
|
-
}>;
|
|
7
|
-
export type InsertModel<T, Generated extends keyof T = never, Defaulted extends keyof T = never> = Prettify<Omit<T, Generated | Defaulted> & {
|
|
8
|
-
[K in Defaulted]?: T[K];
|
|
9
|
-
}>;
|
|
10
|
-
export type UpdateModel<T, Generated extends keyof T = never> = Prettify<Partial<Omit<T, Generated>>>;
|
|
11
|
-
export {};
|
package/dist/cjs/modelTypes.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { InjectTypeFnArgs, PureFunction } from './markers.ts';
|
|
2
|
-
import type { DataOnly } from './runtypes/dataOnly.ts';
|
|
3
|
-
import type { ValidateFn, GetValidationErrorsFn, RemoveUnknownKeysFn, FormatTransformFn, JsonEncoderFn, JsonDecoderFn } from './createRTFunctions.ts';
|
|
4
|
-
export declare const overrideValidate: <T>(fn: PureFunction<ValidateFn<T>>, id?: InjectTypeFnArgs<T, "validate">) => void;
|
|
5
|
-
export declare const overrideGetValidationErrors: <T>(fn: PureFunction<GetValidationErrorsFn>, id?: InjectTypeFnArgs<T, "validationErrors">) => void;
|
|
6
|
-
export declare const overrideRemoveUnknownKeys: <T>(fn: PureFunction<RemoveUnknownKeysFn<T>>, id?: InjectTypeFnArgs<T, "removeUnknownKeys">) => void;
|
|
7
|
-
export declare const overrideFormatTransform: <T>(fn: PureFunction<FormatTransformFn<T>>, id?: InjectTypeFnArgs<T, "formatTransform">) => void;
|
|
8
|
-
export declare const overrideJsonEncoder: <T>(fn: PureFunction<JsonEncoderFn>, id?: InjectTypeFnArgs<T, "jsonEncoder">) => void;
|
|
9
|
-
export declare const overrideJsonDecoder: <T>(fn: PureFunction<JsonDecoderFn<DataOnly<T>>>, id?: InjectTypeFnArgs<T, "jsonDecoder">) => void;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.overrideJsonDecoder = exports.overrideJsonEncoder = exports.overrideFormatTransform = exports.overrideRemoveUnknownKeys = exports.overrideGetValidationErrors = exports.overrideValidate = void 0;
|
|
4
|
-
const entryTuple_ts_1 = require("./runtypes/entryTuple.js");
|
|
5
|
-
function overrideImpl(_pureFn, id) {
|
|
6
|
-
if ((0, entryTuple_ts_1.isEntryTuple)(id)) {
|
|
7
|
-
(0, entryTuple_ts_1.initFromTuple)(id);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (typeof console !== 'undefined') {
|
|
11
|
-
console.warn('[mion] overrideX(): no entry injected. The @mionjs/devtools plugin ' +
|
|
12
|
-
'must be active for per-type overrides to take effect.');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.overrideValidate = overrideImpl;
|
|
16
|
-
exports.overrideGetValidationErrors = overrideImpl;
|
|
17
|
-
exports.overrideRemoveUnknownKeys = overrideImpl;
|
|
18
|
-
exports.overrideFormatTransform = overrideImpl;
|
|
19
|
-
exports.overrideJsonEncoder = overrideImpl;
|
|
20
|
-
exports.overrideJsonDecoder = overrideImpl;
|
package/dist/cjs/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { getRTUtils, getRTFnCaches, type RTUtils } from '../runtypes/rtUtils.ts';
|
|
2
|
-
export { buildFactoryFromCode, buildPureFnFactoryFromCode, entryCode } from '../runtypes/rtUtils.ts';
|
|
3
|
-
export { getFnHash, type FnHashKey, type FnHashOptions } from '../fnHash.ts';
|
|
4
|
-
export { FAMILY_TAG_TO_FN_KEY } from '../go-generated/fnHashes.generated.ts';
|
|
5
|
-
export { registerPureFnFactory, registerPureFn, type PureFnId } from '../runtypes/pureFn.ts';
|
|
6
|
-
export { RUN_TYPES_PURE_FN_ID_PREFIX } from '../runtypes/pure-fn-ids.generated.ts';
|
|
7
|
-
export { registerClassSerializer, type ClassSerializerHandler, type AnyClass, type SerializableClass, type DeserializeClassFn, } from '../runtypes/classSerializerRegistry.ts';
|
|
8
|
-
export { typeFormats, type FormatName, type TypeFormatMeta } from '../go-generated/typeFormats.generated.ts';
|
|
9
|
-
export { getRTFunction, type RTFunctionByKey, type RTFunctionKey } from '../createRTFunctions.ts';
|
|
10
|
-
export type { FnTypeTuple, PureFnTuple, MissingTuple, RunTypeTuple, RunTypeBundleTuple, RunTypeFacadeTuple, } from '../runtypes/entryTuple.ts';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRTFunction = exports.typeFormats = exports.registerClassSerializer = exports.RUN_TYPES_PURE_FN_ID_PREFIX = exports.registerPureFn = exports.registerPureFnFactory = exports.FAMILY_TAG_TO_FN_KEY = exports.getFnHash = exports.entryCode = exports.buildPureFnFactoryFromCode = exports.buildFactoryFromCode = exports.getRTFnCaches = exports.getRTUtils = void 0;
|
|
4
|
-
var rtUtils_ts_1 = require("../runtypes/rtUtils.js");
|
|
5
|
-
Object.defineProperty(exports, "getRTUtils", { enumerable: true, get: function () { return rtUtils_ts_1.getRTUtils; } });
|
|
6
|
-
Object.defineProperty(exports, "getRTFnCaches", { enumerable: true, get: function () { return rtUtils_ts_1.getRTFnCaches; } });
|
|
7
|
-
var rtUtils_ts_2 = require("../runtypes/rtUtils.js");
|
|
8
|
-
Object.defineProperty(exports, "buildFactoryFromCode", { enumerable: true, get: function () { return rtUtils_ts_2.buildFactoryFromCode; } });
|
|
9
|
-
Object.defineProperty(exports, "buildPureFnFactoryFromCode", { enumerable: true, get: function () { return rtUtils_ts_2.buildPureFnFactoryFromCode; } });
|
|
10
|
-
Object.defineProperty(exports, "entryCode", { enumerable: true, get: function () { return rtUtils_ts_2.entryCode; } });
|
|
11
|
-
var fnHash_ts_1 = require("../fnHash.js");
|
|
12
|
-
Object.defineProperty(exports, "getFnHash", { enumerable: true, get: function () { return fnHash_ts_1.getFnHash; } });
|
|
13
|
-
var fnHashes_generated_ts_1 = require("../go-generated/fnHashes.generated.js");
|
|
14
|
-
Object.defineProperty(exports, "FAMILY_TAG_TO_FN_KEY", { enumerable: true, get: function () { return fnHashes_generated_ts_1.FAMILY_TAG_TO_FN_KEY; } });
|
|
15
|
-
var pureFn_ts_1 = require("../runtypes/pureFn.js");
|
|
16
|
-
Object.defineProperty(exports, "registerPureFnFactory", { enumerable: true, get: function () { return pureFn_ts_1.registerPureFnFactory; } });
|
|
17
|
-
Object.defineProperty(exports, "registerPureFn", { enumerable: true, get: function () { return pureFn_ts_1.registerPureFn; } });
|
|
18
|
-
var pure_fn_ids_generated_ts_1 = require("../runtypes/pure-fn-ids.generated.js");
|
|
19
|
-
Object.defineProperty(exports, "RUN_TYPES_PURE_FN_ID_PREFIX", { enumerable: true, get: function () { return pure_fn_ids_generated_ts_1.RUN_TYPES_PURE_FN_ID_PREFIX; } });
|
|
20
|
-
var classSerializerRegistry_ts_1 = require("../runtypes/classSerializerRegistry.js");
|
|
21
|
-
Object.defineProperty(exports, "registerClassSerializer", { enumerable: true, get: function () { return classSerializerRegistry_ts_1.registerClassSerializer; } });
|
|
22
|
-
var typeFormats_generated_ts_1 = require("../go-generated/typeFormats.generated.js");
|
|
23
|
-
Object.defineProperty(exports, "typeFormats", { enumerable: true, get: function () { return typeFormats_generated_ts_1.typeFormats; } });
|
|
24
|
-
var createRTFunctions_ts_1 = require("../createRTFunctions.js");
|
|
25
|
-
Object.defineProperty(exports, "getRTFunction", { enumerable: true, get: function () { return createRTFunctions_ts_1.getRTFunction; } });
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { RunType } from './types.ts';
|
|
2
|
-
import type { InjectRunTypeId } from '../markers.ts';
|
|
3
|
-
import type { BrandArg } from './builderTypes.ts';
|
|
4
|
-
export declare function builderResult<T>(id: InjectRunTypeId<T> | undefined, carrier: unknown): RunType<T>;
|
|
5
|
-
export declare function brand<const B extends string>(name: B): BrandArg<B>;
|
|
6
|
-
export declare function lastInjectedId(...args: unknown[]): string | undefined;
|
|
7
|
-
export declare function presetBuilder<T>(tag: string): (id?: InjectRunTypeId<T>) => RunType<T>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.builderResult = builderResult;
|
|
4
|
-
exports.brand = brand;
|
|
5
|
-
exports.lastInjectedId = lastInjectedId;
|
|
6
|
-
exports.presetBuilder = presetBuilder;
|
|
7
|
-
const rtUtils_ts_1 = require("./rtUtils.js");
|
|
8
|
-
const entryTuple_ts_1 = require("./entryTuple.js");
|
|
9
|
-
function builderResult(id, carrier) {
|
|
10
|
-
let resolvedId = typeof id === 'string' ? id : undefined;
|
|
11
|
-
if ((0, entryTuple_ts_1.isEntryTuple)(id)) {
|
|
12
|
-
(0, entryTuple_ts_1.initFromTuple)(id);
|
|
13
|
-
resolvedId = (0, entryTuple_ts_1.entryTupleKey)(id);
|
|
14
|
-
}
|
|
15
|
-
if (resolvedId !== undefined) {
|
|
16
|
-
const runType = (0, rtUtils_ts_1.getRTUtils)().getRunType(resolvedId);
|
|
17
|
-
if (runType)
|
|
18
|
-
return runType;
|
|
19
|
-
}
|
|
20
|
-
return carrier;
|
|
21
|
-
}
|
|
22
|
-
function brand(name) {
|
|
23
|
-
return { __rtBrandName: name };
|
|
24
|
-
}
|
|
25
|
-
function lastInjectedId(...args) {
|
|
26
|
-
for (let i = args.length - 1; i >= 0; i--) {
|
|
27
|
-
const arg = args[i];
|
|
28
|
-
if (typeof arg === 'string')
|
|
29
|
-
return arg;
|
|
30
|
-
if ((0, entryTuple_ts_1.isEntryTuple)(arg)) {
|
|
31
|
-
(0, entryTuple_ts_1.initFromTuple)(arg);
|
|
32
|
-
return (0, entryTuple_ts_1.entryTupleKey)(arg);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
function presetBuilder(tag) {
|
|
38
|
-
return (id) => builderResult(id, { type: tag, formatParams: {} });
|
|
39
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { TypeFormat } from './typeFormat.ts';
|
|
2
|
-
import type { RunType } from './types.ts';
|
|
3
|
-
import type { InjectRunTypeId, CompTimeArgs } from '../markers.ts';
|
|
4
|
-
import type { MinMax } from '../formats/datetime/dateTimeParams.ts';
|
|
5
|
-
import type { UrlObjectFormat } from '../formats/string/stringFormats.ts';
|
|
6
|
-
import type { Instant, ZonedDateTime, PlainDate, PlainTime, PlainDateTime, PlainYearMonth, TemporalBaseByFormatName } from '../formats/datetime/temporalFormats.ts';
|
|
7
|
-
export type InferType<RT> = RT extends RunType ? NonNullable<RT['__rtType']>['t'] : RT;
|
|
8
|
-
export interface LeafTypeByFormatName<P extends object, BrandName extends string = never> {
|
|
9
|
-
stringFormat: TypeFormat<string, 'stringFormat', P, BrandName>;
|
|
10
|
-
numberFormat: TypeFormat<number, 'numberFormat', P, BrandName>;
|
|
11
|
-
bigintFormat: TypeFormat<bigint, 'bigintFormat', P, BrandName>;
|
|
12
|
-
nativeDate: TypeFormat<Date, 'nativeDate', P, BrandName>;
|
|
13
|
-
nativeUrl: UrlObjectFormat<P, BrandName>;
|
|
14
|
-
temporalInstant: P extends MinMax ? Instant<P> : never;
|
|
15
|
-
temporalZonedDateTime: P extends MinMax ? ZonedDateTime<P> : never;
|
|
16
|
-
temporalPlainDate: P extends MinMax ? PlainDate<P> : never;
|
|
17
|
-
temporalPlainTime: P extends MinMax ? PlainTime<P> : never;
|
|
18
|
-
temporalPlainDateTime: P extends MinMax ? PlainDateTime<P> : never;
|
|
19
|
-
temporalPlainYearMonth: P extends MinMax ? PlainYearMonth<P> : never;
|
|
20
|
-
}
|
|
21
|
-
export type LeafFormatName = keyof LeafTypeByFormatName<Record<string, never>>;
|
|
22
|
-
export type ExactParams<P, Allowed> = P & Record<Exclude<keyof P, keyof Allowed>, never>;
|
|
23
|
-
export type LeafType<Name extends LeafFormatName, P extends object, BrandName extends string = never> = LeafTypeByFormatName<P, BrandName>[Name];
|
|
24
|
-
export interface BrandArg<B extends string> {
|
|
25
|
-
readonly __rtBrandName: B;
|
|
26
|
-
}
|
|
27
|
-
export interface TemporalFormatByTag<P extends MinMax> {
|
|
28
|
-
'temporal.instant': LeafType<'temporalInstant', P>;
|
|
29
|
-
'temporal.zonedDateTime': LeafType<'temporalZonedDateTime', P>;
|
|
30
|
-
'temporal.plainDate': LeafType<'temporalPlainDate', P>;
|
|
31
|
-
'temporal.plainTime': LeafType<'temporalPlainTime', P>;
|
|
32
|
-
'temporal.plainDateTime': LeafType<'temporalPlainDateTime', P>;
|
|
33
|
-
'temporal.plainYearMonth': LeafType<'temporalPlainYearMonth', P>;
|
|
34
|
-
}
|
|
35
|
-
export interface TemporalBaseByTag {
|
|
36
|
-
'temporal.instant': TemporalBaseByFormatName['temporalInstant'];
|
|
37
|
-
'temporal.zonedDateTime': TemporalBaseByFormatName['temporalZonedDateTime'];
|
|
38
|
-
'temporal.plainDate': TemporalBaseByFormatName['temporalPlainDate'];
|
|
39
|
-
'temporal.plainTime': TemporalBaseByFormatName['temporalPlainTime'];
|
|
40
|
-
'temporal.plainDateTime': TemporalBaseByFormatName['temporalPlainDateTime'];
|
|
41
|
-
'temporal.plainYearMonth': TemporalBaseByFormatName['temporalPlainYearMonth'];
|
|
42
|
-
'temporal.plainMonthDay': TemporalBaseByFormatName['temporalPlainMonthDay'];
|
|
43
|
-
'temporal.duration': TemporalBaseByFormatName['temporalDuration'];
|
|
44
|
-
}
|
|
45
|
-
export interface TemporalBuilderFn<Tag extends keyof TemporalFormatByTag<MinMax>> {
|
|
46
|
-
(id?: InjectRunTypeId<TemporalBaseByTag[Tag]>): RunType<TemporalBaseByTag[Tag]>;
|
|
47
|
-
<const P extends MinMax>(formatParams: CompTimeArgs<ExactParams<P, MinMax>>, id?: InjectRunTypeId<TemporalFormatByTag<P>[Tag]>): RunType<TemporalFormatByTag<P>[Tag]>;
|
|
48
|
-
}
|
|
49
|
-
export interface TemporalInstanceBuilderFn<Tag extends 'temporal.plainMonthDay' | 'temporal.duration'> {
|
|
50
|
-
(id?: InjectRunTypeId<TemporalBaseByTag[Tag]>): RunType<TemporalBaseByTag[Tag]>;
|
|
51
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type CircularPath = (string | number)[];
|
|
2
|
-
type CircularSkeleton = {
|
|
3
|
-
c: number[];
|
|
4
|
-
e: {
|
|
5
|
-
p: unknown[][];
|
|
6
|
-
t: number;
|
|
7
|
-
}[][];
|
|
8
|
-
};
|
|
9
|
-
export type FindCycleFn = (value: unknown, skeleton: CircularSkeleton) => CircularPath | null;
|
|
10
|
-
export declare const findCycle: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_zXMPEMyjGR4ZRc">;
|
|
11
|
-
export {};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findCycle = void 0;
|
|
4
|
-
const pureFn_ts_1 = require("./pureFn.js");
|
|
5
|
-
const pure_fn_ids_generated_ts_1 = require("./pure-fn-ids.generated.js");
|
|
6
|
-
exports.findCycle = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.findCycleId hollowed — body ships on demand
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
*/);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CircularReferenceError = void 0;
|
|
4
|
-
exports.formatCircularPath = formatCircularPath;
|
|
5
|
-
class CircularReferenceError extends Error {
|
|
6
|
-
path;
|
|
7
|
-
constructor(path) {
|
|
8
|
-
super(`Circular reference detected at ${formatCircularPath(path)}`);
|
|
9
|
-
this.name = 'CircularReferenceError';
|
|
10
|
-
this.path = path;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CircularReferenceError = CircularReferenceError;
|
|
14
|
-
function formatCircularPath(path) {
|
|
15
|
-
if (path.length === 0)
|
|
16
|
-
return '<root>';
|
|
17
|
-
let out = '';
|
|
18
|
-
for (const segment of path) {
|
|
19
|
-
if (typeof segment === 'number')
|
|
20
|
-
out += `[${segment}]`;
|
|
21
|
-
else
|
|
22
|
-
out += out ? `.${segment}` : segment;
|
|
23
|
-
}
|
|
24
|
-
return out;
|
|
25
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { DataOnly } from './dataOnly.ts';
|
|
2
|
-
import type { InjectTypeFnArgs } from '../markers.ts';
|
|
3
|
-
export interface AnyClass<T = any> {
|
|
4
|
-
new (...args: any[]): T;
|
|
5
|
-
}
|
|
6
|
-
export interface SerializableClass<T = any> {
|
|
7
|
-
new (): T;
|
|
8
|
-
}
|
|
9
|
-
export type DeserializeClassFn<C> = (deserialized: DataOnly<C>) => C;
|
|
10
|
-
export interface ClassSerializerHandler<T> {
|
|
11
|
-
serialize?: (instance: T) => unknown;
|
|
12
|
-
deserialize?: (data: DataOnly<T>) => T;
|
|
13
|
-
}
|
|
14
|
-
export interface ClassSerializerEntry<T = any> {
|
|
15
|
-
cls: AnyClass<T>;
|
|
16
|
-
serialize?: (instance: T) => unknown;
|
|
17
|
-
deserialize?: (data: DataOnly<T>) => T;
|
|
18
|
-
}
|
|
19
|
-
export declare function classSerializerEpoch(): number;
|
|
20
|
-
export declare function registerClassSerializer<T>(cls: SerializableClass<T>, handler?: ClassSerializerHandler<T>, id?: InjectTypeFnArgs<T, 'classSerializerReg'>): void;
|
|
21
|
-
export declare function registerClassSerializer<T>(cls: AnyClass<T>, handler: ClassSerializerHandler<T> & {
|
|
22
|
-
deserialize: (data: DataOnly<T>) => T;
|
|
23
|
-
}, id?: InjectTypeFnArgs<T, 'classSerializerReg'>): void;
|
|
24
|
-
export declare function getClassSerializer(typeId: string, className?: string): ClassSerializerEntry | undefined;
|
|
25
|
-
export declare function isClassSerializerRegistered(cls: AnyClass): boolean;
|
|
26
|
-
export declare function deserializeClass<T>(entry: ClassSerializerEntry<T>, data: DataOnly<T>, keys: readonly string[]): T;
|
|
27
|
-
export declare function unregisterClassSerializer(cls: AnyClass): void;
|
|
28
|
-
export declare function clearClassSerializers(): void;
|