@mionjs/run-types 0.13.0 → 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.
Files changed (337) hide show
  1. package/README.md +3 -3
  2. package/dist/builders/atomic.js.map +1 -1
  3. package/dist/builders/compose.js.map +1 -1
  4. package/dist/builders/index.js.map +1 -1
  5. package/dist/builders/static.js.map +1 -1
  6. package/dist/builders/utility.js.map +1 -1
  7. package/dist/createRTFunctions.js.map +1 -1
  8. package/dist/enrich/createFriendlyText.js.map +1 -1
  9. package/dist/enrich/friendlyText.js.map +1 -1
  10. package/dist/enrich/mockData.js.map +1 -1
  11. package/dist/fnHash.js.map +1 -1
  12. package/dist/formats/bigintFormats.js.map +1 -1
  13. package/dist/formats/datetime/dateFormats.js.map +1 -1
  14. package/dist/formats/datetime/dateTime-pure-fns.d.ts +21 -21
  15. package/dist/formats/datetime/dateTime-pure-fns.js +7 -0
  16. package/dist/formats/datetime/dateTime-pure-fns.js.map +1 -1
  17. package/dist/formats/datetime/dateTimeParams.js.map +1 -1
  18. package/dist/formats/datetime/stringDateTimeFormats.js.map +1 -1
  19. package/dist/formats/datetime/temporalFormats.js.map +1 -1
  20. package/dist/formats/index.js.map +1 -1
  21. package/dist/formats/numberFormats.js.map +1 -1
  22. package/dist/formats/refineFormat.js.map +1 -1
  23. package/dist/formats/scalars.js.map +1 -1
  24. package/dist/formats/string/credit-card-pure-fns.d.ts +4 -4
  25. package/dist/formats/string/credit-card-pure-fns.js.map +1 -1
  26. package/dist/formats/string/string-formats-pure-fns.d.ts +12 -12
  27. package/dist/formats/string/string-formats-pure-fns.js +9 -0
  28. package/dist/formats/string/string-formats-pure-fns.js.map +1 -1
  29. package/dist/formats/string/string-patterns.js.map +1 -1
  30. package/dist/formats/string/stringFormats.js.map +1 -1
  31. package/dist/formats/structural.js.map +1 -1
  32. package/dist/getRunType.js.map +1 -1
  33. package/dist/go-generated/fnHashes.generated.js.map +1 -1
  34. package/dist/go-generated/formatErrorKeys.generated.js.map +1 -1
  35. package/dist/go-generated/runTypeKind.generated.js.map +1 -1
  36. package/dist/go-generated/typeFormats.generated.js.map +1 -1
  37. package/dist/index.js.map +1 -1
  38. package/dist/markers.js.map +1 -1
  39. package/dist/mion-pure-fns/_rt/-yTRFuK01Y.js +2 -0
  40. package/dist/mion-pure-fns/_rt/0yJQ37XnmN.js +2 -0
  41. package/dist/mion-pure-fns/_rt/2xtQHAMu-y.js +1 -0
  42. package/dist/mion-pure-fns/_rt/3RndhrueRD.js +2 -0
  43. package/dist/mion-pure-fns/_rt/5oCqd7YyfA.js +1 -0
  44. package/dist/mion-pure-fns/_rt/6E7qWsIwaF.js +1 -0
  45. package/dist/mion-pure-fns/_rt/8AgZCCAhyw.js +1 -0
  46. package/dist/mion-pure-fns/_rt/AmEsDA-eXW.js +2 -0
  47. package/dist/mion-pure-fns/_rt/D503ooPt08.js +2 -0
  48. package/dist/mion-pure-fns/_rt/GA20s6bj41.js +1 -0
  49. package/dist/mion-pure-fns/_rt/GaLOTE4b_F.js +2 -0
  50. package/dist/mion-pure-fns/_rt/ICDNQUtC8e.js +1 -0
  51. package/dist/mion-pure-fns/_rt/IyjvBbz0zS.js +1 -0
  52. package/dist/mion-pure-fns/_rt/Nnf7kyDfjI.js +2 -0
  53. package/dist/mion-pure-fns/_rt/OCJ1B0-ZCA.js +1 -0
  54. package/dist/mion-pure-fns/_rt/OXVO2EpSFv.js +1 -0
  55. package/dist/mion-pure-fns/_rt/PZzwu-J2YB.js +2 -0
  56. package/dist/mion-pure-fns/_rt/Qd_9GJQlOC.js +1 -0
  57. package/dist/mion-pure-fns/_rt/T48n0wyjPx.js +2 -0
  58. package/dist/mion-pure-fns/_rt/VJiknJ2exR.js +1 -0
  59. package/dist/mion-pure-fns/_rt/Z2sc5xQPKB.js +1 -0
  60. package/dist/mion-pure-fns/_rt/ZPLfUKoTJQ.js +1 -0
  61. package/dist/mion-pure-fns/_rt/_abcB3do2M.js +1 -0
  62. package/dist/mion-pure-fns/_rt/cK87_2eKQW.js +1 -0
  63. package/dist/mion-pure-fns/_rt/cgwpjq6rGs.js +1 -0
  64. package/dist/mion-pure-fns/_rt/d8U9HjmMsN.js +1 -0
  65. package/dist/mion-pure-fns/_rt/eglb1lzTW9.js +1 -0
  66. package/dist/mion-pure-fns/_rt/eupKgBrCGt.js +2 -0
  67. package/dist/mion-pure-fns/_rt/gNpMnJMAUE.js +4 -0
  68. package/dist/mion-pure-fns/_rt/hiotRbfSKF.js +1 -0
  69. package/dist/mion-pure-fns/_rt/i-jWpjiwhL.js +1 -0
  70. package/dist/mion-pure-fns/_rt/iFXkEtW54e.js +1 -0
  71. package/dist/mion-pure-fns/_rt/jKlKNzqG2-.js +1 -0
  72. package/dist/mion-pure-fns/_rt/kSLD_nEHux.js +1 -0
  73. package/dist/mion-pure-fns/_rt/lBHf1kg5nQ.js +1 -0
  74. package/dist/mion-pure-fns/_rt/lFYcgG5ZSI.js +1 -0
  75. package/dist/mion-pure-fns/_rt/nLaf1XVvS4.js +2 -0
  76. package/dist/mion-pure-fns/_rt/n_ZOWff4X3.js +1 -0
  77. package/dist/mion-pure-fns/_rt/nsU8QeJCuC.js +1 -0
  78. package/dist/mion-pure-fns/_rt/oUfCfYMODo.js +2 -0
  79. package/dist/mion-pure-fns/_rt/t3CflNaUUJ.js +2 -0
  80. package/dist/mion-pure-fns/_rt/tfRjnFZVF8.js +1 -0
  81. package/dist/mion-pure-fns/_rt/u0Mw9bizvB.js +1 -0
  82. package/dist/mion-pure-fns/_rt/vPNeWxcCkj.js +3 -0
  83. package/dist/mion-pure-fns/_rt/wSBaXrUNw9.js +1 -0
  84. package/dist/mion-pure-fns/_rt/zaCgqTB_lJ.js +5 -0
  85. package/dist/mion-pure-fns/index.json +114 -114
  86. package/dist/mocking/childMatch.js.map +1 -1
  87. package/dist/mocking/constants.mock.d.ts +0 -1
  88. package/dist/mocking/constants.mock.js +0 -1
  89. package/dist/mocking/constants.mock.js.map +1 -1
  90. package/dist/mocking/createMockData.js.map +1 -1
  91. package/dist/mocking/index.js.map +1 -1
  92. package/dist/mocking/isMultipleOf.js.map +1 -1
  93. package/dist/mocking/mockBigIntFormat.js.map +1 -1
  94. package/dist/mocking/mockDateTimeBounds.js.map +1 -1
  95. package/dist/mocking/mockInvalid.js.map +1 -1
  96. package/dist/mocking/mockNumberFormat.js.map +1 -1
  97. package/dist/mocking/mockRandom.js.map +1 -1
  98. package/dist/mocking/mockRegistry.js.map +1 -1
  99. package/dist/mocking/mockStringFormat.js +1 -1
  100. package/dist/mocking/mockStringFormat.js.map +1 -1
  101. package/dist/mocking/mockTemporal.js.map +1 -1
  102. package/dist/mocking/mockType.js.map +1 -1
  103. package/dist/mocking/mockTypes.js.map +1 -1
  104. package/dist/mocking/structuralFormat.js.map +1 -1
  105. package/dist/modelTypes.js.map +1 -1
  106. package/dist/overrideRTFunctions.js.map +1 -1
  107. package/dist/runtime/index.js.map +1 -1
  108. package/dist/runtypes/builderCore.js.map +1 -1
  109. package/dist/runtypes/builderTypes.js.map +1 -1
  110. package/dist/runtypes/circular-pure-fns.d.ts +1 -1
  111. package/dist/runtypes/circular-pure-fns.js.map +1 -1
  112. package/dist/runtypes/circular.js.map +1 -1
  113. package/dist/runtypes/classSerializerRegistry.js.map +1 -1
  114. package/dist/runtypes/dataOnly.js.map +1 -1
  115. package/dist/runtypes/entryTuple.js +30 -3
  116. package/dist/runtypes/entryTuple.js.map +1 -1
  117. package/dist/runtypes/formatAnnotation.js.map +1 -1
  118. package/dist/runtypes/formatErrors.js.map +1 -1
  119. package/dist/runtypes/formatPattern.js.map +1 -1
  120. package/dist/runtypes/jsonShape.js.map +1 -1
  121. package/dist/runtypes/pure-fn-ids.generated.d.ts +47 -47
  122. package/dist/runtypes/pure-fn-ids.generated.js +47 -47
  123. package/dist/runtypes/pure-fn-ids.generated.js.map +1 -1
  124. package/dist/runtypes/pure-fns-utils.d.ts +8 -8
  125. package/dist/runtypes/pure-fns-utils.js +0 -1
  126. package/dist/runtypes/pure-fns-utils.js.map +1 -1
  127. package/dist/runtypes/pureFn.js.map +1 -1
  128. package/dist/runtypes/rtUtils.js +16 -3
  129. package/dist/runtypes/rtUtils.js.map +1 -1
  130. package/dist/runtypes/sentinelKeys.js.map +1 -1
  131. package/dist/runtypes/stripRunTypeMeta.js.map +1 -1
  132. package/dist/runtypes/typeFormat.js.map +1 -1
  133. package/dist/runtypes/types.js.map +1 -1
  134. package/dist/standard/createJsonSchemaFn.js.map +1 -1
  135. package/dist/standard/createStandardSchema.js.map +1 -1
  136. package/dist/standard/issueMapping.js +2 -0
  137. package/dist/standard/issueMapping.js.map +1 -1
  138. package/dist/standard/jsonSchemaDoc.js.map +1 -1
  139. package/dist/standard/spec.js.map +1 -1
  140. package/package.json +21 -58
  141. package/dist/cjs/builders/atomic.d.ts +0 -12
  142. package/dist/cjs/builders/atomic.js +0 -43
  143. package/dist/cjs/builders/compose.d.ts +0 -60
  144. package/dist/cjs/builders/compose.js +0 -122
  145. package/dist/cjs/builders/index.d.ts +0 -5
  146. package/dist/cjs/builders/index.js +0 -48
  147. package/dist/cjs/builders/static.d.ts +0 -137
  148. package/dist/cjs/builders/static.js +0 -2
  149. package/dist/cjs/builders/utility.d.ts +0 -12
  150. package/dist/cjs/builders/utility.js +0 -43
  151. package/dist/cjs/createRTFunctions.d.ts +0 -90
  152. package/dist/cjs/createRTFunctions.js +0 -38
  153. package/dist/cjs/enrich/createFriendlyText.d.ts +0 -25
  154. package/dist/cjs/enrich/createFriendlyText.js +0 -275
  155. package/dist/cjs/enrich/friendlyText.d.ts +0 -56
  156. package/dist/cjs/enrich/friendlyText.js +0 -2
  157. package/dist/cjs/enrich/mockData.d.ts +0 -53
  158. package/dist/cjs/enrich/mockData.js +0 -2
  159. package/dist/cjs/fnHash.d.ts +0 -8
  160. package/dist/cjs/fnHash.js +0 -41
  161. package/dist/cjs/formats/bigintFormats.d.ts +0 -41
  162. package/dist/cjs/formats/bigintFormats.js +0 -10
  163. package/dist/cjs/formats/datetime/dateFormats.d.ts +0 -10
  164. package/dist/cjs/formats/datetime/dateFormats.js +0 -2
  165. package/dist/cjs/formats/datetime/dateTime-pure-fns.d.ts +0 -21
  166. package/dist/cjs/formats/datetime/dateTime-pure-fns.js +0 -405
  167. package/dist/cjs/formats/datetime/dateTimeParams.d.ts +0 -14
  168. package/dist/cjs/formats/datetime/dateTimeParams.js +0 -2
  169. package/dist/cjs/formats/datetime/stringDateTimeFormats.d.ts +0 -33
  170. package/dist/cjs/formats/datetime/stringDateTimeFormats.js +0 -2
  171. package/dist/cjs/formats/datetime/temporalFormats.d.ts +0 -84
  172. package/dist/cjs/formats/datetime/temporalFormats.js +0 -23
  173. package/dist/cjs/formats/index.d.ts +0 -18
  174. package/dist/cjs/formats/index.js +0 -88
  175. package/dist/cjs/formats/numberFormats.d.ts +0 -82
  176. package/dist/cjs/formats/numberFormats.js +0 -16
  177. package/dist/cjs/formats/refineFormat.d.ts +0 -24
  178. package/dist/cjs/formats/refineFormat.js +0 -2
  179. package/dist/cjs/formats/scalars.d.ts +0 -32
  180. package/dist/cjs/formats/scalars.js +0 -30
  181. package/dist/cjs/formats/string/credit-card-pure-fns.d.ts +0 -26
  182. package/dist/cjs/formats/string/credit-card-pure-fns.js +0 -151
  183. package/dist/cjs/formats/string/string-formats-pure-fns.d.ts +0 -12
  184. package/dist/cjs/formats/string/string-formats-pure-fns.js +0 -517
  185. package/dist/cjs/formats/string/string-patterns.d.ts +0 -111
  186. package/dist/cjs/formats/string/string-patterns.js +0 -115
  187. package/dist/cjs/formats/string/stringFormats.d.ts +0 -489
  188. package/dist/cjs/formats/string/stringFormats.js +0 -84
  189. package/dist/cjs/formats/structural.d.ts +0 -105
  190. package/dist/cjs/formats/structural.js +0 -7
  191. package/dist/cjs/getRunType.d.ts +0 -4
  192. package/dist/cjs/getRunType.js +0 -20
  193. package/dist/cjs/go-generated/fnHashes.generated.d.ts +0 -196
  194. package/dist/cjs/go-generated/fnHashes.generated.js +0 -78
  195. package/dist/cjs/go-generated/formatErrorKeys.generated.d.ts +0 -78
  196. package/dist/cjs/go-generated/formatErrorKeys.generated.js +0 -40
  197. package/dist/cjs/go-generated/runTypeKind.generated.d.ts +0 -62
  198. package/dist/cjs/go-generated/runTypeKind.generated.js +0 -61
  199. package/dist/cjs/go-generated/typeFormats.generated.d.ts +0 -104
  200. package/dist/cjs/go-generated/typeFormats.generated.js +0 -30
  201. package/dist/cjs/index.d.ts +0 -28
  202. package/dist/cjs/index.js +0 -47
  203. package/dist/cjs/markers.d.ts +0 -33
  204. package/dist/cjs/markers.js +0 -14
  205. package/dist/cjs/mocking/childMatch.d.ts +0 -3
  206. package/dist/cjs/mocking/childMatch.js +0 -357
  207. package/dist/cjs/mocking/constants.mock.d.ts +0 -7
  208. package/dist/cjs/mocking/constants.mock.js +0 -87
  209. package/dist/cjs/mocking/createMockData.d.ts +0 -8
  210. package/dist/cjs/mocking/createMockData.js +0 -53
  211. package/dist/cjs/mocking/index.d.ts +0 -4
  212. package/dist/cjs/mocking/index.js +0 -9
  213. package/dist/cjs/mocking/isMultipleOf.d.ts +0 -2
  214. package/dist/cjs/mocking/isMultipleOf.js +0 -11
  215. package/dist/cjs/mocking/mockBigIntFormat.d.ts +0 -1
  216. package/dist/cjs/mocking/mockBigIntFormat.js +0 -38
  217. package/dist/cjs/mocking/mockDateTimeBounds.d.ts +0 -13
  218. package/dist/cjs/mocking/mockDateTimeBounds.js +0 -277
  219. package/dist/cjs/mocking/mockInvalid.d.ts +0 -15
  220. package/dist/cjs/mocking/mockInvalid.js +0 -233
  221. package/dist/cjs/mocking/mockNumberFormat.d.ts +0 -1
  222. package/dist/cjs/mocking/mockNumberFormat.js +0 -56
  223. package/dist/cjs/mocking/mockRandom.d.ts +0 -20
  224. package/dist/cjs/mocking/mockRandom.js +0 -106
  225. package/dist/cjs/mocking/mockRegistry.d.ts +0 -7
  226. package/dist/cjs/mocking/mockRegistry.js +0 -11
  227. package/dist/cjs/mocking/mockStringFormat.d.ts +0 -5
  228. package/dist/cjs/mocking/mockStringFormat.js +0 -238
  229. package/dist/cjs/mocking/mockTemporal.d.ts +0 -13
  230. package/dist/cjs/mocking/mockTemporal.js +0 -233
  231. package/dist/cjs/mocking/mockType.d.ts +0 -3
  232. package/dist/cjs/mocking/mockType.js +0 -810
  233. package/dist/cjs/mocking/mockTypes.d.ts +0 -54
  234. package/dist/cjs/mocking/mockTypes.js +0 -2
  235. package/dist/cjs/mocking/structuralFormat.d.ts +0 -5
  236. package/dist/cjs/mocking/structuralFormat.js +0 -82
  237. package/dist/cjs/modelTypes.d.ts +0 -11
  238. package/dist/cjs/modelTypes.js +0 -2
  239. package/dist/cjs/overrideRTFunctions.d.ts +0 -9
  240. package/dist/cjs/overrideRTFunctions.js +0 -20
  241. package/dist/cjs/package.json +0 -3
  242. package/dist/cjs/runtime/index.d.ts +0 -10
  243. package/dist/cjs/runtime/index.js +0 -25
  244. package/dist/cjs/runtypes/builderCore.d.ts +0 -7
  245. package/dist/cjs/runtypes/builderCore.js +0 -39
  246. package/dist/cjs/runtypes/builderTypes.d.ts +0 -51
  247. package/dist/cjs/runtypes/builderTypes.js +0 -2
  248. package/dist/cjs/runtypes/circular-pure-fns.d.ts +0 -11
  249. package/dist/cjs/runtypes/circular-pure-fns.js +0 -117
  250. package/dist/cjs/runtypes/circular.d.ts +0 -6
  251. package/dist/cjs/runtypes/circular.js +0 -25
  252. package/dist/cjs/runtypes/classSerializerRegistry.d.ts +0 -28
  253. package/dist/cjs/runtypes/classSerializerRegistry.js +0 -141
  254. package/dist/cjs/runtypes/dataOnly.d.ts +0 -29
  255. package/dist/cjs/runtypes/dataOnly.js +0 -2
  256. package/dist/cjs/runtypes/entryTuple.d.ts +0 -101
  257. package/dist/cjs/runtypes/entryTuple.js +0 -395
  258. package/dist/cjs/runtypes/formatAnnotation.d.ts +0 -4
  259. package/dist/cjs/runtypes/formatAnnotation.js +0 -2
  260. package/dist/cjs/runtypes/formatErrors.d.ts +0 -18
  261. package/dist/cjs/runtypes/formatErrors.js +0 -2
  262. package/dist/cjs/runtypes/formatPattern.d.ts +0 -20
  263. package/dist/cjs/runtypes/formatPattern.js +0 -17
  264. package/dist/cjs/runtypes/jsonShape.d.ts +0 -22
  265. package/dist/cjs/runtypes/jsonShape.js +0 -2
  266. package/dist/cjs/runtypes/pure-fn-ids.generated.d.ts +0 -47
  267. package/dist/cjs/runtypes/pure-fn-ids.generated.js +0 -50
  268. package/dist/cjs/runtypes/pure-fns-utils.d.ts +0 -8
  269. package/dist/cjs/runtypes/pure-fns-utils.js +0 -147
  270. package/dist/cjs/runtypes/pureFn.d.ts +0 -7
  271. package/dist/cjs/runtypes/pureFn.js +0 -52
  272. package/dist/cjs/runtypes/rtUtils.d.ts +0 -45
  273. package/dist/cjs/runtypes/rtUtils.js +0 -218
  274. package/dist/cjs/runtypes/sentinelKeys.d.ts +0 -7
  275. package/dist/cjs/runtypes/sentinelKeys.js +0 -2
  276. package/dist/cjs/runtypes/stripRunTypeMeta.d.ts +0 -53
  277. package/dist/cjs/runtypes/stripRunTypeMeta.js +0 -2
  278. package/dist/cjs/runtypes/typeFormat.d.ts +0 -14
  279. package/dist/cjs/runtypes/typeFormat.js +0 -2
  280. package/dist/cjs/runtypes/types.d.ts +0 -114
  281. package/dist/cjs/runtypes/types.js +0 -2
  282. package/dist/cjs/standard/createJsonSchemaFn.d.ts +0 -8
  283. package/dist/cjs/standard/createJsonSchemaFn.js +0 -16
  284. package/dist/cjs/standard/createStandardSchema.d.ts +0 -18
  285. package/dist/cjs/standard/createStandardSchema.js +0 -30
  286. package/dist/cjs/standard/issueMapping.d.ts +0 -12
  287. package/dist/cjs/standard/issueMapping.js +0 -36
  288. package/dist/cjs/standard/jsonSchemaDoc.d.ts +0 -7
  289. package/dist/cjs/standard/jsonSchemaDoc.js +0 -95
  290. package/dist/cjs/standard/spec.d.ts +0 -47
  291. package/dist/cjs/standard/spec.js +0 -2
  292. package/dist/mion-pure-fns/@mionjs/run-types/-y__pOnrgnvRMz.js +0 -2
  293. package/dist/mion-pure-fns/@mionjs/run-types/0ofEnb55W0BDIY.js +0 -2
  294. package/dist/mion-pure-fns/@mionjs/run-types/18wDCH5CXZoQKV.js +0 -2
  295. package/dist/mion-pure-fns/@mionjs/run-types/2xtQHAMu-yOBo6.js +0 -1
  296. package/dist/mion-pure-fns/@mionjs/run-types/5oCqd7YyfA9rEw.js +0 -1
  297. package/dist/mion-pure-fns/@mionjs/run-types/6E7qWsIwaFRGn6.js +0 -1
  298. package/dist/mion-pure-fns/@mionjs/run-types/6xkN1Qfs9nqO79.js +0 -1
  299. package/dist/mion-pure-fns/@mionjs/run-types/8Mj42N3ytEEn67.js +0 -1
  300. package/dist/mion-pure-fns/@mionjs/run-types/A3KjzpjelkcBST.js +0 -2
  301. package/dist/mion-pure-fns/@mionjs/run-types/AgOXcprpjsrTKk.js +0 -1
  302. package/dist/mion-pure-fns/@mionjs/run-types/E29ul2pUOyD_Ay.js +0 -1
  303. package/dist/mion-pure-fns/@mionjs/run-types/EG8OkOOSnT9bZn.js +0 -1
  304. package/dist/mion-pure-fns/@mionjs/run-types/EYsxRHRDgAykA_.js +0 -3
  305. package/dist/mion-pure-fns/@mionjs/run-types/Eube1z0GFHuqlM.js +0 -2
  306. package/dist/mion-pure-fns/@mionjs/run-types/GA20s6bj41GC1A.js +0 -1
  307. package/dist/mion-pure-fns/@mionjs/run-types/GfQK19ktpvibuZ.js +0 -2
  308. package/dist/mion-pure-fns/@mionjs/run-types/IyjvBbz0zSlgCJ.js +0 -1
  309. package/dist/mion-pure-fns/@mionjs/run-types/LqTR2O-h6MYq9J.js +0 -4
  310. package/dist/mion-pure-fns/@mionjs/run-types/MnJ72PqkyXHiSP.js +0 -1
  311. package/dist/mion-pure-fns/@mionjs/run-types/NJ9TCGDnkv_9Mn.js +0 -2
  312. package/dist/mion-pure-fns/@mionjs/run-types/OCJ1B0-ZCAwagS.js +0 -1
  313. package/dist/mion-pure-fns/@mionjs/run-types/PQVLEBllZckw8I.js +0 -2
  314. package/dist/mion-pure-fns/@mionjs/run-types/Qd_9GJQlOCVqDe.js +0 -1
  315. package/dist/mion-pure-fns/@mionjs/run-types/R0IFkkw4SM2gvv.js +0 -2
  316. package/dist/mion-pure-fns/@mionjs/run-types/THkAA-KNR1HeAe.js +0 -1
  317. package/dist/mion-pure-fns/@mionjs/run-types/VJiknJ2exR2oMF.js +0 -1
  318. package/dist/mion-pure-fns/@mionjs/run-types/XYGjy-tcgDROBw.js +0 -2
  319. package/dist/mion-pure-fns/@mionjs/run-types/Z2sc5xQPKB0oav.js +0 -1
  320. package/dist/mion-pure-fns/@mionjs/run-types/_3Pmrr5aNmyNi4.js +0 -2
  321. package/dist/mion-pure-fns/@mionjs/run-types/cgwpjq6rGsI8jb.js +0 -1
  322. package/dist/mion-pure-fns/@mionjs/run-types/d8U9HjmMsNFd6Z.js +0 -1
  323. package/dist/mion-pure-fns/@mionjs/run-types/fL3v1v6aVZwJ7-.js +0 -1
  324. package/dist/mion-pure-fns/@mionjs/run-types/gFl-yXbCxJqWgQ.js +0 -2
  325. package/dist/mion-pure-fns/@mionjs/run-types/hiotRbfSKFAuK4.js +0 -1
  326. package/dist/mion-pure-fns/@mionjs/run-types/lFYcgG5ZSI-8em.js +0 -1
  327. package/dist/mion-pure-fns/@mionjs/run-types/n_ZOWff4X3qBMQ.js +0 -1
  328. package/dist/mion-pure-fns/@mionjs/run-types/ndkQPoji6DFHx2.js +0 -2
  329. package/dist/mion-pure-fns/@mionjs/run-types/nsU8QeJCuCF8Kr.js +0 -1
  330. package/dist/mion-pure-fns/@mionjs/run-types/qMsNYN8hy_sC8i.js +0 -1
  331. package/dist/mion-pure-fns/@mionjs/run-types/rXVwGkGDX08BsQ.js +0 -1
  332. package/dist/mion-pure-fns/@mionjs/run-types/rgWveqNi_HeFF8.js +0 -5
  333. package/dist/mion-pure-fns/@mionjs/run-types/s-tZDRlQfCG5m2.js +0 -1
  334. package/dist/mion-pure-fns/@mionjs/run-types/t-ntJ9S0FuxkC2.js +0 -1
  335. package/dist/mion-pure-fns/@mionjs/run-types/tfRjnFZVF8lqI_.js +0 -1
  336. package/dist/mion-pure-fns/@mionjs/run-types/vLId7t0J8HNWlN.js +0 -1
  337. package/dist/mion-pure-fns/@mionjs/run-types/zXMPEMyjGR4ZRc.js +0 -1
