typia 13.0.0 → 13.0.1

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 (793) hide show
  1. package/lib/TypeGuardError.mjs +42 -3
  2. package/lib/TypeGuardError.mjs.map +1 -1
  3. package/lib/_virtual/_rolldown/runtime.mjs +17 -0
  4. package/lib/compare.mjs +39 -3
  5. package/lib/compare.mjs.map +1 -1
  6. package/lib/executable/TypiaGenerateWizard.js +7 -2
  7. package/lib/executable/TypiaGenerateWizard.js.map +1 -1
  8. package/lib/executable/TypiaGenerateWizard.mjs +474 -3
  9. package/lib/executable/TypiaGenerateWizard.mjs.map +1 -1
  10. package/lib/executable/generate/ttsc.js +11 -8
  11. package/lib/executable/generate/ttsc.js.map +1 -1
  12. package/lib/executable/generate/ttsc.mjs +37 -3
  13. package/lib/executable/generate/ttsc.mjs.map +1 -1
  14. package/lib/executable/typia.js +10 -4
  15. package/lib/executable/typia.js.map +1 -1
  16. package/lib/executable/typia.mjs +59 -3
  17. package/lib/executable/typia.mjs.map +1 -1
  18. package/lib/functional.mjs +99 -3
  19. package/lib/functional.mjs.map +1 -1
  20. package/lib/http.mjs +139 -3
  21. package/lib/http.mjs.map +1 -1
  22. package/lib/index.mjs +18 -2
  23. package/lib/index.mjs.map +1 -1
  24. package/lib/internal/_IProtobufWriter.mjs +0 -3
  25. package/lib/internal/_ProtobufReader.js +7 -6
  26. package/lib/internal/_ProtobufReader.js.map +1 -1
  27. package/lib/internal/_ProtobufReader.mjs +140 -3
  28. package/lib/internal/_ProtobufReader.mjs.map +1 -1
  29. package/lib/internal/_ProtobufSizer.mjs +84 -3
  30. package/lib/internal/_ProtobufSizer.mjs.map +1 -1
  31. package/lib/internal/_ProtobufWriter.mjs +94 -3
  32. package/lib/internal/_ProtobufWriter.mjs.map +1 -1
  33. package/lib/internal/_accessExpressionAsString.mjs +46 -3
  34. package/lib/internal/_accessExpressionAsString.mjs.map +1 -1
  35. package/lib/internal/_assertGuard.mjs +11 -3
  36. package/lib/internal/_assertGuard.mjs.map +1 -1
  37. package/lib/internal/_coerceLlmArguments.mjs +7 -3
  38. package/lib/internal/_coerceLlmArguments.mjs.map +1 -1
  39. package/lib/internal/_createStandardSchema.mjs +64 -3
  40. package/lib/internal/_createStandardSchema.mjs.map +1 -1
  41. package/lib/internal/_functionalTypeGuardErrorFactory.mjs +7 -3
  42. package/lib/internal/_functionalTypeGuardErrorFactory.mjs.map +1 -1
  43. package/lib/internal/_httpFormDataReadArray.mjs +6 -3
  44. package/lib/internal/_httpFormDataReadArray.mjs.map +1 -1
  45. package/lib/internal/_httpFormDataReadBigint.mjs +13 -3
  46. package/lib/internal/_httpFormDataReadBigint.mjs.map +1 -1
  47. package/lib/internal/_httpFormDataReadBlob.mjs +6 -3
  48. package/lib/internal/_httpFormDataReadBlob.mjs.map +1 -1
  49. package/lib/internal/_httpFormDataReadBoolean.mjs +6 -3
  50. package/lib/internal/_httpFormDataReadBoolean.mjs.map +1 -1
  51. package/lib/internal/_httpFormDataReadFile.mjs +6 -3
  52. package/lib/internal/_httpFormDataReadFile.mjs.map +1 -1
  53. package/lib/internal/_httpFormDataReadNumber.mjs +10 -3
  54. package/lib/internal/_httpFormDataReadNumber.mjs.map +1 -1
  55. package/lib/internal/_httpFormDataReadString.mjs +6 -3
  56. package/lib/internal/_httpFormDataReadString.mjs.map +1 -1
  57. package/lib/internal/_httpHeaderReadBigint.mjs +13 -3
  58. package/lib/internal/_httpHeaderReadBigint.mjs.map +1 -1
  59. package/lib/internal/_httpHeaderReadBoolean.mjs +6 -3
  60. package/lib/internal/_httpHeaderReadBoolean.mjs.map +1 -1
  61. package/lib/internal/_httpHeaderReadNumber.mjs +10 -3
  62. package/lib/internal/_httpHeaderReadNumber.mjs.map +1 -1
  63. package/lib/internal/_httpParameterReadBigint.mjs +13 -3
  64. package/lib/internal/_httpParameterReadBigint.mjs.map +1 -1
  65. package/lib/internal/_httpParameterReadBoolean.mjs +6 -3
  66. package/lib/internal/_httpParameterReadBoolean.mjs.map +1 -1
  67. package/lib/internal/_httpParameterReadNumber.mjs +10 -3
  68. package/lib/internal/_httpParameterReadNumber.mjs.map +1 -1
  69. package/lib/internal/_httpParameterReadString.mjs +6 -3
  70. package/lib/internal/_httpParameterReadString.mjs.map +1 -1
  71. package/lib/internal/_httpQueryParseURLSearchParams.mjs +13 -3
  72. package/lib/internal/_httpQueryParseURLSearchParams.mjs.map +1 -1
  73. package/lib/internal/_httpQueryReadArray.mjs +6 -3
  74. package/lib/internal/_httpQueryReadArray.mjs.map +1 -1
  75. package/lib/internal/_httpQueryReadBigint.mjs +13 -3
  76. package/lib/internal/_httpQueryReadBigint.mjs.map +1 -1
  77. package/lib/internal/_httpQueryReadBoolean.mjs +6 -3
  78. package/lib/internal/_httpQueryReadBoolean.mjs.map +1 -1
  79. package/lib/internal/_httpQueryReadNumber.mjs +10 -3
  80. package/lib/internal/_httpQueryReadNumber.mjs.map +1 -1
  81. package/lib/internal/_httpQueryReadString.mjs +6 -3
  82. package/lib/internal/_httpQueryReadString.mjs.map +1 -1
  83. package/lib/internal/_isBetween.mjs +6 -3
  84. package/lib/internal/_isBetween.mjs.map +1 -1
  85. package/lib/internal/_isBigintString.mjs +13 -3
  86. package/lib/internal/_isBigintString.mjs.map +1 -1
  87. package/lib/internal/_isFormatByte.mjs +10 -3
  88. package/lib/internal/_isFormatByte.mjs.map +1 -1
  89. package/lib/internal/_isFormatDate.mjs +7 -3
  90. package/lib/internal/_isFormatDate.mjs.map +1 -1
  91. package/lib/internal/_isFormatDateTime.mjs +7 -3
  92. package/lib/internal/_isFormatDateTime.mjs.map +1 -1
  93. package/lib/internal/_isFormatDuration.mjs +7 -3
  94. package/lib/internal/_isFormatDuration.mjs.map +1 -1
  95. package/lib/internal/_isFormatEmail.mjs +7 -3
  96. package/lib/internal/_isFormatEmail.mjs.map +1 -1
  97. package/lib/internal/_isFormatHostname.mjs +7 -3
  98. package/lib/internal/_isFormatHostname.mjs.map +1 -1
  99. package/lib/internal/_isFormatIdnEmail.mjs +7 -3
  100. package/lib/internal/_isFormatIdnEmail.mjs.map +1 -1
  101. package/lib/internal/_isFormatIdnHostname.mjs +7 -3
  102. package/lib/internal/_isFormatIdnHostname.mjs.map +1 -1
  103. package/lib/internal/_isFormatIpv4.mjs +7 -3
  104. package/lib/internal/_isFormatIpv4.mjs.map +1 -1
  105. package/lib/internal/_isFormatIpv6.mjs +7 -3
  106. package/lib/internal/_isFormatIpv6.mjs.map +1 -1
  107. package/lib/internal/_isFormatIri.mjs +7 -3
  108. package/lib/internal/_isFormatIri.mjs.map +1 -1
  109. package/lib/internal/_isFormatIriReference.mjs +7 -3
  110. package/lib/internal/_isFormatIriReference.mjs.map +1 -1
  111. package/lib/internal/_isFormatJsonPointer.mjs +7 -3
  112. package/lib/internal/_isFormatJsonPointer.mjs.map +1 -1
  113. package/lib/internal/_isFormatPassword.mjs +6 -3
  114. package/lib/internal/_isFormatPassword.mjs.map +1 -1
  115. package/lib/internal/_isFormatRegex.mjs +13 -3
  116. package/lib/internal/_isFormatRegex.mjs.map +1 -1
  117. package/lib/internal/_isFormatRelativeJsonPointer.mjs +7 -3
  118. package/lib/internal/_isFormatRelativeJsonPointer.mjs.map +1 -1
  119. package/lib/internal/_isFormatTime.mjs +7 -3
  120. package/lib/internal/_isFormatTime.mjs.map +1 -1
  121. package/lib/internal/_isFormatUri.mjs +8 -3
  122. package/lib/internal/_isFormatUri.mjs.map +1 -1
  123. package/lib/internal/_isFormatUriReference.mjs +7 -3
  124. package/lib/internal/_isFormatUriReference.mjs.map +1 -1
  125. package/lib/internal/_isFormatUriTemplate.mjs +7 -3
  126. package/lib/internal/_isFormatUriTemplate.mjs.map +1 -1
  127. package/lib/internal/_isFormatUrl.mjs +7 -3
  128. package/lib/internal/_isFormatUrl.mjs.map +1 -1
  129. package/lib/internal/_isFormatUuid.mjs +7 -3
  130. package/lib/internal/_isFormatUuid.mjs.map +1 -1
  131. package/lib/internal/_isTypeFloat.mjs +8 -3
  132. package/lib/internal/_isTypeFloat.mjs.map +1 -1
  133. package/lib/internal/_isTypeInt16.mjs +8 -3
  134. package/lib/internal/_isTypeInt16.mjs.map +1 -1
  135. package/lib/internal/_isTypeInt32.mjs +8 -3
  136. package/lib/internal/_isTypeInt32.mjs.map +1 -1
  137. package/lib/internal/_isTypeInt64.mjs +8 -3
  138. package/lib/internal/_isTypeInt64.mjs.map +1 -1
  139. package/lib/internal/_isTypeInt8.mjs +8 -3
  140. package/lib/internal/_isTypeInt8.mjs.map +1 -1
  141. package/lib/internal/_isTypeUint16.mjs +8 -3
  142. package/lib/internal/_isTypeUint16.mjs.map +1 -1
  143. package/lib/internal/_isTypeUint32.mjs +8 -3
  144. package/lib/internal/_isTypeUint32.mjs.map +1 -1
  145. package/lib/internal/_isTypeUint64.mjs +8 -3
  146. package/lib/internal/_isTypeUint64.mjs.map +1 -1
  147. package/lib/internal/_isTypeUint8.mjs +8 -3
  148. package/lib/internal/_isTypeUint8.mjs.map +1 -1
  149. package/lib/internal/_isUniqueItems.mjs +67 -3
  150. package/lib/internal/_isUniqueItems.mjs.map +1 -1
  151. package/lib/internal/_jsonStringifyNumber.mjs +6 -3
  152. package/lib/internal/_jsonStringifyNumber.mjs.map +1 -1
  153. package/lib/internal/_jsonStringifyRest.mjs +8 -3
  154. package/lib/internal/_jsonStringifyRest.mjs.map +1 -1
  155. package/lib/internal/_jsonStringifyString.mjs +34 -3
  156. package/lib/internal/_jsonStringifyString.mjs.map +1 -1
  157. package/lib/internal/_jsonStringifyTail.mjs +6 -3
  158. package/lib/internal/_jsonStringifyTail.mjs.map +1 -1
  159. package/lib/internal/_llmApplicationFinalize.mjs +19 -3
  160. package/lib/internal/_llmApplicationFinalize.mjs.map +1 -1
  161. package/lib/internal/_notationAny.mjs +18 -3
  162. package/lib/internal/_notationAny.mjs.map +1 -1
  163. package/lib/internal/_notationCamel.mjs +11 -3
  164. package/lib/internal/_notationCamel.mjs.map +1 -1
  165. package/lib/internal/_notationPascal.mjs +11 -3
  166. package/lib/internal/_notationPascal.mjs.map +1 -1
  167. package/lib/internal/_notationSnake.mjs +32 -3
  168. package/lib/internal/_notationSnake.mjs.map +1 -1
  169. package/lib/internal/_parseLlmArguments.mjs +7 -3
  170. package/lib/internal/_parseLlmArguments.mjs.map +1 -1
  171. package/lib/internal/_plainCloneAny.mjs +35 -3
  172. package/lib/internal/_plainCloneAny.mjs.map +1 -1
  173. package/lib/internal/_randomArray.mjs +22 -3
  174. package/lib/internal/_randomArray.mjs.map +1 -1
  175. package/lib/internal/_randomBigint.mjs +7 -3
  176. package/lib/internal/_randomBigint.mjs.map +1 -1
  177. package/lib/internal/_randomBoolean.mjs +6 -3
  178. package/lib/internal/_randomBoolean.mjs.map +1 -1
  179. package/lib/internal/_randomFormatByte.mjs +7 -3
  180. package/lib/internal/_randomFormatByte.mjs.map +1 -1
  181. package/lib/internal/_randomFormatDate.mjs +11 -3
  182. package/lib/internal/_randomFormatDate.mjs.map +1 -1
  183. package/lib/internal/_randomFormatDatetime.mjs +11 -3
  184. package/lib/internal/_randomFormatDatetime.mjs.map +1 -1
  185. package/lib/internal/_randomFormatDuration.mjs +26 -3
  186. package/lib/internal/_randomFormatDuration.mjs.map +1 -1
  187. package/lib/internal/_randomFormatEmail.mjs +12 -3
  188. package/lib/internal/_randomFormatEmail.mjs.map +1 -1
  189. package/lib/internal/_randomFormatHostname.mjs +12 -3
  190. package/lib/internal/_randomFormatHostname.mjs.map +1 -1
  191. package/lib/internal/_randomFormatIdnEmail.mjs +7 -3
  192. package/lib/internal/_randomFormatIdnEmail.mjs.map +1 -1
  193. package/lib/internal/_randomFormatIdnHostname.mjs +7 -3
  194. package/lib/internal/_randomFormatIdnHostname.mjs.map +1 -1
  195. package/lib/internal/_randomFormatIpv4.mjs +12 -3
  196. package/lib/internal/_randomFormatIpv4.mjs.map +1 -1
  197. package/lib/internal/_randomFormatIpv6.mjs +12 -3
  198. package/lib/internal/_randomFormatIpv6.mjs.map +1 -1
  199. package/lib/internal/_randomFormatIri.mjs +7 -3
  200. package/lib/internal/_randomFormatIri.mjs.map +1 -1
  201. package/lib/internal/_randomFormatIriReference.mjs +7 -3
  202. package/lib/internal/_randomFormatIriReference.mjs.map +1 -1
  203. package/lib/internal/_randomFormatJsonPointer.mjs +12 -3
  204. package/lib/internal/_randomFormatJsonPointer.mjs.map +1 -1
  205. package/lib/internal/_randomFormatPassword.mjs +11 -3
  206. package/lib/internal/_randomFormatPassword.mjs.map +1 -1
  207. package/lib/internal/_randomFormatRegex.mjs +7 -3
  208. package/lib/internal/_randomFormatRegex.mjs.map +1 -1
  209. package/lib/internal/_randomFormatRelativeJsonPointer.mjs +11 -3
  210. package/lib/internal/_randomFormatRelativeJsonPointer.mjs.map +1 -1
  211. package/lib/internal/_randomFormatTime.mjs +12 -3
  212. package/lib/internal/_randomFormatTime.mjs.map +1 -1
  213. package/lib/internal/_randomFormatUri.mjs +7 -3
  214. package/lib/internal/_randomFormatUri.mjs.map +1 -1
  215. package/lib/internal/_randomFormatUriReference.mjs +7 -3
  216. package/lib/internal/_randomFormatUriReference.mjs.map +1 -1
  217. package/lib/internal/_randomFormatUriTemplate.mjs +7 -3
  218. package/lib/internal/_randomFormatUriTemplate.mjs.map +1 -1
  219. package/lib/internal/_randomFormatUrl.mjs +12 -3
  220. package/lib/internal/_randomFormatUrl.mjs.map +1 -1
  221. package/lib/internal/_randomFormatUuid.mjs +9 -3
  222. package/lib/internal/_randomFormatUuid.mjs.map +1 -1
  223. package/lib/internal/_randomInteger.mjs +31 -3
  224. package/lib/internal/_randomInteger.mjs.map +1 -1
  225. package/lib/internal/_randomNumber.mjs +45 -3
  226. package/lib/internal/_randomNumber.mjs.map +1 -1
  227. package/lib/internal/_randomPattern.mjs +14 -3
  228. package/lib/internal/_randomPattern.mjs.map +1 -1
  229. package/lib/internal/_randomPick.mjs +12 -3
  230. package/lib/internal/_randomPick.mjs.map +1 -1
  231. package/lib/internal/_randomString.mjs +23 -3
  232. package/lib/internal/_randomString.mjs.map +1 -1
  233. package/lib/internal/_throwTypeGuardError.mjs +9 -3
  234. package/lib/internal/_throwTypeGuardError.mjs.map +1 -1
  235. package/lib/internal/_validateReport.mjs +23 -3
  236. package/lib/internal/_validateReport.mjs.map +1 -1
  237. package/lib/internal/private/__notationCapitalize.mjs +6 -3
  238. package/lib/internal/private/__notationCapitalize.mjs.map +1 -1
  239. package/lib/internal/private/__notationUnsnake.mjs +15 -3
  240. package/lib/internal/private/__notationUnsnake.mjs.map +1 -1
  241. package/lib/json.mjs +94 -3
  242. package/lib/json.mjs.map +1 -1
  243. package/lib/llm.mjs +54 -3
  244. package/lib/llm.mjs.map +1 -1
  245. package/lib/module.mjs +131 -2
  246. package/lib/module.mjs.map +1 -1
  247. package/lib/notations.mjs +169 -3
  248. package/lib/notations.mjs.map +1 -1
  249. package/lib/plain.mjs +119 -3
  250. package/lib/plain.mjs.map +1 -1
  251. package/lib/protobuf.mjs +94 -3
  252. package/lib/protobuf.mjs.map +1 -1
  253. package/lib/re-exports.d.ts +2 -1
  254. package/lib/re-exports.js +5 -1
  255. package/lib/re-exports.js.map +1 -1
  256. package/lib/re-exports.mjs +2 -2
  257. package/lib/reflect.mjs +29 -3
  258. package/lib/reflect.mjs.map +1 -1
  259. package/lib/transform.mjs +15 -2
  260. package/lib/transform.mjs.map +1 -1
  261. package/lib/transformers/NoTransformConfigurationError.mjs +19 -3
  262. package/lib/transformers/NoTransformConfigurationError.mjs.map +1 -1
  263. package/native/core/factories/LiteralFactory.go +37 -0
  264. package/native/core/factories/literal_factory_ordered_object_marshals_json_test.go +40 -0
  265. package/package.json +6 -13
  266. package/src/executable/TypiaGenerateWizard.ts +5 -1
  267. package/src/executable/generate/ttsc.ts +3 -4
  268. package/src/executable/typia.ts +8 -4
  269. package/src/re-exports.ts +8 -3
  270. package/lib/TypeGuardError2.mjs +0 -55
  271. package/lib/TypeGuardError2.mjs.map +0 -1
  272. package/lib/_virtual/NoTransformConfigurationError.mjs +0 -4
  273. package/lib/_virtual/NoTransformConfigurationError.mjs.map +0 -1
  274. package/lib/_virtual/TypeGuardError.mjs +0 -4
  275. package/lib/_virtual/TypeGuardError.mjs.map +0 -1
  276. package/lib/_virtual/TypiaGenerateWizard.mjs +0 -4
  277. package/lib/_virtual/TypiaGenerateWizard.mjs.map +0 -1
  278. package/lib/_virtual/_IProtobufWriter.mjs +0 -4
  279. package/lib/_virtual/_IProtobufWriter.mjs.map +0 -1
  280. package/lib/_virtual/_ProtobufReader.mjs +0 -4
  281. package/lib/_virtual/_ProtobufReader.mjs.map +0 -1
  282. package/lib/_virtual/_ProtobufSizer.mjs +0 -4
  283. package/lib/_virtual/_ProtobufSizer.mjs.map +0 -1
  284. package/lib/_virtual/_ProtobufWriter.mjs +0 -4
  285. package/lib/_virtual/_ProtobufWriter.mjs.map +0 -1
  286. package/lib/_virtual/__notationCapitalize.mjs +0 -4
  287. package/lib/_virtual/__notationCapitalize.mjs.map +0 -1
  288. package/lib/_virtual/__notationUnsnake.mjs +0 -4
  289. package/lib/_virtual/__notationUnsnake.mjs.map +0 -1
  290. package/lib/_virtual/_accessExpressionAsString.mjs +0 -4
  291. package/lib/_virtual/_accessExpressionAsString.mjs.map +0 -1
  292. package/lib/_virtual/_assertGuard.mjs +0 -4
  293. package/lib/_virtual/_assertGuard.mjs.map +0 -1
  294. package/lib/_virtual/_coerceLlmArguments.mjs +0 -4
  295. package/lib/_virtual/_coerceLlmArguments.mjs.map +0 -1
  296. package/lib/_virtual/_commander.mjs +0 -7
  297. package/lib/_virtual/_commander.mjs.map +0 -1
  298. package/lib/_virtual/_commonjsHelpers.mjs +0 -35
  299. package/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
  300. package/lib/_virtual/_createStandardSchema.mjs +0 -4
  301. package/lib/_virtual/_createStandardSchema.mjs.map +0 -1
  302. package/lib/_virtual/_functionalTypeGuardErrorFactory.mjs +0 -4
  303. package/lib/_virtual/_functionalTypeGuardErrorFactory.mjs.map +0 -1
  304. package/lib/_virtual/_httpFormDataReadArray.mjs +0 -4
  305. package/lib/_virtual/_httpFormDataReadArray.mjs.map +0 -1
  306. package/lib/_virtual/_httpFormDataReadBigint.mjs +0 -4
  307. package/lib/_virtual/_httpFormDataReadBigint.mjs.map +0 -1
  308. package/lib/_virtual/_httpFormDataReadBlob.mjs +0 -4
  309. package/lib/_virtual/_httpFormDataReadBlob.mjs.map +0 -1
  310. package/lib/_virtual/_httpFormDataReadBoolean.mjs +0 -4
  311. package/lib/_virtual/_httpFormDataReadBoolean.mjs.map +0 -1
  312. package/lib/_virtual/_httpFormDataReadFile.mjs +0 -4
  313. package/lib/_virtual/_httpFormDataReadFile.mjs.map +0 -1
  314. package/lib/_virtual/_httpFormDataReadNumber.mjs +0 -4
  315. package/lib/_virtual/_httpFormDataReadNumber.mjs.map +0 -1
  316. package/lib/_virtual/_httpFormDataReadString.mjs +0 -4
  317. package/lib/_virtual/_httpFormDataReadString.mjs.map +0 -1
  318. package/lib/_virtual/_httpHeaderReadBigint.mjs +0 -4
  319. package/lib/_virtual/_httpHeaderReadBigint.mjs.map +0 -1
  320. package/lib/_virtual/_httpHeaderReadBoolean.mjs +0 -4
  321. package/lib/_virtual/_httpHeaderReadBoolean.mjs.map +0 -1
  322. package/lib/_virtual/_httpHeaderReadNumber.mjs +0 -4
  323. package/lib/_virtual/_httpHeaderReadNumber.mjs.map +0 -1
  324. package/lib/_virtual/_httpParameterReadBigint.mjs +0 -4
  325. package/lib/_virtual/_httpParameterReadBigint.mjs.map +0 -1
  326. package/lib/_virtual/_httpParameterReadBoolean.mjs +0 -4
  327. package/lib/_virtual/_httpParameterReadBoolean.mjs.map +0 -1
  328. package/lib/_virtual/_httpParameterReadNumber.mjs +0 -4
  329. package/lib/_virtual/_httpParameterReadNumber.mjs.map +0 -1
  330. package/lib/_virtual/_httpParameterReadString.mjs +0 -4
  331. package/lib/_virtual/_httpParameterReadString.mjs.map +0 -1
  332. package/lib/_virtual/_httpQueryParseURLSearchParams.mjs +0 -4
  333. package/lib/_virtual/_httpQueryParseURLSearchParams.mjs.map +0 -1
  334. package/lib/_virtual/_httpQueryReadArray.mjs +0 -4
  335. package/lib/_virtual/_httpQueryReadArray.mjs.map +0 -1
  336. package/lib/_virtual/_httpQueryReadBigint.mjs +0 -4
  337. package/lib/_virtual/_httpQueryReadBigint.mjs.map +0 -1
  338. package/lib/_virtual/_httpQueryReadBoolean.mjs +0 -4
  339. package/lib/_virtual/_httpQueryReadBoolean.mjs.map +0 -1
  340. package/lib/_virtual/_httpQueryReadNumber.mjs +0 -4
  341. package/lib/_virtual/_httpQueryReadNumber.mjs.map +0 -1
  342. package/lib/_virtual/_httpQueryReadString.mjs +0 -4
  343. package/lib/_virtual/_httpQueryReadString.mjs.map +0 -1
  344. package/lib/_virtual/_inquirer.mjs +0 -7
  345. package/lib/_virtual/_inquirer.mjs.map +0 -1
  346. package/lib/_virtual/_isBetween.mjs +0 -4
  347. package/lib/_virtual/_isBetween.mjs.map +0 -1
  348. package/lib/_virtual/_isBigintString.mjs +0 -4
  349. package/lib/_virtual/_isBigintString.mjs.map +0 -1
  350. package/lib/_virtual/_isFormatByte.mjs +0 -4
  351. package/lib/_virtual/_isFormatByte.mjs.map +0 -1
  352. package/lib/_virtual/_isFormatDate.mjs +0 -4
  353. package/lib/_virtual/_isFormatDate.mjs.map +0 -1
  354. package/lib/_virtual/_isFormatDateTime.mjs +0 -4
  355. package/lib/_virtual/_isFormatDateTime.mjs.map +0 -1
  356. package/lib/_virtual/_isFormatDuration.mjs +0 -4
  357. package/lib/_virtual/_isFormatDuration.mjs.map +0 -1
  358. package/lib/_virtual/_isFormatEmail.mjs +0 -4
  359. package/lib/_virtual/_isFormatEmail.mjs.map +0 -1
  360. package/lib/_virtual/_isFormatHostname.mjs +0 -4
  361. package/lib/_virtual/_isFormatHostname.mjs.map +0 -1
  362. package/lib/_virtual/_isFormatIdnEmail.mjs +0 -4
  363. package/lib/_virtual/_isFormatIdnEmail.mjs.map +0 -1
  364. package/lib/_virtual/_isFormatIdnHostname.mjs +0 -4
  365. package/lib/_virtual/_isFormatIdnHostname.mjs.map +0 -1
  366. package/lib/_virtual/_isFormatIpv4.mjs +0 -4
  367. package/lib/_virtual/_isFormatIpv4.mjs.map +0 -1
  368. package/lib/_virtual/_isFormatIpv6.mjs +0 -4
  369. package/lib/_virtual/_isFormatIpv6.mjs.map +0 -1
  370. package/lib/_virtual/_isFormatIri.mjs +0 -4
  371. package/lib/_virtual/_isFormatIri.mjs.map +0 -1
  372. package/lib/_virtual/_isFormatIriReference.mjs +0 -4
  373. package/lib/_virtual/_isFormatIriReference.mjs.map +0 -1
  374. package/lib/_virtual/_isFormatJsonPointer.mjs +0 -4
  375. package/lib/_virtual/_isFormatJsonPointer.mjs.map +0 -1
  376. package/lib/_virtual/_isFormatPassword.mjs +0 -4
  377. package/lib/_virtual/_isFormatPassword.mjs.map +0 -1
  378. package/lib/_virtual/_isFormatRegex.mjs +0 -4
  379. package/lib/_virtual/_isFormatRegex.mjs.map +0 -1
  380. package/lib/_virtual/_isFormatRelativeJsonPointer.mjs +0 -4
  381. package/lib/_virtual/_isFormatRelativeJsonPointer.mjs.map +0 -1
  382. package/lib/_virtual/_isFormatTime.mjs +0 -4
  383. package/lib/_virtual/_isFormatTime.mjs.map +0 -1
  384. package/lib/_virtual/_isFormatUri.mjs +0 -4
  385. package/lib/_virtual/_isFormatUri.mjs.map +0 -1
  386. package/lib/_virtual/_isFormatUriReference.mjs +0 -4
  387. package/lib/_virtual/_isFormatUriReference.mjs.map +0 -1
  388. package/lib/_virtual/_isFormatUriTemplate.mjs +0 -4
  389. package/lib/_virtual/_isFormatUriTemplate.mjs.map +0 -1
  390. package/lib/_virtual/_isFormatUrl.mjs +0 -4
  391. package/lib/_virtual/_isFormatUrl.mjs.map +0 -1
  392. package/lib/_virtual/_isFormatUuid.mjs +0 -4
  393. package/lib/_virtual/_isFormatUuid.mjs.map +0 -1
  394. package/lib/_virtual/_isTypeFloat.mjs +0 -4
  395. package/lib/_virtual/_isTypeFloat.mjs.map +0 -1
  396. package/lib/_virtual/_isTypeInt16.mjs +0 -4
  397. package/lib/_virtual/_isTypeInt16.mjs.map +0 -1
  398. package/lib/_virtual/_isTypeInt32.mjs +0 -4
  399. package/lib/_virtual/_isTypeInt32.mjs.map +0 -1
  400. package/lib/_virtual/_isTypeInt64.mjs +0 -4
  401. package/lib/_virtual/_isTypeInt64.mjs.map +0 -1
  402. package/lib/_virtual/_isTypeInt8.mjs +0 -4
  403. package/lib/_virtual/_isTypeInt8.mjs.map +0 -1
  404. package/lib/_virtual/_isTypeUint16.mjs +0 -4
  405. package/lib/_virtual/_isTypeUint16.mjs.map +0 -1
  406. package/lib/_virtual/_isTypeUint32.mjs +0 -4
  407. package/lib/_virtual/_isTypeUint32.mjs.map +0 -1
  408. package/lib/_virtual/_isTypeUint64.mjs +0 -4
  409. package/lib/_virtual/_isTypeUint64.mjs.map +0 -1
  410. package/lib/_virtual/_isTypeUint8.mjs +0 -4
  411. package/lib/_virtual/_isTypeUint8.mjs.map +0 -1
  412. package/lib/_virtual/_isUniqueItems.mjs +0 -4
  413. package/lib/_virtual/_isUniqueItems.mjs.map +0 -1
  414. package/lib/_virtual/_jsonStringifyNumber.mjs +0 -4
  415. package/lib/_virtual/_jsonStringifyNumber.mjs.map +0 -1
  416. package/lib/_virtual/_jsonStringifyRest.mjs +0 -4
  417. package/lib/_virtual/_jsonStringifyRest.mjs.map +0 -1
  418. package/lib/_virtual/_jsonStringifyString.mjs +0 -4
  419. package/lib/_virtual/_jsonStringifyString.mjs.map +0 -1
  420. package/lib/_virtual/_jsonStringifyTail.mjs +0 -4
  421. package/lib/_virtual/_jsonStringifyTail.mjs.map +0 -1
  422. package/lib/_virtual/_llmApplicationFinalize.mjs +0 -4
  423. package/lib/_virtual/_llmApplicationFinalize.mjs.map +0 -1
  424. package/lib/_virtual/_node_child_process.mjs +0 -7
  425. package/lib/_virtual/_node_child_process.mjs.map +0 -1
  426. package/lib/_virtual/_node_fs.mjs +0 -7
  427. package/lib/_virtual/_node_fs.mjs.map +0 -1
  428. package/lib/_virtual/_node_module.mjs +0 -7
  429. package/lib/_virtual/_node_module.mjs.map +0 -1
  430. package/lib/_virtual/_node_path.mjs +0 -7
  431. package/lib/_virtual/_node_path.mjs.map +0 -1
  432. package/lib/_virtual/_notationAny.mjs +0 -4
  433. package/lib/_virtual/_notationAny.mjs.map +0 -1
  434. package/lib/_virtual/_notationCamel.mjs +0 -4
  435. package/lib/_virtual/_notationCamel.mjs.map +0 -1
  436. package/lib/_virtual/_notationPascal.mjs +0 -4
  437. package/lib/_virtual/_notationPascal.mjs.map +0 -1
  438. package/lib/_virtual/_notationSnake.mjs +0 -4
  439. package/lib/_virtual/_notationSnake.mjs.map +0 -1
  440. package/lib/_virtual/_parseLlmArguments.mjs +0 -4
  441. package/lib/_virtual/_parseLlmArguments.mjs.map +0 -1
  442. package/lib/_virtual/_plainCloneAny.mjs +0 -4
  443. package/lib/_virtual/_plainCloneAny.mjs.map +0 -1
  444. package/lib/_virtual/_randexp.mjs +0 -7
  445. package/lib/_virtual/_randexp.mjs.map +0 -1
  446. package/lib/_virtual/_randomArray.mjs +0 -4
  447. package/lib/_virtual/_randomArray.mjs.map +0 -1
  448. package/lib/_virtual/_randomBigint.mjs +0 -4
  449. package/lib/_virtual/_randomBigint.mjs.map +0 -1
  450. package/lib/_virtual/_randomBoolean.mjs +0 -4
  451. package/lib/_virtual/_randomBoolean.mjs.map +0 -1
  452. package/lib/_virtual/_randomFormatByte.mjs +0 -4
  453. package/lib/_virtual/_randomFormatByte.mjs.map +0 -1
  454. package/lib/_virtual/_randomFormatDate.mjs +0 -4
  455. package/lib/_virtual/_randomFormatDate.mjs.map +0 -1
  456. package/lib/_virtual/_randomFormatDatetime.mjs +0 -4
  457. package/lib/_virtual/_randomFormatDatetime.mjs.map +0 -1
  458. package/lib/_virtual/_randomFormatDuration.mjs +0 -4
  459. package/lib/_virtual/_randomFormatDuration.mjs.map +0 -1
  460. package/lib/_virtual/_randomFormatEmail.mjs +0 -4
  461. package/lib/_virtual/_randomFormatEmail.mjs.map +0 -1
  462. package/lib/_virtual/_randomFormatHostname.mjs +0 -4
  463. package/lib/_virtual/_randomFormatHostname.mjs.map +0 -1
  464. package/lib/_virtual/_randomFormatIdnEmail.mjs +0 -4
  465. package/lib/_virtual/_randomFormatIdnEmail.mjs.map +0 -1
  466. package/lib/_virtual/_randomFormatIdnHostname.mjs +0 -4
  467. package/lib/_virtual/_randomFormatIdnHostname.mjs.map +0 -1
  468. package/lib/_virtual/_randomFormatIpv4.mjs +0 -4
  469. package/lib/_virtual/_randomFormatIpv4.mjs.map +0 -1
  470. package/lib/_virtual/_randomFormatIpv6.mjs +0 -4
  471. package/lib/_virtual/_randomFormatIpv6.mjs.map +0 -1
  472. package/lib/_virtual/_randomFormatIri.mjs +0 -4
  473. package/lib/_virtual/_randomFormatIri.mjs.map +0 -1
  474. package/lib/_virtual/_randomFormatIriReference.mjs +0 -4
  475. package/lib/_virtual/_randomFormatIriReference.mjs.map +0 -1
  476. package/lib/_virtual/_randomFormatJsonPointer.mjs +0 -4
  477. package/lib/_virtual/_randomFormatJsonPointer.mjs.map +0 -1
  478. package/lib/_virtual/_randomFormatPassword.mjs +0 -4
  479. package/lib/_virtual/_randomFormatPassword.mjs.map +0 -1
  480. package/lib/_virtual/_randomFormatRegex.mjs +0 -4
  481. package/lib/_virtual/_randomFormatRegex.mjs.map +0 -1
  482. package/lib/_virtual/_randomFormatRelativeJsonPointer.mjs +0 -4
  483. package/lib/_virtual/_randomFormatRelativeJsonPointer.mjs.map +0 -1
  484. package/lib/_virtual/_randomFormatTime.mjs +0 -4
  485. package/lib/_virtual/_randomFormatTime.mjs.map +0 -1
  486. package/lib/_virtual/_randomFormatUri.mjs +0 -4
  487. package/lib/_virtual/_randomFormatUri.mjs.map +0 -1
  488. package/lib/_virtual/_randomFormatUriReference.mjs +0 -4
  489. package/lib/_virtual/_randomFormatUriReference.mjs.map +0 -1
  490. package/lib/_virtual/_randomFormatUriTemplate.mjs +0 -4
  491. package/lib/_virtual/_randomFormatUriTemplate.mjs.map +0 -1
  492. package/lib/_virtual/_randomFormatUrl.mjs +0 -4
  493. package/lib/_virtual/_randomFormatUrl.mjs.map +0 -1
  494. package/lib/_virtual/_randomFormatUuid.mjs +0 -4
  495. package/lib/_virtual/_randomFormatUuid.mjs.map +0 -1
  496. package/lib/_virtual/_randomInteger.mjs +0 -4
  497. package/lib/_virtual/_randomInteger.mjs.map +0 -1
  498. package/lib/_virtual/_randomNumber.mjs +0 -4
  499. package/lib/_virtual/_randomNumber.mjs.map +0 -1
  500. package/lib/_virtual/_randomPattern.mjs +0 -4
  501. package/lib/_virtual/_randomPattern.mjs.map +0 -1
  502. package/lib/_virtual/_randomPick.mjs +0 -4
  503. package/lib/_virtual/_randomPick.mjs.map +0 -1
  504. package/lib/_virtual/_randomString.mjs +0 -4
  505. package/lib/_virtual/_randomString.mjs.map +0 -1
  506. package/lib/_virtual/_throwTypeGuardError.mjs +0 -4
  507. package/lib/_virtual/_throwTypeGuardError.mjs.map +0 -1
  508. package/lib/_virtual/_tinyglobby.mjs +0 -7
  509. package/lib/_virtual/_tinyglobby.mjs.map +0 -1
  510. package/lib/_virtual/_validateReport.mjs +0 -4
  511. package/lib/_virtual/_validateReport.mjs.map +0 -1
  512. package/lib/_virtual/compare.mjs +0 -4
  513. package/lib/_virtual/compare.mjs.map +0 -1
  514. package/lib/_virtual/functional.mjs +0 -4
  515. package/lib/_virtual/functional.mjs.map +0 -1
  516. package/lib/_virtual/http.mjs +0 -4
  517. package/lib/_virtual/http.mjs.map +0 -1
  518. package/lib/_virtual/index.mjs +0 -4
  519. package/lib/_virtual/index.mjs.map +0 -1
  520. package/lib/_virtual/json.mjs +0 -4
  521. package/lib/_virtual/json.mjs.map +0 -1
  522. package/lib/_virtual/llm.mjs +0 -4
  523. package/lib/_virtual/llm.mjs.map +0 -1
  524. package/lib/_virtual/module.mjs +0 -4
  525. package/lib/_virtual/module.mjs.map +0 -1
  526. package/lib/_virtual/notations.mjs +0 -4
  527. package/lib/_virtual/notations.mjs.map +0 -1
  528. package/lib/_virtual/plain.mjs +0 -4
  529. package/lib/_virtual/plain.mjs.map +0 -1
  530. package/lib/_virtual/protobuf.mjs +0 -4
  531. package/lib/_virtual/protobuf.mjs.map +0 -1
  532. package/lib/_virtual/re-exports.mjs +0 -4
  533. package/lib/_virtual/re-exports.mjs.map +0 -1
  534. package/lib/_virtual/reflect.mjs +0 -4
  535. package/lib/_virtual/reflect.mjs.map +0 -1
  536. package/lib/_virtual/transform.mjs +0 -4
  537. package/lib/_virtual/transform.mjs.map +0 -1
  538. package/lib/_virtual/ttsc.mjs +0 -4
  539. package/lib/_virtual/ttsc.mjs.map +0 -1
  540. package/lib/_virtual/typia.mjs +0 -4
  541. package/lib/_virtual/typia.mjs.map +0 -1
  542. package/lib/compare2.mjs +0 -39
  543. package/lib/compare2.mjs.map +0 -1
  544. package/lib/executable/TypiaGenerateWizard2.mjs +0 -719
  545. package/lib/executable/TypiaGenerateWizard2.mjs.map +0 -1
  546. package/lib/executable/generate/ttsc2.mjs +0 -56
  547. package/lib/executable/generate/ttsc2.mjs.map +0 -1
  548. package/lib/executable/typia2.mjs +0 -88
  549. package/lib/executable/typia2.mjs.map +0 -1
  550. package/lib/functional2.mjs +0 -99
  551. package/lib/functional2.mjs.map +0 -1
  552. package/lib/http2.mjs +0 -139
  553. package/lib/http2.mjs.map +0 -1
  554. package/lib/index2.mjs +0 -53
  555. package/lib/index2.mjs.map +0 -1
  556. package/lib/internal/_IProtobufWriter.mjs.map +0 -1
  557. package/lib/internal/_IProtobufWriter2.mjs +0 -6
  558. package/lib/internal/_IProtobufWriter2.mjs.map +0 -1
  559. package/lib/internal/_ProtobufReader2.mjs +0 -169
  560. package/lib/internal/_ProtobufReader2.mjs.map +0 -1
  561. package/lib/internal/_ProtobufSizer2.mjs +0 -119
  562. package/lib/internal/_ProtobufSizer2.mjs.map +0 -1
  563. package/lib/internal/_ProtobufWriter2.mjs +0 -107
  564. package/lib/internal/_ProtobufWriter2.mjs.map +0 -1
  565. package/lib/internal/_accessExpressionAsString2.mjs +0 -49
  566. package/lib/internal/_accessExpressionAsString2.mjs.map +0 -1
  567. package/lib/internal/_assertGuard2.mjs +0 -20
  568. package/lib/internal/_assertGuard2.mjs.map +0 -1
  569. package/lib/internal/_coerceLlmArguments2.mjs +0 -11
  570. package/lib/internal/_coerceLlmArguments2.mjs.map +0 -1
  571. package/lib/internal/_createStandardSchema2.mjs +0 -138
  572. package/lib/internal/_createStandardSchema2.mjs.map +0 -1
  573. package/lib/internal/_functionalTypeGuardErrorFactory2.mjs +0 -12
  574. package/lib/internal/_functionalTypeGuardErrorFactory2.mjs.map +0 -1
  575. package/lib/internal/_httpFormDataReadArray2.mjs +0 -9
  576. package/lib/internal/_httpFormDataReadArray2.mjs.map +0 -1
  577. package/lib/internal/_httpFormDataReadBigint2.mjs +0 -23
  578. package/lib/internal/_httpFormDataReadBigint2.mjs.map +0 -1
  579. package/lib/internal/_httpFormDataReadBlob2.mjs +0 -15
  580. package/lib/internal/_httpFormDataReadBlob2.mjs.map +0 -1
  581. package/lib/internal/_httpFormDataReadBoolean2.mjs +0 -21
  582. package/lib/internal/_httpFormDataReadBoolean2.mjs.map +0 -1
  583. package/lib/internal/_httpFormDataReadFile2.mjs +0 -15
  584. package/lib/internal/_httpFormDataReadFile2.mjs.map +0 -1
  585. package/lib/internal/_httpFormDataReadNumber2.mjs +0 -19
  586. package/lib/internal/_httpFormDataReadNumber2.mjs.map +0 -1
  587. package/lib/internal/_httpFormDataReadString2.mjs +0 -15
  588. package/lib/internal/_httpFormDataReadString2.mjs.map +0 -1
  589. package/lib/internal/_httpHeaderReadBigint2.mjs +0 -17
  590. package/lib/internal/_httpHeaderReadBigint2.mjs.map +0 -1
  591. package/lib/internal/_httpHeaderReadBoolean2.mjs +0 -15
  592. package/lib/internal/_httpHeaderReadBoolean2.mjs.map +0 -1
  593. package/lib/internal/_httpHeaderReadNumber2.mjs +0 -13
  594. package/lib/internal/_httpHeaderReadNumber2.mjs.map +0 -1
  595. package/lib/internal/_httpParameterReadBigint2.mjs +0 -17
  596. package/lib/internal/_httpParameterReadBigint2.mjs.map +0 -1
  597. package/lib/internal/_httpParameterReadBoolean2.mjs +0 -15
  598. package/lib/internal/_httpParameterReadBoolean2.mjs.map +0 -1
  599. package/lib/internal/_httpParameterReadNumber2.mjs +0 -13
  600. package/lib/internal/_httpParameterReadNumber2.mjs.map +0 -1
  601. package/lib/internal/_httpParameterReadString2.mjs +0 -9
  602. package/lib/internal/_httpParameterReadString2.mjs.map +0 -1
  603. package/lib/internal/_httpQueryParseURLSearchParams2.mjs +0 -16
  604. package/lib/internal/_httpQueryParseURLSearchParams2.mjs.map +0 -1
  605. package/lib/internal/_httpQueryReadArray2.mjs +0 -9
  606. package/lib/internal/_httpQueryReadArray2.mjs.map +0 -1
  607. package/lib/internal/_httpQueryReadBigint2.mjs +0 -17
  608. package/lib/internal/_httpQueryReadBigint2.mjs.map +0 -1
  609. package/lib/internal/_httpQueryReadBoolean2.mjs +0 -19
  610. package/lib/internal/_httpQueryReadBoolean2.mjs.map +0 -1
  611. package/lib/internal/_httpQueryReadNumber2.mjs +0 -13
  612. package/lib/internal/_httpQueryReadNumber2.mjs.map +0 -1
  613. package/lib/internal/_httpQueryReadString2.mjs +0 -9
  614. package/lib/internal/_httpQueryReadString2.mjs.map +0 -1
  615. package/lib/internal/_isBetween2.mjs +0 -9
  616. package/lib/internal/_isBetween2.mjs.map +0 -1
  617. package/lib/internal/_isBigintString2.mjs +0 -17
  618. package/lib/internal/_isBigintString2.mjs.map +0 -1
  619. package/lib/internal/_isFormatByte2.mjs +0 -13
  620. package/lib/internal/_isFormatByte2.mjs.map +0 -1
  621. package/lib/internal/_isFormatDate2.mjs +0 -10
  622. package/lib/internal/_isFormatDate2.mjs.map +0 -1
  623. package/lib/internal/_isFormatDateTime2.mjs +0 -10
  624. package/lib/internal/_isFormatDateTime2.mjs.map +0 -1
  625. package/lib/internal/_isFormatDuration2.mjs +0 -10
  626. package/lib/internal/_isFormatDuration2.mjs.map +0 -1
  627. package/lib/internal/_isFormatEmail2.mjs +0 -10
  628. package/lib/internal/_isFormatEmail2.mjs.map +0 -1
  629. package/lib/internal/_isFormatHostname2.mjs +0 -10
  630. package/lib/internal/_isFormatHostname2.mjs.map +0 -1
  631. package/lib/internal/_isFormatIdnEmail2.mjs +0 -10
  632. package/lib/internal/_isFormatIdnEmail2.mjs.map +0 -1
  633. package/lib/internal/_isFormatIdnHostname2.mjs +0 -10
  634. package/lib/internal/_isFormatIdnHostname2.mjs.map +0 -1
  635. package/lib/internal/_isFormatIpv42.mjs +0 -10
  636. package/lib/internal/_isFormatIpv42.mjs.map +0 -1
  637. package/lib/internal/_isFormatIpv62.mjs +0 -10
  638. package/lib/internal/_isFormatIpv62.mjs.map +0 -1
  639. package/lib/internal/_isFormatIri2.mjs +0 -10
  640. package/lib/internal/_isFormatIri2.mjs.map +0 -1
  641. package/lib/internal/_isFormatIriReference2.mjs +0 -10
  642. package/lib/internal/_isFormatIriReference2.mjs.map +0 -1
  643. package/lib/internal/_isFormatJsonPointer2.mjs +0 -10
  644. package/lib/internal/_isFormatJsonPointer2.mjs.map +0 -1
  645. package/lib/internal/_isFormatPassword2.mjs +0 -9
  646. package/lib/internal/_isFormatPassword2.mjs.map +0 -1
  647. package/lib/internal/_isFormatRegex2.mjs +0 -17
  648. package/lib/internal/_isFormatRegex2.mjs.map +0 -1
  649. package/lib/internal/_isFormatRelativeJsonPointer2.mjs +0 -10
  650. package/lib/internal/_isFormatRelativeJsonPointer2.mjs.map +0 -1
  651. package/lib/internal/_isFormatTime2.mjs +0 -10
  652. package/lib/internal/_isFormatTime2.mjs.map +0 -1
  653. package/lib/internal/_isFormatUri2.mjs +0 -11
  654. package/lib/internal/_isFormatUri2.mjs.map +0 -1
  655. package/lib/internal/_isFormatUriReference2.mjs +0 -10
  656. package/lib/internal/_isFormatUriReference2.mjs.map +0 -1
  657. package/lib/internal/_isFormatUriTemplate2.mjs +0 -10
  658. package/lib/internal/_isFormatUriTemplate2.mjs.map +0 -1
  659. package/lib/internal/_isFormatUrl2.mjs +0 -10
  660. package/lib/internal/_isFormatUrl2.mjs.map +0 -1
  661. package/lib/internal/_isFormatUuid2.mjs +0 -10
  662. package/lib/internal/_isFormatUuid2.mjs.map +0 -1
  663. package/lib/internal/_isTypeFloat2.mjs +0 -11
  664. package/lib/internal/_isTypeFloat2.mjs.map +0 -1
  665. package/lib/internal/_isTypeInt162.mjs +0 -11
  666. package/lib/internal/_isTypeInt162.mjs.map +0 -1
  667. package/lib/internal/_isTypeInt322.mjs +0 -11
  668. package/lib/internal/_isTypeInt322.mjs.map +0 -1
  669. package/lib/internal/_isTypeInt642.mjs +0 -11
  670. package/lib/internal/_isTypeInt642.mjs.map +0 -1
  671. package/lib/internal/_isTypeInt82.mjs +0 -11
  672. package/lib/internal/_isTypeInt82.mjs.map +0 -1
  673. package/lib/internal/_isTypeUint162.mjs +0 -11
  674. package/lib/internal/_isTypeUint162.mjs.map +0 -1
  675. package/lib/internal/_isTypeUint322.mjs +0 -11
  676. package/lib/internal/_isTypeUint322.mjs.map +0 -1
  677. package/lib/internal/_isTypeUint642.mjs +0 -11
  678. package/lib/internal/_isTypeUint642.mjs.map +0 -1
  679. package/lib/internal/_isTypeUint82.mjs +0 -11
  680. package/lib/internal/_isTypeUint82.mjs.map +0 -1
  681. package/lib/internal/_isUniqueItems2.mjs +0 -143
  682. package/lib/internal/_isUniqueItems2.mjs.map +0 -1
  683. package/lib/internal/_jsonStringifyNumber2.mjs +0 -9
  684. package/lib/internal/_jsonStringifyNumber2.mjs.map +0 -1
  685. package/lib/internal/_jsonStringifyRest2.mjs +0 -11
  686. package/lib/internal/_jsonStringifyRest2.mjs.map +0 -1
  687. package/lib/internal/_jsonStringifyString2.mjs +0 -45
  688. package/lib/internal/_jsonStringifyString2.mjs.map +0 -1
  689. package/lib/internal/_jsonStringifyTail2.mjs +0 -9
  690. package/lib/internal/_jsonStringifyTail2.mjs.map +0 -1
  691. package/lib/internal/_llmApplicationFinalize2.mjs +0 -11
  692. package/lib/internal/_llmApplicationFinalize2.mjs.map +0 -1
  693. package/lib/internal/_notationAny2.mjs +0 -42
  694. package/lib/internal/_notationAny2.mjs.map +0 -1
  695. package/lib/internal/_notationCamel2.mjs +0 -21
  696. package/lib/internal/_notationCamel2.mjs.map +0 -1
  697. package/lib/internal/_notationPascal2.mjs +0 -17
  698. package/lib/internal/_notationPascal2.mjs.map +0 -1
  699. package/lib/internal/_notationSnake2.mjs +0 -54
  700. package/lib/internal/_notationSnake2.mjs.map +0 -1
  701. package/lib/internal/_parseLlmArguments2.mjs +0 -11
  702. package/lib/internal/_parseLlmArguments2.mjs.map +0 -1
  703. package/lib/internal/_plainCloneAny2.mjs +0 -67
  704. package/lib/internal/_plainCloneAny2.mjs.map +0 -1
  705. package/lib/internal/_randomArray2.mjs +0 -31
  706. package/lib/internal/_randomArray2.mjs.map +0 -1
  707. package/lib/internal/_randomBigint2.mjs +0 -12
  708. package/lib/internal/_randomBigint2.mjs.map +0 -1
  709. package/lib/internal/_randomBoolean2.mjs +0 -9
  710. package/lib/internal/_randomBoolean2.mjs.map +0 -1
  711. package/lib/internal/_randomFormatByte2.mjs +0 -10
  712. package/lib/internal/_randomFormatByte2.mjs.map +0 -1
  713. package/lib/internal/_randomFormatDate2.mjs +0 -20
  714. package/lib/internal/_randomFormatDate2.mjs.map +0 -1
  715. package/lib/internal/_randomFormatDatetime2.mjs +0 -18
  716. package/lib/internal/_randomFormatDatetime2.mjs.map +0 -1
  717. package/lib/internal/_randomFormatDuration2.mjs +0 -35
  718. package/lib/internal/_randomFormatDuration2.mjs.map +0 -1
  719. package/lib/internal/_randomFormatEmail2.mjs +0 -17
  720. package/lib/internal/_randomFormatEmail2.mjs.map +0 -1
  721. package/lib/internal/_randomFormatHostname2.mjs +0 -13
  722. package/lib/internal/_randomFormatHostname2.mjs.map +0 -1
  723. package/lib/internal/_randomFormatIdnEmail2.mjs +0 -12
  724. package/lib/internal/_randomFormatIdnEmail2.mjs.map +0 -1
  725. package/lib/internal/_randomFormatIdnHostname2.mjs +0 -12
  726. package/lib/internal/_randomFormatIdnHostname2.mjs.map +0 -1
  727. package/lib/internal/_randomFormatIpv42.mjs +0 -17
  728. package/lib/internal/_randomFormatIpv42.mjs.map +0 -1
  729. package/lib/internal/_randomFormatIpv62.mjs +0 -17
  730. package/lib/internal/_randomFormatIpv62.mjs.map +0 -1
  731. package/lib/internal/_randomFormatIri2.mjs +0 -12
  732. package/lib/internal/_randomFormatIri2.mjs.map +0 -1
  733. package/lib/internal/_randomFormatIriReference2.mjs +0 -12
  734. package/lib/internal/_randomFormatIriReference2.mjs.map +0 -1
  735. package/lib/internal/_randomFormatJsonPointer2.mjs +0 -13
  736. package/lib/internal/_randomFormatJsonPointer2.mjs.map +0 -1
  737. package/lib/internal/_randomFormatPassword2.mjs +0 -16
  738. package/lib/internal/_randomFormatPassword2.mjs.map +0 -1
  739. package/lib/internal/_randomFormatRegex2.mjs +0 -10
  740. package/lib/internal/_randomFormatRegex2.mjs.map +0 -1
  741. package/lib/internal/_randomFormatRelativeJsonPointer2.mjs +0 -16
  742. package/lib/internal/_randomFormatRelativeJsonPointer2.mjs.map +0 -1
  743. package/lib/internal/_randomFormatTime2.mjs +0 -19
  744. package/lib/internal/_randomFormatTime2.mjs.map +0 -1
  745. package/lib/internal/_randomFormatUri2.mjs +0 -12
  746. package/lib/internal/_randomFormatUri2.mjs.map +0 -1
  747. package/lib/internal/_randomFormatUriReference2.mjs +0 -12
  748. package/lib/internal/_randomFormatUriReference2.mjs.map +0 -1
  749. package/lib/internal/_randomFormatUriTemplate2.mjs +0 -12
  750. package/lib/internal/_randomFormatUriTemplate2.mjs.map +0 -1
  751. package/lib/internal/_randomFormatUrl2.mjs +0 -17
  752. package/lib/internal/_randomFormatUrl2.mjs.map +0 -1
  753. package/lib/internal/_randomFormatUuid2.mjs +0 -13
  754. package/lib/internal/_randomFormatUuid2.mjs.map +0 -1
  755. package/lib/internal/_randomInteger2.mjs +0 -47
  756. package/lib/internal/_randomInteger2.mjs.map +0 -1
  757. package/lib/internal/_randomNumber2.mjs +0 -66
  758. package/lib/internal/_randomNumber2.mjs.map +0 -1
  759. package/lib/internal/_randomPattern2.mjs +0 -22
  760. package/lib/internal/_randomPattern2.mjs.map +0 -1
  761. package/lib/internal/_randomPick2.mjs +0 -17
  762. package/lib/internal/_randomPick2.mjs.map +0 -1
  763. package/lib/internal/_randomString2.mjs +0 -32
  764. package/lib/internal/_randomString2.mjs.map +0 -1
  765. package/lib/internal/_throwTypeGuardError2.mjs +0 -14
  766. package/lib/internal/_throwTypeGuardError2.mjs.map +0 -1
  767. package/lib/internal/_validateReport2.mjs +0 -29
  768. package/lib/internal/_validateReport2.mjs.map +0 -1
  769. package/lib/internal/private/__notationCapitalize2.mjs +0 -9
  770. package/lib/internal/private/__notationCapitalize2.mjs.map +0 -1
  771. package/lib/internal/private/__notationUnsnake2.mjs +0 -29
  772. package/lib/internal/private/__notationUnsnake2.mjs.map +0 -1
  773. package/lib/json2.mjs +0 -94
  774. package/lib/json2.mjs.map +0 -1
  775. package/lib/llm2.mjs +0 -54
  776. package/lib/llm2.mjs.map +0 -1
  777. package/lib/module2.mjs +0 -185
  778. package/lib/module2.mjs.map +0 -1
  779. package/lib/notations2.mjs +0 -169
  780. package/lib/notations2.mjs.map +0 -1
  781. package/lib/plain2.mjs +0 -119
  782. package/lib/plain2.mjs.map +0 -1
  783. package/lib/protobuf2.mjs +0 -94
  784. package/lib/protobuf2.mjs.map +0 -1
  785. package/lib/re-exports.mjs.map +0 -1
  786. package/lib/re-exports2.mjs +0 -17
  787. package/lib/re-exports2.mjs.map +0 -1
  788. package/lib/reflect2.mjs +0 -29
  789. package/lib/reflect2.mjs.map +0 -1
  790. package/lib/transform2.mjs +0 -26
  791. package/lib/transform2.mjs.map +0 -1
  792. package/lib/transformers/NoTransformConfigurationError2.mjs +0 -21
  793. package/lib/transformers/NoTransformConfigurationError2.mjs.map +0 -1
