typia 13.0.0-dev.20260427-2 → 13.0.0-dev.20260430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/lib/TypeGuardError.js +1 -0
- package/lib/TypeGuardError.js.map +1 -1
- package/lib/TypeGuardError.mjs +2 -7
- package/lib/TypeGuardError.mjs.map +1 -1
- package/lib/TypeGuardError2.mjs +51 -58
- package/lib/TypeGuardError2.mjs.map +1 -1
- package/lib/executable/TypiaGenerateWizard.js +65 -36
- package/lib/executable/TypiaGenerateWizard.js.map +1 -1
- package/lib/executable/TypiaGenerateWizard.mjs +2 -7
- package/lib/executable/TypiaGenerateWizard.mjs.map +1 -1
- package/lib/executable/TypiaGenerateWizard2.mjs +226 -201
- package/lib/executable/TypiaGenerateWizard2.mjs.map +1 -1
- package/lib/executable/TypiaSetupWizard.mjs +2 -7
- package/lib/executable/TypiaSetupWizard.mjs.map +1 -1
- package/lib/executable/TypiaSetupWizard2.mjs +139 -144
- package/lib/executable/TypiaSetupWizard2.mjs.map +1 -1
- package/lib/executable/generate/ttsc.d.ts +0 -4
- package/lib/executable/generate/ttsc.js +15 -50
- package/lib/executable/generate/ttsc.js.map +1 -1
- package/lib/executable/generate/ttsc.mjs +2 -7
- package/lib/executable/generate/ttsc.mjs.map +1 -1
- package/lib/executable/generate/ttsc2.mjs +46 -92
- package/lib/executable/generate/ttsc2.mjs.map +1 -1
- package/lib/executable/setup/ArgumentParser.mjs +2 -7
- package/lib/executable/setup/ArgumentParser.mjs.map +1 -1
- package/lib/executable/setup/ArgumentParser2.mjs +36 -44
- package/lib/executable/setup/ArgumentParser2.mjs.map +1 -1
- package/lib/executable/setup/CommandExecutor.mjs +2 -7
- package/lib/executable/setup/CommandExecutor.mjs.map +1 -1
- package/lib/executable/setup/CommandExecutor2.mjs +15 -23
- package/lib/executable/setup/CommandExecutor2.mjs.map +1 -1
- package/lib/executable/setup/FileRetriever.mjs +2 -7
- package/lib/executable/setup/FileRetriever.mjs.map +1 -1
- package/lib/executable/setup/FileRetriever2.mjs +25 -33
- package/lib/executable/setup/FileRetriever2.mjs.map +1 -1
- package/lib/executable/setup/PackageManager.mjs +2 -7
- package/lib/executable/setup/PackageManager.mjs.map +1 -1
- package/lib/executable/setup/PackageManager2.mjs +82 -88
- package/lib/executable/setup/PackageManager2.mjs.map +1 -1
- package/lib/executable/setup/PluginConfigurator.mjs +2 -7
- package/lib/executable/setup/PluginConfigurator.mjs.map +1 -1
- package/lib/executable/setup/PluginConfigurator2.mjs +60 -68
- package/lib/executable/setup/PluginConfigurator2.mjs.map +1 -1
- package/lib/executable/typia.mjs +2 -7
- package/lib/executable/typia.mjs.map +1 -1
- package/lib/executable/typia2.mjs +94 -100
- package/lib/executable/typia2.mjs.map +1 -1
- package/lib/functional.mjs +2 -7
- package/lib/functional.mjs.map +1 -1
- package/lib/functional2.mjs +94 -101
- package/lib/functional2.mjs.map +1 -1
- package/lib/http.mjs +2 -7
- package/lib/http.mjs.map +1 -1
- package/lib/http2.mjs +134 -141
- package/lib/http2.mjs.map +1 -1
- package/lib/index.mjs +1 -7
- package/lib/index.mjs.map +1 -1
- package/lib/index2.mjs +48 -51
- package/lib/index2.mjs.map +1 -1
- package/lib/internal/_IProtobufWriter.mjs +2 -7
- package/lib/internal/_IProtobufWriter.mjs.map +1 -1
- package/lib/internal/_IProtobufWriter2.mjs +2 -10
- package/lib/internal/_IProtobufWriter2.mjs.map +1 -1
- package/lib/internal/_ProtobufReader.mjs +2 -7
- package/lib/internal/_ProtobufReader.mjs.map +1 -1
- package/lib/internal/_ProtobufReader2.mjs +164 -172
- package/lib/internal/_ProtobufReader2.mjs.map +1 -1
- package/lib/internal/_ProtobufSizer.mjs +2 -7
- package/lib/internal/_ProtobufSizer.mjs.map +1 -1
- package/lib/internal/_ProtobufSizer2.mjs +115 -123
- package/lib/internal/_ProtobufSizer2.mjs.map +1 -1
- package/lib/internal/_ProtobufWriter.mjs +2 -7
- package/lib/internal/_ProtobufWriter.mjs.map +1 -1
- package/lib/internal/_ProtobufWriter2.mjs +102 -110
- package/lib/internal/_ProtobufWriter2.mjs.map +1 -1
- package/lib/internal/_accessExpressionAsString.mjs +2 -7
- package/lib/internal/_accessExpressionAsString.mjs.map +1 -1
- package/lib/internal/_accessExpressionAsString2.mjs +46 -54
- package/lib/internal/_accessExpressionAsString2.mjs.map +1 -1
- package/lib/internal/_assertGuard.mjs +2 -7
- package/lib/internal/_assertGuard.mjs.map +1 -1
- package/lib/internal/_assertGuard2.mjs +17 -24
- package/lib/internal/_assertGuard2.mjs.map +1 -1
- package/lib/internal/_coerceLlmArguments.mjs +2 -7
- package/lib/internal/_coerceLlmArguments.mjs.map +1 -1
- package/lib/internal/_coerceLlmArguments2.mjs +7 -15
- package/lib/internal/_coerceLlmArguments2.mjs.map +1 -1
- package/lib/internal/_createStandardSchema.mjs +2 -7
- package/lib/internal/_createStandardSchema.mjs.map +1 -1
- package/lib/internal/_createStandardSchema2.mjs +135 -143
- package/lib/internal/_createStandardSchema2.mjs.map +1 -1
- package/lib/internal/_functionalTypeGuardErrorFactory.mjs +2 -7
- package/lib/internal/_functionalTypeGuardErrorFactory.mjs.map +1 -1
- package/lib/internal/_functionalTypeGuardErrorFactory2.mjs +9 -16
- package/lib/internal/_functionalTypeGuardErrorFactory2.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadArray.mjs +2 -7
- package/lib/internal/_httpFormDataReadArray.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadArray2.mjs +6 -14
- package/lib/internal/_httpFormDataReadArray2.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBigint.mjs +2 -7
- package/lib/internal/_httpFormDataReadBigint.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBigint2.mjs +20 -28
- package/lib/internal/_httpFormDataReadBigint2.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBlob.mjs +2 -7
- package/lib/internal/_httpFormDataReadBlob.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBlob2.mjs +12 -20
- package/lib/internal/_httpFormDataReadBlob2.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBoolean.mjs +2 -7
- package/lib/internal/_httpFormDataReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBoolean2.mjs +18 -26
- package/lib/internal/_httpFormDataReadBoolean2.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadFile.mjs +2 -7
- package/lib/internal/_httpFormDataReadFile.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadFile2.mjs +12 -20
- package/lib/internal/_httpFormDataReadFile2.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadNumber.mjs +2 -7
- package/lib/internal/_httpFormDataReadNumber.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadNumber2.mjs +16 -24
- package/lib/internal/_httpFormDataReadNumber2.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadString.mjs +2 -7
- package/lib/internal/_httpFormDataReadString.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadString2.mjs +12 -20
- package/lib/internal/_httpFormDataReadString2.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBigint.mjs +2 -7
- package/lib/internal/_httpHeaderReadBigint.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBigint2.mjs +14 -22
- package/lib/internal/_httpHeaderReadBigint2.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBoolean.mjs +2 -7
- package/lib/internal/_httpHeaderReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBoolean2.mjs +12 -20
- package/lib/internal/_httpHeaderReadBoolean2.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadNumber.mjs +2 -7
- package/lib/internal/_httpHeaderReadNumber.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadNumber2.mjs +10 -18
- package/lib/internal/_httpHeaderReadNumber2.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBigint.mjs +2 -7
- package/lib/internal/_httpParameterReadBigint.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBigint2.mjs +14 -22
- package/lib/internal/_httpParameterReadBigint2.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBoolean.mjs +2 -7
- package/lib/internal/_httpParameterReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBoolean2.mjs +12 -20
- package/lib/internal/_httpParameterReadBoolean2.mjs.map +1 -1
- package/lib/internal/_httpParameterReadNumber.mjs +2 -7
- package/lib/internal/_httpParameterReadNumber.mjs.map +1 -1
- package/lib/internal/_httpParameterReadNumber2.mjs +10 -18
- package/lib/internal/_httpParameterReadNumber2.mjs.map +1 -1
- package/lib/internal/_httpParameterReadString.mjs +2 -7
- package/lib/internal/_httpParameterReadString.mjs.map +1 -1
- package/lib/internal/_httpParameterReadString2.mjs +6 -14
- package/lib/internal/_httpParameterReadString2.mjs.map +1 -1
- package/lib/internal/_httpQueryParseURLSearchParams.mjs +2 -7
- package/lib/internal/_httpQueryParseURLSearchParams.mjs.map +1 -1
- package/lib/internal/_httpQueryParseURLSearchParams2.mjs +13 -21
- package/lib/internal/_httpQueryParseURLSearchParams2.mjs.map +1 -1
- package/lib/internal/_httpQueryReadArray.mjs +2 -7
- package/lib/internal/_httpQueryReadArray.mjs.map +1 -1
- package/lib/internal/_httpQueryReadArray2.mjs +6 -14
- package/lib/internal/_httpQueryReadArray2.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBigint.mjs +2 -7
- package/lib/internal/_httpQueryReadBigint.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBigint2.mjs +14 -22
- package/lib/internal/_httpQueryReadBigint2.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBoolean.mjs +2 -7
- package/lib/internal/_httpQueryReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBoolean2.mjs +16 -24
- package/lib/internal/_httpQueryReadBoolean2.mjs.map +1 -1
- package/lib/internal/_httpQueryReadNumber.mjs +2 -7
- package/lib/internal/_httpQueryReadNumber.mjs.map +1 -1
- package/lib/internal/_httpQueryReadNumber2.mjs +10 -18
- package/lib/internal/_httpQueryReadNumber2.mjs.map +1 -1
- package/lib/internal/_httpQueryReadString.mjs +2 -7
- package/lib/internal/_httpQueryReadString.mjs.map +1 -1
- package/lib/internal/_httpQueryReadString2.mjs +6 -14
- package/lib/internal/_httpQueryReadString2.mjs.map +1 -1
- package/lib/internal/_isBetween.mjs +2 -7
- package/lib/internal/_isBetween.mjs.map +1 -1
- package/lib/internal/_isBetween2.mjs +6 -14
- package/lib/internal/_isBetween2.mjs.map +1 -1
- package/lib/internal/_isBigintString.mjs +2 -7
- package/lib/internal/_isBigintString.mjs.map +1 -1
- package/lib/internal/_isBigintString2.mjs +14 -22
- package/lib/internal/_isBigintString2.mjs.map +1 -1
- package/lib/internal/_isFormatByte.mjs +2 -7
- package/lib/internal/_isFormatByte.mjs.map +1 -1
- package/lib/internal/_isFormatByte2.mjs +10 -18
- package/lib/internal/_isFormatByte2.mjs.map +1 -1
- package/lib/internal/_isFormatDate.mjs +2 -7
- package/lib/internal/_isFormatDate.mjs.map +1 -1
- package/lib/internal/_isFormatDate2.mjs +7 -15
- package/lib/internal/_isFormatDate2.mjs.map +1 -1
- package/lib/internal/_isFormatDateTime.mjs +2 -7
- package/lib/internal/_isFormatDateTime.mjs.map +1 -1
- package/lib/internal/_isFormatDateTime2.mjs +7 -15
- package/lib/internal/_isFormatDateTime2.mjs.map +1 -1
- package/lib/internal/_isFormatDuration.mjs +2 -7
- package/lib/internal/_isFormatDuration.mjs.map +1 -1
- package/lib/internal/_isFormatDuration2.mjs +7 -15
- package/lib/internal/_isFormatDuration2.mjs.map +1 -1
- package/lib/internal/_isFormatEmail.mjs +2 -7
- package/lib/internal/_isFormatEmail.mjs.map +1 -1
- package/lib/internal/_isFormatEmail2.mjs +7 -15
- package/lib/internal/_isFormatEmail2.mjs.map +1 -1
- package/lib/internal/_isFormatHostname.mjs +2 -7
- package/lib/internal/_isFormatHostname.mjs.map +1 -1
- package/lib/internal/_isFormatHostname2.mjs +7 -15
- package/lib/internal/_isFormatHostname2.mjs.map +1 -1
- package/lib/internal/_isFormatIdnEmail.mjs +2 -7
- package/lib/internal/_isFormatIdnEmail.mjs.map +1 -1
- package/lib/internal/_isFormatIdnEmail2.mjs +7 -15
- package/lib/internal/_isFormatIdnEmail2.mjs.map +1 -1
- package/lib/internal/_isFormatIdnHostname.mjs +2 -7
- package/lib/internal/_isFormatIdnHostname.mjs.map +1 -1
- package/lib/internal/_isFormatIdnHostname2.mjs +7 -15
- package/lib/internal/_isFormatIdnHostname2.mjs.map +1 -1
- package/lib/internal/_isFormatIpv4.mjs +2 -7
- package/lib/internal/_isFormatIpv4.mjs.map +1 -1
- package/lib/internal/_isFormatIpv42.mjs +7 -15
- package/lib/internal/_isFormatIpv42.mjs.map +1 -1
- package/lib/internal/_isFormatIpv6.mjs +2 -7
- package/lib/internal/_isFormatIpv6.mjs.map +1 -1
- package/lib/internal/_isFormatIpv62.mjs +7 -15
- package/lib/internal/_isFormatIpv62.mjs.map +1 -1
- package/lib/internal/_isFormatIri.mjs +2 -7
- package/lib/internal/_isFormatIri.mjs.map +1 -1
- package/lib/internal/_isFormatIri2.mjs +7 -15
- package/lib/internal/_isFormatIri2.mjs.map +1 -1
- package/lib/internal/_isFormatIriReference.mjs +2 -7
- package/lib/internal/_isFormatIriReference.mjs.map +1 -1
- package/lib/internal/_isFormatIriReference2.mjs +7 -15
- package/lib/internal/_isFormatIriReference2.mjs.map +1 -1
- package/lib/internal/_isFormatJsonPointer.mjs +2 -7
- package/lib/internal/_isFormatJsonPointer.mjs.map +1 -1
- package/lib/internal/_isFormatJsonPointer2.mjs +7 -15
- package/lib/internal/_isFormatJsonPointer2.mjs.map +1 -1
- package/lib/internal/_isFormatPassword.mjs +2 -7
- package/lib/internal/_isFormatPassword.mjs.map +1 -1
- package/lib/internal/_isFormatPassword2.mjs +6 -14
- package/lib/internal/_isFormatPassword2.mjs.map +1 -1
- package/lib/internal/_isFormatRegex.mjs +2 -7
- package/lib/internal/_isFormatRegex.mjs.map +1 -1
- package/lib/internal/_isFormatRegex2.mjs +14 -22
- package/lib/internal/_isFormatRegex2.mjs.map +1 -1
- package/lib/internal/_isFormatRelativeJsonPointer.mjs +2 -7
- package/lib/internal/_isFormatRelativeJsonPointer.mjs.map +1 -1
- package/lib/internal/_isFormatRelativeJsonPointer2.mjs +7 -15
- package/lib/internal/_isFormatRelativeJsonPointer2.mjs.map +1 -1
- package/lib/internal/_isFormatTime.mjs +2 -7
- package/lib/internal/_isFormatTime.mjs.map +1 -1
- package/lib/internal/_isFormatTime2.mjs +7 -15
- package/lib/internal/_isFormatTime2.mjs.map +1 -1
- package/lib/internal/_isFormatUri.mjs +2 -7
- package/lib/internal/_isFormatUri.mjs.map +1 -1
- package/lib/internal/_isFormatUri2.mjs +8 -16
- package/lib/internal/_isFormatUri2.mjs.map +1 -1
- package/lib/internal/_isFormatUriReference.mjs +2 -7
- package/lib/internal/_isFormatUriReference.mjs.map +1 -1
- package/lib/internal/_isFormatUriReference2.mjs +7 -15
- package/lib/internal/_isFormatUriReference2.mjs.map +1 -1
- package/lib/internal/_isFormatUriTemplate.mjs +2 -7
- package/lib/internal/_isFormatUriTemplate.mjs.map +1 -1
- package/lib/internal/_isFormatUriTemplate2.mjs +7 -15
- package/lib/internal/_isFormatUriTemplate2.mjs.map +1 -1
- package/lib/internal/_isFormatUrl.mjs +2 -7
- package/lib/internal/_isFormatUrl.mjs.map +1 -1
- package/lib/internal/_isFormatUrl2.mjs +7 -15
- package/lib/internal/_isFormatUrl2.mjs.map +1 -1
- package/lib/internal/_isFormatUuid.mjs +2 -7
- package/lib/internal/_isFormatUuid.mjs.map +1 -1
- package/lib/internal/_isFormatUuid2.mjs +7 -15
- package/lib/internal/_isFormatUuid2.mjs.map +1 -1
- package/lib/internal/_isTypeFloat.mjs +2 -7
- package/lib/internal/_isTypeFloat.mjs.map +1 -1
- package/lib/internal/_isTypeFloat2.mjs +8 -16
- package/lib/internal/_isTypeFloat2.mjs.map +1 -1
- package/lib/internal/_isTypeInt32.mjs +2 -7
- package/lib/internal/_isTypeInt32.mjs.map +1 -1
- package/lib/internal/_isTypeInt322.mjs +8 -16
- package/lib/internal/_isTypeInt322.mjs.map +1 -1
- package/lib/internal/_isTypeInt64.mjs +2 -7
- package/lib/internal/_isTypeInt64.mjs.map +1 -1
- package/lib/internal/_isTypeInt642.mjs +8 -16
- package/lib/internal/_isTypeInt642.mjs.map +1 -1
- package/lib/internal/_isTypeUint32.mjs +2 -7
- package/lib/internal/_isTypeUint32.mjs.map +1 -1
- package/lib/internal/_isTypeUint322.mjs +8 -16
- package/lib/internal/_isTypeUint322.mjs.map +1 -1
- package/lib/internal/_isTypeUint64.mjs +2 -7
- package/lib/internal/_isTypeUint64.mjs.map +1 -1
- package/lib/internal/_isTypeUint642.mjs +8 -16
- package/lib/internal/_isTypeUint642.mjs.map +1 -1
- package/lib/internal/_isUniqueItems.mjs +2 -7
- package/lib/internal/_isUniqueItems.mjs.map +1 -1
- package/lib/internal/_isUniqueItems2.mjs +140 -148
- package/lib/internal/_isUniqueItems2.mjs.map +1 -1
- package/lib/internal/_jsonStringifyNumber.mjs +2 -7
- package/lib/internal/_jsonStringifyNumber.mjs.map +1 -1
- package/lib/internal/_jsonStringifyNumber2.mjs +6 -14
- package/lib/internal/_jsonStringifyNumber2.mjs.map +1 -1
- package/lib/internal/_jsonStringifyRest.mjs +2 -7
- package/lib/internal/_jsonStringifyRest.mjs.map +1 -1
- package/lib/internal/_jsonStringifyRest2.mjs +8 -16
- package/lib/internal/_jsonStringifyRest2.mjs.map +1 -1
- package/lib/internal/_jsonStringifyString.mjs +2 -7
- package/lib/internal/_jsonStringifyString.mjs.map +1 -1
- package/lib/internal/_jsonStringifyString2.mjs +42 -50
- package/lib/internal/_jsonStringifyString2.mjs.map +1 -1
- package/lib/internal/_jsonStringifyTail.mjs +2 -7
- package/lib/internal/_jsonStringifyTail.mjs.map +1 -1
- package/lib/internal/_jsonStringifyTail2.mjs +6 -14
- package/lib/internal/_jsonStringifyTail2.mjs.map +1 -1
- package/lib/internal/_llmApplicationFinalize.mjs +2 -7
- package/lib/internal/_llmApplicationFinalize.mjs.map +1 -1
- package/lib/internal/_llmApplicationFinalize2.mjs +7 -15
- package/lib/internal/_llmApplicationFinalize2.mjs.map +1 -1
- package/lib/internal/_miscCloneAny.mjs +2 -7
- package/lib/internal/_miscCloneAny.mjs.map +1 -1
- package/lib/internal/_miscCloneAny2.mjs +64 -72
- package/lib/internal/_miscCloneAny2.mjs.map +1 -1
- package/lib/internal/_notationAny.mjs +2 -7
- package/lib/internal/_notationAny.mjs.map +1 -1
- package/lib/internal/_notationAny2.mjs +39 -47
- package/lib/internal/_notationAny2.mjs.map +1 -1
- package/lib/internal/_notationCamel.mjs +2 -7
- package/lib/internal/_notationCamel.mjs.map +1 -1
- package/lib/internal/_notationCamel2.mjs +17 -23
- package/lib/internal/_notationCamel2.mjs.map +1 -1
- package/lib/internal/_notationPascal.mjs +2 -7
- package/lib/internal/_notationPascal.mjs.map +1 -1
- package/lib/internal/_notationPascal2.mjs +13 -19
- package/lib/internal/_notationPascal2.mjs.map +1 -1
- package/lib/internal/_notationSnake.mjs +2 -7
- package/lib/internal/_notationSnake.mjs.map +1 -1
- package/lib/internal/_notationSnake2.mjs +51 -59
- package/lib/internal/_notationSnake2.mjs.map +1 -1
- package/lib/internal/_parseLlmArguments.mjs +2 -7
- package/lib/internal/_parseLlmArguments.mjs.map +1 -1
- package/lib/internal/_parseLlmArguments2.mjs +7 -15
- package/lib/internal/_parseLlmArguments2.mjs.map +1 -1
- package/lib/internal/_randomArray.mjs +2 -7
- package/lib/internal/_randomArray.mjs.map +1 -1
- package/lib/internal/_randomArray2.mjs +22 -29
- package/lib/internal/_randomArray2.mjs.map +1 -1
- package/lib/internal/_randomBigint.mjs +2 -7
- package/lib/internal/_randomBigint.mjs.map +1 -1
- package/lib/internal/_randomBigint2.mjs +9 -16
- package/lib/internal/_randomBigint2.mjs.map +1 -1
- package/lib/internal/_randomBoolean.mjs +2 -7
- package/lib/internal/_randomBoolean.mjs.map +1 -1
- package/lib/internal/_randomBoolean2.mjs +6 -14
- package/lib/internal/_randomBoolean2.mjs.map +1 -1
- package/lib/internal/_randomFormatByte.mjs +2 -7
- package/lib/internal/_randomFormatByte.mjs.map +1 -1
- package/lib/internal/_randomFormatByte2.mjs +7 -15
- package/lib/internal/_randomFormatByte2.mjs.map +1 -1
- package/lib/internal/_randomFormatDate.mjs +2 -7
- package/lib/internal/_randomFormatDate.mjs.map +1 -1
- package/lib/internal/_randomFormatDate2.mjs +17 -24
- package/lib/internal/_randomFormatDate2.mjs.map +1 -1
- package/lib/internal/_randomFormatDatetime.mjs +2 -7
- package/lib/internal/_randomFormatDatetime.mjs.map +1 -1
- package/lib/internal/_randomFormatDatetime2.mjs +15 -22
- package/lib/internal/_randomFormatDatetime2.mjs.map +1 -1
- package/lib/internal/_randomFormatDuration.mjs +2 -7
- package/lib/internal/_randomFormatDuration.mjs.map +1 -1
- package/lib/internal/_randomFormatDuration2.mjs +32 -39
- package/lib/internal/_randomFormatDuration2.mjs.map +1 -1
- package/lib/internal/_randomFormatEmail.mjs +2 -7
- package/lib/internal/_randomFormatEmail.mjs.map +1 -1
- package/lib/internal/_randomFormatEmail2.mjs +14 -21
- package/lib/internal/_randomFormatEmail2.mjs.map +1 -1
- package/lib/internal/_randomFormatHostname.mjs +2 -7
- package/lib/internal/_randomFormatHostname.mjs.map +1 -1
- package/lib/internal/_randomFormatHostname2.mjs +10 -17
- package/lib/internal/_randomFormatHostname2.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnEmail.mjs +2 -7
- package/lib/internal/_randomFormatIdnEmail.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnEmail2.mjs +9 -16
- package/lib/internal/_randomFormatIdnEmail2.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnHostname.mjs +2 -7
- package/lib/internal/_randomFormatIdnHostname.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnHostname2.mjs +9 -16
- package/lib/internal/_randomFormatIdnHostname2.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv4.mjs +2 -7
- package/lib/internal/_randomFormatIpv4.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv42.mjs +14 -21
- package/lib/internal/_randomFormatIpv42.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv6.mjs +2 -7
- package/lib/internal/_randomFormatIpv6.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv62.mjs +14 -21
- package/lib/internal/_randomFormatIpv62.mjs.map +1 -1
- package/lib/internal/_randomFormatIri.mjs +2 -7
- package/lib/internal/_randomFormatIri.mjs.map +1 -1
- package/lib/internal/_randomFormatIri2.mjs +9 -16
- package/lib/internal/_randomFormatIri2.mjs.map +1 -1
- package/lib/internal/_randomFormatIriReference.mjs +2 -7
- package/lib/internal/_randomFormatIriReference.mjs.map +1 -1
- package/lib/internal/_randomFormatIriReference2.mjs +9 -16
- package/lib/internal/_randomFormatIriReference2.mjs.map +1 -1
- package/lib/internal/_randomFormatJsonPointer.mjs +2 -7
- package/lib/internal/_randomFormatJsonPointer.mjs.map +1 -1
- package/lib/internal/_randomFormatJsonPointer2.mjs +10 -17
- package/lib/internal/_randomFormatJsonPointer2.mjs.map +1 -1
- package/lib/internal/_randomFormatPassword.mjs +2 -7
- package/lib/internal/_randomFormatPassword.mjs.map +1 -1
- package/lib/internal/_randomFormatPassword2.mjs +13 -20
- package/lib/internal/_randomFormatPassword2.mjs.map +1 -1
- package/lib/internal/_randomFormatRegex.mjs +2 -7
- package/lib/internal/_randomFormatRegex.mjs.map +1 -1
- package/lib/internal/_randomFormatRegex2.mjs +7 -15
- package/lib/internal/_randomFormatRegex2.mjs.map +1 -1
- package/lib/internal/_randomFormatRelativeJsonPointer.mjs +2 -7
- package/lib/internal/_randomFormatRelativeJsonPointer.mjs.map +1 -1
- package/lib/internal/_randomFormatRelativeJsonPointer2.mjs +13 -20
- package/lib/internal/_randomFormatRelativeJsonPointer2.mjs.map +1 -1
- package/lib/internal/_randomFormatTime.mjs +2 -7
- package/lib/internal/_randomFormatTime.mjs.map +1 -1
- package/lib/internal/_randomFormatTime2.mjs +16 -23
- package/lib/internal/_randomFormatTime2.mjs.map +1 -1
- package/lib/internal/_randomFormatUri.mjs +2 -7
- package/lib/internal/_randomFormatUri.mjs.map +1 -1
- package/lib/internal/_randomFormatUri2.mjs +9 -16
- package/lib/internal/_randomFormatUri2.mjs.map +1 -1
- package/lib/internal/_randomFormatUriReference.mjs +2 -7
- package/lib/internal/_randomFormatUriReference.mjs.map +1 -1
- package/lib/internal/_randomFormatUriReference2.mjs +9 -16
- package/lib/internal/_randomFormatUriReference2.mjs.map +1 -1
- package/lib/internal/_randomFormatUriTemplate.mjs +2 -7
- package/lib/internal/_randomFormatUriTemplate.mjs.map +1 -1
- package/lib/internal/_randomFormatUriTemplate2.mjs +9 -16
- package/lib/internal/_randomFormatUriTemplate2.mjs.map +1 -1
- package/lib/internal/_randomFormatUrl.mjs +2 -7
- package/lib/internal/_randomFormatUrl.mjs.map +1 -1
- package/lib/internal/_randomFormatUrl2.mjs +14 -21
- package/lib/internal/_randomFormatUrl2.mjs.map +1 -1
- package/lib/internal/_randomFormatUuid.mjs +2 -7
- package/lib/internal/_randomFormatUuid.mjs.map +1 -1
- package/lib/internal/_randomFormatUuid2.mjs +10 -18
- package/lib/internal/_randomFormatUuid2.mjs.map +1 -1
- package/lib/internal/_randomInteger.js.map +1 -1
- package/lib/internal/_randomInteger.mjs +2 -7
- package/lib/internal/_randomInteger.mjs.map +1 -1
- package/lib/internal/_randomInteger2.mjs +44 -52
- package/lib/internal/_randomInteger2.mjs.map +1 -1
- package/lib/internal/_randomNumber.mjs +2 -7
- package/lib/internal/_randomNumber.mjs.map +1 -1
- package/lib/internal/_randomNumber2.mjs +63 -71
- package/lib/internal/_randomNumber2.mjs.map +1 -1
- package/lib/internal/_randomPattern.mjs +2 -7
- package/lib/internal/_randomPattern.mjs.map +1 -1
- package/lib/internal/_randomPattern2.mjs +18 -26
- package/lib/internal/_randomPattern2.mjs.map +1 -1
- package/lib/internal/_randomPick.mjs +2 -7
- package/lib/internal/_randomPick.mjs.map +1 -1
- package/lib/internal/_randomPick2.mjs +14 -21
- package/lib/internal/_randomPick2.mjs.map +1 -1
- package/lib/internal/_randomString.mjs +2 -7
- package/lib/internal/_randomString.mjs.map +1 -1
- package/lib/internal/_randomString2.mjs +26 -33
- package/lib/internal/_randomString2.mjs.map +1 -1
- package/lib/internal/_throwTypeGuardError.mjs +2 -7
- package/lib/internal/_throwTypeGuardError.mjs.map +1 -1
- package/lib/internal/_throwTypeGuardError2.mjs +11 -18
- package/lib/internal/_throwTypeGuardError2.mjs.map +1 -1
- package/lib/internal/_validateReport.js.map +1 -1
- package/lib/internal/_validateReport.mjs +2 -7
- package/lib/internal/_validateReport.mjs.map +1 -1
- package/lib/internal/_validateReport2.mjs +26 -34
- package/lib/internal/_validateReport2.mjs.map +1 -1
- package/lib/internal/private/__notationCapitalize.mjs +2 -7
- package/lib/internal/private/__notationCapitalize.mjs.map +1 -1
- package/lib/internal/private/__notationCapitalize2.mjs +6 -14
- package/lib/internal/private/__notationCapitalize2.mjs.map +1 -1
- package/lib/internal/private/__notationUnsnake.mjs +2 -7
- package/lib/internal/private/__notationUnsnake.mjs.map +1 -1
- package/lib/internal/private/__notationUnsnake2.mjs +26 -34
- package/lib/internal/private/__notationUnsnake2.mjs.map +1 -1
- package/lib/json.mjs +2 -7
- package/lib/json.mjs.map +1 -1
- package/lib/json2.mjs +89 -96
- package/lib/json2.mjs.map +1 -1
- package/lib/llm.d.ts +1 -1
- package/lib/llm.mjs +2 -7
- package/lib/llm.mjs.map +1 -1
- package/lib/llm2.mjs +49 -56
- package/lib/llm2.mjs.map +1 -1
- package/lib/misc.mjs +2 -7
- package/lib/misc.mjs.map +1 -1
- package/lib/misc2.mjs +89 -96
- package/lib/misc2.mjs.map +1 -1
- package/lib/module.mjs +1 -7
- package/lib/module.mjs.map +1 -1
- package/lib/module2.mjs +168 -161
- package/lib/module2.mjs.map +1 -1
- package/lib/notations.mjs +2 -7
- package/lib/notations.mjs.map +1 -1
- package/lib/notations2.mjs +124 -131
- package/lib/notations2.mjs.map +1 -1
- package/lib/protobuf.mjs +2 -7
- package/lib/protobuf.mjs.map +1 -1
- package/lib/protobuf2.mjs +89 -96
- package/lib/protobuf2.mjs.map +1 -1
- package/lib/re-exports.mjs +1 -7
- package/lib/re-exports.mjs.map +1 -1
- package/lib/re-exports2.mjs +12 -16
- package/lib/re-exports2.mjs.map +1 -1
- package/lib/reflect.mjs +2 -7
- package/lib/reflect.mjs.map +1 -1
- package/lib/reflect2.mjs +19 -26
- package/lib/reflect2.mjs.map +1 -1
- package/lib/transform.d.ts +6 -3
- package/lib/transform.js +5 -10
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +1 -7
- package/lib/transform.mjs.map +1 -1
- package/lib/transform2.mjs +59 -72
- package/lib/transform2.mjs.map +1 -1
- package/lib/transformers/NoTransformConfigurationError.mjs +2 -7
- package/lib/transformers/NoTransformConfigurationError.mjs.map +1 -1
- package/lib/transformers/NoTransformConfigurationError2.mjs +17 -25
- package/lib/transformers/NoTransformConfigurationError2.mjs.map +1 -1
- package/native/adapter/adapter.go +168 -0
- package/native/adapter/cleanup.go +218 -0
- package/native/adapter/imports.go +91 -0
- package/native/adapter/visit.go +168 -0
- package/native/cmd/ttsc-typia/build.go +252 -0
- package/native/cmd/ttsc-typia/main.go +95 -0
- package/native/cmd/ttsc-typia/transform.go +290 -0
- package/native/core/context/IProgrammerProps.go +14 -0
- package/native/core/context/ITransformOptions.go +9 -0
- package/native/core/context/ITypiaContext.go +23 -0
- package/native/core/context/TransformerError.go +117 -0
- package/native/core/context/index.go +1 -0
- package/native/core/factories/CommentFactory.go +27 -0
- package/native/core/factories/ExpressionFactory.go +334 -0
- package/native/core/factories/FormatCheatSheet.go +30 -0
- package/native/core/factories/IdentifierFactory.go +163 -0
- package/native/core/factories/JsonMetadataFactory.go +162 -0
- package/native/core/factories/LiteralFactory.go +221 -0
- package/native/core/factories/MetadataCommentTagFactory.go +433 -0
- package/native/core/factories/MetadataFactory.go +529 -0
- package/native/core/factories/MetadataTypeTagFactory.go +560 -0
- package/native/core/factories/MetadataTypeTagSchemaFactory.go +117 -0
- package/native/core/factories/NumericRangeFactory.go +120 -0
- package/native/core/factories/ProtobufFactory.go +1068 -0
- package/native/core/factories/StatementFactory.go +105 -0
- package/native/core/factories/TemplateFactory.go +77 -0
- package/native/core/factories/TypeFactory.go +163 -0
- package/native/core/factories/ValueFactory.go +36 -0
- package/native/core/factories/index.go +1 -0
- package/native/core/factories/internal/metadata/IMetadataIteratorProps.go +56 -0
- package/native/core/factories/internal/metadata/MetadataHelper.go +225 -0
- package/native/core/factories/internal/metadata/emend_metadata_atomics.go +80 -0
- package/native/core/factories/internal/metadata/emplace_metadata_alias.go +34 -0
- package/native/core/factories/internal/metadata/emplace_metadata_array_type.go +44 -0
- package/native/core/factories/internal/metadata/emplace_metadata_object.go +231 -0
- package/native/core/factories/internal/metadata/emplace_metadata_tuple.go +58 -0
- package/native/core/factories/internal/metadata/explore_metadata.go +39 -0
- package/native/core/factories/internal/metadata/iterate_metadata.go +55 -0
- package/native/core/factories/internal/metadata/iterate_metadata_alias.go +36 -0
- package/native/core/factories/internal/metadata/iterate_metadata_array.go +77 -0
- package/native/core/factories/internal/metadata/iterate_metadata_atomic.go +63 -0
- package/native/core/factories/internal/metadata/iterate_metadata_coalesce.go +30 -0
- package/native/core/factories/internal/metadata/iterate_metadata_collection.go +247 -0
- package/native/core/factories/internal/metadata/iterate_metadata_comment_tags.go +20 -0
- package/native/core/factories/internal/metadata/iterate_metadata_constant.go +86 -0
- package/native/core/factories/internal/metadata/iterate_metadata_escape.go +56 -0
- package/native/core/factories/internal/metadata/iterate_metadata_function.go +93 -0
- package/native/core/factories/internal/metadata/iterate_metadata_intersection.go +340 -0
- package/native/core/factories/internal/metadata/iterate_metadata_map.go +60 -0
- package/native/core/factories/internal/metadata/iterate_metadata_native.go +117 -0
- package/native/core/factories/internal/metadata/iterate_metadata_object.go +35 -0
- package/native/core/factories/internal/metadata/iterate_metadata_set.go +46 -0
- package/native/core/factories/internal/metadata/iterate_metadata_sort.go +157 -0
- package/native/core/factories/internal/metadata/iterate_metadata_template.go +41 -0
- package/native/core/factories/internal/metadata/iterate_metadata_tuple.go +24 -0
- package/native/core/factories/internal/metadata/iterate_metadata_union.go +22 -0
- package/native/core/index.go +1 -0
- package/native/core/programmers/AssertProgrammer.go +483 -0
- package/native/core/programmers/ImportProgrammer.go +252 -0
- package/native/core/programmers/IsProgrammer.go +370 -0
- package/native/core/programmers/RandomProgrammer.go +1271 -0
- package/native/core/programmers/ValidateProgrammer.go +457 -0
- package/native/core/programmers/functional/FunctionalAssertFunctionProgrammer.go +169 -0
- package/native/core/programmers/functional/FunctionalAssertParametersProgrammer.go +130 -0
- package/native/core/programmers/functional/FunctionalAssertReturnProgrammer.go +126 -0
- package/native/core/programmers/functional/FunctionalIsFunctionProgrammer.go +100 -0
- package/native/core/programmers/functional/FunctionalIsParametersProgrammer.go +214 -0
- package/native/core/programmers/functional/FunctionalIsReturnProgrammer.go +125 -0
- package/native/core/programmers/functional/FunctionalValidateFunctionProgrammer.go +168 -0
- package/native/core/programmers/functional/FunctionalValidateParametersProgrammer.go +248 -0
- package/native/core/programmers/functional/FunctionalValidateReturnProgrammer.go +142 -0
- package/native/core/programmers/functional/index.go +1 -0
- package/native/core/programmers/functional/internal/FunctionalGeneralProgrammer.go +53 -0
- package/native/core/programmers/helpers/AtomicPredicator.go +62 -0
- package/native/core/programmers/helpers/CloneJoiner.go +261 -0
- package/native/core/programmers/helpers/FunctionProgrammer.go +116 -0
- package/native/core/programmers/helpers/HttpMetadataUtil.go +30 -0
- package/native/core/programmers/helpers/ICheckEntry.go +14 -0
- package/native/core/programmers/helpers/IExpressionEntry.go +13 -0
- package/native/core/programmers/helpers/NotationJoiner.go +194 -0
- package/native/core/programmers/helpers/OptionPredicator.go +23 -0
- package/native/core/programmers/helpers/ProtobufUtil.go +297 -0
- package/native/core/programmers/helpers/ProtobufWire.go +14 -0
- package/native/core/programmers/helpers/PruneJoiner.go +274 -0
- package/native/core/programmers/helpers/RandomJoiner.go +193 -0
- package/native/core/programmers/helpers/StringifyJoinder.go +394 -0
- package/native/core/programmers/helpers/StringifyPredicator.go +25 -0
- package/native/core/programmers/helpers/UnionExplorer.go +939 -0
- package/native/core/programmers/helpers/UnionPredicator.go +95 -0
- package/native/core/programmers/helpers/disable_function_programmer_declare.go +10 -0
- package/native/core/programmers/http/HttpAssertFormDataProgrammer.go +115 -0
- package/native/core/programmers/http/HttpAssertHeadersProgrammer.go +59 -0
- package/native/core/programmers/http/HttpAssertQueryProgrammer.go +71 -0
- package/native/core/programmers/http/HttpFormDataProgrammer.go +414 -0
- package/native/core/programmers/http/HttpHeadersProgrammer.go +418 -0
- package/native/core/programmers/http/HttpIsFormDataProgrammer.go +140 -0
- package/native/core/programmers/http/HttpIsHeadersProgrammer.go +53 -0
- package/native/core/programmers/http/HttpIsQueryProgrammer.go +65 -0
- package/native/core/programmers/http/HttpParameterProgrammer.go +193 -0
- package/native/core/programmers/http/HttpQueryProgrammer.go +475 -0
- package/native/core/programmers/http/HttpValidateFormDataProgrammer.go +109 -0
- package/native/core/programmers/http/HttpValidateHeadersProgrammer.go +56 -0
- package/native/core/programmers/http/HttpValidateQueryProgrammer.go +68 -0
- package/native/core/programmers/http/index.go +1 -0
- package/native/core/programmers/index.go +1 -0
- package/native/core/programmers/internal/CheckerProgrammer.go +1695 -0
- package/native/core/programmers/internal/FeatureProgrammer.go +749 -0
- package/native/core/programmers/iterate/check_array_length.go +65 -0
- package/native/core/programmers/iterate/check_bigint.go +73 -0
- package/native/core/programmers/iterate/check_dynamic_key.go +257 -0
- package/native/core/programmers/iterate/check_dynamic_properties.go +283 -0
- package/native/core/programmers/iterate/check_everything.go +30 -0
- package/native/core/programmers/iterate/check_native.go +41 -0
- package/native/core/programmers/iterate/check_number.go +169 -0
- package/native/core/programmers/iterate/check_object.go +89 -0
- package/native/core/programmers/iterate/check_string.go +73 -0
- package/native/core/programmers/iterate/check_template.go +73 -0
- package/native/core/programmers/iterate/check_union_array_like.go +416 -0
- package/native/core/programmers/iterate/decode_union_object.go +150 -0
- package/native/core/programmers/iterate/feature_object_entries.go +172 -0
- package/native/core/programmers/iterate/json_schema_alias.go +61 -0
- package/native/core/programmers/iterate/json_schema_array.go +65 -0
- package/native/core/programmers/iterate/json_schema_bigint.go +17 -0
- package/native/core/programmers/iterate/json_schema_boolean.go +17 -0
- package/native/core/programmers/iterate/json_schema_constant.go +53 -0
- package/native/core/programmers/iterate/json_schema_description.go +21 -0
- package/native/core/programmers/iterate/json_schema_discriminator.go +57 -0
- package/native/core/programmers/iterate/json_schema_escaped.go +68 -0
- package/native/core/programmers/iterate/json_schema_jsDocTags.go +48 -0
- package/native/core/programmers/iterate/json_schema_native.go +59 -0
- package/native/core/programmers/iterate/json_schema_number.go +17 -0
- package/native/core/programmers/iterate/json_schema_object.go +179 -0
- package/native/core/programmers/iterate/json_schema_plugin.go +47 -0
- package/native/core/programmers/iterate/json_schema_station.go +251 -0
- package/native/core/programmers/iterate/json_schema_string.go +17 -0
- package/native/core/programmers/iterate/json_schema_template.go +63 -0
- package/native/core/programmers/iterate/json_schema_title.go +25 -0
- package/native/core/programmers/iterate/json_schema_tuple.go +41 -0
- package/native/core/programmers/iterate/metadata_to_pattern.go +64 -0
- package/native/core/programmers/iterate/postfix_of_tuple.go +12 -0
- package/native/core/programmers/iterate/prune_object_properties.go +101 -0
- package/native/core/programmers/iterate/stringify_dynamic_properties.go +212 -0
- package/native/core/programmers/iterate/stringify_native.go +9 -0
- package/native/core/programmers/iterate/stringify_regular_properties.go +108 -0
- package/native/core/programmers/iterate/template_to_pattern.go +29 -0
- package/native/core/programmers/iterate/wrap_metadata_rest_tuple.go +22 -0
- package/native/core/programmers/json/JsonApplicationProgrammer.go +374 -0
- package/native/core/programmers/json/JsonAssertParseProgrammer.go +118 -0
- package/native/core/programmers/json/JsonAssertStringifyProgrammer.go +107 -0
- package/native/core/programmers/json/JsonIsParseProgrammer.go +165 -0
- package/native/core/programmers/json/JsonIsStringifyProgrammer.go +113 -0
- package/native/core/programmers/json/JsonSchemaProgrammer.go +94 -0
- package/native/core/programmers/json/JsonSchemasProgrammer.go +148 -0
- package/native/core/programmers/json/JsonStringifyProgrammer.go +1423 -0
- package/native/core/programmers/json/JsonValidateParseProgrammer.go +107 -0
- package/native/core/programmers/json/JsonValidateStringifyProgrammer.go +125 -0
- package/native/core/programmers/json/index.go +1 -0
- package/native/core/programmers/llm/LlmApplicationProgrammer.go +500 -0
- package/native/core/programmers/llm/LlmCoerceProgrammer.go +108 -0
- package/native/core/programmers/llm/LlmControllerProgrammer.go +51 -0
- package/native/core/programmers/llm/LlmMetadataFactory.go +90 -0
- package/native/core/programmers/llm/LlmParametersProgrammer.go +168 -0
- package/native/core/programmers/llm/LlmParseProgrammer.go +120 -0
- package/native/core/programmers/llm/LlmSchemaProgrammer.go +474 -0
- package/native/core/programmers/llm/LlmStructuredOutputProgrammer.go +146 -0
- package/native/core/programmers/llm/index.go +1 -0
- package/native/core/programmers/misc/MiscAssertCloneProgrammer.go +101 -0
- package/native/core/programmers/misc/MiscAssertPruneProgrammer.go +116 -0
- package/native/core/programmers/misc/MiscCloneProgrammer.go +1206 -0
- package/native/core/programmers/misc/MiscIsCloneProgrammer.go +116 -0
- package/native/core/programmers/misc/MiscIsPruneProgrammer.go +105 -0
- package/native/core/programmers/misc/MiscLiteralsProgrammer.go +125 -0
- package/native/core/programmers/misc/MiscPruneProgrammer.go +798 -0
- package/native/core/programmers/misc/MiscValidateCloneProgrammer.go +122 -0
- package/native/core/programmers/misc/MiscValidatePruneProgrammer.go +113 -0
- package/native/core/programmers/misc/index.go +1 -0
- package/native/core/programmers/notations/NotationAssertGeneralProgrammer.go +106 -0
- package/native/core/programmers/notations/NotationGeneralProgrammer.go +1381 -0
- package/native/core/programmers/notations/NotationIsGeneralProgrammer.go +111 -0
- package/native/core/programmers/notations/NotationValidateGeneralProgrammer.go +130 -0
- package/native/core/programmers/notations/index.go +1 -0
- package/native/core/programmers/protobuf/ProtobufAssertDecodeProgrammer.go +124 -0
- package/native/core/programmers/protobuf/ProtobufAssertEncodeProgrammer.go +145 -0
- package/native/core/programmers/protobuf/ProtobufDecodeProgrammer.go +845 -0
- package/native/core/programmers/protobuf/ProtobufEncodeProgrammer.go +1207 -0
- package/native/core/programmers/protobuf/ProtobufIsDecodeProgrammer.go +121 -0
- package/native/core/programmers/protobuf/ProtobufIsEncodeProgrammer.go +115 -0
- package/native/core/programmers/protobuf/ProtobufMessageProgrammer.go +273 -0
- package/native/core/programmers/protobuf/ProtobufValidateDecodeProgrammer.go +110 -0
- package/native/core/programmers/protobuf/ProtobufValidateEncodeProgrammer.go +145 -0
- package/native/core/programmers/protobuf/index.go +1 -0
- package/native/core/schemas/index.go +1 -0
- package/native/core/schemas/metadata/IMetadataDictionary.go +8 -0
- package/native/core/schemas/metadata/MetadataAlias.go +28 -0
- package/native/core/schemas/metadata/MetadataAliasType.go +52 -0
- package/native/core/schemas/metadata/MetadataApplication.go +41 -0
- package/native/core/schemas/metadata/MetadataArray.go +28 -0
- package/native/core/schemas/metadata/MetadataArrayType.go +47 -0
- package/native/core/schemas/metadata/MetadataAtomic.go +69 -0
- package/native/core/schemas/metadata/MetadataCollection.go +490 -0
- package/native/core/schemas/metadata/MetadataComponents.go +122 -0
- package/native/core/schemas/metadata/MetadataConstant.go +47 -0
- package/native/core/schemas/metadata/MetadataConstantValue.go +97 -0
- package/native/core/schemas/metadata/MetadataEscaped.go +36 -0
- package/native/core/schemas/metadata/MetadataFunction.go +46 -0
- package/native/core/schemas/metadata/MetadataMap.go +37 -0
- package/native/core/schemas/metadata/MetadataNative.go +72 -0
- package/native/core/schemas/metadata/MetadataObject.go +28 -0
- package/native/core/schemas/metadata/MetadataObjectType.go +146 -0
- package/native/core/schemas/metadata/MetadataParameter.go +46 -0
- package/native/core/schemas/metadata/MetadataProperty.go +50 -0
- package/native/core/schemas/metadata/MetadataSchema.go +863 -0
- package/native/core/schemas/metadata/MetadataSet.go +33 -0
- package/native/core/schemas/metadata/MetadataTemplate.go +70 -0
- package/native/core/schemas/metadata/MetadataTuple.go +20 -0
- package/native/core/schemas/metadata/MetadataTupleType.go +57 -0
- package/native/core/schemas/metadata/index.go +1 -0
- package/native/core/schemas/protobuf/IProtobufProperty.go +6 -0
- package/native/core/schemas/protobuf/IProtobufPropertyType.go +55 -0
- package/native/core/schemas/protobuf/IProtobufSchema.go +54 -0
- package/native/core/schemas/protobuf/index.go +1 -0
- package/native/core/typings/Writable.go +5 -0
- package/native/core/utils/PatternUtil.go +57 -0
- package/native/core/utils/ProtobufNameEncoder.go +47 -0
- package/native/go.mod +35 -0
- package/native/go.sum +22 -0
- package/native/go.work +20 -0
- package/native/go.work.sum +11 -0
- package/native/shim/printer/go.mod +5 -0
- package/native/shim/printer/shim.go +249 -0
- package/native/third_party/ttsc/driver/host.go +31 -0
- package/native/third_party/ttsc/driver/program.go +403 -0
- package/native/third_party/ttsc/driver/rewrite.go +315 -0
- package/native/third_party/ttsc/go.mod +46 -0
- package/native/third_party/ttsc/go.sum +22 -0
- package/native/third_party/ttsc/shim/ast/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/ast/go.mod +5 -0
- package/native/third_party/ttsc/shim/ast/lint.go +328 -0
- package/native/third_party/ttsc/shim/ast/shim.go +209 -0
- package/native/third_party/ttsc/shim/bundled/extra-shim.json +1 -0
- package/native/third_party/ttsc/shim/bundled/go.mod +5 -0
- package/native/third_party/ttsc/shim/bundled/shim.go +19 -0
- package/native/third_party/ttsc/shim/checker/extra-shim.json +31 -0
- package/native/third_party/ttsc/shim/checker/go.mod +5 -0
- package/native/third_party/ttsc/shim/checker/shim.go +166 -0
- package/native/third_party/ttsc/shim/compiler/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/compiler/go.mod +5 -0
- package/native/third_party/ttsc/shim/compiler/shim.go +50 -0
- package/native/third_party/ttsc/shim/core/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/core/go.mod +5 -0
- package/native/third_party/ttsc/shim/core/shim.go +26 -0
- package/native/third_party/ttsc/shim/diagnosticwriter/go.mod +5 -0
- package/native/third_party/ttsc/shim/diagnosticwriter/lint.go +137 -0
- package/native/third_party/ttsc/shim/diagnosticwriter/shim.go +29 -0
- package/native/third_party/ttsc/shim/parser/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/parser/go.mod +5 -0
- package/native/third_party/ttsc/shim/parser/shim.go +55 -0
- package/native/third_party/ttsc/shim/scanner/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/scanner/go.mod +5 -0
- package/native/third_party/ttsc/shim/scanner/shim.go +96 -0
- package/native/third_party/ttsc/shim/tsoptions/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/tsoptions/go.mod +5 -0
- package/native/third_party/ttsc/shim/tsoptions/shim.go +123 -0
- package/native/third_party/ttsc/shim/tspath/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/tspath/go.mod +5 -0
- package/native/third_party/ttsc/shim/tspath/shim.go +165 -0
- package/native/third_party/ttsc/shim/vfs/cachedvfs/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/vfs/cachedvfs/go.mod +5 -0
- package/native/third_party/ttsc/shim/vfs/cachedvfs/shim.go +12 -0
- package/native/third_party/ttsc/shim/vfs/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/vfs/go.mod +5 -0
- package/native/third_party/ttsc/shim/vfs/osvfs/extra-shim.json +4 -0
- package/native/third_party/ttsc/shim/vfs/osvfs/go.mod +5 -0
- package/native/third_party/ttsc/shim/vfs/osvfs/shim.go +13 -0
- package/native/third_party/ttsc/shim/vfs/shim.go +19 -0
- package/native/transform/CallExpressionTransformer.go +620 -0
- package/native/transform/FileTransformer.go +172 -0
- package/native/transform/ITransformProps.go +5 -0
- package/native/transform/ImportTransformer.go +282 -0
- package/native/transform/NodeTransformer.go +25 -0
- package/native/transform/TransformerError.go +11 -0
- package/native/transform/TypiaGenerator.go +168 -0
- package/native/transform/features/AssertTransformer.go +39 -0
- package/native/transform/features/CreateAssertTransformer.go +39 -0
- package/native/transform/features/CreateIsTransformer.go +35 -0
- package/native/transform/features/CreateRandomTransformer.go +47 -0
- package/native/transform/features/CreateValidateTransformer.go +35 -0
- package/native/transform/features/IsTransformer.go +35 -0
- package/native/transform/features/RandomTransformer.go +51 -0
- package/native/transform/features/ValidateTransformer.go +35 -0
- package/native/transform/features/functional/FunctionalGenericTransformer.go +70 -0
- package/native/transform/features/http/CreateHttpAssertFormDataTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpAssertHeadersTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpAssertQueryTransformer.go +28 -0
- package/native/transform/features/http/CreateHttpFormDataTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpHeadersTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpIsFormDataTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpIsHeadersTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpIsQueryTransformer.go +28 -0
- package/native/transform/features/http/CreateHttpParameterTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpQueryTransformer.go +28 -0
- package/native/transform/features/http/CreateHttpValidateFormDataTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpValidateHeadersTransformer.go +22 -0
- package/native/transform/features/http/CreateHttpValidateQueryTransformer.go +28 -0
- package/native/transform/features/http/HttpAssertFormDataTransformer.go +22 -0
- package/native/transform/features/http/HttpAssertHeadersTransformer.go +22 -0
- package/native/transform/features/http/HttpAssertQueryTransformer.go +28 -0
- package/native/transform/features/http/HttpFormDataTransformer.go +22 -0
- package/native/transform/features/http/HttpHeadersTransformer.go +22 -0
- package/native/transform/features/http/HttpIsFormDataTransformer.go +22 -0
- package/native/transform/features/http/HttpIsHeadersTransformer.go +22 -0
- package/native/transform/features/http/HttpIsQueryTransformer.go +28 -0
- package/native/transform/features/http/HttpParameterTransformer.go +22 -0
- package/native/transform/features/http/HttpQueryTransformer.go +28 -0
- package/native/transform/features/http/HttpValidateFormDataTransformer.go +22 -0
- package/native/transform/features/http/HttpValidateHeadersTransformer.go +22 -0
- package/native/transform/features/http/HttpValidateQueryTransformer.go +28 -0
- package/native/transform/features/json/JsonApplicationTransformer.go +76 -0
- package/native/transform/features/json/JsonAssertParseTransformer.go +22 -0
- package/native/transform/features/json/JsonAssertStringifyTransformer.go +22 -0
- package/native/transform/features/json/JsonCreateAssertParseTransformer.go +22 -0
- package/native/transform/features/json/JsonCreateAssertStringifyTransformer.go +22 -0
- package/native/transform/features/json/JsonCreateIsParseTransformer.go +22 -0
- package/native/transform/features/json/JsonCreateIsStringifyTransformer.go +22 -0
- package/native/transform/features/json/JsonCreateStringifyTransformer.go +22 -0
- package/native/transform/features/json/JsonCreateValidateParseTransformer.go +22 -0
- package/native/transform/features/json/JsonCreateValidateStringifyProgrammer.go +22 -0
- package/native/transform/features/json/JsonIsParseTransformer.go +22 -0
- package/native/transform/features/json/JsonIsStringifyTransformer.go +22 -0
- package/native/transform/features/json/JsonSchemaTransformer.go +176 -0
- package/native/transform/features/json/JsonSchemasTransformer.go +110 -0
- package/native/transform/features/json/JsonStringifyTransformer.go +22 -0
- package/native/transform/features/json/JsonValidateParseTransformer.go +22 -0
- package/native/transform/features/json/JsonValidateStringifyTransformer.go +22 -0
- package/native/transform/features/llm/LlmApplicationTransformer.go +54 -0
- package/native/transform/features/llm/LlmCoerceTransformer.go +61 -0
- package/native/transform/features/llm/LlmControllerTransformer.go +59 -0
- package/native/transform/features/llm/LlmCreateCoerceTransformer.go +54 -0
- package/native/transform/features/llm/LlmCreateParseTransformer.go +54 -0
- package/native/transform/features/llm/LlmParametersTransformer.go +49 -0
- package/native/transform/features/llm/LlmParseTransformer.go +61 -0
- package/native/transform/features/llm/LlmSchemaTransformer.go +167 -0
- package/native/transform/features/llm/LlmStructuredOutputTransformer.go +55 -0
- package/native/transform/features/misc/MiscAssertCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscAssertPruneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreateAssertCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreateAssertPruneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreateCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreateIsCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreateIsPruneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreatePruneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreateValidateCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscCreateValidatePruneTransformer.go +22 -0
- package/native/transform/features/misc/MiscIsCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscIsPruneTransformer.go +22 -0
- package/native/transform/features/misc/MiscLiteralsTransformer.go +32 -0
- package/native/transform/features/misc/MiscPruneTransformer.go +22 -0
- package/native/transform/features/misc/MiscValidateCloneTransformer.go +22 -0
- package/native/transform/features/misc/MiscValidatePruneTransformer.go +22 -0
- package/native/transform/features/notations/NotationAssertGeneralTransformer.go +27 -0
- package/native/transform/features/notations/NotationCreateAssertGeneralTransformer.go +27 -0
- package/native/transform/features/notations/NotationCreateGeneralTransformer.go +27 -0
- package/native/transform/features/notations/NotationCreateIsGeneralTransformer.go +27 -0
- package/native/transform/features/notations/NotationCreateValidateGeneralTransformer.go +27 -0
- package/native/transform/features/notations/NotationGeneralTransformer.go +36 -0
- package/native/transform/features/notations/NotationIsGeneralTransformer.go +27 -0
- package/native/transform/features/notations/NotationValidateGeneralTransformer.go +27 -0
- package/native/transform/features/protobuf/ProtobufAssertDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufAssertEncodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateAssertDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateAssertEncodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateEncodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateIsDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateIsEncodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateValidateDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufCreateValidateEncodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufEncodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufIsDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufIsEncodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufMessageTransformer.go +31 -0
- package/native/transform/features/protobuf/ProtobufValidateDecodeTransformer.go +22 -0
- package/native/transform/features/protobuf/ProtobufValidateEncodeTransformer.go +22 -0
- package/native/transform/features/reflect/ReflectMetadataTransformer.go +74 -0
- package/native/transform/features/reflect/ReflectNameTransformer.go +100 -0
- package/native/transform/features/reflect/ReflectSchemaTransformer.go +153 -0
- package/native/transform/features/reflect/ReflectSchemasTransformer.go +69 -0
- package/native/transform/index.go +1 -0
- package/native/transform/internal/GenericTransformer.go +235 -0
- package/native/transform/transform.go +50 -0
- package/package.json +11 -20
- package/src/TypeGuardError.ts +1 -0
- package/src/executable/TypiaGenerateWizard.ts +87 -64
- package/src/executable/generate/ttsc.ts +18 -49
- package/src/internal/_randomInteger.ts +5 -5
- package/src/internal/_validateReport.ts +2 -1
- package/src/llm.ts +1 -1
- package/src/transform.ts +6 -14
- package/bin/ttsc-typia-native +0 -0
|
@@ -1,206 +1,231 @@
|
|
|
1
|
-
import { __exports as TypiaGenerateWizard } from '../_virtual/TypiaGenerateWizard.mjs';
|
|
1
|
+
import { __exports as TypiaGenerateWizard$1 } from '../_virtual/TypiaGenerateWizard.mjs';
|
|
2
2
|
import require$$0 from 'fs';
|
|
3
|
+
import require$$1$1 from 'module';
|
|
3
4
|
import require$$1 from 'path';
|
|
4
|
-
import require$$
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import require$$3 from 'ttsc';
|
|
6
|
+
import './setup/ArgumentParser2.mjs';
|
|
7
|
+
import './setup/PackageManager2.mjs';
|
|
8
|
+
import { __exports as PackageManager } from '../_virtual/PackageManager.mjs';
|
|
9
|
+
import { __exports as ArgumentParser } from '../_virtual/ArgumentParser.mjs';
|
|
7
10
|
|
|
8
|
-
var
|
|
11
|
+
var __awaiter = (TypiaGenerateWizard$1 && TypiaGenerateWizard$1.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
var __importDefault = (TypiaGenerateWizard$1 && TypiaGenerateWizard$1.__importDefault) || function (mod) {
|
|
21
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(TypiaGenerateWizard$1, "__esModule", { value: true });
|
|
24
|
+
var TypiaGenerateWizard_2 = TypiaGenerateWizard$1.TypiaGenerateWizard = void 0;
|
|
25
|
+
const fs_1 = __importDefault(require$$0);
|
|
26
|
+
const module_1 = require$$1$1;
|
|
27
|
+
const path_1 = __importDefault(require$$1);
|
|
28
|
+
const ttsc_1 = require$$3;
|
|
29
|
+
const ArgumentParser_1 = ArgumentParser;
|
|
30
|
+
const PackageManager_1 = PackageManager;
|
|
31
|
+
var TypiaGenerateWizard;
|
|
32
|
+
(function (TypiaGenerateWizard) {
|
|
33
|
+
function generate() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
console.log("----------------------------------------");
|
|
36
|
+
console.log(" Typia Generate Wizard");
|
|
37
|
+
console.log("----------------------------------------");
|
|
38
|
+
// LOAD PACKAGE.JSON INFO
|
|
39
|
+
const pack = yield PackageManager_1.PackageManager.mount();
|
|
40
|
+
const options = yield ArgumentParser_1.ArgumentParser.parse(pack, inquiry);
|
|
41
|
+
yield build(options);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
TypiaGenerateWizard.generate = generate;
|
|
45
|
+
const inquiry = (_pack, command, prompt, action) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
// PREPARE ASSETS
|
|
47
|
+
command.option("--input [path]", "input directory");
|
|
48
|
+
command.option("--output [directory]", "output directory");
|
|
49
|
+
command.option("--project [project]", "tsconfig.json file location");
|
|
50
|
+
const input = (name) => (message) => __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const result = yield prompt()({
|
|
52
|
+
type: "input",
|
|
53
|
+
name,
|
|
54
|
+
message,
|
|
55
|
+
default: "",
|
|
56
|
+
});
|
|
57
|
+
return result[name];
|
|
58
|
+
});
|
|
59
|
+
const select = (name) => (message) => (choices) => __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return (yield prompt()({
|
|
61
|
+
type: "list",
|
|
62
|
+
name: name,
|
|
63
|
+
message: message,
|
|
64
|
+
choices: choices,
|
|
65
|
+
}))[name];
|
|
66
|
+
});
|
|
67
|
+
const configure = () => __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const files = yield (yield fs_1.default.promises.readdir(process.cwd())).filter((str) => str.substring(0, 8) === "tsconfig" &&
|
|
69
|
+
str.substring(str.length - 5) === ".json");
|
|
70
|
+
if (files.length === 0)
|
|
71
|
+
throw new URIError(`Unable to find "tsconfig.json" file.`);
|
|
72
|
+
else if (files.length === 1)
|
|
73
|
+
return files[0];
|
|
74
|
+
return select("tsconfig")("TS Config File")(files);
|
|
75
|
+
});
|
|
76
|
+
return action((options) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
(_a = options.input) !== null && _a !== void 0 ? _a : (options.input = yield input("input")("input directory"));
|
|
79
|
+
(_b = options.output) !== null && _b !== void 0 ? _b : (options.output = yield input("output")("output directory"));
|
|
80
|
+
(_c = options.project) !== null && _c !== void 0 ? _c : (options.project = yield configure());
|
|
81
|
+
return options;
|
|
82
|
+
}));
|
|
83
|
+
});
|
|
84
|
+
function build(location) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
location.input = path_1.default.resolve(location.input);
|
|
87
|
+
location.output = path_1.default.resolve(location.output);
|
|
88
|
+
location.project = path_1.default.resolve(location.project);
|
|
89
|
+
if ((yield isDirectory(location.input)) === false) {
|
|
90
|
+
throw new URIError("Error on TypiaGenerateWizard.generate(): input path is not a directory.");
|
|
91
|
+
}
|
|
92
|
+
else if (fs_1.default.existsSync(location.output) === false) {
|
|
93
|
+
yield fs_1.default.promises.mkdir(location.output, { recursive: true });
|
|
94
|
+
}
|
|
95
|
+
else if ((yield isDirectory(location.output)) === false) {
|
|
96
|
+
const parent = path_1.default.join(location.output, "..");
|
|
97
|
+
if ((yield isDirectory(parent)) === false) {
|
|
98
|
+
throw new URIError("Error on TypiaGenerateWizard.generate(): output path is not a directory.");
|
|
99
|
+
}
|
|
100
|
+
yield fs_1.default.promises.mkdir(location.output);
|
|
101
|
+
}
|
|
102
|
+
const files = [];
|
|
103
|
+
yield gather({
|
|
104
|
+
location,
|
|
105
|
+
container: files,
|
|
106
|
+
from: location.input,
|
|
107
|
+
to: location.output,
|
|
108
|
+
});
|
|
109
|
+
const cwd = path_1.default.dirname(location.project);
|
|
110
|
+
const binary = resolveTsgoBinary();
|
|
111
|
+
for (const file of files) {
|
|
112
|
+
const relative = path_1.default.relative(location.input, file);
|
|
113
|
+
const target = path_1.default.join(location.output, relative);
|
|
114
|
+
const output = (0, ttsc_1.transform)({
|
|
115
|
+
binary,
|
|
116
|
+
cwd,
|
|
117
|
+
file,
|
|
118
|
+
tsconfig: location.project,
|
|
119
|
+
plugins: [{ transform: "typia/lib/transform" }],
|
|
120
|
+
});
|
|
121
|
+
yield fs_1.default.promises.mkdir(path_1.default.dirname(target), { recursive: true });
|
|
122
|
+
yield fs_1.default.promises.writeFile(target, formatOutput(output), "utf8");
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function resolveTsgoBinary() {
|
|
127
|
+
const explicit = process.env.TTSC_TSGO_BINARY;
|
|
128
|
+
if (explicit !== undefined && explicit.length !== 0) {
|
|
129
|
+
if (path_1.default.isAbsolute(explicit) && fs_1.default.existsSync(explicit)) {
|
|
130
|
+
return explicit;
|
|
131
|
+
}
|
|
132
|
+
throw new URIError(`Error on TypiaGenerateWizard.generate(): TTSC_TSGO_BINARY must be an existing absolute path: ${explicit}`);
|
|
133
|
+
}
|
|
134
|
+
const packageRoot = resolveTypiaPackageRoot();
|
|
135
|
+
const manifest = resolveFromRoots("@typescript/native-preview/package.json", [packageRoot, path_1.default.resolve(packageRoot, "..", "..")]);
|
|
136
|
+
if (manifest === null) {
|
|
137
|
+
throw new URIError("Error on TypiaGenerateWizard.generate(): unable to resolve @typescript/native-preview from the typia package or workspace root.");
|
|
138
|
+
}
|
|
139
|
+
const platform = `@typescript/native-preview-${process.platform}-${process.arch}`;
|
|
140
|
+
const platformManifest = (0, module_1.createRequire)(manifest).resolve(`${platform}/package.json`);
|
|
141
|
+
const binary = path_1.default.join(path_1.default.dirname(platformManifest), "lib", process.platform === "win32" ? "tsgo.exe" : "tsgo");
|
|
142
|
+
if (fs_1.default.existsSync(binary) === false) {
|
|
143
|
+
throw new URIError(`Error on TypiaGenerateWizard.generate(): TypeScript-Go executable not found: ${binary}`);
|
|
144
|
+
}
|
|
145
|
+
return binary;
|
|
146
|
+
}
|
|
147
|
+
function resolveTypiaPackageRoot() {
|
|
148
|
+
const current = path_1.default.resolve(__dirname);
|
|
149
|
+
for (const directory of [
|
|
150
|
+
path_1.default.resolve(current, "..", ".."),
|
|
151
|
+
path_1.default.resolve(current, ".."),
|
|
152
|
+
]) {
|
|
153
|
+
const file = path_1.default.join(directory, "package.json");
|
|
154
|
+
if (fs_1.default.existsSync(file) === false) {
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
try {
|
|
158
|
+
const pack = JSON.parse(fs_1.default.readFileSync(file, "utf8"));
|
|
159
|
+
if (pack.name === "typia") {
|
|
160
|
+
return directory;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
catch (_a) {
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
const resolved = resolveFromRoots("typia/package.json", [
|
|
168
|
+
process.cwd(),
|
|
169
|
+
current,
|
|
170
|
+
]);
|
|
171
|
+
if (resolved === null) {
|
|
172
|
+
throw new URIError("Error on TypiaGenerateWizard.generate(): unable to resolve typia package root.");
|
|
173
|
+
}
|
|
174
|
+
return path_1.default.dirname(resolved);
|
|
175
|
+
}
|
|
176
|
+
function resolveFromRoots(request, roots) {
|
|
177
|
+
for (const root of roots) {
|
|
178
|
+
try {
|
|
179
|
+
return require.resolve(request, { paths: [root] });
|
|
180
|
+
}
|
|
181
|
+
catch (_a) {
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
function isDirectory(current) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const stat = yield fs_1.default.promises.stat(current);
|
|
190
|
+
return stat.isDirectory();
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function gather(props) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
if (props.from === props.location.output)
|
|
196
|
+
return;
|
|
197
|
+
if (fs_1.default.existsSync(props.to) === false) {
|
|
198
|
+
yield fs_1.default.promises.mkdir(props.to);
|
|
199
|
+
}
|
|
200
|
+
for (const file of yield fs_1.default.promises.readdir(props.from)) {
|
|
201
|
+
const next = path_1.default.join(props.from, file);
|
|
202
|
+
const stat = yield fs_1.default.promises.stat(next);
|
|
203
|
+
if (stat.isDirectory()) {
|
|
204
|
+
yield gather({
|
|
205
|
+
location: props.location,
|
|
206
|
+
container: props.container,
|
|
207
|
+
from: next,
|
|
208
|
+
to: path_1.default.join(props.to, file),
|
|
209
|
+
});
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
if (isSupportedExtension(file)) {
|
|
213
|
+
props.container.push(next);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
function isSupportedExtension(filename) {
|
|
219
|
+
return TS_PATTERN.test(filename) && !DTS_PATTERN.test(filename);
|
|
220
|
+
}
|
|
221
|
+
function formatOutput(output) {
|
|
222
|
+
return output.startsWith("// @ts-nocheck")
|
|
223
|
+
? output
|
|
224
|
+
: `// @ts-nocheck\n${output}`;
|
|
225
|
+
}
|
|
226
|
+
})(TypiaGenerateWizard || (TypiaGenerateWizard_2 = TypiaGenerateWizard$1.TypiaGenerateWizard = TypiaGenerateWizard = {}));
|
|
227
|
+
const TS_PATTERN = /\.[cm]?tsx?$/;
|
|
228
|
+
const DTS_PATTERN = /\.d\.[cm]?tsx?$/;
|
|
9
229
|
|
|
10
|
-
|
|
11
|
-
if (hasRequiredTypiaGenerateWizard) return TypiaGenerateWizard;
|
|
12
|
-
hasRequiredTypiaGenerateWizard = 1;
|
|
13
|
-
var __awaiter = (TypiaGenerateWizard && TypiaGenerateWizard.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __importDefault = (TypiaGenerateWizard && TypiaGenerateWizard.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(TypiaGenerateWizard, "__esModule", { value: true });
|
|
26
|
-
TypiaGenerateWizard.TypiaGenerateWizard = void 0;
|
|
27
|
-
const fs_1 = __importDefault(require$$0);
|
|
28
|
-
const path_1 = __importDefault(require$$1);
|
|
29
|
-
const ttsc_1 = require$$2;
|
|
30
|
-
const ArgumentParser_1 = requireArgumentParser();
|
|
31
|
-
const PackageManager_1 = requirePackageManager();
|
|
32
|
-
var TypiaGenerateWizard$1;
|
|
33
|
-
(function (TypiaGenerateWizard) {
|
|
34
|
-
function generate() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
console.log("----------------------------------------");
|
|
37
|
-
console.log(" Typia Generate Wizard");
|
|
38
|
-
console.log("----------------------------------------");
|
|
39
|
-
// LOAD PACKAGE.JSON INFO
|
|
40
|
-
const pack = yield PackageManager_1.PackageManager.mount();
|
|
41
|
-
const options = yield ArgumentParser_1.ArgumentParser.parse(pack, inquiry);
|
|
42
|
-
yield build(options);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
TypiaGenerateWizard.generate = generate;
|
|
46
|
-
const inquiry = (_pack, command, prompt, action) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
// PREPARE ASSETS
|
|
48
|
-
command.option("--input [path]", "input directory");
|
|
49
|
-
command.option("--output [directory]", "output directory");
|
|
50
|
-
command.option("--project [project]", "tsconfig.json file location");
|
|
51
|
-
const input = (name) => (message) => __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
const result = yield prompt()({
|
|
53
|
-
type: "input",
|
|
54
|
-
name,
|
|
55
|
-
message,
|
|
56
|
-
default: "",
|
|
57
|
-
});
|
|
58
|
-
return result[name];
|
|
59
|
-
});
|
|
60
|
-
const select = (name) => (message) => (choices) => __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
return (yield prompt()({
|
|
62
|
-
type: "list",
|
|
63
|
-
name: name,
|
|
64
|
-
message: message,
|
|
65
|
-
choices: choices,
|
|
66
|
-
}))[name];
|
|
67
|
-
});
|
|
68
|
-
const configure = () => __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
const files = yield (yield fs_1.default.promises.readdir(process.cwd())).filter((str) => str.substring(0, 8) === "tsconfig" &&
|
|
70
|
-
str.substring(str.length - 5) === ".json");
|
|
71
|
-
if (files.length === 0)
|
|
72
|
-
throw new URIError(`Unable to find "tsconfig.json" file.`);
|
|
73
|
-
else if (files.length === 1)
|
|
74
|
-
return files[0];
|
|
75
|
-
return select("tsconfig")("TS Config File")(files);
|
|
76
|
-
});
|
|
77
|
-
return action((options) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a, _b, _c;
|
|
79
|
-
(_a = options.input) !== null && _a !== void 0 ? _a : (options.input = yield input("input")("input directory"));
|
|
80
|
-
(_b = options.output) !== null && _b !== void 0 ? _b : (options.output = yield input("output")("output directory"));
|
|
81
|
-
(_c = options.project) !== null && _c !== void 0 ? _c : (options.project = yield configure());
|
|
82
|
-
return options;
|
|
83
|
-
}));
|
|
84
|
-
});
|
|
85
|
-
function build(location) {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
location.input = path_1.default.resolve(location.input);
|
|
88
|
-
location.output = path_1.default.resolve(location.output);
|
|
89
|
-
location.project = path_1.default.resolve(location.project);
|
|
90
|
-
if ((yield isDirectory(location.input)) === false) {
|
|
91
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): input path is not a directory.");
|
|
92
|
-
}
|
|
93
|
-
else if (fs_1.default.existsSync(location.output) === false) {
|
|
94
|
-
yield fs_1.default.promises.mkdir(location.output, { recursive: true });
|
|
95
|
-
}
|
|
96
|
-
else if ((yield isDirectory(location.output)) === false) {
|
|
97
|
-
const parent = path_1.default.join(location.output, "..");
|
|
98
|
-
if ((yield isDirectory(parent)) === false) {
|
|
99
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): output path is not a directory.");
|
|
100
|
-
}
|
|
101
|
-
yield fs_1.default.promises.mkdir(location.output);
|
|
102
|
-
}
|
|
103
|
-
const files = [];
|
|
104
|
-
yield gather({
|
|
105
|
-
location,
|
|
106
|
-
container: files,
|
|
107
|
-
from: location.input,
|
|
108
|
-
to: location.output,
|
|
109
|
-
});
|
|
110
|
-
const cwd = path_1.default.dirname(location.project);
|
|
111
|
-
for (const file of files) {
|
|
112
|
-
const relative = path_1.default.relative(location.input, file);
|
|
113
|
-
const target = path_1.default.join(location.output, relative);
|
|
114
|
-
const output = (0, ttsc_1.transform)({
|
|
115
|
-
cwd,
|
|
116
|
-
file,
|
|
117
|
-
tsconfig: location.project,
|
|
118
|
-
plugins: [{ transform: "typia/lib/transform" }],
|
|
119
|
-
});
|
|
120
|
-
yield fs_1.default.promises.mkdir(path_1.default.dirname(target), { recursive: true });
|
|
121
|
-
yield fs_1.default.promises.writeFile(target, formatOutput(rewriteExternalRelativeImports({
|
|
122
|
-
input: location.input,
|
|
123
|
-
output: location.output,
|
|
124
|
-
source: file,
|
|
125
|
-
target,
|
|
126
|
-
code: output,
|
|
127
|
-
})), "utf8");
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function isDirectory(current) {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
const stat = yield fs_1.default.promises.stat(current);
|
|
134
|
-
return stat.isDirectory();
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function gather(props) {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
if (props.from === props.location.output)
|
|
140
|
-
return;
|
|
141
|
-
if (fs_1.default.existsSync(props.to) === false) {
|
|
142
|
-
yield fs_1.default.promises.mkdir(props.to);
|
|
143
|
-
}
|
|
144
|
-
for (const file of yield fs_1.default.promises.readdir(props.from)) {
|
|
145
|
-
const next = path_1.default.join(props.from, file);
|
|
146
|
-
const stat = yield fs_1.default.promises.stat(next);
|
|
147
|
-
if (stat.isDirectory()) {
|
|
148
|
-
yield gather({
|
|
149
|
-
location: props.location,
|
|
150
|
-
container: props.container,
|
|
151
|
-
from: next,
|
|
152
|
-
to: path_1.default.join(props.to, file),
|
|
153
|
-
});
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if (isSupportedExtension(file)) {
|
|
157
|
-
props.container.push(next);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function isSupportedExtension(filename) {
|
|
163
|
-
return TS_PATTERN.test(filename) && !DTS_PATTERN.test(filename);
|
|
164
|
-
}
|
|
165
|
-
function formatOutput(output) {
|
|
166
|
-
return output.startsWith("// @ts-nocheck")
|
|
167
|
-
? output
|
|
168
|
-
: `// @ts-nocheck\n${output}`;
|
|
169
|
-
}
|
|
170
|
-
function rewriteExternalRelativeImports(props) {
|
|
171
|
-
return props.code.replace(/(require\s*\(\s*|from\s+|import\s*\(\s*)(["'])(\.[^"']*)\2/g, (full, prefix, quote, specifier) => {
|
|
172
|
-
const next = rewriteRelativeSpecifier({
|
|
173
|
-
input: props.input,
|
|
174
|
-
source: props.source,
|
|
175
|
-
target: props.target,
|
|
176
|
-
specifier,
|
|
177
|
-
});
|
|
178
|
-
return next === specifier ? full : `${prefix}${quote}${next}${quote}`;
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function rewriteRelativeSpecifier(props) {
|
|
182
|
-
const location = path_1.default.resolve(path_1.default.dirname(props.source), props.specifier);
|
|
183
|
-
if (isInside(location, props.input)) {
|
|
184
|
-
return props.specifier;
|
|
185
|
-
}
|
|
186
|
-
const relative = path_1.default
|
|
187
|
-
.relative(path_1.default.dirname(props.target), location)
|
|
188
|
-
.split(path_1.default.sep)
|
|
189
|
-
.join("/");
|
|
190
|
-
return relative.startsWith(".") ? relative : `./${relative}`;
|
|
191
|
-
}
|
|
192
|
-
function isInside(file, directory) {
|
|
193
|
-
const relative = path_1.default.relative(directory, file);
|
|
194
|
-
return (relative.length === 0 ||
|
|
195
|
-
(relative.startsWith("..") === false &&
|
|
196
|
-
path_1.default.isAbsolute(relative) === false));
|
|
197
|
-
}
|
|
198
|
-
})(TypiaGenerateWizard$1 || (TypiaGenerateWizard.TypiaGenerateWizard = TypiaGenerateWizard$1 = {}));
|
|
199
|
-
const TS_PATTERN = /\.[cm]?tsx?$/;
|
|
200
|
-
const DTS_PATTERN = /\.d\.[cm]?tsx?$/;
|
|
201
|
-
|
|
202
|
-
return TypiaGenerateWizard;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export { requireTypiaGenerateWizard as __require };
|
|
230
|
+
export { TypiaGenerateWizard_2 as TypiaGenerateWizard, TypiaGenerateWizard$1 as default };
|
|
206
231
|
//# sourceMappingURL=TypiaGenerateWizard2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypiaGenerateWizard2.mjs","sources":["TypiaGenerateWizard.js"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TypiaGenerateWizard = void 0;\nconst fs_1 = __importDefault(require(\"fs\"));\nconst path_1 = __importDefault(require(\"path\"));\nconst ttsc_1 = require(\"ttsc\");\nconst ArgumentParser_1 = require(\"./setup/ArgumentParser\");\nconst PackageManager_1 = require(\"./setup/PackageManager\");\nvar TypiaGenerateWizard;\n(function (TypiaGenerateWizard) {\n function generate() {\n return __awaiter(this, void 0, void 0, function* () {\n console.log(\"----------------------------------------\");\n console.log(\" Typia Generate Wizard\");\n console.log(\"----------------------------------------\");\n // LOAD PACKAGE.JSON INFO\n const pack = yield PackageManager_1.PackageManager.mount();\n const options = yield ArgumentParser_1.ArgumentParser.parse(pack, inquiry);\n yield build(options);\n });\n }\n TypiaGenerateWizard.generate = generate;\n const inquiry = (_pack, command, prompt, action) => __awaiter(this, void 0, void 0, function* () {\n // PREPARE ASSETS\n command.option(\"--input [path]\", \"input directory\");\n command.option(\"--output [directory]\", \"output directory\");\n command.option(\"--project [project]\", \"tsconfig.json file location\");\n const questioned = { value: false };\n const input = (name) => (message) => __awaiter(this, void 0, void 0, function* () {\n const result = yield prompt()({\n type: \"input\",\n name,\n message,\n default: \"\",\n });\n return result[name];\n });\n const select = (name) => (message) => (choices) => __awaiter(this, void 0, void 0, function* () {\n questioned.value = true;\n return (yield prompt()({\n type: \"list\",\n name: name,\n message: message,\n choices: choices,\n }))[name];\n });\n const configure = () => __awaiter(this, void 0, void 0, function* () {\n const files = yield (yield fs_1.default.promises.readdir(process.cwd())).filter((str) => str.substring(0, 8) === \"tsconfig\" &&\n str.substring(str.length - 5) === \".json\");\n if (files.length === 0)\n throw new URIError(`Unable to find \"tsconfig.json\" file.`);\n else if (files.length === 1)\n return files[0];\n return select(\"tsconfig\")(\"TS Config File\")(files);\n });\n return action((options) => __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c;\n (_a = options.input) !== null && _a !== void 0 ? _a : (options.input = yield input(\"input\")(\"input directory\"));\n (_b = options.output) !== null && _b !== void 0 ? _b : (options.output = yield input(\"output\")(\"output directory\"));\n (_c = options.project) !== null && _c !== void 0 ? _c : (options.project = yield configure());\n return options;\n }));\n });\n function build(location) {\n return __awaiter(this, void 0, void 0, function* () {\n location.input = path_1.default.resolve(location.input);\n location.output = path_1.default.resolve(location.output);\n location.project = path_1.default.resolve(location.project);\n if ((yield isDirectory(location.input)) === false) {\n throw new URIError(\"Error on TypiaGenerateWizard.generate(): input path is not a directory.\");\n }\n else if (fs_1.default.existsSync(location.output) === false) {\n yield fs_1.default.promises.mkdir(location.output, { recursive: true });\n }\n else if ((yield isDirectory(location.output)) === false) {\n const parent = path_1.default.join(location.output, \"..\");\n if ((yield isDirectory(parent)) === false) {\n throw new URIError(\"Error on TypiaGenerateWizard.generate(): output path is not a directory.\");\n }\n yield fs_1.default.promises.mkdir(location.output);\n }\n const files = [];\n yield gather({\n location,\n container: files,\n from: location.input,\n to: location.output,\n });\n const cwd = path_1.default.dirname(location.project);\n for (const file of files) {\n const relative = path_1.default.relative(location.input, file);\n const target = path_1.default.join(location.output, relative);\n const output = (0, ttsc_1.transform)({\n cwd,\n file,\n tsconfig: location.project,\n plugins: [{ transform: \"typia/lib/transform\" }],\n });\n yield fs_1.default.promises.mkdir(path_1.default.dirname(target), { recursive: true });\n yield fs_1.default.promises.writeFile(target, formatOutput(rewriteExternalRelativeImports({\n input: location.input,\n output: location.output,\n source: file,\n target,\n code: output,\n })), \"utf8\");\n }\n });\n }\n function isDirectory(current) {\n return __awaiter(this, void 0, void 0, function* () {\n const stat = yield fs_1.default.promises.stat(current);\n return stat.isDirectory();\n });\n }\n function gather(props) {\n return __awaiter(this, void 0, void 0, function* () {\n if (props.from === props.location.output)\n return;\n if (fs_1.default.existsSync(props.to) === false) {\n yield fs_1.default.promises.mkdir(props.to);\n }\n for (const file of yield fs_1.default.promises.readdir(props.from)) {\n const next = path_1.default.join(props.from, file);\n const stat = yield fs_1.default.promises.stat(next);\n if (stat.isDirectory()) {\n yield gather({\n location: props.location,\n container: props.container,\n from: next,\n to: path_1.default.join(props.to, file),\n });\n continue;\n }\n if (isSupportedExtension(file)) {\n props.container.push(next);\n }\n }\n });\n }\n function isSupportedExtension(filename) {\n return TS_PATTERN.test(filename) && !DTS_PATTERN.test(filename);\n }\n function formatOutput(output) {\n return output.startsWith(\"// @ts-nocheck\")\n ? output\n : `// @ts-nocheck\\n${output}`;\n }\n function rewriteExternalRelativeImports(props) {\n return props.code.replace(/(require\\s*\\(\\s*|from\\s+|import\\s*\\(\\s*)([\"'])(\\.[^\"']*)\\2/g, (full, prefix, quote, specifier) => {\n const next = rewriteRelativeSpecifier({\n input: props.input,\n output: props.output,\n source: props.source,\n target: props.target,\n specifier,\n });\n return next === specifier ? full : `${prefix}${quote}${next}${quote}`;\n });\n }\n function rewriteRelativeSpecifier(props) {\n const location = path_1.default.resolve(path_1.default.dirname(props.source), props.specifier);\n if (isInside(location, props.input)) {\n return props.specifier;\n }\n const relative = path_1.default\n .relative(path_1.default.dirname(props.target), location)\n .split(path_1.default.sep)\n .join(\"/\");\n return relative.startsWith(\".\") ? relative : `./${relative}`;\n }\n function isInside(file, directory) {\n const relative = path_1.default.relative(directory, file);\n return (relative.length === 0 ||\n (relative.startsWith(\"..\") === false &&\n path_1.default.isAbsolute(relative) === false));\n }\n})(TypiaGenerateWizard || (exports.TypiaGenerateWizard = TypiaGenerateWizard = {}));\nconst TS_PATTERN = /\\.[cm]?tsx?$/;\nconst DTS_PATTERN = /\\.d\\.[cm]?tsx?$/;\n//# sourceMappingURL=TypiaGenerateWizard.js.map"],"names":["this","TypiaGenerateWizard_1","require$$3","require$$4","TypiaGenerateWizard"],"mappings":";;;;;;;;;;;;AACA,CAAA,IAAI,SAAS,GAAG,CAACA,mBAAI,IAAIA,mBAAI,CAAC,SAAS,KAAK,UAA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C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;SAC9F,IAAI,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;aACjC,OAAO,KAAK,CAAC,SAAS;AAClC,SAAA;AACA,SAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC;AAChC,cAAa,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ;AACpE,cAAa,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG;cACxB,IAAI,CAAC,GAAG,CAAC;AACtB,SAAQ,OAAO,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,QAAQ,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACpE,KAAA;AACA,KAAI,SAAS,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE;AACvC,SAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;AACjE,SAAQ,QAAQ,QAAQ,CAAC,MAAM,KAAK,CAAC;AACrC,cAAa,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,KAAK;iBAChC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;AAC9D,KAAA;CACA,CAAC,EAAEA,qBAAmB,KAAKH,mBAAA,CAAA,mBAA2B,GAAGG,qBAAmB,GAAG,EAAE,CAAC,CAAC;CACnF,MAAM,UAAU,GAAG,cAAc;CACjC,MAAM,WAAW,GAAG,iBAAiB;AACrC;;;;;;"}
|
|
1
|
+
{"version":3,"file":"TypiaGenerateWizard2.mjs","sources":["TypiaGenerateWizard.js"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TypiaGenerateWizard = void 0;\nconst fs_1 = __importDefault(require(\"fs\"));\nconst module_1 = require(\"module\");\nconst path_1 = __importDefault(require(\"path\"));\nconst ttsc_1 = require(\"ttsc\");\nconst ArgumentParser_1 = require(\"./setup/ArgumentParser\");\nconst PackageManager_1 = require(\"./setup/PackageManager\");\nvar TypiaGenerateWizard;\n(function (TypiaGenerateWizard) {\n function generate() {\n return __awaiter(this, void 0, void 0, function* () {\n console.log(\"----------------------------------------\");\n console.log(\" Typia Generate Wizard\");\n console.log(\"----------------------------------------\");\n // LOAD PACKAGE.JSON INFO\n const pack = yield PackageManager_1.PackageManager.mount();\n const options = yield ArgumentParser_1.ArgumentParser.parse(pack, inquiry);\n yield build(options);\n });\n }\n TypiaGenerateWizard.generate = generate;\n const inquiry = (_pack, command, prompt, action) => __awaiter(this, void 0, void 0, function* () {\n // PREPARE ASSETS\n command.option(\"--input [path]\", \"input directory\");\n command.option(\"--output [directory]\", \"output directory\");\n command.option(\"--project [project]\", \"tsconfig.json file location\");\n const questioned = { value: false };\n const input = (name) => (message) => __awaiter(this, void 0, void 0, function* () {\n const result = yield prompt()({\n type: \"input\",\n name,\n message,\n default: \"\",\n });\n return result[name];\n });\n const select = (name) => (message) => (choices) => __awaiter(this, void 0, void 0, function* () {\n questioned.value = true;\n return (yield prompt()({\n type: \"list\",\n name: name,\n message: message,\n choices: choices,\n }))[name];\n });\n const configure = () => __awaiter(this, void 0, void 0, function* () {\n const files = yield (yield fs_1.default.promises.readdir(process.cwd())).filter((str) => str.substring(0, 8) === \"tsconfig\" &&\n str.substring(str.length - 5) === \".json\");\n if (files.length === 0)\n throw new URIError(`Unable to find \"tsconfig.json\" file.`);\n else if (files.length === 1)\n return files[0];\n return select(\"tsconfig\")(\"TS Config File\")(files);\n });\n return action((options) => __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c;\n (_a = options.input) !== null && _a !== void 0 ? _a : (options.input = yield input(\"input\")(\"input directory\"));\n (_b = options.output) !== null && _b !== void 0 ? _b : (options.output = yield input(\"output\")(\"output directory\"));\n (_c = options.project) !== null && _c !== void 0 ? _c : (options.project = yield configure());\n return options;\n }));\n });\n function build(location) {\n return __awaiter(this, void 0, void 0, function* () {\n location.input = path_1.default.resolve(location.input);\n location.output = path_1.default.resolve(location.output);\n location.project = path_1.default.resolve(location.project);\n if ((yield isDirectory(location.input)) === false) {\n throw new URIError(\"Error on TypiaGenerateWizard.generate(): input path is not a directory.\");\n }\n else if (fs_1.default.existsSync(location.output) === false) {\n yield fs_1.default.promises.mkdir(location.output, { recursive: true });\n }\n else if ((yield isDirectory(location.output)) === false) {\n const parent = path_1.default.join(location.output, \"..\");\n if ((yield isDirectory(parent)) === false) {\n throw new URIError(\"Error on TypiaGenerateWizard.generate(): output path is not a directory.\");\n }\n yield fs_1.default.promises.mkdir(location.output);\n }\n const files = [];\n yield gather({\n location,\n container: files,\n from: location.input,\n to: location.output,\n });\n const cwd = path_1.default.dirname(location.project);\n const binary = resolveTsgoBinary();\n for (const file of files) {\n const relative = path_1.default.relative(location.input, file);\n const target = path_1.default.join(location.output, relative);\n const output = (0, ttsc_1.transform)({\n binary,\n cwd,\n file,\n tsconfig: location.project,\n plugins: [{ transform: \"typia/lib/transform\" }],\n });\n yield fs_1.default.promises.mkdir(path_1.default.dirname(target), { recursive: true });\n yield fs_1.default.promises.writeFile(target, formatOutput(output), \"utf8\");\n }\n });\n }\n function resolveTsgoBinary() {\n const explicit = process.env.TTSC_TSGO_BINARY;\n if (explicit !== undefined && explicit.length !== 0) {\n if (path_1.default.isAbsolute(explicit) && fs_1.default.existsSync(explicit)) {\n return explicit;\n }\n throw new URIError(`Error on TypiaGenerateWizard.generate(): TTSC_TSGO_BINARY must be an existing absolute path: ${explicit}`);\n }\n const packageRoot = resolveTypiaPackageRoot();\n const manifest = resolveFromRoots(\"@typescript/native-preview/package.json\", [packageRoot, path_1.default.resolve(packageRoot, \"..\", \"..\")]);\n if (manifest === null) {\n throw new URIError(\"Error on TypiaGenerateWizard.generate(): unable to resolve @typescript/native-preview from the typia package or workspace root.\");\n }\n const platform = `@typescript/native-preview-${process.platform}-${process.arch}`;\n const platformManifest = (0, module_1.createRequire)(manifest).resolve(`${platform}/package.json`);\n const binary = path_1.default.join(path_1.default.dirname(platformManifest), \"lib\", process.platform === \"win32\" ? \"tsgo.exe\" : \"tsgo\");\n if (fs_1.default.existsSync(binary) === false) {\n throw new URIError(`Error on TypiaGenerateWizard.generate(): TypeScript-Go executable not found: ${binary}`);\n }\n return binary;\n }\n function resolveTypiaPackageRoot() {\n const current = path_1.default.resolve(__dirname);\n for (const directory of [\n path_1.default.resolve(current, \"..\", \"..\"),\n path_1.default.resolve(current, \"..\"),\n ]) {\n const file = path_1.default.join(directory, \"package.json\");\n if (fs_1.default.existsSync(file) === false) {\n continue;\n }\n try {\n const pack = JSON.parse(fs_1.default.readFileSync(file, \"utf8\"));\n if (pack.name === \"typia\") {\n return directory;\n }\n }\n catch (_a) {\n continue;\n }\n }\n const resolved = resolveFromRoots(\"typia/package.json\", [\n process.cwd(),\n current,\n ]);\n if (resolved === null) {\n throw new URIError(\"Error on TypiaGenerateWizard.generate(): unable to resolve typia package root.\");\n }\n return path_1.default.dirname(resolved);\n }\n function resolveFromRoots(request, roots) {\n for (const root of roots) {\n try {\n return require.resolve(request, { paths: [root] });\n }\n catch (_a) {\n continue;\n }\n }\n return null;\n }\n function isDirectory(current) {\n return __awaiter(this, void 0, void 0, function* () {\n const stat = yield fs_1.default.promises.stat(current);\n return stat.isDirectory();\n });\n }\n function gather(props) {\n return __awaiter(this, void 0, void 0, function* () {\n if (props.from === props.location.output)\n return;\n if (fs_1.default.existsSync(props.to) === false) {\n yield fs_1.default.promises.mkdir(props.to);\n }\n for (const file of yield fs_1.default.promises.readdir(props.from)) {\n const next = path_1.default.join(props.from, file);\n const stat = yield fs_1.default.promises.stat(next);\n if (stat.isDirectory()) {\n yield gather({\n location: props.location,\n container: props.container,\n from: next,\n to: path_1.default.join(props.to, file),\n });\n continue;\n }\n if (isSupportedExtension(file)) {\n props.container.push(next);\n }\n }\n });\n }\n function isSupportedExtension(filename) {\n return TS_PATTERN.test(filename) && !DTS_PATTERN.test(filename);\n }\n function formatOutput(output) {\n return output.startsWith(\"// @ts-nocheck\")\n ? output\n : `// @ts-nocheck\\n${output}`;\n }\n})(TypiaGenerateWizard || (exports.TypiaGenerateWizard = TypiaGenerateWizard = {}));\nconst TS_PATTERN = /\\.[cm]?tsx?$/;\nconst DTS_PATTERN = /\\.d\\.[cm]?tsx?$/;\n//# sourceMappingURL=TypiaGenerateWizard.js.map"],"names":["this","TypiaGenerateWizard_1","require$$1","require$$2","require$$4","require$$5"],"mappings":";;;;;;;;;;AACA,IAAI,SAAS,GAAG,CAACA,qBAAI,IAAIA,qBAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA,CAAE,CAAC,CAAC,CAAA;AAC9G,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAA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CAAC,SAAS;AAClD,wBAAwB,IAAI,EAAE,IAAI;AAClC,wBAAwB,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC;AAC/D,qBAAqB,CAAC;AACtB,oBAAoB;AACpB,gBAAA;AACA,gBAAgB,IAAI,oBAAoB,CAAC,IAAI,CAAC,EAAE;AAChD,oBAAoB,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9C,gBAAA;AACA,YAAA;AACA,QAAA,CAAS,CAAC;AACV,IAAA;AACA,IAAI,SAAS,oBAAoB,CAAC,QAAQ,EAAE;AAC5C,QAAQ,OAAO,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;AACvE,IAAA;AACA,IAAI,SAAS,YAAY,CAAC,MAAM,EAAE;AAClC,QAAQ,OAAO,MAAM,CAAC,UAAU,CAAC,gBAAgB;AACjD,cAAc;AACd,cAAc,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;AACzC,IAAA;AACA,CAAC,EAAE,mBAAmB,KAAK,qBAAA,GAAAJ,qBAAA,CAAA,mBAA2B,GAAG,mBAAmB,GAAG,EAAE,CAAC,CAAC;AACnF,MAAM,UAAU,GAAG,cAAc;AACjC,MAAM,WAAW,GAAG,iBAAiB;;;;"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var TypiaSetupWizardExports = requireTypiaSetupWizard();
|
|
5
|
-
var TypiaSetupWizard = /*@__PURE__*/getDefaultExportFromCjs(TypiaSetupWizardExports);
|
|
6
|
-
|
|
7
|
-
export { TypiaSetupWizard as default };
|
|
1
|
+
export { TypiaSetupWizard } from './TypiaSetupWizard2.mjs';
|
|
2
|
+
export { __exports as default } from '../_virtual/TypiaSetupWizard.mjs';
|
|
8
3
|
//# sourceMappingURL=TypiaSetupWizard.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypiaSetupWizard.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"TypiaSetupWizard.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|