@@ -1,18 +0,0 @@
1
- import type { TypeFormatError } from '../createRTFunctions.ts';
2
- import type { FormatNameOf, FormatParamsOf } from './typeFormat.ts';
3
- import type { __rtFormatName } from './sentinelKeys.ts';
4
- import type { CreditCardErrorType } from '../formats/string/credit-card-pure-fns.ts';
5
- import type { DomainErrorType, EmailErrorType, IpErrorType } from '../formats/string/stringFormats.ts';
6
- type _FormatErrorsDepth = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8];
7
- type DomainModes<Params> = 'idna' extends keyof Params ? DomainErrorType : 'names' extends keyof Params ? DomainErrorType : never;
8
- type EmailModes<Params> = 'emailRfc' extends keyof Params ? EmailErrorType : 'localPart' extends keyof Params ? EmailErrorType : 'domain' extends keyof Params ? EmailErrorType : never;
9
- type IpModes<Params> = Params extends {
10
- allowPort: true;
11
- } ? IpErrorType : never;
12
- type FormatLeafErrors<Name extends string, Params> = Name extends 'creditCard' ? TypeFormatError<'creditCard', CreditCardErrorType> : Name extends 'email' ? TypeFormatError<'email', EmailModes<Params>> | ('domain' extends keyof Params ? TypeFormatError<'domain', DomainModes<Params['domain' & keyof Params]>> : never) : Name extends 'domain' ? TypeFormatError<'domain', DomainModes<Params>> : Name extends 'ip' ? TypeFormatError<'ip', IpModes<Params>> : TypeFormatError<Name, never>;
13
- export type FormatErrorsOf<T> = [CollectFormatErrors<T, 8>] extends [never] ? TypeFormatError : CollectFormatErrors<T, 8>;
14
- type CollectFormatErrors<T, Depth extends number> = T extends unknown ? CollectOne<T, Depth> : never;
15
- type CollectOne<T, Depth extends number> = Depth extends 0 ? never : unknown extends T ? never : typeof __rtFormatName extends keyof T ? FormatLeafErrors<FormatNameOf<T>, FormatParamsOf<T>> : T extends string | number | boolean | bigint | symbol | null | undefined | Date | RegExp | ((...args: never[]) => unknown) ? never : T extends ReadonlyMap<infer K, infer V> ? CollectFormatErrors<K, _FormatErrorsDepth[Depth]> | CollectFormatErrors<V, _FormatErrorsDepth[Depth]> : T extends ReadonlySet<infer U> ? CollectFormatErrors<U, _FormatErrorsDepth[Depth]> : T extends readonly (infer E)[] ? CollectFormatErrors<E, _FormatErrorsDepth[Depth]> : T extends object ? {
16
- [K in keyof T]-?: CollectFormatErrors<T[K], _FormatErrorsDepth[Depth]>;
17
- }[keyof T] : never;
18
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import type { CompTimeArgs } from '../markers.ts';
2
- export interface StringPatternArgs {
3
- source: string;
4
- flags?: string;
5
- mockSamples?: readonly string[];
6
- message?: string;
7
- unsafePattern?: boolean;
8
- exec?: never;
9
- }
10
- declare const formatPatternBrand: unique symbol;
11
- export interface FormatPattern<A extends StringPatternArgs = StringPatternArgs> {
12
- readonly source: A['source'];
13
- readonly flags: 'flags' extends keyof A ? NonNullable<A['flags']> : '';
14
- readonly mockSamples: 'mockSamples' extends keyof A ? A['mockSamples'] : undefined;
15
- readonly message?: 'message' extends keyof A ? A['message'] : undefined;
16
- readonly unsafePattern?: 'unsafePattern' extends keyof A ? A['unsafePattern'] : undefined;
17
- readonly [formatPatternBrand]: true;
18
- }
19
- export declare function registerFormatPattern<const A extends StringPatternArgs>(args: CompTimeArgs<A>): FormatPattern<A>;
20
- export {};
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerFormatPattern = registerFormatPattern;
4
- function registerFormatPattern(args) {
5
- const resolved = args;
6
- const source = resolved.source;
7
- const flags = resolved.flags ?? '';
8
- const { mockSamples, message, unsafePattern } = resolved;
9
- const tester = new RegExp(source, flags.replace(/[gy]/g, ''));
10
- for (const sample of mockSamples ?? []) {
11
- if (!tester.test(sample)) {
12
- throw new Error(`registerFormatPattern: mockSample ${JSON.stringify(sample)} does not match /${source}/${flags}` +
13
- (message ? ` — ${message}` : ''));
14
- }
15
- }
16
- return Object.freeze({ source, flags, mockSamples, message, unsafePattern });
17
- }
@@ -1,22 +0,0 @@
1
- import type { __rtFormatName, __rtFormatParams, __rtFormatBrand, __rtContains, __rtPatternProps, __rtPropNames } from './sentinelKeys.ts';
2
- import type { DataOnlyNativeExtra } from './dataOnly.ts';
3
- type JSONShapeSentinelKeys = typeof __rtFormatName | typeof __rtFormatParams | typeof __rtFormatBrand | typeof __rtContains | typeof __rtPatternProps | typeof __rtPropNames;
4
- type JSONShapeStripped = symbol | RegExp | ((...args: never[]) => unknown) | (abstract new (...args: never[]) => unknown) | {
5
- then: (...args: never[]) => unknown;
6
- } | ArrayBuffer | SharedArrayBuffer | ArrayBufferView;
7
- type JSONShapeStringNative = Date | DataOnlyNativeExtra[keyof DataOnlyNativeExtra];
8
- type _JSONShapeDepth = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8];
9
- type JSONShapeIsUnion<T> = [T] extends [never] ? false : true extends JSONShapeUnionProbe<T, T> ? true : false;
10
- type JSONShapeUnionProbe<T, U> = T extends unknown ? ([U] extends [T] ? false : true) : never;
11
- type JSONShapeUnionIsRaw<T> = [Exclude<T, string | number | boolean | null | undefined>] extends [never] ? true : false;
12
- type JSONShapeRawMember<T, Depth extends number> = T extends undefined ? undefined : JSONShapeNode<T, Depth>;
13
- type JSONShapeArraySlot<V, Depth extends number> = undefined extends V ? JSONShape<Exclude<V, undefined>, _JSONShapeDepth[Depth]> | null : JSONShape<V, _JSONShapeDepth[Depth]>;
14
- type JSONShapeUnion<T, Depth extends number> = JSONShapeUnionIsRaw<T> extends true ? T extends unknown ? JSONShapeRawMember<T, Depth> : never : [number, T extends unknown ? JSONShape<T, _JSONShapeDepth[Depth]> : never];
15
- export type JSONShape<T, Depth extends number = 8> = Depth extends 0 ? unknown : unknown extends T ? T : JSONShapeIsUnion<T> extends true ? JSONShapeUnion<T, Depth> : JSONShapeNode<T, Depth>;
16
- type JSONShapeNode<T, Depth extends number> = T extends JSONShapeStripped ? never : T extends bigint ? Extract<keyof T, JSONShapeSentinelKeys> extends never ? `${T}` : `${bigint}` : T extends string ? string extends T ? string : Extract<keyof T, JSONShapeSentinelKeys> extends never ? T : string : T extends number ? number extends T ? number : Extract<keyof T, JSONShapeSentinelKeys> extends never ? T : number : T extends boolean ? T : T extends null | undefined | void ? null : T extends JSONShapeStringNative ? string : JSONShapeLadder<T, Depth>;
17
- type JSONShapeLadder<T, Depth extends number> = T extends ReadonlyMap<any, any> ? T extends ReadonlyMap<infer K, infer V> ? [JSONShape<K, _JSONShapeDepth[Depth]>, JSONShape<V, _JSONShapeDepth[Depth]>][] : never : T extends ReadonlySet<any> ? T extends ReadonlySet<infer U> ? JSONShape<U, _JSONShapeDepth[Depth]>[] : never : T extends readonly unknown[] ? Extract<keyof T, JSONShapeSentinelKeys> extends never ? {
18
- -readonly [K in keyof T]: JSONShapeArraySlot<T[K], Depth>;
19
- } : T extends readonly (infer E)[] ? JSONShapeArraySlot<E, Depth>[] : never : T extends object ? object extends T ? T : {
20
- [K in keyof T as K extends symbol ? never : [JSONShape<T[K], _JSONShapeDepth[Depth]>] extends [never] ? never : K]: JSONShape<T[K], _JSONShapeDepth[Depth]>;
21
- } : T;
22
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,47 +0,0 @@
1
- export declare const RUN_TYPES_PURE_FN_ID_PREFIX = "@mionjs/run-types#pf_";
2
- export declare const isDateString_MDYId = "@mionjs/run-types#pf_-y__pOnrgnvRMz";
3
- export declare const uniqueArrayItemsId = "@mionjs/run-types#pf_0ofEnb55W0BDIY";
4
- export declare const isCreditCardId = "@mionjs/run-types#pf_18wDCH5CXZoQKV";
5
- export declare const isTimeString_mmssId = "@mionjs/run-types#pf_2xtQHAMu-yOBo6";
6
- export declare const punycodeEncodeId = "@mionjs/run-types#pf_5oCqd7YyfA9rEw";
7
- export declare const isSecondsWithMsId = "@mionjs/run-types#pf_6E7qWsIwaFRGn6";
8
- export declare const countEnumKeysId = "@mionjs/run-types#pf_6xkN1Qfs9nqO79";
9
- export declare const canonicalJsonId = "@mionjs/run-types#pf_8Mj42N3ytEEn67";
10
- export declare const matchesCardNetworkId = "@mionjs/run-types#pf_A3KjzpjelkcBST";
11
- export declare const isUUIDId = "@mionjs/run-types#pf_AgOXcprpjsrTKk";
12
- export declare const isIdnaLabelId = "@mionjs/run-types#pf_E29ul2pUOyD_Ay";
13
- export declare const isLocalHostId = "@mionjs/run-types#pf_EG8OkOOSnT9bZn";
14
- export declare const isTimeZoneId = "@mionjs/run-types#pf_EYsxRHRDgAykA_";
15
- export declare const isDateString_DMId = "@mionjs/run-types#pf_Eube1z0GFHuqlM";
16
- export declare const punycodeDecodeId = "@mionjs/run-types#pf_GA20s6bj41GC1A";
17
- export declare const isDateString_YMId = "@mionjs/run-types#pf_GfQK19ktpvibuZ";
18
- export declare const isTimeString_HHmmssId = "@mionjs/run-types#pf_IyjvBbz0zSlgCJ";
19
- export declare const isEmailAddressId = "@mionjs/run-types#pf_LqTR2O-h6MYq9J";
20
- export declare const isDateStringId = "@mionjs/run-types#pf_MnJ72PqkyXHiSP";
21
- export declare const isDateString_MDId = "@mionjs/run-types#pf_NJ9TCGDnkv_9Mn";
22
- export declare const isTimeString_ISOId = "@mionjs/run-types#pf_OCJ1B0-ZCAwagS";
23
- export declare const isDateString_DMYId = "@mionjs/run-types#pf_PQVLEBllZckw8I";
24
- export declare const isEcmaRegexId = "@mionjs/run-types#pf_Qd_9GJQlOCVqDe";
25
- export declare const uniqueMapEntriesId = "@mionjs/run-types#pf_R0IFkkw4SM2gvv";
26
- export declare const dateStrToMsId = "@mionjs/run-types#pf_THkAA-KNR1HeAe";
27
- export declare const luhnSumId = "@mionjs/run-types#pf_VJiknJ2exR2oMF";
28
- export declare const uniqueSetMembersId = "@mionjs/run-types#pf_XYGjy-tcgDROBw";
29
- export declare const codePointLengthId = "@mionjs/run-types#pf_Z2sc5xQPKB0oav";
30
- export declare const isIPV4Id = "@mionjs/run-types#pf__3Pmrr5aNmyNi4";
31
- export declare const isMinutesId = "@mionjs/run-types#pf_cgwpjq6rGsI8jb";
32
- export declare const isHoursId = "@mionjs/run-types#pf_d8U9HjmMsNFd6Z";
33
- export declare const getUnknownKeysFromArrayId = "@mionjs/run-types#pf_fL3v1v6aVZwJ7-";
34
- export declare const isDateString_YMDId = "@mionjs/run-types#pf_gFl-yXbCxJqWgQ";
35
- export declare const isTimeString_HHmmId = "@mionjs/run-types#pf_hiotRbfSKFAuK4";
36
- export declare const isSecondsWithLeapId = "@mionjs/run-types#pf_lFYcgG5ZSI-8em";
37
- export declare const isSecondsId = "@mionjs/run-types#pf_n_ZOWff4X3qBMQ";
38
- export declare const isIPV6Id = "@mionjs/run-types#pf_ndkQPoji6DFHx2";
39
- export declare const cardNetworkRulesId = "@mionjs/run-types#pf_nsU8QeJCuCF8Kr";
40
- export declare const isTimeString_ISO_TZId = "@mionjs/run-types#pf_qMsNYN8hy_sC8i";
41
- export declare const newRunTypeErrId = "@mionjs/run-types#pf_rXVwGkGDX08BsQ";
42
- export declare const isIdnHostnameId = "@mionjs/run-types#pf_rgWveqNi_HeFF8";
43
- export declare const relativeNowKeyId = "@mionjs/run-types#pf_s-tZDRlQfCG5m2";
44
- export declare const timeStrToMsId = "@mionjs/run-types#pf_t-ntJ9S0FuxkC2";
45
- export declare const hasUnknownKeysFromArrayId = "@mionjs/run-types#pf_tfRjnFZVF8lqI_";
46
- export declare const satisfiesBidiId = "@mionjs/run-types#pf_vLId7t0J8HNWlN";
47
- export declare const findCycleId = "@mionjs/run-types#pf_zXMPEMyjGR4ZRc";
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findCycleId = exports.satisfiesBidiId = exports.hasUnknownKeysFromArrayId = exports.timeStrToMsId = exports.relativeNowKeyId = exports.isIdnHostnameId = exports.newRunTypeErrId = exports.isTimeString_ISO_TZId = exports.cardNetworkRulesId = exports.isIPV6Id = exports.isSecondsId = exports.isSecondsWithLeapId = exports.isTimeString_HHmmId = exports.isDateString_YMDId = exports.getUnknownKeysFromArrayId = exports.isHoursId = exports.isMinutesId = exports.isIPV4Id = exports.codePointLengthId = exports.uniqueSetMembersId = exports.luhnSumId = exports.dateStrToMsId = exports.uniqueMapEntriesId = exports.isEcmaRegexId = exports.isDateString_DMYId = exports.isTimeString_ISOId = exports.isDateString_MDId = exports.isDateStringId = exports.isEmailAddressId = exports.isTimeString_HHmmssId = exports.isDateString_YMId = exports.punycodeDecodeId = exports.isDateString_DMId = exports.isTimeZoneId = exports.isLocalHostId = exports.isIdnaLabelId = exports.isUUIDId = exports.matchesCardNetworkId = exports.canonicalJsonId = exports.countEnumKeysId = exports.isSecondsWithMsId = exports.punycodeEncodeId = exports.isTimeString_mmssId = exports.isCreditCardId = exports.uniqueArrayItemsId = exports.isDateString_MDYId = exports.RUN_TYPES_PURE_FN_ID_PREFIX = void 0;
4
- exports.RUN_TYPES_PURE_FN_ID_PREFIX = '@mionjs/run-types#pf_';
5
- exports.isDateString_MDYId = '@mionjs/run-types#pf_-y__pOnrgnvRMz';
6
- exports.uniqueArrayItemsId = '@mionjs/run-types#pf_0ofEnb55W0BDIY';
7
- exports.isCreditCardId = '@mionjs/run-types#pf_18wDCH5CXZoQKV';
8
- exports.isTimeString_mmssId = '@mionjs/run-types#pf_2xtQHAMu-yOBo6';
9
- exports.punycodeEncodeId = '@mionjs/run-types#pf_5oCqd7YyfA9rEw';
10
- exports.isSecondsWithMsId = '@mionjs/run-types#pf_6E7qWsIwaFRGn6';
11
- exports.countEnumKeysId = '@mionjs/run-types#pf_6xkN1Qfs9nqO79';
12
- exports.canonicalJsonId = '@mionjs/run-types#pf_8Mj42N3ytEEn67';
13
- exports.matchesCardNetworkId = '@mionjs/run-types#pf_A3KjzpjelkcBST';
14
- exports.isUUIDId = '@mionjs/run-types#pf_AgOXcprpjsrTKk';
15
- exports.isIdnaLabelId = '@mionjs/run-types#pf_E29ul2pUOyD_Ay';
16
- exports.isLocalHostId = '@mionjs/run-types#pf_EG8OkOOSnT9bZn';
17
- exports.isTimeZoneId = '@mionjs/run-types#pf_EYsxRHRDgAykA_';
18
- exports.isDateString_DMId = '@mionjs/run-types#pf_Eube1z0GFHuqlM';
19
- exports.punycodeDecodeId = '@mionjs/run-types#pf_GA20s6bj41GC1A';
20
- exports.isDateString_YMId = '@mionjs/run-types#pf_GfQK19ktpvibuZ';
21
- exports.isTimeString_HHmmssId = '@mionjs/run-types#pf_IyjvBbz0zSlgCJ';
22
- exports.isEmailAddressId = '@mionjs/run-types#pf_LqTR2O-h6MYq9J';
23
- exports.isDateStringId = '@mionjs/run-types#pf_MnJ72PqkyXHiSP';
24
- exports.isDateString_MDId = '@mionjs/run-types#pf_NJ9TCGDnkv_9Mn';
25
- exports.isTimeString_ISOId = '@mionjs/run-types#pf_OCJ1B0-ZCAwagS';
26
- exports.isDateString_DMYId = '@mionjs/run-types#pf_PQVLEBllZckw8I';
27
- exports.isEcmaRegexId = '@mionjs/run-types#pf_Qd_9GJQlOCVqDe';
28
- exports.uniqueMapEntriesId = '@mionjs/run-types#pf_R0IFkkw4SM2gvv';
29
- exports.dateStrToMsId = '@mionjs/run-types#pf_THkAA-KNR1HeAe';
30
- exports.luhnSumId = '@mionjs/run-types#pf_VJiknJ2exR2oMF';
31
- exports.uniqueSetMembersId = '@mionjs/run-types#pf_XYGjy-tcgDROBw';
32
- exports.codePointLengthId = '@mionjs/run-types#pf_Z2sc5xQPKB0oav';
33
- exports.isIPV4Id = '@mionjs/run-types#pf__3Pmrr5aNmyNi4';
34
- exports.isMinutesId = '@mionjs/run-types#pf_cgwpjq6rGsI8jb';
35
- exports.isHoursId = '@mionjs/run-types#pf_d8U9HjmMsNFd6Z';
36
- exports.getUnknownKeysFromArrayId = '@mionjs/run-types#pf_fL3v1v6aVZwJ7-';
37
- exports.isDateString_YMDId = '@mionjs/run-types#pf_gFl-yXbCxJqWgQ';
38
- exports.isTimeString_HHmmId = '@mionjs/run-types#pf_hiotRbfSKFAuK4';
39
- exports.isSecondsWithLeapId = '@mionjs/run-types#pf_lFYcgG5ZSI-8em';
40
- exports.isSecondsId = '@mionjs/run-types#pf_n_ZOWff4X3qBMQ';
41
- exports.isIPV6Id = '@mionjs/run-types#pf_ndkQPoji6DFHx2';
42
- exports.cardNetworkRulesId = '@mionjs/run-types#pf_nsU8QeJCuCF8Kr';
43
- exports.isTimeString_ISO_TZId = '@mionjs/run-types#pf_qMsNYN8hy_sC8i';
44
- exports.newRunTypeErrId = '@mionjs/run-types#pf_rXVwGkGDX08BsQ';
45
- exports.isIdnHostnameId = '@mionjs/run-types#pf_rgWveqNi_HeFF8';
46
- exports.relativeNowKeyId = '@mionjs/run-types#pf_s-tZDRlQfCG5m2';
47
- exports.timeStrToMsId = '@mionjs/run-types#pf_t-ntJ9S0FuxkC2';
48
- exports.hasUnknownKeysFromArrayId = '@mionjs/run-types#pf_tfRjnFZVF8lqI_';
49
- exports.satisfiesBidiId = '@mionjs/run-types#pf_vLId7t0J8HNWlN';
50
- exports.findCycleId = '@mionjs/run-types#pf_zXMPEMyjGR4ZRc';
@@ -1,8 +0,0 @@
1
- export declare const getUnknownKeysFromArray: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_fL3v1v6aVZwJ7-">;
2
- export declare const countEnumKeys: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_6xkN1Qfs9nqO79">;
3
- export declare const hasUnknownKeysFromArray: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_tfRjnFZVF8lqI_">;
4
- export declare const canonicalJson: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_8Mj42N3ytEEn67">;
5
- export declare const uniqueArrayItems: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_0ofEnb55W0BDIY">;
6
- export declare const uniqueSetMembers: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_XYGjy-tcgDROBw">;
7
- export declare const uniqueMapEntries: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_R0IFkkw4SM2gvv">;
8
- export declare const newRunTypeErr: import("./pureFn.ts").PureFnId<"@mionjs/run-types#pf_rXVwGkGDX08BsQ">;
@@ -1,147 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newRunTypeErr = exports.uniqueMapEntries = exports.uniqueSetMembers = exports.uniqueArrayItems = exports.canonicalJson = exports.hasUnknownKeysFromArray = exports.countEnumKeys = exports.getUnknownKeysFromArray = 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.getUnknownKeysFromArray = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.getUnknownKeysFromArrayId 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
- exports.countEnumKeys = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.countEnumKeysId hollowed — body ships on demand
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- */);
47
- exports.hasUnknownKeysFromArray = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.hasUnknownKeysFromArrayId hollowed — body ships on demand
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
- */);
63
- exports.canonicalJson = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.canonicalJsonId hollowed — body ships on demand
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- */);
81
- exports.uniqueArrayItems = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.uniqueArrayItemsId hollowed — body ships on demand
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
- exports.uniqueSetMembers = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.uniqueSetMembersId hollowed — body ships on demand
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- */);
124
- exports.uniqueMapEntries = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.uniqueMapEntriesId hollowed — body ships on demand
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- */);
141
- exports.newRunTypeErr = (0, pureFn_ts_1.registerPureFnFactory)(null /** pure_fn_ids_generated_ts_1.newRunTypeErrId hollowed — body ships on demand
142
-
143
-
144
-
145
-
146
-
147
- */);
@@ -1,7 +0,0 @@
1
- import type { PureFunction as PureFn, PureFunctionFactory as PureFnFactory } from './types.ts';
2
- import type { InjectPureFnId, PureFunction as PureFunctionMarker, PureFunctionFactory as PureFunctionFactoryMarker } from '../markers.ts';
3
- export type PureFnId<ID extends string = string> = ID & {
4
- readonly __rtPureFnIdBrand: true;
5
- };
6
- export declare function registerPureFnFactory<F extends PureFnFactory, ID extends string = string>(createPureFn: PureFunctionFactoryMarker<F> | null, id?: InjectPureFnId<F> & ID): PureFnId<ID>;
7
- export declare function registerPureFn<F extends PureFn, ID extends string = string>(fn: PureFunctionMarker<F> | null, id?: InjectPureFnId<F> & ID): PureFnId<ID>;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerPureFnFactory = registerPureFnFactory;
4
- exports.registerPureFn = registerPureFn;
5
- const rtUtils_ts_1 = require("./rtUtils.js");
6
- const entryTuple_ts_1 = require("./entryTuple.js");
7
- function asFactory(fn, wrap) {
8
- return wrap ? () => fn : fn;
9
- }
10
- function registerCore(caller, arg, id, wrap) {
11
- if (arg == null)
12
- return (id ?? '');
13
- if (id === undefined) {
14
- throw new Error(`[mion] ${caller}: no id injected. The build plugin must process this file — ` +
15
- `check that @mionjs/devtools is installed and the dev server has restarted ` +
16
- `after recent edits.`);
17
- }
18
- if ((0, entryTuple_ts_1.isEntryTuple)(arg)) {
19
- (0, entryTuple_ts_1.initFromTuple)(arg);
20
- const registered = (0, rtUtils_ts_1.getRTUtils)().getCompiledPureFnByKey(id);
21
- if (registered)
22
- return id;
23
- throw new Error(`[mion] ${caller}: the entry tuple for "${id}" did not register it.`);
24
- }
25
- const existing = (0, rtUtils_ts_1.getRTUtils)().getCompiledPureFnByKey(id);
26
- if (existing) {
27
- if (arg) {
28
- existing.createPureFn = asFactory(arg, wrap);
29
- existing.fn = undefined;
30
- }
31
- return id;
32
- }
33
- if (typeof arg === 'function') {
34
- const compiled = {
35
- id,
36
- paramNames: [],
37
- code: '',
38
- pureFnDependencies: [],
39
- createPureFn: asFactory(arg, wrap),
40
- fn: undefined,
41
- };
42
- (0, rtUtils_ts_1.getRTUtils)().addPureFn(id, compiled);
43
- return id;
44
- }
45
- return id;
46
- }
47
- function registerPureFnFactory(createPureFn, id) {
48
- return registerCore('registerPureFnFactory', createPureFn, id, false);
49
- }
50
- function registerPureFn(fn, id) {
51
- return registerCore('registerPureFn', fn, id, true);
52
- }
@@ -1,45 +0,0 @@
1
- import type { AnyFn, CompiledTypeFn, TypesFunctionsCache, PureFunctionsCache, CompiledPureFunction, PureFunction, PureFunctionFactory, RunType, InitializedTypeFn } from './types.ts';
2
- import { CircularReferenceError } from './circular.ts';
3
- import type { CircularPath } from './circular.ts';
4
- import type { ClassSerializerEntry } from './classSerializerRegistry.ts';
5
- import type { DataOnly } from './dataOnly.ts';
6
- import type { CompTimeArgs } from '../markers.ts';
7
- import type { PureFnId } from './pureFn.ts';
8
- export type RTUtils = typeof rtUtils;
9
- export declare function isRunTypeValue(val: unknown): val is RunType;
10
- declare const rtUtils: {
11
- addToRTCache(comp: CompiledTypeFn): void;
12
- removeFromRTCache(comp: CompiledTypeFn): void;
13
- getRT<Fn extends AnyFn = AnyFn>(rtFnHash: string): InitializedTypeFn<Fn> | undefined;
14
- findRTForType(familyTag: string, typeId: string): InitializedTypeFn | undefined;
15
- getRTFn(rtFnHash: string): (...args: any[]) => any;
16
- hasRTFn(rtFnHash: string): boolean;
17
- addPureFn(id: string, compiledFn: CompiledPureFunction): CompiledPureFunction;
18
- usePureFn(key: CompTimeArgs<PureFnId>): PureFunction;
19
- getPureFn<Fn extends PureFunction = PureFunction>(key: CompTimeArgs<PureFnId>): Fn | undefined;
20
- getCompiledPureFn(key: CompTimeArgs<PureFnId>): CompiledPureFunction | undefined;
21
- hasPureFn(key: CompTimeArgs<PureFnId>): boolean;
22
- getPureFnByKey(key: string): PureFunction | undefined;
23
- hasPureFnByKey(key: string): boolean;
24
- getCompiledPureFnByKey(key: string): CompiledPureFunction | undefined;
25
- addRunType(id: string, runType: RunType): RunType;
26
- removeRunType(id: string): void;
27
- getRunType(id: string): RunType | undefined;
28
- useRunType(id: string): RunType;
29
- hasRunType(id: string): boolean;
30
- knowsType(typeId: string): boolean;
31
- alwaysThrowFactory(message: string): () => never;
32
- circularError(path: CircularPath): CircularReferenceError;
33
- getClassSerializer(typeId: string, className?: string): ClassSerializerEntry | undefined;
34
- csEpoch(): number;
35
- deserializeClass<T>(entry: ClassSerializerEntry<T>, data: DataOnly<T>, keys: readonly string[]): T;
36
- };
37
- export declare function getRTUtils(): RTUtils;
38
- export declare function getRTFnCaches(): {
39
- rtFnsCache: Readonly<TypesFunctionsCache>;
40
- pureFnsCache: Readonly<PureFunctionsCache>;
41
- };
42
- export declare function buildPureFnFactoryFromCode(paramNames: string[], code: string): PureFunctionFactory;
43
- export declare function buildFactoryFromCode(code: string): (utl: RTUtils) => (...args: any[]) => any;
44
- export declare function entryCode(entry: CompiledTypeFn): string;
45
- export {};