package/lib/plain.mjs CHANGED
@@ -1,3 +1,119 @@
1
- export { assertClassify, assertClone, assertPrune, classify, clone, createAssertClassify, createAssertClone, createAssertPrune, createClassify, createClone, createIsClone, createIsPrune, createPrune, createValidateClassify, createValidateClone, createValidatePrune, isClone, isPrune, prune, validateClassify, validateClone, validatePrune } from './plain2.mjs';
2
- export { __exports as default } from './_virtual/plain.mjs';
3
- //# sourceMappingURL=plain.mjs.map
1
+ import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
2
+ import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError.mjs";
3
+ //#region src/plain.ts
4
+ var plain_exports = /* @__PURE__ */ __exportAll({
5
+ assertClassify: () => assertClassify,
6
+ assertClone: () => assertClone,
7
+ assertPrune: () => assertPrune,
8
+ classify: () => classify,
9
+ clone: () => clone,
10
+ createAssertClassify: () => createAssertClassify,
11
+ createAssertClone: () => createAssertClone,
12
+ createAssertPrune: () => createAssertPrune,
13
+ createClassify: () => createClassify,
14
+ createClone: () => createClone,
15
+ createIsClone: () => createIsClone,
16
+ createIsPrune: () => createIsPrune,
17
+ createPrune: () => createPrune,
18
+ createValidateClassify: () => createValidateClassify,
19
+ createValidateClone: () => createValidateClone,
20
+ createValidatePrune: () => createValidatePrune,
21
+ isClone: () => isClone,
22
+ isPrune: () => isPrune,
23
+ prune: () => prune,
24
+ validateClassify: () => validateClassify,
25
+ validateClone: () => validateClone,
26
+ validatePrune: () => validatePrune
27
+ });
28
+ /** @internal */
29
+ function clone() {
30
+ NoTransformConfigurationError("plain.clone");
31
+ }
32
+ /** @internal */
33
+ function assertClone() {
34
+ NoTransformConfigurationError("plain.assertClone");
35
+ }
36
+ /** @internal */
37
+ function isClone() {
38
+ NoTransformConfigurationError("plain.isClone");
39
+ }
40
+ /** @internal */
41
+ function validateClone() {
42
+ NoTransformConfigurationError("plain.validateClone");
43
+ }
44
+ /** @internal */
45
+ function prune() {
46
+ NoTransformConfigurationError("plain.prune");
47
+ }
48
+ /** @internal */
49
+ function assertPrune() {
50
+ NoTransformConfigurationError("plain.assertPrune");
51
+ }
52
+ /** @internal */
53
+ function isPrune() {
54
+ NoTransformConfigurationError("plain.isPrune");
55
+ }
56
+ /** @internal */
57
+ function validatePrune() {
58
+ NoTransformConfigurationError("plain.validatePrune");
59
+ }
60
+ /** @internal */
61
+ function classify() {
62
+ NoTransformConfigurationError("plain.classify");
63
+ }
64
+ /** @internal */
65
+ function assertClassify() {
66
+ NoTransformConfigurationError("plain.assertClassify");
67
+ }
68
+ /** @internal */
69
+ function validateClassify() {
70
+ NoTransformConfigurationError("plain.validateClassify");
71
+ }
72
+ /** @internal */
73
+ function createClone() {
74
+ NoTransformConfigurationError("plain.createClone");
75
+ }
76
+ /** @internal */
77
+ function createAssertClone() {
78
+ NoTransformConfigurationError("plain.createAssertClone");
79
+ }
80
+ /** @internal */
81
+ function createIsClone() {
82
+ NoTransformConfigurationError("plain.createIsClone");
83
+ }
84
+ /** @internal */
85
+ function createValidateClone() {
86
+ NoTransformConfigurationError("plain.createValidateClone");
87
+ }
88
+ /** @internal */
89
+ function createPrune() {
90
+ NoTransformConfigurationError("plain.createPrune");
91
+ }
92
+ /** @internal */
93
+ function createAssertPrune() {
94
+ NoTransformConfigurationError("plain.createAssertPrune");
95
+ }
96
+ /** @internal */
97
+ function createIsPrune() {
98
+ NoTransformConfigurationError("plain.createIsPrune");
99
+ }
100
+ /** @internal */
101
+ function createValidatePrune() {
102
+ NoTransformConfigurationError("plain.createValidatePrune");
103
+ }
104
+ /** @internal */
105
+ function createClassify() {
106
+ NoTransformConfigurationError("plain.createClassify");
107
+ }
108
+ /** @internal */
109
+ function createAssertClassify() {
110
+ NoTransformConfigurationError("plain.createAssertClassify");
111
+ }
112
+ /** @internal */
113
+ function createValidateClassify() {
114
+ NoTransformConfigurationError("plain.createValidateClassify");
115
+ }
116
+ //#endregion
117
+ export { assertClassify, assertClone, assertPrune, classify, clone, createAssertClassify, createAssertClone, createAssertPrune, createClassify, createClone, createIsClone, createIsPrune, createPrune, createValidateClassify, createValidateClone, createValidatePrune, isClone, isPrune, plain_exports, prune, validateClassify, validateClone, validatePrune };
118
+
119
+ //# sourceMappingURL=plain.mjs.map
package/lib/plain.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"plain.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"plain.mjs","names":[],"sources":["../src/plain.ts"],"sourcesContent":["/* ===========================================================\n PLAIN\n - CLONE\n - PRUNE\n - CLASSIFY\n - FACTORY FUNCTIONS\n=========================================================== */\nimport {\n Classifiable,\n ClassifyResult,\n IValidation,\n Resolved,\n} from \"@typia/interface\";\n\nimport { TypeGuardError } from \"./TypeGuardError\";\nimport { NoTransformConfigurationError } from \"./transformers/NoTransformConfigurationError\";\n\n/* -----------------------------------------------------------\n CLONE\n----------------------------------------------------------- */\n/**\n * Deep clones value of type `T`.\n *\n * Creates a deep copy of the input value. Class instances with methods are\n * cloned as plain objects (methods are not copied).\n *\n * Does not validate the input. For validation, use:\n *\n * - {@link assertClone} — Throws on type mismatch\n * - {@link isClone} — Returns `null` on type mismatch\n * - {@link validateClone} — Returns detailed validation errors\n *\n * @template T Type of input value\n * @param input Value to clone\n * @returns Deep cloned value\n */\nexport function clone<T>(input: T): Resolved<T>;\n\n/** @internal */\nexport function clone(): never {\n NoTransformConfigurationError(\"plain.clone\");\n}\n\n/**\n * Deep clones value with assertion.\n *\n * Creates a deep copy with {@link assert} validation. Throws\n * {@link TypeGuardError} on type mismatch. Class instances with methods are\n * cloned as plain objects.\n *\n * Related functions:\n *\n * - {@link clone} — No validation\n * - {@link isClone} — Returns `null` instead of throwing\n * - {@link validateClone} — Returns detailed validation errors\n *\n * @template T Type of input value\n * @param input Value to clone\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Deep cloned value\n * @throws {TypeGuardError} When input doesn't conform to type `T`\n */\nexport function assertClone<T>(\n input: T,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Resolved<T>;\n\n/** @internal */\nexport function assertClone<T>(\n input: unknown,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Resolved<T>;\n\n/** @internal */\nexport function assertClone(): never {\n NoTransformConfigurationError(\"plain.assertClone\");\n}\n\n/**\n * Deep clones value with type checking.\n *\n * Creates a deep copy with {@link is} validation. Returns `null` on type\n * mismatch. Class instances with methods are cloned as plain objects.\n *\n * Related functions:\n *\n * - {@link clone} — No validation\n * - {@link assertClone} — Throws instead of returning `null`\n * - {@link validateClone} — Returns detailed validation errors\n *\n * @template T Type of input value\n * @param input Value to clone\n * @returns Deep cloned value, or `null` if invalid\n */\nexport function isClone<T>(input: T): Resolved<T> | null;\n\n/** @internal */\nexport function isClone<T>(input: unknown): Resolved<T> | null;\n\n/** @internal */\nexport function isClone(): never {\n NoTransformConfigurationError(\"plain.isClone\");\n}\n\n/**\n * Deep clones value with validation.\n *\n * Creates a deep copy with {@link validate} validation. Returns\n * {@link IValidation.IFailure} with all errors on mismatch, or\n * {@link IValidation.ISuccess} with cloned value. Class instances with methods\n * are cloned as plain objects.\n *\n * Related functions:\n *\n * - {@link clone} — No validation\n * - {@link assertClone} — Throws on first error\n * - {@link isClone} — Returns `null` instead of error details\n *\n * @template T Type of input value\n * @param input Value to clone\n * @returns Validation result containing cloned value or errors\n */\nexport function validateClone<T>(input: T): IValidation<Resolved<T>>;\n\n/** @internal */\nexport function validateClone<T>(input: unknown): IValidation<Resolved<T>>;\n\n/** @internal */\nexport function validateClone(): never {\n NoTransformConfigurationError(\"plain.validateClone\");\n}\n\n/* -----------------------------------------------------------\n PRUNE\n----------------------------------------------------------- */\n/**\n * Removes superfluous properties from object.\n *\n * Deletes all properties not defined in type `T`, including in nested objects.\n * Mutates the input directly—removed properties cannot be recovered.\n *\n * Does not validate the input. For validation, use:\n *\n * - {@link assertPrune} — Throws on type mismatch\n * - {@link isPrune} — Returns `false` on type mismatch\n * - {@link validatePrune} — Returns detailed validation errors\n *\n * @template T Type of input value\n * @param input Object to prune\n */\nexport function prune<T extends object>(input: T): void;\n\n/** @internal */\nexport function prune(): never {\n NoTransformConfigurationError(\"plain.prune\");\n}\n\n/**\n * Removes superfluous properties with assertion.\n *\n * Combines {@link assert} with {@link prune}. Throws {@link TypeGuardError} on\n * type mismatch. Mutates the input directly—removed properties cannot be\n * recovered.\n *\n * Related functions:\n *\n * - {@link prune} — No validation\n * - {@link isPrune} — Returns `false` instead of throwing\n * - {@link validatePrune} — Returns detailed validation errors\n *\n * @template T Type of input value\n * @param input Object to assert and prune\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns The pruned input\n * @throws {TypeGuardError} When input doesn't conform to type `T`\n */\nexport function assertPrune<T>(\n input: T,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): T;\n\n/** @internal */\nexport function assertPrune<T>(\n input: unknown,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): T;\n\n/** @internal */\nexport function assertPrune(): unknown {\n NoTransformConfigurationError(\"plain.assertPrune\");\n}\n\n/**\n * Removes superfluous properties with type checking.\n *\n * Combines {@link is} with {@link prune}. Returns `false` on type mismatch (no\n * pruning occurs). Returns `true` after successful pruning. Mutates the input\n * directly.\n *\n * Related functions:\n *\n * - {@link prune} — No validation\n * - {@link assertPrune} — Throws instead of returning `false`\n * - {@link validatePrune} — Returns detailed validation errors\n *\n * @template T Type of input value\n * @param input Object to check and prune\n * @returns `true` if valid and pruned, `false` if type mismatch\n */\nexport function isPrune<T>(input: T): input is T;\n\n/** @internal */\nexport function isPrune<T>(input: unknown): input is T;\n\n/** @internal */\nexport function isPrune(): never {\n NoTransformConfigurationError(\"plain.isPrune\");\n}\n\n/**\n * Removes superfluous properties with validation.\n *\n * Combines {@link validate} with {@link prune}. Returns\n * {@link IValidation.IFailure} with all errors on mismatch (no pruning occurs),\n * or {@link IValidation.ISuccess} after successful pruning. Mutates the input\n * directly.\n *\n * Related functions:\n *\n * - {@link prune} — No validation\n * - {@link assertPrune} — Throws on first error\n * - {@link isPrune} — Returns `false` instead of error details\n *\n * @template T Type of input value\n * @param input Object to validate and prune\n * @returns Validation result\n */\nexport function validatePrune<T>(input: T): IValidation<T>;\n\n/** @internal */\nexport function validatePrune<T>(input: unknown): IValidation<T>;\n\n/** @internal */\nexport function validatePrune<T>(): IValidation<T> {\n NoTransformConfigurationError(\"plain.validatePrune\");\n}\n\n/* -----------------------------------------------------------\n CLASSIFY\n----------------------------------------------------------- */\n/**\n * Reconstructs a class instance from plain data.\n *\n * Builds a real instance of class type `T` from a plain object, driven by\n * typia's compile-time type information — no decorators required (unlike\n * `class-transformer`). Each class is constructed by exactly one strategy, in\n * precedence order: a static factory `T.from(x)`, then `new T(x)` (single\n * argument), then field copy onto the prototype. Nested classes and containers\n * are reconstructed recursively, and methods come from the prototype.\n *\n * Does not validate the input. For validation, use:\n *\n * - {@link assertClassify} — Throws on type mismatch\n * - {@link validateClassify} — Returns detailed validation errors\n *\n * @template T Target class type to reconstruct\n * @param input Plain data to classify\n * @returns A real instance of type `T`\n */\nexport function classify<T>(input: Classifiable<T>): ClassifyResult<T>;\n\n/** @internal */\nexport function classify(): never {\n NoTransformConfigurationError(\"plain.classify\");\n}\n\n/**\n * Reconstructs a class instance with assertion.\n *\n * Combines {@link assert} with {@link classify}: validates the plain input\n * against type `T`, throwing {@link TypeGuardError} on mismatch, then builds a\n * real instance of `T`.\n *\n * Related functions:\n *\n * - {@link classify} — No validation\n * - {@link validateClassify} — Returns detailed validation errors\n *\n * @template T Target class type to reconstruct\n * @param input Plain data to validate and classify\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns A real instance of type `T`\n * @throws {TypeGuardError} When input doesn't conform to type `T`\n */\nexport function assertClassify<T>(\n input: Classifiable<T>,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): ClassifyResult<T>;\n\n/** @internal */\nexport function assertClassify<T>(\n input: unknown,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): ClassifyResult<T>;\n\n/** @internal */\nexport function assertClassify(): never {\n NoTransformConfigurationError(\"plain.assertClassify\");\n}\n\n/**\n * Reconstructs a class instance with validation.\n *\n * Combines {@link validate} with {@link classify}: validates the plain input\n * against type `T`, returning {@link IValidation.IFailure} with all errors on\n * mismatch, or {@link IValidation.ISuccess} holding a real instance of `T`.\n *\n * Related functions:\n *\n * - {@link classify} — No validation\n * - {@link assertClassify} — Throws on first error\n *\n * @template T Target class type to reconstruct\n * @param input Plain data to validate and classify\n * @returns Validation result containing the instance or errors\n */\nexport function validateClassify<T>(\n input: Classifiable<T>,\n): IValidation<ClassifyResult<T>>;\n\n/** @internal */\nexport function validateClassify<T>(\n input: unknown,\n): IValidation<ClassifyResult<T>>;\n\n/** @internal */\nexport function validateClassify(): never {\n NoTransformConfigurationError(\"plain.validateClassify\");\n}\n\n/* -----------------------------------------------------------\n FACTORY FUNCTIONS\n----------------------------------------------------------- */\n/**\n * Creates reusable {@link clone} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createClone(): never;\n\n/**\n * Creates reusable {@link clone} function.\n *\n * @template T Type of input value\n * @returns Reusable clone function\n */\nexport function createClone<T>(): (input: T) => Resolved<T>;\n\n/** @internal */\nexport function createClone(): never {\n NoTransformConfigurationError(\"plain.createClone\");\n}\n\n/**\n * Creates reusable {@link assertClone} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertClone(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertClone} function.\n *\n * @template T Type of input value\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Reusable clone function\n */\nexport function createAssertClone<T>(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (input: unknown) => Resolved<T>;\n\n/** @internal */\nexport function createAssertClone(): never {\n NoTransformConfigurationError(\"plain.createAssertClone\");\n}\n\n/**\n * Creates reusable {@link isClone} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createIsClone(): never;\n\n/**\n * Creates reusable {@link isClone} function.\n *\n * @template T Type of input value\n * @returns Reusable clone function\n */\nexport function createIsClone<T>(): (input: unknown) => Resolved<T> | null;\n\n/** @internal */\nexport function createIsClone(): never {\n NoTransformConfigurationError(\"plain.createIsClone\");\n}\n\n/**\n * Creates reusable {@link validateClone} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidateClone(): never;\n\n/**\n * Creates reusable {@link validateClone} function.\n *\n * @template T Type of input value\n * @returns Reusable clone function\n */\nexport function createValidateClone<T>(): (\n input: unknown,\n) => IValidation<Resolved<T>>;\n\n/** @internal */\nexport function createValidateClone(): never {\n NoTransformConfigurationError(\"plain.createValidateClone\");\n}\n\n/**\n * Creates reusable {@link prune} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createPrune(): never;\n\n/**\n * Creates reusable {@link prune} function.\n *\n * @template T Type of input value\n * @returns Reusable prune function\n */\nexport function createPrune<T extends object>(): (input: T) => void;\n\n/** @internal */\nexport function createPrune(): never {\n NoTransformConfigurationError(\"plain.createPrune\");\n}\n\n/**\n * Creates reusable {@link assertPrune} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertPrune(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertPrune} function.\n *\n * @template T Type of input value\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Reusable prune function\n */\nexport function createAssertPrune<T extends object>(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (input: unknown) => T;\n\n/** @internal */\nexport function createAssertPrune(): never {\n NoTransformConfigurationError(\"plain.createAssertPrune\");\n}\n\n/**\n * Creates reusable {@link isPrune} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createIsPrune(): never;\n\n/**\n * Creates reusable {@link isPrune} function.\n *\n * @template T Type of input value\n * @returns Reusable prune function\n */\nexport function createIsPrune<T extends object>(): (\n input: unknown,\n) => input is T;\n\n/** @internal */\nexport function createIsPrune(): never {\n NoTransformConfigurationError(\"plain.createIsPrune\");\n}\n\n/**\n * Creates reusable {@link validatePrune} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidatePrune(): never;\n\n/**\n * Creates reusable {@link validatePrune} function.\n *\n * @template T Type of input value\n * @returns Reusable prune function\n */\nexport function createValidatePrune<T extends object>(): (\n input: unknown,\n) => IValidation<T>;\n\n/** @internal */\nexport function createValidatePrune(): never {\n NoTransformConfigurationError(\"plain.createValidatePrune\");\n}\n\n/**\n * Creates reusable {@link classify} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createClassify(): never;\n\n/**\n * Creates reusable {@link classify} function.\n *\n * @template T Target class type to reconstruct\n * @returns Reusable classify function\n */\nexport function createClassify<T>(): (\n input: Classifiable<T>,\n) => ClassifyResult<T>;\n\n/** @internal */\nexport function createClassify(): never {\n NoTransformConfigurationError(\"plain.createClassify\");\n}\n\n/**\n * Creates reusable {@link assertClassify} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertClassify(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertClassify} function.\n *\n * @template T Target class type to reconstruct\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Reusable classify function\n */\nexport function createAssertClassify<T>(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (input: unknown) => ClassifyResult<T>;\n\n/** @internal */\nexport function createAssertClassify(): never {\n NoTransformConfigurationError(\"plain.createAssertClassify\");\n}\n\n/**\n * Creates reusable {@link validateClassify} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidateClassify(): never;\n\n/**\n * Creates reusable {@link validateClassify} function.\n *\n * @template T Target class type to reconstruct\n * @returns Reusable classify function\n */\nexport function createValidateClassify<T>(): (\n input: unknown,\n) => IValidation<ClassifyResult<T>>;\n\n/** @internal */\nexport function createValidateClassify(): never {\n NoTransformConfigurationError(\"plain.createValidateClassify\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,SAAgB,QAAe;CAC7B,8BAA8B,aAAa;AAC7C;;AAkCA,SAAgB,cAAqB;CACnC,8BAA8B,mBAAmB;AACnD;;AAwBA,SAAgB,UAAiB;CAC/B,8BAA8B,eAAe;AAC/C;;AA0BA,SAAgB,gBAAuB;CACrC,8BAA8B,qBAAqB;AACrD;;AAuBA,SAAgB,QAAe;CAC7B,8BAA8B,aAAa;AAC7C;;AAkCA,SAAgB,cAAuB;CACrC,8BAA8B,mBAAmB;AACnD;;AAyBA,SAAgB,UAAiB;CAC/B,8BAA8B,eAAe;AAC/C;;AA0BA,SAAgB,gBAAmC;CACjD,8BAA8B,qBAAqB;AACrD;;AA2BA,SAAgB,WAAkB;CAChC,8BAA8B,gBAAgB;AAChD;;AAiCA,SAAgB,iBAAwB;CACtC,8BAA8B,sBAAsB;AACtD;;AA4BA,SAAgB,mBAA0B;CACxC,8BAA8B,wBAAwB;AACxD;;AAqBA,SAAgB,cAAqB;CACnC,8BAA8B,mBAAmB;AACnD;;AAwBA,SAAgB,oBAA2B;CACzC,8BAA8B,yBAAyB;AACzD;;AAkBA,SAAgB,gBAAuB;CACrC,8BAA8B,qBAAqB;AACrD;;AAoBA,SAAgB,sBAA6B;CAC3C,8BAA8B,2BAA2B;AAC3D;;AAkBA,SAAgB,cAAqB;CACnC,8BAA8B,mBAAmB;AACnD;;AAwBA,SAAgB,oBAA2B;CACzC,8BAA8B,yBAAyB;AACzD;;AAoBA,SAAgB,gBAAuB;CACrC,8BAA8B,qBAAqB;AACrD;;AAoBA,SAAgB,sBAA6B;CAC3C,8BAA8B,2BAA2B;AAC3D;;AAoBA,SAAgB,iBAAwB;CACtC,8BAA8B,sBAAsB;AACtD;;AAwBA,SAAgB,uBAA8B;CAC5C,8BAA8B,4BAA4B;AAC5D;;AAoBA,SAAgB,yBAAgC;CAC9C,8BAA8B,8BAA8B;AAC9D"}
package/lib/protobuf.mjs CHANGED
@@ -1,3 +1,94 @@
1
- export { assertDecode, assertEncode, createAssertDecode, createAssertEncode, createDecode, createEncode, createIsDecode, createIsEncode, createValidateDecode, createValidateEncode, decode, encode, isDecode, isEncode, message, validateDecode, validateEncode } from './protobuf2.mjs';
2
- export { __exports as default } from './_virtual/protobuf.mjs';
3
- //# sourceMappingURL=protobuf.mjs.map
1
+ import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
2
+ import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError.mjs";
3
+ //#region src/protobuf.ts
4
+ var protobuf_exports = /* @__PURE__ */ __exportAll({
5
+ assertDecode: () => assertDecode,
6
+ assertEncode: () => assertEncode,
7
+ createAssertDecode: () => createAssertDecode,
8
+ createAssertEncode: () => createAssertEncode,
9
+ createDecode: () => createDecode,
10
+ createEncode: () => createEncode,
11
+ createIsDecode: () => createIsDecode,
12
+ createIsEncode: () => createIsEncode,
13
+ createValidateDecode: () => createValidateDecode,
14
+ createValidateEncode: () => createValidateEncode,
15
+ decode: () => decode,
16
+ encode: () => encode,
17
+ isDecode: () => isDecode,
18
+ isEncode: () => isEncode,
19
+ message: () => message,
20
+ validateDecode: () => validateDecode,
21
+ validateEncode: () => validateEncode
22
+ });
23
+ /** @internal */
24
+ function message() {
25
+ NoTransformConfigurationError("protobuf.message");
26
+ }
27
+ /** @internal */
28
+ function decode() {
29
+ NoTransformConfigurationError("protobuf.decode");
30
+ }
31
+ /** @internal */
32
+ function assertDecode() {
33
+ NoTransformConfigurationError("protobuf.assertDecode");
34
+ }
35
+ /** @internal */
36
+ function isDecode() {
37
+ NoTransformConfigurationError("protobuf.isDecode");
38
+ }
39
+ /** @internal */
40
+ function validateDecode() {
41
+ NoTransformConfigurationError("protobuf.validateDecode");
42
+ }
43
+ /** @internal */
44
+ function encode() {
45
+ NoTransformConfigurationError("protobuf.encode");
46
+ }
47
+ /** @internal */
48
+ function assertEncode() {
49
+ NoTransformConfigurationError("protobuf.assertEncode");
50
+ }
51
+ /** @internal */
52
+ function isEncode() {
53
+ NoTransformConfigurationError("protobuf.isEncode");
54
+ }
55
+ /** @internal */
56
+ function validateEncode() {
57
+ NoTransformConfigurationError("protobuf.validateEncode");
58
+ }
59
+ /** @internal */
60
+ function createDecode() {
61
+ NoTransformConfigurationError("protobuf.createDecode");
62
+ }
63
+ /** @internal */
64
+ function createIsDecode() {
65
+ NoTransformConfigurationError("protobuf.createIsDecode");
66
+ }
67
+ /** @internal */
68
+ function createAssertDecode() {
69
+ NoTransformConfigurationError("protobuf.createAssertDecode");
70
+ }
71
+ /** @internal */
72
+ function createValidateDecode() {
73
+ NoTransformConfigurationError("protobuf.createValidateDecode");
74
+ }
75
+ /** @internal */
76
+ function createEncode() {
77
+ NoTransformConfigurationError("protobuf.createEncode");
78
+ }
79
+ /** @internal */
80
+ function createIsEncode() {
81
+ NoTransformConfigurationError("protobuf.createIsEncode");
82
+ }
83
+ /** @internal */
84
+ function createAssertEncode() {
85
+ NoTransformConfigurationError("protobuf.createAssertEncode");
86
+ }
87
+ /** @internal */
88
+ function createValidateEncode() {
89
+ NoTransformConfigurationError("protobuf.createValidateEncode");
90
+ }
91
+ //#endregion
92
+ export { assertDecode, assertEncode, createAssertDecode, createAssertEncode, createDecode, createEncode, createIsDecode, createIsEncode, createValidateDecode, createValidateEncode, decode, encode, isDecode, isEncode, message, protobuf_exports, validateDecode, validateEncode };
93
+
94
+ //# sourceMappingURL=protobuf.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"protobuf.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"protobuf.mjs","names":[],"sources":["../src/protobuf.ts"],"sourcesContent":["import { IValidation, Resolved } from \"@typia/interface\";\n\nimport { TypeGuardError } from \"./TypeGuardError\";\nimport { NoTransformConfigurationError } from \"./transformers/NoTransformConfigurationError\";\n\n/* ===========================================================\n PROTOCOL BUFFER\n - MESSAGE\n - DECODE\n - ENCODE\n - FACTORY FUNCTIONS\n==============================================================\n SCHEMA\n----------------------------------------------------------- */\n/**\n * Generates Protocol Buffer message schema.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function message(): never;\n\n/**\n * Generates Protocol Buffer message schema for type `T`.\n *\n * Creates a `.proto` message definition string from a TypeScript type. Use for\n * sharing schemas with other languages/frameworks.\n *\n * Protocol Buffer has limited expressiveness compared to TypeScript.\n * Incompatible types cause compilation errors.\n *\n * @template T Target type\n * @returns Protocol Buffer message schema string\n * @see https://typia.io/docs/protobuf/message/#restrictions\n */\nexport function message<T>(): string;\n\n/** @internal */\nexport function message(): never {\n NoTransformConfigurationError(\"protobuf.message\");\n}\n\n/* -----------------------------------------------------------\n DECODE\n----------------------------------------------------------- */\n/**\n * Decodes Protocol Buffer binary.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function decode(input: Uint8Array): never;\n\n/**\n * Decodes Protocol Buffer binary to type `T`.\n *\n * Converts Protocol Buffer binary data to a TypeScript instance. Binary data\n * must have been encoded from a `T`-typed value—invalid data causes undefined\n * behavior or errors.\n *\n * For type safety, ensure data was encoded via:\n *\n * - {@link assertEncode} — Encodes with type assertion\n * - {@link isEncode} — Encodes with type checking\n * - {@link validateEncode} — Encodes with validation\n *\n * Note: Decoder validation ({@link assertDecode}, etc.) only checks custom tags\n * like `number & Minimum<7>`, not structural type safety.\n *\n * @template T Target type\n * @param input Protocol Buffer binary data\n * @returns Decoded value of type `T`\n */\nexport function decode<T>(input: Uint8Array): Resolved<T>;\n\n/** @internal */\nexport function decode(): never {\n NoTransformConfigurationError(\"protobuf.decode\");\n}\n\n/**\n * Decodes Protocol Buffer binary with assertion.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function assertDecode(\n input: Uint8Array,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Decodes Protocol Buffer binary with assertion (partial safety).\n *\n * Combines {@link decode} with {@link assert}. Throws {@link TypeGuardError} on\n * validation failure.\n *\n * Warning: Only validates custom tags (e.g., `number & Minimum<7>`, `string &\n * Format<\"uuid\">`), not structural type correctness. Ensure source data was\n * encoded with type-safe encoders.\n *\n * Related functions:\n *\n * - {@link decode} — No validation\n * - {@link isDecode} — Returns `null` instead of throwing\n * - {@link validateDecode} — Returns detailed validation errors\n *\n * @template T Target type\n * @param input Protocol Buffer binary data\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Decoded value of type `T`\n * @throws {TypeGuardError} When custom tag validation fails\n */\nexport function assertDecode<T>(\n input: Uint8Array,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Resolved<T>;\n\n/** @internal */\nexport function assertDecode(): never {\n NoTransformConfigurationError(\"protobuf.assertDecode\");\n}\n\n/**\n * Decodes Protocol Buffer binary with type checking.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function isDecode(input: Uint8Array): never;\n\n/**\n * Decodes Protocol Buffer binary with type checking (partial safety).\n *\n * Combines {@link decode} with {@link is}. Returns `null` on validation failure.\n *\n * Warning: Only validates custom tags (e.g., `number & Minimum<7>`, `string &\n * Format<\"uuid\">`), not structural type correctness. Ensure source data was\n * encoded with type-safe encoders.\n *\n * Related functions:\n *\n * - {@link decode} — No validation\n * - {@link assertDecode} — Throws instead of returning `null`\n * - {@link validateDecode} — Returns detailed validation errors\n *\n * @template T Target type\n * @param input Protocol Buffer binary data\n * @returns Decoded value of type `T`, or `null` if invalid\n */\nexport function isDecode<T>(input: Uint8Array): Resolved<T> | null;\n\n/** @internal */\nexport function isDecode(): never {\n NoTransformConfigurationError(\"protobuf.isDecode\");\n}\n\n/**\n * Decodes Protocol Buffer binary with validation.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function validateDecode(input: Uint8Array): never;\n\n/**\n * Decodes Protocol Buffer binary with validation (partial safety).\n *\n * Combines {@link decode} with {@link validate}. Returns\n * {@link IValidation.IFailure} with errors on mismatch, or\n * {@link IValidation.ISuccess} with decoded value.\n *\n * Warning: Only validates custom tags (e.g., `number & Minimum<7>`, `string &\n * Format<\"uuid\">`), not structural type correctness. Ensure source data was\n * encoded with type-safe encoders.\n *\n * Related functions:\n *\n * - {@link decode} — No validation\n * - {@link assertDecode} — Throws on first error\n * - {@link isDecode} — Returns `null` instead of error details\n *\n * @template T Target type\n * @param input Protocol Buffer binary data\n * @returns Validation result containing decoded value or errors\n */\nexport function validateDecode<T>(input: Uint8Array): IValidation<Resolved<T>>;\n\n/** @internal */\nexport function validateDecode(): never {\n NoTransformConfigurationError(\"protobuf.validateDecode\");\n}\n\n/* -----------------------------------------------------------\n ENCODE\n----------------------------------------------------------- */\n/**\n * Encodes value to Protocol Buffer binary.\n *\n * Converts a TypeScript value to Protocol Buffer binary format.\n *\n * Does not validate the input. For validation, use:\n *\n * - {@link assertEncode} — Throws on type mismatch\n * - {@link isEncode} — Returns `null` on type mismatch\n * - {@link validateEncode} — Returns detailed validation errors\n *\n * Protocol Buffer has limited expressiveness compared to TypeScript.\n * Incompatible types cause compilation errors.\n *\n * @template T Type of input value\n * @param input Value to encode\n * @returns Protocol Buffer binary data\n * @see https://typia.io/docs/protobuf/message/#restrictions\n */\nexport function encode<T>(input: T): Uint8Array;\n\n/** @internal */\nexport function encode(): never {\n NoTransformConfigurationError(\"protobuf.encode\");\n}\n\n/**\n * Encodes value to Protocol Buffer binary with assertion.\n *\n * Combines {@link assert} with {@link encode}. Throws {@link TypeGuardError} on\n * type mismatch.\n *\n * Related functions:\n *\n * - {@link encode} — No validation\n * - {@link isEncode} — Returns `null` instead of throwing\n * - {@link validateEncode} — Returns detailed validation errors\n *\n * Protocol Buffer has limited expressiveness compared to TypeScript.\n * Incompatible types cause compilation errors.\n *\n * @template T Type of input value\n * @param input Value to encode\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Protocol Buffer binary data\n * @throws {TypeGuardError} When input doesn't conform to type `T`\n * @see https://typia.io/docs/protobuf/message/#restrictions\n */\nexport function assertEncode<T>(\n input: T,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Uint8Array;\n\n/** @internal */\nexport function assertEncode<T>(\n input: unknown,\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Uint8Array;\n\n/** @internal */\nexport function assertEncode(): never {\n NoTransformConfigurationError(\"protobuf.assertEncode\");\n}\n\n/**\n * Encodes value to Protocol Buffer binary with type checking.\n *\n * Combines {@link is} with {@link encode}. Returns `null` on type mismatch.\n *\n * Related functions:\n *\n * - {@link encode} — No validation\n * - {@link assertEncode} — Throws instead of returning `null`\n * - {@link validateEncode} — Returns detailed validation errors\n *\n * Protocol Buffer has limited expressiveness compared to TypeScript.\n * Incompatible types cause compilation errors.\n *\n * @template T Type of input value\n * @param input Value to encode\n * @returns Protocol Buffer binary data, or `null` if invalid\n * @see https://typia.io/docs/protobuf/message/#restrictions\n */\nexport function isEncode<T>(input: T): Uint8Array | null;\n\n/** @internal */\nexport function isEncode<T>(input: unknown): Uint8Array | null;\n\n/** @internal */\nexport function isEncode(): never {\n NoTransformConfigurationError(\"protobuf.isEncode\");\n}\n\n/**\n * Encodes value to Protocol Buffer binary with validation.\n *\n * Combines {@link validate} with {@link encode}. Returns\n * {@link IValidation.IFailure} with all errors on mismatch, or\n * {@link IValidation.ISuccess} with binary data.\n *\n * Related functions:\n *\n * - {@link encode} — No validation\n * - {@link assertEncode} — Throws on first error\n * - {@link isEncode} — Returns `null` instead of error details\n *\n * Protocol Buffer has limited expressiveness compared to TypeScript.\n * Incompatible types cause compilation errors.\n *\n * @template T Type of input value\n * @param input Value to encode\n * @returns Validation result containing binary data or errors\n * @see https://typia.io/docs/protobuf/message/#restrictions\n */\nexport function validateEncode<T>(input: T): IValidation<Uint8Array>;\n\n/** @internal */\nexport function validateEncode<T>(input: unknown): IValidation<Uint8Array>;\n\n/** @internal */\nexport function validateEncode(): never {\n NoTransformConfigurationError(\"protobuf.validateEncode\");\n}\n\n/* -----------------------------------------------------------\n FACTORY FUNCTIONS\n----------------------------------------------------------- */\n/**\n * Creates reusable {@link decode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createDecode(): never;\n\n/**\n * Creates reusable {@link decode} function.\n *\n * @template T Target type\n * @returns Reusable decoder function\n */\nexport function createDecode<T>(): (input: Uint8Array) => Resolved<T>;\n\n/** @internal */\nexport function createDecode<T>(): (input: Uint8Array) => Resolved<T> {\n NoTransformConfigurationError(\"protobuf.createDecode\");\n}\n\n/**\n * Creates reusable {@link isDecode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createIsDecode(): never;\n\n/**\n * Creates reusable {@link isDecode} function.\n *\n * @template T Target type\n * @returns Reusable decoder function\n */\nexport function createIsDecode<T>(): (input: Uint8Array) => Resolved<T> | null;\n\n/** @internal */\nexport function createIsDecode<T>(): (input: Uint8Array) => Resolved<T> | null {\n NoTransformConfigurationError(\"protobuf.createIsDecode\");\n}\n\n/**\n * Creates reusable {@link assertDecode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertDecode(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertDecode} function.\n *\n * @template T Target type\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Reusable decoder function\n */\nexport function createAssertDecode<T>(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (input: Uint8Array) => Resolved<T>;\n\n/** @internal */\nexport function createAssertDecode<T>(): (input: Uint8Array) => Resolved<T> {\n NoTransformConfigurationError(\"protobuf.createAssertDecode\");\n}\n\n/**\n * Creates reusable {@link validateDecode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidateDecode(): never;\n\n/**\n * Creates reusable {@link validateDecode} function.\n *\n * @template T Target type\n * @returns Reusable decoder function\n */\nexport function createValidateDecode<T>(): (\n input: Uint8Array,\n) => IValidation<Resolved<T>>;\n\n/** @internal */\nexport function createValidateDecode<T>(): (\n input: Uint8Array,\n) => IValidation<Resolved<T>> {\n NoTransformConfigurationError(\"protobuf.createValidateDecode\");\n}\n\n/**\n * Creates reusable {@link encode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createEncode(): never;\n\n/**\n * Creates reusable {@link encode} function.\n *\n * @template T Type of input value\n * @returns Reusable encoder function\n */\nexport function createEncode<T>(): (input: T) => Uint8Array;\n\n/** @internal */\nexport function createEncode<T>(): (input: T) => Uint8Array {\n NoTransformConfigurationError(\"protobuf.createEncode\");\n}\n\n/**\n * Creates reusable {@link isEncode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createIsEncode(): never;\n\n/**\n * Creates reusable {@link isEncode} function.\n *\n * @template T Type of input value\n * @returns Reusable encoder function\n */\nexport function createIsEncode<T>(): (input: T) => Uint8Array | null;\n\n/** @internal */\nexport function createIsEncode<T>(): (input: T) => Uint8Array | null {\n NoTransformConfigurationError(\"protobuf.createIsEncode\");\n}\n\n/**\n * Creates reusable {@link assertEncode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertEncode(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertEncode} function.\n *\n * @template T Type of input value\n * @param errorFactory Custom error factory receiving\n * {@link TypeGuardError.IProps}\n * @returns Reusable encoder function\n */\nexport function createAssertEncode<T>(\n errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (input: T) => Uint8Array;\n\n/** @internal */\nexport function createAssertEncode<T>(): (input: T) => Uint8Array {\n NoTransformConfigurationError(\"protobuf.createAssertEncode\");\n}\n\n/**\n * Creates reusable {@link validateEncode} function.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidateEncode(): never;\n\n/**\n * Creates reusable {@link validateEncode} function.\n *\n * @template T Type of input value\n * @returns Reusable encoder function\n */\nexport function createValidateEncode<T>(): (\n input: T,\n) => IValidation<Uint8Array>;\n\n/** @internal */\nexport function createValidateEncode<T>(): (\n input: T,\n) => IValidation<Uint8Array> {\n NoTransformConfigurationError(\"protobuf.createValidateEncode\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqCA,SAAgB,UAAiB;CAC/B,8BAA8B,kBAAkB;AAClD;;AAmCA,SAAgB,SAAgB;CAC9B,8BAA8B,iBAAiB;AACjD;;AAyCA,SAAgB,eAAsB;CACpC,8BAA8B,uBAAuB;AACvD;;AA+BA,SAAgB,WAAkB;CAChC,8BAA8B,mBAAmB;AACnD;;AAiCA,SAAgB,iBAAwB;CACtC,8BAA8B,yBAAyB;AACzD;;AA2BA,SAAgB,SAAgB;CAC9B,8BAA8B,iBAAiB;AACjD;;AAqCA,SAAgB,eAAsB;CACpC,8BAA8B,uBAAuB;AACvD;;AA2BA,SAAgB,WAAkB;CAChC,8BAA8B,mBAAmB;AACnD;;AA6BA,SAAgB,iBAAwB;CACtC,8BAA8B,yBAAyB;AACzD;;AAqBA,SAAgB,eAAsD;CACpE,8BAA8B,uBAAuB;AACvD;;AAkBA,SAAgB,iBAA+D;CAC7E,8BAA8B,yBAAyB;AACzD;;AAwBA,SAAgB,qBAA4D;CAC1E,8BAA8B,6BAA6B;AAC7D;;AAoBA,SAAgB,uBAEc;CAC5B,8BAA8B,+BAA+B;AAC/D;;AAkBA,SAAgB,eAA4C;CAC1D,8BAA8B,uBAAuB;AACvD;;AAkBA,SAAgB,iBAAqD;CACnE,8BAA8B,yBAAyB;AACzD;;AAwBA,SAAgB,qBAAkD;CAChE,8BAA8B,6BAA6B;AAC7D;;AAoBA,SAAgB,uBAEa;CAC3B,8BAA8B,+BAA+B;AAC/D"}
@@ -1 +1,2 @@
1
- export { AssertionGuard, IJsonParseResult, IValidation, IRandomGenerator, OpenApi, IJsonSchemaCollection, IJsonSchemaUnit, ILlmController, ILlmApplication, ILlmFunction, ILlmStructuredOutput, ILlmSchema, IMetadataSchema, IMetadataSchemaCollection, IMetadataSchemaUnit, IMetadataComponents, IMetadataTypeTag, IJsDocTagInfo, Classifiable, ClassifyResult, Primitive, Resolved, CamelCase, KebabCase, PascalCase, SnakeCase, IReadableURLSearchParams, tags, } from "@typia/interface";
1
+ export type { AssertionGuard, IJsonParseResult, IValidation, IRandomGenerator, OpenApi, IJsonSchemaCollection, IJsonSchemaUnit, ILlmController, ILlmApplication, ILlmFunction, ILlmStructuredOutput, ILlmSchema, IMetadataSchema, IMetadataSchemaCollection, IMetadataSchemaUnit, IMetadataComponents, IMetadataTypeTag, IJsDocTagInfo, Classifiable, ClassifyResult, Primitive, Resolved, CamelCase, KebabCase, PascalCase, SnakeCase, IReadableURLSearchParams, } from "@typia/interface";
2
+ export { tags } from "@typia/interface";
package/lib/re-exports.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tags = void 0;
4
+ // `tags` is the only runtime value `@typia/interface` exports. Everything
5
+ // above must stay `export type`: the `.mjs` build transpiles per file
6
+ // (rolldown/oxc, no cross-file type info), so a plain re-export of a type
7
+ // would survive as a runtime import and crash against the CJS-only
8
+ // `@typia/interface`.
4
9
  var interface_1 = require("@typia/interface");
5
- // namespaces
6
10
  Object.defineProperty(exports, "tags", { enumerable: true, get: function () { return interface_1.tags; } });
7
11
  //# sourceMappingURL=re-exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";;;AAAA,8CAoC0B;AAFxB,aAAa;AACb,iGAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";;;AAoCA,0EAA0E;AAC1E,sEAAsE;AACtE,0EAA0E;AAC1E,mEAAmE;AACnE,sBAAsB;AACtB,8CAAwC;AAA/B,iGAAA,IAAI,OAAA"}
@@ -1,2 +1,2 @@
1
- export { default } from './re-exports2.mjs';
2
- //# sourceMappingURL=re-exports.mjs.map
1
+ import { tags } from "@typia/interface";
2
+ export { tags };
package/lib/reflect.mjs CHANGED
@@ -1,3 +1,29 @@
1
- export { literals, name, schema, schemas } from './reflect2.mjs';
2
- export { __exports as default } from './_virtual/reflect.mjs';
3
- //# sourceMappingURL=reflect.mjs.map
1
+ import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
2
+ import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError.mjs";
3
+ //#region src/reflect.ts
4
+ var reflect_exports = /* @__PURE__ */ __exportAll({
5
+ literals: () => literals,
6
+ name: () => name,
7
+ schema: () => schema,
8
+ schemas: () => schemas
9
+ });
10
+ /** @internal */
11
+ function schemas() {
12
+ NoTransformConfigurationError("reflect.schemas");
13
+ }
14
+ /** @internal */
15
+ function schema() {
16
+ NoTransformConfigurationError("reflect.schema");
17
+ }
18
+ /** @internal */
19
+ function name() {
20
+ NoTransformConfigurationError("reflect.name");
21
+ }
22
+ /** @internal */
23
+ function literals() {
24
+ NoTransformConfigurationError("reflect.literals");
25
+ }
26
+ //#endregion
27
+ export { literals, name, reflect_exports, schema, schemas };
28
+
29
+ //# sourceMappingURL=reflect.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"reflect.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"reflect.mjs","names":[],"sources":["../src/reflect.ts"],"sourcesContent":["import {\n Atomic,\n IMetadataSchemaCollection,\n IMetadataSchemaUnit,\n} from \"@typia/interface\";\n\nimport { NoTransformConfigurationError } from \"./transformers/NoTransformConfigurationError\";\n\n/**\n * Generates metadata schemas for multiple types.\n *\n * @danger You must configure the generic argument `Types`\n */\nexport function schemas(): never;\n\n/**\n * Generates metadata schemas for multiple types.\n *\n * Creates {@link IMetadataSchemaCollection} containing metadata for all types in\n * the tuple. Collection types (Array, Tuple, Object) are stored in\n * `components`. Alias types are stored in `aliases`.\n *\n * @template Types Tuple of target types\n * @returns Metadata schema collection\n */\nexport function schemas<Types extends unknown[]>(): IMetadataSchemaCollection;\n\n/** @internal */\nexport function schemas(): never {\n NoTransformConfigurationError(\"reflect.schemas\");\n}\n\n/**\n * Generates metadata schema for a single type.\n *\n * @danger You must configure the generic argument `Type`\n */\nexport function schema(): never;\n\n/**\n * Generates metadata schema for a single type.\n *\n * Creates {@link IMetadataSchemaUnit} containing metadata for the type.\n *\n * @template Type Target type\n * @returns Metadata schema unit\n */\nexport function schema<Type>(): IMetadataSchemaUnit;\n\n/** @internal */\nexport function schema(): never {\n NoTransformConfigurationError(\"reflect.schema\");\n}\n\n/**\n * Gets the runtime type name of type `T`.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function name(): never;\n\n/**\n * Gets the runtime type name of type `T`.\n *\n * Returns a string representation of the type name.\n *\n * @template T Target type\n * @template Regular If `true`, returns regular (normalized) name\n * @returns Type name string\n */\nexport function name<T, Regular extends boolean = false>(): string;\n\n/** @internal */\nexport function name(): never {\n NoTransformConfigurationError(\"reflect.name\");\n}\n\n/**\n * Converts union literal type to array.\n *\n * @danger You must configure the generic argument `T`\n */\nexport function literals(): never;\n\n/**\n * Converts union literal type to array.\n *\n * Extracts all members of a union literal type `T` into an array at runtime.\n *\n * @template T Union literal type (e.g., `\"A\" | \"B\" | 1`)\n * @returns Array containing all union members\n */\nexport function literals<T extends Atomic.Type | null>(): T[];\n\n/** @internal */\nexport function literals(): never {\n NoTransformConfigurationError(\"reflect.literals\");\n}\n"],"mappings":";;;;;;;;;;AA4BA,SAAgB,UAAiB;CAC/B,8BAA8B,iBAAiB;AACjD;;AAoBA,SAAgB,SAAgB;CAC9B,8BAA8B,gBAAgB;AAChD;;AAqBA,SAAgB,OAAc;CAC5B,8BAA8B,cAAc;AAC9C;;AAoBA,SAAgB,WAAkB;CAChC,8BAA8B,kBAAkB;AAClD"}
package/lib/transform.mjs CHANGED
@@ -1,2 +1,15 @@
1
- export { createTtscPlugin, default } from './transform2.mjs';
2
- //# sourceMappingURL=transform.mjs.map
1
+ import path from "node:path";
2
+ import { createRequire } from "node:module";
3
+ //#region src/transform.ts
4
+ function createTtscPlugin(context) {
5
+ const requireFrom = createRequire(path.join(context.projectRoot, "package.json"));
6
+ const root = path.dirname(requireFrom.resolve("typia/package.json"));
7
+ return {
8
+ name: "typia",
9
+ source: path.resolve(root, "native", "cmd", "ttsc-typia")
10
+ };
11
+ }
12
+ //#endregion
13
+ export { createTtscPlugin, createTtscPlugin as default };
14
+
15
+ //# sourceMappingURL=transform.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"transform.mjs","names":[],"sources":["../src/transform.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport path from \"node:path\";\nimport type { ITtscPlugin, ITtscPluginFactoryContext } from \"ttsc\";\n\nexport function createTtscPlugin(\n context: ITtscPluginFactoryContext,\n): ITtscPlugin {\n // ttsc loads this descriptor as ESM, where the ambient `require` is\n // unavailable; anchor a CJS resolver on the consuming project to locate\n // typia's own package root (not the project root, which has no `native/`).\n const requireFrom = createRequire(\n path.join(context.projectRoot, \"package.json\"),\n );\n const root: string = path.dirname(requireFrom.resolve(\"typia/package.json\"));\n return {\n name: \"typia\",\n source: path.resolve(root, \"native\", \"cmd\", \"ttsc-typia\"),\n };\n}\n\nexport default createTtscPlugin;\n"],"mappings":";;;AAIA,SAAgB,iBACd,SACa;CAIb,MAAM,cAAc,cAClB,KAAK,KAAK,QAAQ,aAAa,cAAc,CAC/C;CACA,MAAM,OAAe,KAAK,QAAQ,YAAY,QAAQ,oBAAoB,CAAC;CAC3E,OAAO;EACL,MAAM;EACN,QAAQ,KAAK,QAAQ,MAAM,UAAU,OAAO,YAAY;CAC1D;AACF"}
@@ -1,3 +1,19 @@
1
- export { NoTransformConfigurationError } from './NoTransformConfigurationError2.mjs';
2
- export { __exports as default } from '../_virtual/NoTransformConfigurationError.mjs';
3
- //# sourceMappingURL=NoTransformConfigurationError.mjs.map
1
+ //#region src/transformers/NoTransformConfigurationError.ts
2
+ /** @internal */
3
+ function NoTransformConfigurationError(name) {
4
+ throw new Error([
5
+ `Error on typia.${name}(): no transform has been configured.`,
6
+ "",
7
+ "Read and follow https://typia.io/docs/setup please.",
8
+ "",
9
+ [
10
+ "If you've already completed the setup, it means there's",
11
+ "a bug in your code. Run `tsc` command so that check what",
12
+ "is wrong with your code."
13
+ ].join(" ")
14
+ ].join("\n"));
15
+ }
16
+ //#endregion
17
+ export { NoTransformConfigurationError };
18
+
19
+ //# sourceMappingURL=NoTransformConfigurationError.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NoTransformConfigurationError.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"NoTransformConfigurationError.mjs","names":[],"sources":["../../src/transformers/NoTransformConfigurationError.ts"],"sourcesContent":["/** @internal */\nexport function NoTransformConfigurationError(name: string): never {\n throw new Error(\n [\n `Error on typia.${name}(): no transform has been configured.`,\n \"\",\n \"Read and follow https://typia.io/docs/setup please.\",\n \"\",\n [\n \"If you've already completed the setup, it means there's\",\n \"a bug in your code. Run `tsc` command so that check what\",\n \"is wrong with your code.\",\n ].join(\" \"),\n ].join(\"\\n\"),\n );\n}\n"],"mappings":";;AACA,SAAgB,8BAA8B,MAAqB;CACjE,MAAM,IAAI,MACR;EACE,kBAAkB,KAAK;EACvB;EACA;EACA;EACA;GACE;GACA;GACA;EACF,CAAC,CAAC,KAAK,GAAG;CACZ,CAAC,CAAC,KAAK,IAAI,CACb;AACF"}
@@ -1,6 +1,8 @@
1
1
  package factories
2
2
 
3
3
  import (
4
+ "bytes"
5
+ "encoding/json"
4
6
  "math/big"
5
7
  "reflect"
6
8
  "sort"
@@ -26,6 +28,41 @@ type LiteralFactory_OrderedObject struct {
26
28
  Values map[string]any
27
29
  }
28
30
 
31
+ // MarshalJSON keeps encoding/json consumers aligned with the printer: the
32
+ // ordered object serializes as the plain JSON object it represents (in Keys
33
+ // order, skipping absent and nil-like entries), never as its raw struct
34
+ // fields. Downstream tools marshal schema metadata containing these objects
35
+ // (e.g. nestia's SDK transform), and the raw {Keys, Values} shape corrupted
36
+ // their output.
37
+ func (obj LiteralFactory_OrderedObject) MarshalJSON() ([]byte, error) {
38
+ buffer := bytes.Buffer{}
39
+ buffer.WriteByte('{')
40
+ first := true
41
+ for _, key := range obj.Keys {
42
+ value, ok := obj.Values[key]
43
+ if ok == false || literalFactory_isNilLike(value) {
44
+ continue
45
+ }
46
+ encodedKey, err := json.Marshal(key)
47
+ if err != nil {
48
+ return nil, err
49
+ }
50
+ encodedValue, err := json.Marshal(value)
51
+ if err != nil {
52
+ return nil, err
53
+ }
54
+ if first == false {
55
+ buffer.WriteByte(',')
56
+ }
57
+ first = false
58
+ buffer.Write(encodedKey)
59
+ buffer.WriteByte(':')
60
+ buffer.Write(encodedValue)
61
+ }
62
+ buffer.WriteByte('}')
63
+ return buffer.Bytes(), nil
64
+ }
65
+
29
66
  var literalFactory_factory = shimast.NewNodeFactory(shimast.NodeFactoryHooks{})
30
67
 
31
68
  func (literalFactoryNamespace) Write(input any, emit ...*shimprinter.EmitContext) *shimast.Node {
@@ -0,0 +1,40 @@
1
+ package factories
2
+
3
+ import (
4
+ "encoding/json"
5
+ "testing"
6
+ )
7
+
8
+ // TestLiteralFactoryOrderedObjectMarshalsJSON locks the encoding/json
9
+ // representation of LiteralFactory_OrderedObject. Downstream consumers
10
+ // marshal schema metadata containing these objects (nestia's SDK transform
11
+ // builds swagger documents from it); without a MarshalJSON override the raw
12
+ // {Keys, Values} struct fields leaked into generated documents as
13
+ // `properties.Keys = [...]`, producing invalid OpenAPI schemas.
14
+ //
15
+ // The JSON form must be the plain object the printer would emit: entries in
16
+ // Keys order, entries absent from Values skipped, nil-like values skipped,
17
+ // and nested ordered objects (value or pointer) serialized the same way.
18
+ func TestLiteralFactoryOrderedObjectMarshalsJSON(t *testing.T) {
19
+ input := LiteralFactory_OrderedObject{
20
+ Keys: []string{"second", "first", "absent", "nil", "nested"},
21
+ Values: map[string]any{
22
+ "second": 2,
23
+ "first": 1,
24
+ "nil": nil,
25
+ "nested": &LiteralFactory_OrderedObject{
26
+ Keys: []string{"z", "a"},
27
+ Values: map[string]any{"z": "Z", "a": "A"},
28
+ },
29
+ "unlisted": true,
30
+ },
31
+ }
32
+ data, err := json.Marshal(input)
33
+ if err != nil {
34
+ t.Fatalf("marshal failed: %v", err)
35
+ }
36
+ expected := `{"second":2,"first":1,"nested":{"z":"Z","a":"A"}}`
37
+ if string(data) != expected {
38
+ t.Fatalf("unexpected JSON:\nexpected %s\nactual %s", expected, string(data))
39
+ }
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typia",
3
- "version": "13.0.0",
3
+ "version": "13.0.1",
4
4
  "description": "Superfast runtime validators with only one line",
5
5
  "main": "lib/index.js",
6
6
  "exports": {
@@ -50,27 +50,20 @@
50
50
  "inquirer": "^8.2.5",
51
51
  "randexp": "^0.5.3",
52
52
  "tinyglobby": "^0.2.12",
53
- "@typia/interface": "^13.0.0",
54
- "@typia/utils": "^13.0.0"
53
+ "@typia/utils": "^13.0.1",
54
+ "@typia/interface": "^13.0.1"
55
55
  },
56
56
  "devDependencies": {
57
- "@rollup/plugin-commonjs": "^29.0.0",
58
- "@rollup/plugin-esm-shim": "^0.1.8",
59
- "@rollup/plugin-node-resolve": "^16.0.3",
60
57
  "@types/inquirer": "^8.2.5",
61
58
  "@types/node": "^25.3.0",
62
59
  "chalk": "^4.0.0",
63
60
  "rimraf": "^6.1.2",
64
- "rollup": "^4.56.0",
65
- "rollup-plugin-node-externals": "^8.1.2",
61
+ "rolldown": "^1.1.5",
66
62
  "suppress-warnings": "^1.0.2",
67
63
  "ttsc": "^0.17.3",
68
64
  "typescript": "^7.0.2"
69
65
  },
70
- "sideEffects": [
71
- "./lib/_virtual/*.mjs",
72
- "./lib/internal/*2.mjs"
73
- ],
66
+ "sideEffects": false,
74
67
  "files": [
75
68
  "README.md",
76
69
  "package.json",
@@ -117,7 +110,7 @@
117
110
  "access": "public"
118
111
  },
119
112
  "scripts": {
120
- "build": "rimraf lib && ttsc && rollup -c && cp ../../README.md README.md",
113
+ "build": "rimraf lib && ttsc && rolldown -c && cp ../../README.md README.md",
121
114
  "dev": "ttsc --watch"
122
115
  },
123
116
  "types": "lib/index.d.ts",
@@ -627,7 +627,11 @@ export namespace TypiaGenerateWizard {
627
627
  }
628
628
 
629
629
  function resolveTypiaPackageRoot(): string {
630
- const current: string = path.resolve(__dirname);
630
+ // The CLI entrypoint (`lib/executable/typia.js`) lives in the same
631
+ // directory as this module, so its `process.argv[1]` path anchors the
632
+ // walk-up identically in both the CJS and ESM builds — `__dirname` does
633
+ // not exist in the transcoded `.mjs`.
634
+ const current: string = path.dirname(path.resolve(process.argv[1] ?? ""));
631
635
  for (const directory of [
632
636
  path.resolve(current, "..", ".."),
633
637
  path.resolve(current, ".."),
@@ -1,7 +1,6 @@
1
- const { spawnSync } =
2
- require("node:child_process") as typeof import("node:child_process");
3
- const fs = require("node:fs") as typeof import("node:fs");
4
- const path = require("node:path") as typeof import("node:path");
1
+ import { spawnSync } from "node:child_process";
2
+ import fs from "node:fs";
3
+ import path from "node:path";
5
4
 
6
5
  const packageRoot = path.resolve(
7
6
  path.dirname(path.resolve(process.argv[1] ?? "")),
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
3
+ import path from "node:path";
4
+
2
5
  const USAGE = `Wrong command has been detected. Use like below:
3
6
 
4
7
  npx typia generate [options] [files...]
@@ -32,12 +35,13 @@ const loadTtsc = (): void => {
32
35
  };
33
36
 
34
37
  const loadPackage = (request: string, desc: string): void => {
38
+ // The ambient CJS `require` does not exist in the transcoded `.mjs`;
39
+ // anchor explicit resolvers on the consuming project (cwd) first, then on
40
+ // this executable's own location, mirroring the original lookup order.
35
41
  const resolvers: Array<() => string> = [
36
42
  () =>
37
- require.resolve(request, {
38
- paths: [process.cwd()],
39
- }),
40
- () => require.resolve(request),
43
+ createRequire(path.join(process.cwd(), "package.json")).resolve(request),
44
+ () => createRequire(path.resolve(process.argv[1] ?? "")).resolve(request),
41
45
  ];
42
46
  for (const resolve of resolvers) {
43
47
  try {