typia 13.0.0 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/TypeGuardError.mjs +42 -3
- package/lib/TypeGuardError.mjs.map +1 -1
- package/lib/_virtual/_rolldown/runtime.mjs +17 -0
- package/lib/compare.mjs +39 -3
- package/lib/compare.mjs.map +1 -1
- package/lib/executable/TypiaGenerateWizard.js +7 -2
- package/lib/executable/TypiaGenerateWizard.js.map +1 -1
- package/lib/executable/TypiaGenerateWizard.mjs +474 -3
- package/lib/executable/TypiaGenerateWizard.mjs.map +1 -1
- package/lib/executable/generate/ttsc.js +11 -8
- package/lib/executable/generate/ttsc.js.map +1 -1
- package/lib/executable/generate/ttsc.mjs +37 -3
- package/lib/executable/generate/ttsc.mjs.map +1 -1
- package/lib/executable/typia.js +10 -4
- package/lib/executable/typia.js.map +1 -1
- package/lib/executable/typia.mjs +59 -3
- package/lib/executable/typia.mjs.map +1 -1
- package/lib/functional.mjs +99 -3
- package/lib/functional.mjs.map +1 -1
- package/lib/http.mjs +139 -3
- package/lib/http.mjs.map +1 -1
- package/lib/index.mjs +18 -2
- package/lib/index.mjs.map +1 -1
- package/lib/internal/_IProtobufWriter.mjs +0 -3
- package/lib/internal/_ProtobufReader.js +7 -6
- package/lib/internal/_ProtobufReader.js.map +1 -1
- package/lib/internal/_ProtobufReader.mjs +140 -3
- package/lib/internal/_ProtobufReader.mjs.map +1 -1
- package/lib/internal/_ProtobufSizer.mjs +84 -3
- package/lib/internal/_ProtobufSizer.mjs.map +1 -1
- package/lib/internal/_ProtobufWriter.mjs +94 -3
- package/lib/internal/_ProtobufWriter.mjs.map +1 -1
- package/lib/internal/_accessExpressionAsString.mjs +46 -3
- package/lib/internal/_accessExpressionAsString.mjs.map +1 -1
- package/lib/internal/_assertGuard.mjs +11 -3
- package/lib/internal/_assertGuard.mjs.map +1 -1
- package/lib/internal/_coerceLlmArguments.mjs +7 -3
- package/lib/internal/_coerceLlmArguments.mjs.map +1 -1
- package/lib/internal/_createStandardSchema.mjs +64 -3
- package/lib/internal/_createStandardSchema.mjs.map +1 -1
- package/lib/internal/_functionalTypeGuardErrorFactory.mjs +7 -3
- package/lib/internal/_functionalTypeGuardErrorFactory.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadArray.mjs +6 -3
- package/lib/internal/_httpFormDataReadArray.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBigint.mjs +13 -3
- package/lib/internal/_httpFormDataReadBigint.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBlob.mjs +6 -3
- package/lib/internal/_httpFormDataReadBlob.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBoolean.mjs +6 -3
- package/lib/internal/_httpFormDataReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadFile.mjs +6 -3
- package/lib/internal/_httpFormDataReadFile.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadNumber.mjs +10 -3
- package/lib/internal/_httpFormDataReadNumber.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadString.mjs +6 -3
- package/lib/internal/_httpFormDataReadString.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBigint.mjs +13 -3
- package/lib/internal/_httpHeaderReadBigint.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBoolean.mjs +6 -3
- package/lib/internal/_httpHeaderReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadNumber.mjs +10 -3
- package/lib/internal/_httpHeaderReadNumber.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBigint.mjs +13 -3
- package/lib/internal/_httpParameterReadBigint.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBoolean.mjs +6 -3
- package/lib/internal/_httpParameterReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpParameterReadNumber.mjs +10 -3
- package/lib/internal/_httpParameterReadNumber.mjs.map +1 -1
- package/lib/internal/_httpParameterReadString.mjs +6 -3
- package/lib/internal/_httpParameterReadString.mjs.map +1 -1
- package/lib/internal/_httpQueryParseURLSearchParams.mjs +13 -3
- package/lib/internal/_httpQueryParseURLSearchParams.mjs.map +1 -1
- package/lib/internal/_httpQueryReadArray.mjs +6 -3
- package/lib/internal/_httpQueryReadArray.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBigint.mjs +13 -3
- package/lib/internal/_httpQueryReadBigint.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBoolean.mjs +6 -3
- package/lib/internal/_httpQueryReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpQueryReadNumber.mjs +10 -3
- package/lib/internal/_httpQueryReadNumber.mjs.map +1 -1
- package/lib/internal/_httpQueryReadString.mjs +6 -3
- package/lib/internal/_httpQueryReadString.mjs.map +1 -1
- package/lib/internal/_isBetween.mjs +6 -3
- package/lib/internal/_isBetween.mjs.map +1 -1
- package/lib/internal/_isBigintString.mjs +13 -3
- package/lib/internal/_isBigintString.mjs.map +1 -1
- package/lib/internal/_isFormatByte.mjs +10 -3
- package/lib/internal/_isFormatByte.mjs.map +1 -1
- package/lib/internal/_isFormatDate.mjs +7 -3
- package/lib/internal/_isFormatDate.mjs.map +1 -1
- package/lib/internal/_isFormatDateTime.mjs +7 -3
- package/lib/internal/_isFormatDateTime.mjs.map +1 -1
- package/lib/internal/_isFormatDuration.mjs +7 -3
- package/lib/internal/_isFormatDuration.mjs.map +1 -1
- package/lib/internal/_isFormatEmail.mjs +7 -3
- package/lib/internal/_isFormatEmail.mjs.map +1 -1
- package/lib/internal/_isFormatHostname.mjs +7 -3
- package/lib/internal/_isFormatHostname.mjs.map +1 -1
- package/lib/internal/_isFormatIdnEmail.mjs +7 -3
- package/lib/internal/_isFormatIdnEmail.mjs.map +1 -1
- package/lib/internal/_isFormatIdnHostname.mjs +7 -3
- package/lib/internal/_isFormatIdnHostname.mjs.map +1 -1
- package/lib/internal/_isFormatIpv4.mjs +7 -3
- package/lib/internal/_isFormatIpv4.mjs.map +1 -1
- package/lib/internal/_isFormatIpv6.mjs +7 -3
- package/lib/internal/_isFormatIpv6.mjs.map +1 -1
- package/lib/internal/_isFormatIri.mjs +7 -3
- package/lib/internal/_isFormatIri.mjs.map +1 -1
- package/lib/internal/_isFormatIriReference.mjs +7 -3
- package/lib/internal/_isFormatIriReference.mjs.map +1 -1
- package/lib/internal/_isFormatJsonPointer.mjs +7 -3
- package/lib/internal/_isFormatJsonPointer.mjs.map +1 -1
- package/lib/internal/_isFormatPassword.mjs +6 -3
- package/lib/internal/_isFormatPassword.mjs.map +1 -1
- package/lib/internal/_isFormatRegex.mjs +13 -3
- package/lib/internal/_isFormatRegex.mjs.map +1 -1
- package/lib/internal/_isFormatRelativeJsonPointer.mjs +7 -3
- package/lib/internal/_isFormatRelativeJsonPointer.mjs.map +1 -1
- package/lib/internal/_isFormatTime.mjs +7 -3
- package/lib/internal/_isFormatTime.mjs.map +1 -1
- package/lib/internal/_isFormatUri.mjs +8 -3
- package/lib/internal/_isFormatUri.mjs.map +1 -1
- package/lib/internal/_isFormatUriReference.mjs +7 -3
- package/lib/internal/_isFormatUriReference.mjs.map +1 -1
- package/lib/internal/_isFormatUriTemplate.mjs +7 -3
- package/lib/internal/_isFormatUriTemplate.mjs.map +1 -1
- package/lib/internal/_isFormatUrl.mjs +7 -3
- package/lib/internal/_isFormatUrl.mjs.map +1 -1
- package/lib/internal/_isFormatUuid.mjs +7 -3
- package/lib/internal/_isFormatUuid.mjs.map +1 -1
- package/lib/internal/_isTypeFloat.mjs +8 -3
- package/lib/internal/_isTypeFloat.mjs.map +1 -1
- package/lib/internal/_isTypeInt16.mjs +8 -3
- package/lib/internal/_isTypeInt16.mjs.map +1 -1
- package/lib/internal/_isTypeInt32.mjs +8 -3
- package/lib/internal/_isTypeInt32.mjs.map +1 -1
- package/lib/internal/_isTypeInt64.mjs +8 -3
- package/lib/internal/_isTypeInt64.mjs.map +1 -1
- package/lib/internal/_isTypeInt8.mjs +8 -3
- package/lib/internal/_isTypeInt8.mjs.map +1 -1
- package/lib/internal/_isTypeUint16.mjs +8 -3
- package/lib/internal/_isTypeUint16.mjs.map +1 -1
- package/lib/internal/_isTypeUint32.mjs +8 -3
- package/lib/internal/_isTypeUint32.mjs.map +1 -1
- package/lib/internal/_isTypeUint64.mjs +8 -3
- package/lib/internal/_isTypeUint64.mjs.map +1 -1
- package/lib/internal/_isTypeUint8.mjs +8 -3
- package/lib/internal/_isTypeUint8.mjs.map +1 -1
- package/lib/internal/_isUniqueItems.mjs +67 -3
- package/lib/internal/_isUniqueItems.mjs.map +1 -1
- package/lib/internal/_jsonStringifyNumber.mjs +6 -3
- package/lib/internal/_jsonStringifyNumber.mjs.map +1 -1
- package/lib/internal/_jsonStringifyRest.mjs +8 -3
- package/lib/internal/_jsonStringifyRest.mjs.map +1 -1
- package/lib/internal/_jsonStringifyString.mjs +34 -3
- package/lib/internal/_jsonStringifyString.mjs.map +1 -1
- package/lib/internal/_jsonStringifyTail.mjs +6 -3
- package/lib/internal/_jsonStringifyTail.mjs.map +1 -1
- package/lib/internal/_llmApplicationFinalize.mjs +19 -3
- package/lib/internal/_llmApplicationFinalize.mjs.map +1 -1
- package/lib/internal/_notationAny.mjs +18 -3
- package/lib/internal/_notationAny.mjs.map +1 -1
- package/lib/internal/_notationCamel.mjs +11 -3
- package/lib/internal/_notationCamel.mjs.map +1 -1
- package/lib/internal/_notationPascal.mjs +11 -3
- package/lib/internal/_notationPascal.mjs.map +1 -1
- package/lib/internal/_notationSnake.mjs +32 -3
- package/lib/internal/_notationSnake.mjs.map +1 -1
- package/lib/internal/_parseLlmArguments.mjs +7 -3
- package/lib/internal/_parseLlmArguments.mjs.map +1 -1
- package/lib/internal/_plainCloneAny.mjs +35 -3
- package/lib/internal/_plainCloneAny.mjs.map +1 -1
- package/lib/internal/_randomArray.mjs +22 -3
- package/lib/internal/_randomArray.mjs.map +1 -1
- package/lib/internal/_randomBigint.mjs +7 -3
- package/lib/internal/_randomBigint.mjs.map +1 -1
- package/lib/internal/_randomBoolean.mjs +6 -3
- package/lib/internal/_randomBoolean.mjs.map +1 -1
- package/lib/internal/_randomFormatByte.mjs +7 -3
- package/lib/internal/_randomFormatByte.mjs.map +1 -1
- package/lib/internal/_randomFormatDate.mjs +11 -3
- package/lib/internal/_randomFormatDate.mjs.map +1 -1
- package/lib/internal/_randomFormatDatetime.mjs +11 -3
- package/lib/internal/_randomFormatDatetime.mjs.map +1 -1
- package/lib/internal/_randomFormatDuration.mjs +26 -3
- package/lib/internal/_randomFormatDuration.mjs.map +1 -1
- package/lib/internal/_randomFormatEmail.mjs +12 -3
- package/lib/internal/_randomFormatEmail.mjs.map +1 -1
- package/lib/internal/_randomFormatHostname.mjs +12 -3
- package/lib/internal/_randomFormatHostname.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnEmail.mjs +7 -3
- package/lib/internal/_randomFormatIdnEmail.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnHostname.mjs +7 -3
- package/lib/internal/_randomFormatIdnHostname.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv4.mjs +12 -3
- package/lib/internal/_randomFormatIpv4.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv6.mjs +12 -3
- package/lib/internal/_randomFormatIpv6.mjs.map +1 -1
- package/lib/internal/_randomFormatIri.mjs +7 -3
- package/lib/internal/_randomFormatIri.mjs.map +1 -1
- package/lib/internal/_randomFormatIriReference.mjs +7 -3
- package/lib/internal/_randomFormatIriReference.mjs.map +1 -1
- package/lib/internal/_randomFormatJsonPointer.mjs +12 -3
- package/lib/internal/_randomFormatJsonPointer.mjs.map +1 -1
- package/lib/internal/_randomFormatPassword.mjs +11 -3
- package/lib/internal/_randomFormatPassword.mjs.map +1 -1
- package/lib/internal/_randomFormatRegex.mjs +7 -3
- package/lib/internal/_randomFormatRegex.mjs.map +1 -1
- package/lib/internal/_randomFormatRelativeJsonPointer.mjs +11 -3
- package/lib/internal/_randomFormatRelativeJsonPointer.mjs.map +1 -1
- package/lib/internal/_randomFormatTime.mjs +12 -3
- package/lib/internal/_randomFormatTime.mjs.map +1 -1
- package/lib/internal/_randomFormatUri.mjs +7 -3
- package/lib/internal/_randomFormatUri.mjs.map +1 -1
- package/lib/internal/_randomFormatUriReference.mjs +7 -3
- package/lib/internal/_randomFormatUriReference.mjs.map +1 -1
- package/lib/internal/_randomFormatUriTemplate.mjs +7 -3
- package/lib/internal/_randomFormatUriTemplate.mjs.map +1 -1
- package/lib/internal/_randomFormatUrl.mjs +12 -3
- package/lib/internal/_randomFormatUrl.mjs.map +1 -1
- package/lib/internal/_randomFormatUuid.mjs +9 -3
- package/lib/internal/_randomFormatUuid.mjs.map +1 -1
- package/lib/internal/_randomInteger.mjs +31 -3
- package/lib/internal/_randomInteger.mjs.map +1 -1
- package/lib/internal/_randomNumber.mjs +45 -3
- package/lib/internal/_randomNumber.mjs.map +1 -1
- package/lib/internal/_randomPattern.mjs +14 -3
- package/lib/internal/_randomPattern.mjs.map +1 -1
- package/lib/internal/_randomPick.mjs +12 -3
- package/lib/internal/_randomPick.mjs.map +1 -1
- package/lib/internal/_randomString.mjs +23 -3
- package/lib/internal/_randomString.mjs.map +1 -1
- package/lib/internal/_throwTypeGuardError.mjs +9 -3
- package/lib/internal/_throwTypeGuardError.mjs.map +1 -1
- package/lib/internal/_validateReport.mjs +23 -3
- package/lib/internal/_validateReport.mjs.map +1 -1
- package/lib/internal/private/__notationCapitalize.mjs +6 -3
- package/lib/internal/private/__notationCapitalize.mjs.map +1 -1
- package/lib/internal/private/__notationUnsnake.mjs +15 -3
- package/lib/internal/private/__notationUnsnake.mjs.map +1 -1
- package/lib/json.mjs +94 -3
- package/lib/json.mjs.map +1 -1
- package/lib/llm.mjs +54 -3
- package/lib/llm.mjs.map +1 -1
- package/lib/module.mjs +131 -2
- package/lib/module.mjs.map +1 -1
- package/lib/notations.mjs +169 -3
- package/lib/notations.mjs.map +1 -1
- package/lib/plain.mjs +119 -3
- package/lib/plain.mjs.map +1 -1
- package/lib/protobuf.mjs +94 -3
- package/lib/protobuf.mjs.map +1 -1
- package/lib/re-exports.d.ts +2 -1
- package/lib/re-exports.js +5 -1
- package/lib/re-exports.js.map +1 -1
- package/lib/re-exports.mjs +2 -2
- package/lib/reflect.mjs +29 -3
- package/lib/reflect.mjs.map +1 -1
- package/lib/transform.mjs +15 -2
- package/lib/transform.mjs.map +1 -1
- package/lib/transformers/NoTransformConfigurationError.mjs +19 -3
- package/lib/transformers/NoTransformConfigurationError.mjs.map +1 -1
- package/native/core/factories/LiteralFactory.go +37 -0
- package/native/core/factories/literal_factory_ordered_object_marshals_json_test.go +40 -0
- package/package.json +6 -13
- package/src/executable/TypiaGenerateWizard.ts +5 -1
- package/src/executable/generate/ttsc.ts +3 -4
- package/src/executable/typia.ts +8 -4
- package/src/re-exports.ts +8 -3
- package/lib/TypeGuardError2.mjs +0 -55
- package/lib/TypeGuardError2.mjs.map +0 -1
- package/lib/_virtual/NoTransformConfigurationError.mjs +0 -4
- package/lib/_virtual/NoTransformConfigurationError.mjs.map +0 -1
- package/lib/_virtual/TypeGuardError.mjs +0 -4
- package/lib/_virtual/TypeGuardError.mjs.map +0 -1
- package/lib/_virtual/TypiaGenerateWizard.mjs +0 -4
- package/lib/_virtual/TypiaGenerateWizard.mjs.map +0 -1
- package/lib/_virtual/_IProtobufWriter.mjs +0 -4
- package/lib/_virtual/_IProtobufWriter.mjs.map +0 -1
- package/lib/_virtual/_ProtobufReader.mjs +0 -4
- package/lib/_virtual/_ProtobufReader.mjs.map +0 -1
- package/lib/_virtual/_ProtobufSizer.mjs +0 -4
- package/lib/_virtual/_ProtobufSizer.mjs.map +0 -1
- package/lib/_virtual/_ProtobufWriter.mjs +0 -4
- package/lib/_virtual/_ProtobufWriter.mjs.map +0 -1
- package/lib/_virtual/__notationCapitalize.mjs +0 -4
- package/lib/_virtual/__notationCapitalize.mjs.map +0 -1
- package/lib/_virtual/__notationUnsnake.mjs +0 -4
- package/lib/_virtual/__notationUnsnake.mjs.map +0 -1
- package/lib/_virtual/_accessExpressionAsString.mjs +0 -4
- package/lib/_virtual/_accessExpressionAsString.mjs.map +0 -1
- package/lib/_virtual/_assertGuard.mjs +0 -4
- package/lib/_virtual/_assertGuard.mjs.map +0 -1
- package/lib/_virtual/_coerceLlmArguments.mjs +0 -4
- package/lib/_virtual/_coerceLlmArguments.mjs.map +0 -1
- package/lib/_virtual/_commander.mjs +0 -7
- package/lib/_virtual/_commander.mjs.map +0 -1
- package/lib/_virtual/_commonjsHelpers.mjs +0 -35
- package/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/lib/_virtual/_createStandardSchema.mjs +0 -4
- package/lib/_virtual/_createStandardSchema.mjs.map +0 -1
- package/lib/_virtual/_functionalTypeGuardErrorFactory.mjs +0 -4
- package/lib/_virtual/_functionalTypeGuardErrorFactory.mjs.map +0 -1
- package/lib/_virtual/_httpFormDataReadArray.mjs +0 -4
- package/lib/_virtual/_httpFormDataReadArray.mjs.map +0 -1
- package/lib/_virtual/_httpFormDataReadBigint.mjs +0 -4
- package/lib/_virtual/_httpFormDataReadBigint.mjs.map +0 -1
- package/lib/_virtual/_httpFormDataReadBlob.mjs +0 -4
- package/lib/_virtual/_httpFormDataReadBlob.mjs.map +0 -1
- package/lib/_virtual/_httpFormDataReadBoolean.mjs +0 -4
- package/lib/_virtual/_httpFormDataReadBoolean.mjs.map +0 -1
- package/lib/_virtual/_httpFormDataReadFile.mjs +0 -4
- package/lib/_virtual/_httpFormDataReadFile.mjs.map +0 -1
- package/lib/_virtual/_httpFormDataReadNumber.mjs +0 -4
- package/lib/_virtual/_httpFormDataReadNumber.mjs.map +0 -1
- package/lib/_virtual/_httpFormDataReadString.mjs +0 -4
- package/lib/_virtual/_httpFormDataReadString.mjs.map +0 -1
- package/lib/_virtual/_httpHeaderReadBigint.mjs +0 -4
- package/lib/_virtual/_httpHeaderReadBigint.mjs.map +0 -1
- package/lib/_virtual/_httpHeaderReadBoolean.mjs +0 -4
- package/lib/_virtual/_httpHeaderReadBoolean.mjs.map +0 -1
- package/lib/_virtual/_httpHeaderReadNumber.mjs +0 -4
- package/lib/_virtual/_httpHeaderReadNumber.mjs.map +0 -1
- package/lib/_virtual/_httpParameterReadBigint.mjs +0 -4
- package/lib/_virtual/_httpParameterReadBigint.mjs.map +0 -1
- package/lib/_virtual/_httpParameterReadBoolean.mjs +0 -4
- package/lib/_virtual/_httpParameterReadBoolean.mjs.map +0 -1
- package/lib/_virtual/_httpParameterReadNumber.mjs +0 -4
- package/lib/_virtual/_httpParameterReadNumber.mjs.map +0 -1
- package/lib/_virtual/_httpParameterReadString.mjs +0 -4
- package/lib/_virtual/_httpParameterReadString.mjs.map +0 -1
- package/lib/_virtual/_httpQueryParseURLSearchParams.mjs +0 -4
- package/lib/_virtual/_httpQueryParseURLSearchParams.mjs.map +0 -1
- package/lib/_virtual/_httpQueryReadArray.mjs +0 -4
- package/lib/_virtual/_httpQueryReadArray.mjs.map +0 -1
- package/lib/_virtual/_httpQueryReadBigint.mjs +0 -4
- package/lib/_virtual/_httpQueryReadBigint.mjs.map +0 -1
- package/lib/_virtual/_httpQueryReadBoolean.mjs +0 -4
- package/lib/_virtual/_httpQueryReadBoolean.mjs.map +0 -1
- package/lib/_virtual/_httpQueryReadNumber.mjs +0 -4
- package/lib/_virtual/_httpQueryReadNumber.mjs.map +0 -1
- package/lib/_virtual/_httpQueryReadString.mjs +0 -4
- package/lib/_virtual/_httpQueryReadString.mjs.map +0 -1
- package/lib/_virtual/_inquirer.mjs +0 -7
- package/lib/_virtual/_inquirer.mjs.map +0 -1
- package/lib/_virtual/_isBetween.mjs +0 -4
- package/lib/_virtual/_isBetween.mjs.map +0 -1
- package/lib/_virtual/_isBigintString.mjs +0 -4
- package/lib/_virtual/_isBigintString.mjs.map +0 -1
- package/lib/_virtual/_isFormatByte.mjs +0 -4
- package/lib/_virtual/_isFormatByte.mjs.map +0 -1
- package/lib/_virtual/_isFormatDate.mjs +0 -4
- package/lib/_virtual/_isFormatDate.mjs.map +0 -1
- package/lib/_virtual/_isFormatDateTime.mjs +0 -4
- package/lib/_virtual/_isFormatDateTime.mjs.map +0 -1
- package/lib/_virtual/_isFormatDuration.mjs +0 -4
- package/lib/_virtual/_isFormatDuration.mjs.map +0 -1
- package/lib/_virtual/_isFormatEmail.mjs +0 -4
- package/lib/_virtual/_isFormatEmail.mjs.map +0 -1
- package/lib/_virtual/_isFormatHostname.mjs +0 -4
- package/lib/_virtual/_isFormatHostname.mjs.map +0 -1
- package/lib/_virtual/_isFormatIdnEmail.mjs +0 -4
- package/lib/_virtual/_isFormatIdnEmail.mjs.map +0 -1
- package/lib/_virtual/_isFormatIdnHostname.mjs +0 -4
- package/lib/_virtual/_isFormatIdnHostname.mjs.map +0 -1
- package/lib/_virtual/_isFormatIpv4.mjs +0 -4
- package/lib/_virtual/_isFormatIpv4.mjs.map +0 -1
- package/lib/_virtual/_isFormatIpv6.mjs +0 -4
- package/lib/_virtual/_isFormatIpv6.mjs.map +0 -1
- package/lib/_virtual/_isFormatIri.mjs +0 -4
- package/lib/_virtual/_isFormatIri.mjs.map +0 -1
- package/lib/_virtual/_isFormatIriReference.mjs +0 -4
- package/lib/_virtual/_isFormatIriReference.mjs.map +0 -1
- package/lib/_virtual/_isFormatJsonPointer.mjs +0 -4
- package/lib/_virtual/_isFormatJsonPointer.mjs.map +0 -1
- package/lib/_virtual/_isFormatPassword.mjs +0 -4
- package/lib/_virtual/_isFormatPassword.mjs.map +0 -1
- package/lib/_virtual/_isFormatRegex.mjs +0 -4
- package/lib/_virtual/_isFormatRegex.mjs.map +0 -1
- package/lib/_virtual/_isFormatRelativeJsonPointer.mjs +0 -4
- package/lib/_virtual/_isFormatRelativeJsonPointer.mjs.map +0 -1
- package/lib/_virtual/_isFormatTime.mjs +0 -4
- package/lib/_virtual/_isFormatTime.mjs.map +0 -1
- package/lib/_virtual/_isFormatUri.mjs +0 -4
- package/lib/_virtual/_isFormatUri.mjs.map +0 -1
- package/lib/_virtual/_isFormatUriReference.mjs +0 -4
- package/lib/_virtual/_isFormatUriReference.mjs.map +0 -1
- package/lib/_virtual/_isFormatUriTemplate.mjs +0 -4
- package/lib/_virtual/_isFormatUriTemplate.mjs.map +0 -1
- package/lib/_virtual/_isFormatUrl.mjs +0 -4
- package/lib/_virtual/_isFormatUrl.mjs.map +0 -1
- package/lib/_virtual/_isFormatUuid.mjs +0 -4
- package/lib/_virtual/_isFormatUuid.mjs.map +0 -1
- package/lib/_virtual/_isTypeFloat.mjs +0 -4
- package/lib/_virtual/_isTypeFloat.mjs.map +0 -1
- package/lib/_virtual/_isTypeInt16.mjs +0 -4
- package/lib/_virtual/_isTypeInt16.mjs.map +0 -1
- package/lib/_virtual/_isTypeInt32.mjs +0 -4
- package/lib/_virtual/_isTypeInt32.mjs.map +0 -1
- package/lib/_virtual/_isTypeInt64.mjs +0 -4
- package/lib/_virtual/_isTypeInt64.mjs.map +0 -1
- package/lib/_virtual/_isTypeInt8.mjs +0 -4
- package/lib/_virtual/_isTypeInt8.mjs.map +0 -1
- package/lib/_virtual/_isTypeUint16.mjs +0 -4
- package/lib/_virtual/_isTypeUint16.mjs.map +0 -1
- package/lib/_virtual/_isTypeUint32.mjs +0 -4
- package/lib/_virtual/_isTypeUint32.mjs.map +0 -1
- package/lib/_virtual/_isTypeUint64.mjs +0 -4
- package/lib/_virtual/_isTypeUint64.mjs.map +0 -1
- package/lib/_virtual/_isTypeUint8.mjs +0 -4
- package/lib/_virtual/_isTypeUint8.mjs.map +0 -1
- package/lib/_virtual/_isUniqueItems.mjs +0 -4
- package/lib/_virtual/_isUniqueItems.mjs.map +0 -1
- package/lib/_virtual/_jsonStringifyNumber.mjs +0 -4
- package/lib/_virtual/_jsonStringifyNumber.mjs.map +0 -1
- package/lib/_virtual/_jsonStringifyRest.mjs +0 -4
- package/lib/_virtual/_jsonStringifyRest.mjs.map +0 -1
- package/lib/_virtual/_jsonStringifyString.mjs +0 -4
- package/lib/_virtual/_jsonStringifyString.mjs.map +0 -1
- package/lib/_virtual/_jsonStringifyTail.mjs +0 -4
- package/lib/_virtual/_jsonStringifyTail.mjs.map +0 -1
- package/lib/_virtual/_llmApplicationFinalize.mjs +0 -4
- package/lib/_virtual/_llmApplicationFinalize.mjs.map +0 -1
- package/lib/_virtual/_node_child_process.mjs +0 -7
- package/lib/_virtual/_node_child_process.mjs.map +0 -1
- package/lib/_virtual/_node_fs.mjs +0 -7
- package/lib/_virtual/_node_fs.mjs.map +0 -1
- package/lib/_virtual/_node_module.mjs +0 -7
- package/lib/_virtual/_node_module.mjs.map +0 -1
- package/lib/_virtual/_node_path.mjs +0 -7
- package/lib/_virtual/_node_path.mjs.map +0 -1
- package/lib/_virtual/_notationAny.mjs +0 -4
- package/lib/_virtual/_notationAny.mjs.map +0 -1
- package/lib/_virtual/_notationCamel.mjs +0 -4
- package/lib/_virtual/_notationCamel.mjs.map +0 -1
- package/lib/_virtual/_notationPascal.mjs +0 -4
- package/lib/_virtual/_notationPascal.mjs.map +0 -1
- package/lib/_virtual/_notationSnake.mjs +0 -4
- package/lib/_virtual/_notationSnake.mjs.map +0 -1
- package/lib/_virtual/_parseLlmArguments.mjs +0 -4
- package/lib/_virtual/_parseLlmArguments.mjs.map +0 -1
- package/lib/_virtual/_plainCloneAny.mjs +0 -4
- package/lib/_virtual/_plainCloneAny.mjs.map +0 -1
- package/lib/_virtual/_randexp.mjs +0 -7
- package/lib/_virtual/_randexp.mjs.map +0 -1
- package/lib/_virtual/_randomArray.mjs +0 -4
- package/lib/_virtual/_randomArray.mjs.map +0 -1
- package/lib/_virtual/_randomBigint.mjs +0 -4
- package/lib/_virtual/_randomBigint.mjs.map +0 -1
- package/lib/_virtual/_randomBoolean.mjs +0 -4
- package/lib/_virtual/_randomBoolean.mjs.map +0 -1
- package/lib/_virtual/_randomFormatByte.mjs +0 -4
- package/lib/_virtual/_randomFormatByte.mjs.map +0 -1
- package/lib/_virtual/_randomFormatDate.mjs +0 -4
- package/lib/_virtual/_randomFormatDate.mjs.map +0 -1
- package/lib/_virtual/_randomFormatDatetime.mjs +0 -4
- package/lib/_virtual/_randomFormatDatetime.mjs.map +0 -1
- package/lib/_virtual/_randomFormatDuration.mjs +0 -4
- package/lib/_virtual/_randomFormatDuration.mjs.map +0 -1
- package/lib/_virtual/_randomFormatEmail.mjs +0 -4
- package/lib/_virtual/_randomFormatEmail.mjs.map +0 -1
- package/lib/_virtual/_randomFormatHostname.mjs +0 -4
- package/lib/_virtual/_randomFormatHostname.mjs.map +0 -1
- package/lib/_virtual/_randomFormatIdnEmail.mjs +0 -4
- package/lib/_virtual/_randomFormatIdnEmail.mjs.map +0 -1
- package/lib/_virtual/_randomFormatIdnHostname.mjs +0 -4
- package/lib/_virtual/_randomFormatIdnHostname.mjs.map +0 -1
- package/lib/_virtual/_randomFormatIpv4.mjs +0 -4
- package/lib/_virtual/_randomFormatIpv4.mjs.map +0 -1
- package/lib/_virtual/_randomFormatIpv6.mjs +0 -4
- package/lib/_virtual/_randomFormatIpv6.mjs.map +0 -1
- package/lib/_virtual/_randomFormatIri.mjs +0 -4
- package/lib/_virtual/_randomFormatIri.mjs.map +0 -1
- package/lib/_virtual/_randomFormatIriReference.mjs +0 -4
- package/lib/_virtual/_randomFormatIriReference.mjs.map +0 -1
- package/lib/_virtual/_randomFormatJsonPointer.mjs +0 -4
- package/lib/_virtual/_randomFormatJsonPointer.mjs.map +0 -1
- package/lib/_virtual/_randomFormatPassword.mjs +0 -4
- package/lib/_virtual/_randomFormatPassword.mjs.map +0 -1
- package/lib/_virtual/_randomFormatRegex.mjs +0 -4
- package/lib/_virtual/_randomFormatRegex.mjs.map +0 -1
- package/lib/_virtual/_randomFormatRelativeJsonPointer.mjs +0 -4
- package/lib/_virtual/_randomFormatRelativeJsonPointer.mjs.map +0 -1
- package/lib/_virtual/_randomFormatTime.mjs +0 -4
- package/lib/_virtual/_randomFormatTime.mjs.map +0 -1
- package/lib/_virtual/_randomFormatUri.mjs +0 -4
- package/lib/_virtual/_randomFormatUri.mjs.map +0 -1
- package/lib/_virtual/_randomFormatUriReference.mjs +0 -4
- package/lib/_virtual/_randomFormatUriReference.mjs.map +0 -1
- package/lib/_virtual/_randomFormatUriTemplate.mjs +0 -4
- package/lib/_virtual/_randomFormatUriTemplate.mjs.map +0 -1
- package/lib/_virtual/_randomFormatUrl.mjs +0 -4
- package/lib/_virtual/_randomFormatUrl.mjs.map +0 -1
- package/lib/_virtual/_randomFormatUuid.mjs +0 -4
- package/lib/_virtual/_randomFormatUuid.mjs.map +0 -1
- package/lib/_virtual/_randomInteger.mjs +0 -4
- package/lib/_virtual/_randomInteger.mjs.map +0 -1
- package/lib/_virtual/_randomNumber.mjs +0 -4
- package/lib/_virtual/_randomNumber.mjs.map +0 -1
- package/lib/_virtual/_randomPattern.mjs +0 -4
- package/lib/_virtual/_randomPattern.mjs.map +0 -1
- package/lib/_virtual/_randomPick.mjs +0 -4
- package/lib/_virtual/_randomPick.mjs.map +0 -1
- package/lib/_virtual/_randomString.mjs +0 -4
- package/lib/_virtual/_randomString.mjs.map +0 -1
- package/lib/_virtual/_throwTypeGuardError.mjs +0 -4
- package/lib/_virtual/_throwTypeGuardError.mjs.map +0 -1
- package/lib/_virtual/_tinyglobby.mjs +0 -7
- package/lib/_virtual/_tinyglobby.mjs.map +0 -1
- package/lib/_virtual/_validateReport.mjs +0 -4
- package/lib/_virtual/_validateReport.mjs.map +0 -1
- package/lib/_virtual/compare.mjs +0 -4
- package/lib/_virtual/compare.mjs.map +0 -1
- package/lib/_virtual/functional.mjs +0 -4
- package/lib/_virtual/functional.mjs.map +0 -1
- package/lib/_virtual/http.mjs +0 -4
- package/lib/_virtual/http.mjs.map +0 -1
- package/lib/_virtual/index.mjs +0 -4
- package/lib/_virtual/index.mjs.map +0 -1
- package/lib/_virtual/json.mjs +0 -4
- package/lib/_virtual/json.mjs.map +0 -1
- package/lib/_virtual/llm.mjs +0 -4
- package/lib/_virtual/llm.mjs.map +0 -1
- package/lib/_virtual/module.mjs +0 -4
- package/lib/_virtual/module.mjs.map +0 -1
- package/lib/_virtual/notations.mjs +0 -4
- package/lib/_virtual/notations.mjs.map +0 -1
- package/lib/_virtual/plain.mjs +0 -4
- package/lib/_virtual/plain.mjs.map +0 -1
- package/lib/_virtual/protobuf.mjs +0 -4
- package/lib/_virtual/protobuf.mjs.map +0 -1
- package/lib/_virtual/re-exports.mjs +0 -4
- package/lib/_virtual/re-exports.mjs.map +0 -1
- package/lib/_virtual/reflect.mjs +0 -4
- package/lib/_virtual/reflect.mjs.map +0 -1
- package/lib/_virtual/transform.mjs +0 -4
- package/lib/_virtual/transform.mjs.map +0 -1
- package/lib/_virtual/ttsc.mjs +0 -4
- package/lib/_virtual/ttsc.mjs.map +0 -1
- package/lib/_virtual/typia.mjs +0 -4
- package/lib/_virtual/typia.mjs.map +0 -1
- package/lib/compare2.mjs +0 -39
- package/lib/compare2.mjs.map +0 -1
- package/lib/executable/TypiaGenerateWizard2.mjs +0 -719
- package/lib/executable/TypiaGenerateWizard2.mjs.map +0 -1
- package/lib/executable/generate/ttsc2.mjs +0 -56
- package/lib/executable/generate/ttsc2.mjs.map +0 -1
- package/lib/executable/typia2.mjs +0 -88
- package/lib/executable/typia2.mjs.map +0 -1
- package/lib/functional2.mjs +0 -99
- package/lib/functional2.mjs.map +0 -1
- package/lib/http2.mjs +0 -139
- package/lib/http2.mjs.map +0 -1
- package/lib/index2.mjs +0 -53
- package/lib/index2.mjs.map +0 -1
- package/lib/internal/_IProtobufWriter.mjs.map +0 -1
- package/lib/internal/_IProtobufWriter2.mjs +0 -6
- package/lib/internal/_IProtobufWriter2.mjs.map +0 -1
- package/lib/internal/_ProtobufReader2.mjs +0 -169
- package/lib/internal/_ProtobufReader2.mjs.map +0 -1
- package/lib/internal/_ProtobufSizer2.mjs +0 -119
- package/lib/internal/_ProtobufSizer2.mjs.map +0 -1
- package/lib/internal/_ProtobufWriter2.mjs +0 -107
- package/lib/internal/_ProtobufWriter2.mjs.map +0 -1
- package/lib/internal/_accessExpressionAsString2.mjs +0 -49
- package/lib/internal/_accessExpressionAsString2.mjs.map +0 -1
- package/lib/internal/_assertGuard2.mjs +0 -20
- package/lib/internal/_assertGuard2.mjs.map +0 -1
- package/lib/internal/_coerceLlmArguments2.mjs +0 -11
- package/lib/internal/_coerceLlmArguments2.mjs.map +0 -1
- package/lib/internal/_createStandardSchema2.mjs +0 -138
- package/lib/internal/_createStandardSchema2.mjs.map +0 -1
- package/lib/internal/_functionalTypeGuardErrorFactory2.mjs +0 -12
- package/lib/internal/_functionalTypeGuardErrorFactory2.mjs.map +0 -1
- package/lib/internal/_httpFormDataReadArray2.mjs +0 -9
- package/lib/internal/_httpFormDataReadArray2.mjs.map +0 -1
- package/lib/internal/_httpFormDataReadBigint2.mjs +0 -23
- package/lib/internal/_httpFormDataReadBigint2.mjs.map +0 -1
- package/lib/internal/_httpFormDataReadBlob2.mjs +0 -15
- package/lib/internal/_httpFormDataReadBlob2.mjs.map +0 -1
- package/lib/internal/_httpFormDataReadBoolean2.mjs +0 -21
- package/lib/internal/_httpFormDataReadBoolean2.mjs.map +0 -1
- package/lib/internal/_httpFormDataReadFile2.mjs +0 -15
- package/lib/internal/_httpFormDataReadFile2.mjs.map +0 -1
- package/lib/internal/_httpFormDataReadNumber2.mjs +0 -19
- package/lib/internal/_httpFormDataReadNumber2.mjs.map +0 -1
- package/lib/internal/_httpFormDataReadString2.mjs +0 -15
- package/lib/internal/_httpFormDataReadString2.mjs.map +0 -1
- package/lib/internal/_httpHeaderReadBigint2.mjs +0 -17
- package/lib/internal/_httpHeaderReadBigint2.mjs.map +0 -1
- package/lib/internal/_httpHeaderReadBoolean2.mjs +0 -15
- package/lib/internal/_httpHeaderReadBoolean2.mjs.map +0 -1
- package/lib/internal/_httpHeaderReadNumber2.mjs +0 -13
- package/lib/internal/_httpHeaderReadNumber2.mjs.map +0 -1
- package/lib/internal/_httpParameterReadBigint2.mjs +0 -17
- package/lib/internal/_httpParameterReadBigint2.mjs.map +0 -1
- package/lib/internal/_httpParameterReadBoolean2.mjs +0 -15
- package/lib/internal/_httpParameterReadBoolean2.mjs.map +0 -1
- package/lib/internal/_httpParameterReadNumber2.mjs +0 -13
- package/lib/internal/_httpParameterReadNumber2.mjs.map +0 -1
- package/lib/internal/_httpParameterReadString2.mjs +0 -9
- package/lib/internal/_httpParameterReadString2.mjs.map +0 -1
- package/lib/internal/_httpQueryParseURLSearchParams2.mjs +0 -16
- package/lib/internal/_httpQueryParseURLSearchParams2.mjs.map +0 -1
- package/lib/internal/_httpQueryReadArray2.mjs +0 -9
- package/lib/internal/_httpQueryReadArray2.mjs.map +0 -1
- package/lib/internal/_httpQueryReadBigint2.mjs +0 -17
- package/lib/internal/_httpQueryReadBigint2.mjs.map +0 -1
- package/lib/internal/_httpQueryReadBoolean2.mjs +0 -19
- package/lib/internal/_httpQueryReadBoolean2.mjs.map +0 -1
- package/lib/internal/_httpQueryReadNumber2.mjs +0 -13
- package/lib/internal/_httpQueryReadNumber2.mjs.map +0 -1
- package/lib/internal/_httpQueryReadString2.mjs +0 -9
- package/lib/internal/_httpQueryReadString2.mjs.map +0 -1
- package/lib/internal/_isBetween2.mjs +0 -9
- package/lib/internal/_isBetween2.mjs.map +0 -1
- package/lib/internal/_isBigintString2.mjs +0 -17
- package/lib/internal/_isBigintString2.mjs.map +0 -1
- package/lib/internal/_isFormatByte2.mjs +0 -13
- package/lib/internal/_isFormatByte2.mjs.map +0 -1
- package/lib/internal/_isFormatDate2.mjs +0 -10
- package/lib/internal/_isFormatDate2.mjs.map +0 -1
- package/lib/internal/_isFormatDateTime2.mjs +0 -10
- package/lib/internal/_isFormatDateTime2.mjs.map +0 -1
- package/lib/internal/_isFormatDuration2.mjs +0 -10
- package/lib/internal/_isFormatDuration2.mjs.map +0 -1
- package/lib/internal/_isFormatEmail2.mjs +0 -10
- package/lib/internal/_isFormatEmail2.mjs.map +0 -1
- package/lib/internal/_isFormatHostname2.mjs +0 -10
- package/lib/internal/_isFormatHostname2.mjs.map +0 -1
- package/lib/internal/_isFormatIdnEmail2.mjs +0 -10
- package/lib/internal/_isFormatIdnEmail2.mjs.map +0 -1
- package/lib/internal/_isFormatIdnHostname2.mjs +0 -10
- package/lib/internal/_isFormatIdnHostname2.mjs.map +0 -1
- package/lib/internal/_isFormatIpv42.mjs +0 -10
- package/lib/internal/_isFormatIpv42.mjs.map +0 -1
- package/lib/internal/_isFormatIpv62.mjs +0 -10
- package/lib/internal/_isFormatIpv62.mjs.map +0 -1
- package/lib/internal/_isFormatIri2.mjs +0 -10
- package/lib/internal/_isFormatIri2.mjs.map +0 -1
- package/lib/internal/_isFormatIriReference2.mjs +0 -10
- package/lib/internal/_isFormatIriReference2.mjs.map +0 -1
- package/lib/internal/_isFormatJsonPointer2.mjs +0 -10
- package/lib/internal/_isFormatJsonPointer2.mjs.map +0 -1
- package/lib/internal/_isFormatPassword2.mjs +0 -9
- package/lib/internal/_isFormatPassword2.mjs.map +0 -1
- package/lib/internal/_isFormatRegex2.mjs +0 -17
- package/lib/internal/_isFormatRegex2.mjs.map +0 -1
- package/lib/internal/_isFormatRelativeJsonPointer2.mjs +0 -10
- package/lib/internal/_isFormatRelativeJsonPointer2.mjs.map +0 -1
- package/lib/internal/_isFormatTime2.mjs +0 -10
- package/lib/internal/_isFormatTime2.mjs.map +0 -1
- package/lib/internal/_isFormatUri2.mjs +0 -11
- package/lib/internal/_isFormatUri2.mjs.map +0 -1
- package/lib/internal/_isFormatUriReference2.mjs +0 -10
- package/lib/internal/_isFormatUriReference2.mjs.map +0 -1
- package/lib/internal/_isFormatUriTemplate2.mjs +0 -10
- package/lib/internal/_isFormatUriTemplate2.mjs.map +0 -1
- package/lib/internal/_isFormatUrl2.mjs +0 -10
- package/lib/internal/_isFormatUrl2.mjs.map +0 -1
- package/lib/internal/_isFormatUuid2.mjs +0 -10
- package/lib/internal/_isFormatUuid2.mjs.map +0 -1
- package/lib/internal/_isTypeFloat2.mjs +0 -11
- package/lib/internal/_isTypeFloat2.mjs.map +0 -1
- package/lib/internal/_isTypeInt162.mjs +0 -11
- package/lib/internal/_isTypeInt162.mjs.map +0 -1
- package/lib/internal/_isTypeInt322.mjs +0 -11
- package/lib/internal/_isTypeInt322.mjs.map +0 -1
- package/lib/internal/_isTypeInt642.mjs +0 -11
- package/lib/internal/_isTypeInt642.mjs.map +0 -1
- package/lib/internal/_isTypeInt82.mjs +0 -11
- package/lib/internal/_isTypeInt82.mjs.map +0 -1
- package/lib/internal/_isTypeUint162.mjs +0 -11
- package/lib/internal/_isTypeUint162.mjs.map +0 -1
- package/lib/internal/_isTypeUint322.mjs +0 -11
- package/lib/internal/_isTypeUint322.mjs.map +0 -1
- package/lib/internal/_isTypeUint642.mjs +0 -11
- package/lib/internal/_isTypeUint642.mjs.map +0 -1
- package/lib/internal/_isTypeUint82.mjs +0 -11
- package/lib/internal/_isTypeUint82.mjs.map +0 -1
- package/lib/internal/_isUniqueItems2.mjs +0 -143
- package/lib/internal/_isUniqueItems2.mjs.map +0 -1
- package/lib/internal/_jsonStringifyNumber2.mjs +0 -9
- package/lib/internal/_jsonStringifyNumber2.mjs.map +0 -1
- package/lib/internal/_jsonStringifyRest2.mjs +0 -11
- package/lib/internal/_jsonStringifyRest2.mjs.map +0 -1
- package/lib/internal/_jsonStringifyString2.mjs +0 -45
- package/lib/internal/_jsonStringifyString2.mjs.map +0 -1
- package/lib/internal/_jsonStringifyTail2.mjs +0 -9
- package/lib/internal/_jsonStringifyTail2.mjs.map +0 -1
- package/lib/internal/_llmApplicationFinalize2.mjs +0 -11
- package/lib/internal/_llmApplicationFinalize2.mjs.map +0 -1
- package/lib/internal/_notationAny2.mjs +0 -42
- package/lib/internal/_notationAny2.mjs.map +0 -1
- package/lib/internal/_notationCamel2.mjs +0 -21
- package/lib/internal/_notationCamel2.mjs.map +0 -1
- package/lib/internal/_notationPascal2.mjs +0 -17
- package/lib/internal/_notationPascal2.mjs.map +0 -1
- package/lib/internal/_notationSnake2.mjs +0 -54
- package/lib/internal/_notationSnake2.mjs.map +0 -1
- package/lib/internal/_parseLlmArguments2.mjs +0 -11
- package/lib/internal/_parseLlmArguments2.mjs.map +0 -1
- package/lib/internal/_plainCloneAny2.mjs +0 -67
- package/lib/internal/_plainCloneAny2.mjs.map +0 -1
- package/lib/internal/_randomArray2.mjs +0 -31
- package/lib/internal/_randomArray2.mjs.map +0 -1
- package/lib/internal/_randomBigint2.mjs +0 -12
- package/lib/internal/_randomBigint2.mjs.map +0 -1
- package/lib/internal/_randomBoolean2.mjs +0 -9
- package/lib/internal/_randomBoolean2.mjs.map +0 -1
- package/lib/internal/_randomFormatByte2.mjs +0 -10
- package/lib/internal/_randomFormatByte2.mjs.map +0 -1
- package/lib/internal/_randomFormatDate2.mjs +0 -20
- package/lib/internal/_randomFormatDate2.mjs.map +0 -1
- package/lib/internal/_randomFormatDatetime2.mjs +0 -18
- package/lib/internal/_randomFormatDatetime2.mjs.map +0 -1
- package/lib/internal/_randomFormatDuration2.mjs +0 -35
- package/lib/internal/_randomFormatDuration2.mjs.map +0 -1
- package/lib/internal/_randomFormatEmail2.mjs +0 -17
- package/lib/internal/_randomFormatEmail2.mjs.map +0 -1
- package/lib/internal/_randomFormatHostname2.mjs +0 -13
- package/lib/internal/_randomFormatHostname2.mjs.map +0 -1
- package/lib/internal/_randomFormatIdnEmail2.mjs +0 -12
- package/lib/internal/_randomFormatIdnEmail2.mjs.map +0 -1
- package/lib/internal/_randomFormatIdnHostname2.mjs +0 -12
- package/lib/internal/_randomFormatIdnHostname2.mjs.map +0 -1
- package/lib/internal/_randomFormatIpv42.mjs +0 -17
- package/lib/internal/_randomFormatIpv42.mjs.map +0 -1
- package/lib/internal/_randomFormatIpv62.mjs +0 -17
- package/lib/internal/_randomFormatIpv62.mjs.map +0 -1
- package/lib/internal/_randomFormatIri2.mjs +0 -12
- package/lib/internal/_randomFormatIri2.mjs.map +0 -1
- package/lib/internal/_randomFormatIriReference2.mjs +0 -12
- package/lib/internal/_randomFormatIriReference2.mjs.map +0 -1
- package/lib/internal/_randomFormatJsonPointer2.mjs +0 -13
- package/lib/internal/_randomFormatJsonPointer2.mjs.map +0 -1
- package/lib/internal/_randomFormatPassword2.mjs +0 -16
- package/lib/internal/_randomFormatPassword2.mjs.map +0 -1
- package/lib/internal/_randomFormatRegex2.mjs +0 -10
- package/lib/internal/_randomFormatRegex2.mjs.map +0 -1
- package/lib/internal/_randomFormatRelativeJsonPointer2.mjs +0 -16
- package/lib/internal/_randomFormatRelativeJsonPointer2.mjs.map +0 -1
- package/lib/internal/_randomFormatTime2.mjs +0 -19
- package/lib/internal/_randomFormatTime2.mjs.map +0 -1
- package/lib/internal/_randomFormatUri2.mjs +0 -12
- package/lib/internal/_randomFormatUri2.mjs.map +0 -1
- package/lib/internal/_randomFormatUriReference2.mjs +0 -12
- package/lib/internal/_randomFormatUriReference2.mjs.map +0 -1
- package/lib/internal/_randomFormatUriTemplate2.mjs +0 -12
- package/lib/internal/_randomFormatUriTemplate2.mjs.map +0 -1
- package/lib/internal/_randomFormatUrl2.mjs +0 -17
- package/lib/internal/_randomFormatUrl2.mjs.map +0 -1
- package/lib/internal/_randomFormatUuid2.mjs +0 -13
- package/lib/internal/_randomFormatUuid2.mjs.map +0 -1
- package/lib/internal/_randomInteger2.mjs +0 -47
- package/lib/internal/_randomInteger2.mjs.map +0 -1
- package/lib/internal/_randomNumber2.mjs +0 -66
- package/lib/internal/_randomNumber2.mjs.map +0 -1
- package/lib/internal/_randomPattern2.mjs +0 -22
- package/lib/internal/_randomPattern2.mjs.map +0 -1
- package/lib/internal/_randomPick2.mjs +0 -17
- package/lib/internal/_randomPick2.mjs.map +0 -1
- package/lib/internal/_randomString2.mjs +0 -32
- package/lib/internal/_randomString2.mjs.map +0 -1
- package/lib/internal/_throwTypeGuardError2.mjs +0 -14
- package/lib/internal/_throwTypeGuardError2.mjs.map +0 -1
- package/lib/internal/_validateReport2.mjs +0 -29
- package/lib/internal/_validateReport2.mjs.map +0 -1
- package/lib/internal/private/__notationCapitalize2.mjs +0 -9
- package/lib/internal/private/__notationCapitalize2.mjs.map +0 -1
- package/lib/internal/private/__notationUnsnake2.mjs +0 -29
- package/lib/internal/private/__notationUnsnake2.mjs.map +0 -1
- package/lib/json2.mjs +0 -94
- package/lib/json2.mjs.map +0 -1
- package/lib/llm2.mjs +0 -54
- package/lib/llm2.mjs.map +0 -1
- package/lib/module2.mjs +0 -185
- package/lib/module2.mjs.map +0 -1
- package/lib/notations2.mjs +0 -169
- package/lib/notations2.mjs.map +0 -1
- package/lib/plain2.mjs +0 -119
- package/lib/plain2.mjs.map +0 -1
- package/lib/protobuf2.mjs +0 -94
- package/lib/protobuf2.mjs.map +0 -1
- package/lib/re-exports.mjs.map +0 -1
- package/lib/re-exports2.mjs +0 -17
- package/lib/re-exports2.mjs.map +0 -1
- package/lib/reflect2.mjs +0 -29
- package/lib/reflect2.mjs.map +0 -1
- package/lib/transform2.mjs +0 -26
- package/lib/transform2.mjs.map +0 -1
- package/lib/transformers/NoTransformConfigurationError2.mjs +0 -21
- package/lib/transformers/NoTransformConfigurationError2.mjs.map +0 -1
|
@@ -1,719 +0,0 @@
|
|
|
1
|
-
import { __exports as TypiaGenerateWizard$2 } from '../_virtual/TypiaGenerateWizard.mjs';
|
|
2
|
-
import require$$0 from '../_virtual/_commander.mjs';
|
|
3
|
-
import require$$1 from '../_virtual/_node_fs.mjs';
|
|
4
|
-
import require$$2 from '../_virtual/_inquirer.mjs';
|
|
5
|
-
import require$$0$1 from '../_virtual/_node_module.mjs';
|
|
6
|
-
import require$$1$1 from '../_virtual/_node_path.mjs';
|
|
7
|
-
import require$$5 from '../_virtual/_tinyglobby.mjs';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// -- Shims --
|
|
11
|
-
import cjsUrl from 'node:url';
|
|
12
|
-
import cjsPath from 'node:path';
|
|
13
|
-
import cjsModule from 'node:module';
|
|
14
|
-
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
15
|
-
const __dirname = cjsPath.dirname(__filename);
|
|
16
|
-
const require = cjsModule.createRequire(import.meta.url);
|
|
17
|
-
function _mergeNamespaces(n, m) {
|
|
18
|
-
m.forEach(function (e) {
|
|
19
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
20
|
-
if (k !== 'default' && !(k in n)) {
|
|
21
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return e[k]; }
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
return Object.freeze(n);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
var __awaiter = (TypiaGenerateWizard$2 && TypiaGenerateWizard$2.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
34
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
35
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
36
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
37
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
38
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
var __importDefault = (TypiaGenerateWizard$2 && TypiaGenerateWizard$2.__importDefault) || function (mod) {
|
|
42
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
43
|
-
};
|
|
44
|
-
Object.defineProperty(TypiaGenerateWizard$2, "__esModule", { value: true });
|
|
45
|
-
var TypiaGenerateWizard_2 = TypiaGenerateWizard$2.TypiaGenerateWizard = void 0;
|
|
46
|
-
const commander_1 = require$$0;
|
|
47
|
-
const fs_1 = __importDefault(require$$1);
|
|
48
|
-
const inquirer_1 = __importDefault(require$$2);
|
|
49
|
-
const module_1 = require$$0$1;
|
|
50
|
-
const path_1 = __importDefault(require$$1$1);
|
|
51
|
-
const tinyglobby_1 = require$$5;
|
|
52
|
-
var TypiaGenerateWizard;
|
|
53
|
-
(function (TypiaGenerateWizard) {
|
|
54
|
-
function generate() {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
console.log("----------------------------------------");
|
|
57
|
-
console.log(" Typia Generate Wizard");
|
|
58
|
-
console.log("----------------------------------------");
|
|
59
|
-
const options = yield parseArguments();
|
|
60
|
-
yield build(options);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
TypiaGenerateWizard.generate = generate;
|
|
64
|
-
function parseArguments() {
|
|
65
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
const command = (0, commander_1.createCommand)("typia generate");
|
|
67
|
-
command.usage("[options] [files...]");
|
|
68
|
-
command.argument("[files...]", "input TypeScript source files or globs");
|
|
69
|
-
command.option("--input <path>", "input directory");
|
|
70
|
-
command.option("--output <directory>", "output directory");
|
|
71
|
-
command.option("--project <project>", "tsconfig.json/jsconfig.json file or directory");
|
|
72
|
-
const questioned = { value: false };
|
|
73
|
-
const prompt = inquirer_1.default.createPromptModule;
|
|
74
|
-
const input = (name) => (message) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
questioned.value = true;
|
|
76
|
-
const result = yield prompt()({
|
|
77
|
-
type: "input",
|
|
78
|
-
name,
|
|
79
|
-
message,
|
|
80
|
-
default: "",
|
|
81
|
-
});
|
|
82
|
-
return result[name];
|
|
83
|
-
});
|
|
84
|
-
const configure = () => __awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
const file = findProjectConfigFile(process.cwd());
|
|
86
|
-
if (file === null) {
|
|
87
|
-
throw new URIError(`Unable to find "tsconfig.json" or "jsconfig.json" file.`);
|
|
88
|
-
}
|
|
89
|
-
return file;
|
|
90
|
-
});
|
|
91
|
-
return new Promise((resolve, reject) => {
|
|
92
|
-
command.action((files, options) => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
var _a, _b, _c;
|
|
94
|
-
try {
|
|
95
|
-
if (files.length !== 0 && options.input !== undefined) {
|
|
96
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): file arguments cannot be combined with --input.");
|
|
97
|
-
}
|
|
98
|
-
if (files.length === 0) {
|
|
99
|
-
(_a = options.input) !== null && _a !== void 0 ? _a : (options.input = yield input("input")("input directory"));
|
|
100
|
-
}
|
|
101
|
-
if (files.length !== 0 && options.output === undefined) {
|
|
102
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): output directory is required when file arguments are used.");
|
|
103
|
-
}
|
|
104
|
-
const output = (_b = options.output) !== null && _b !== void 0 ? _b : (yield input("output")("output directory"));
|
|
105
|
-
const project = (_c = options.project) !== null && _c !== void 0 ? _c : (yield configure());
|
|
106
|
-
if (questioned.value)
|
|
107
|
-
console.log("");
|
|
108
|
-
resolve({
|
|
109
|
-
input: options.input,
|
|
110
|
-
output,
|
|
111
|
-
project,
|
|
112
|
-
files,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
catch (exp) {
|
|
116
|
-
reject(exp);
|
|
117
|
-
}
|
|
118
|
-
}));
|
|
119
|
-
command.parseAsync(process.argv.slice(3), { from: "user" }).catch(reject);
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function build(location) {
|
|
124
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
location.output = path_1.default.resolve(location.output);
|
|
126
|
-
location.project = resolveProjectConfigFile(location.project);
|
|
127
|
-
const entries = location.files.length === 0
|
|
128
|
-
? yield prepareDirectoryInput(location)
|
|
129
|
-
: yield prepareFileInputs(location);
|
|
130
|
-
const binary = resolveTsgoBinary();
|
|
131
|
-
const cwd = path_1.default.dirname(location.project);
|
|
132
|
-
const transformed = transformProject({
|
|
133
|
-
binary,
|
|
134
|
-
cwd,
|
|
135
|
-
tsconfig: location.project,
|
|
136
|
-
});
|
|
137
|
-
const outputByKey = indexTransformedOutputs(transformed);
|
|
138
|
-
const outputs = entries.map((entry) => {
|
|
139
|
-
const output = getTransformedOutput({
|
|
140
|
-
cwd,
|
|
141
|
-
entry,
|
|
142
|
-
outputByKey,
|
|
143
|
-
});
|
|
144
|
-
if (output === undefined) {
|
|
145
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): no transformed output for ${entry.file}. Check that --project includes the file.`);
|
|
146
|
-
}
|
|
147
|
-
return { entry, output };
|
|
148
|
-
});
|
|
149
|
-
yield ensureOutputDirectory(location.output);
|
|
150
|
-
yield ensureTargetDirectories({
|
|
151
|
-
output: location.output,
|
|
152
|
-
targets: outputs.map(({ entry }) => entry.target),
|
|
153
|
-
});
|
|
154
|
-
yield ensurePhysicalTargets({
|
|
155
|
-
output: location.output,
|
|
156
|
-
entries: outputs.map(({ entry }) => entry),
|
|
157
|
-
});
|
|
158
|
-
yield ensureTargetFiles(outputs.map(({ entry }) => entry));
|
|
159
|
-
for (const { entry, output } of outputs) {
|
|
160
|
-
yield fs_1.default.promises.writeFile(entry.target, formatOutput(output), "utf8");
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function ensureOutputDirectory(output) {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
if (fs_1.default.existsSync(output) === false) {
|
|
167
|
-
yield ensureCreatableDirectory(output);
|
|
168
|
-
yield fs_1.default.promises.mkdir(output, { recursive: true });
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
yield ensureExistingDirectory({
|
|
172
|
-
label: "output path",
|
|
173
|
-
directory: output,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
function ensureTargetDirectories(props) {
|
|
179
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
-
const directories = new Map();
|
|
181
|
-
for (const target of props.targets) {
|
|
182
|
-
const directory = path_1.default.dirname(target);
|
|
183
|
-
directories.set(filesystemKey(directory), directory);
|
|
184
|
-
}
|
|
185
|
-
for (const directory of directories.values()) {
|
|
186
|
-
yield ensureOutputAncestorDirectories({
|
|
187
|
-
output: props.output,
|
|
188
|
-
directory,
|
|
189
|
-
});
|
|
190
|
-
if (fs_1.default.existsSync(directory)) {
|
|
191
|
-
yield ensureExistingDirectory({
|
|
192
|
-
label: "output parent path",
|
|
193
|
-
directory,
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
for (const directory of directories.values()) {
|
|
198
|
-
try {
|
|
199
|
-
yield fs_1.default.promises.mkdir(directory, { recursive: true });
|
|
200
|
-
}
|
|
201
|
-
catch (exp) {
|
|
202
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): unable to create output parent directory ${directory}: ${formatUnknownError(exp)}`);
|
|
203
|
-
}
|
|
204
|
-
yield ensureExistingDirectory({
|
|
205
|
-
label: "output parent path",
|
|
206
|
-
directory,
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
function ensureCreatableDirectory(directory) {
|
|
212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
-
const parent = yield nearestExistingAncestor(directory);
|
|
214
|
-
yield ensureExistingDirectoryPath({
|
|
215
|
-
label: "output parent path",
|
|
216
|
-
directory: parent,
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function nearestExistingAncestor(directory) {
|
|
221
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
-
let current = path_1.default.resolve(directory);
|
|
223
|
-
while (fs_1.default.existsSync(current) === false) {
|
|
224
|
-
const parent = path_1.default.dirname(current);
|
|
225
|
-
if (parent === current) {
|
|
226
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): unable to find existing output parent path: ${directory}`);
|
|
227
|
-
}
|
|
228
|
-
current = parent;
|
|
229
|
-
}
|
|
230
|
-
return current;
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
function ensureOutputAncestorDirectories(props) {
|
|
234
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
-
const output = path_1.default.resolve(props.output);
|
|
236
|
-
const directory = path_1.default.resolve(props.directory);
|
|
237
|
-
if (isSameOrChildPath(directory, output) === false) {
|
|
238
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output parent path escapes output directory: ${props.directory}`);
|
|
239
|
-
}
|
|
240
|
-
const relative = path_1.default.relative(output, directory);
|
|
241
|
-
if (relative === "") {
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
let current = output;
|
|
245
|
-
for (const segment of relative.split(path_1.default.sep)) {
|
|
246
|
-
current = path_1.default.join(current, segment);
|
|
247
|
-
let stat;
|
|
248
|
-
try {
|
|
249
|
-
stat = yield fs_1.default.promises.lstat(current);
|
|
250
|
-
}
|
|
251
|
-
catch (exp) {
|
|
252
|
-
if (isMissingFileError(exp)) {
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): unable to inspect output parent path ${current}: ${formatUnknownError(exp)}`);
|
|
256
|
-
}
|
|
257
|
-
if (stat.isSymbolicLink()) {
|
|
258
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output parent path contains a symbolic link: ${current}`);
|
|
259
|
-
}
|
|
260
|
-
if (stat.isDirectory() === false) {
|
|
261
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output parent path is not a directory: ${current}`);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
function ensureExistingDirectory(props) {
|
|
267
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
yield ensureExistingDirectoryPath(props);
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
function ensureExistingDirectoryPath(props) {
|
|
272
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
-
const directory = path_1.default.resolve(props.directory);
|
|
274
|
-
const parsed = path_1.default.parse(directory);
|
|
275
|
-
const relative = path_1.default.relative(parsed.root, directory);
|
|
276
|
-
let current = parsed.root;
|
|
277
|
-
for (const segment of relative === "" ? [] : relative.split(path_1.default.sep)) {
|
|
278
|
-
current = path_1.default.join(current, segment);
|
|
279
|
-
yield ensureExistingDirectorySegment({
|
|
280
|
-
label: filesystemKey(current) === filesystemKey(directory)
|
|
281
|
-
? props.label
|
|
282
|
-
: `${props.label} ancestor`,
|
|
283
|
-
directory: current,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
function ensureExistingDirectorySegment(props) {
|
|
289
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
-
const stat = yield fs_1.default.promises.lstat(props.directory);
|
|
291
|
-
if (stat.isSymbolicLink()) {
|
|
292
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): ${props.label} is a symbolic link: ${props.directory}`);
|
|
293
|
-
}
|
|
294
|
-
if (stat.isDirectory() === false) {
|
|
295
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): ${props.label} is not a directory: ${props.directory}`);
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
function ensurePhysicalTargets(props) {
|
|
300
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
-
const output = yield fs_1.default.promises.realpath(props.output);
|
|
302
|
-
const inputs = new Set();
|
|
303
|
-
for (const entry of props.entries) {
|
|
304
|
-
inputs.add(filesystemKey(yield fs_1.default.promises.realpath(entry.file)));
|
|
305
|
-
}
|
|
306
|
-
for (const entry of props.entries) {
|
|
307
|
-
const parent = path_1.default.dirname(entry.target);
|
|
308
|
-
const directory = yield fs_1.default.promises.realpath(parent);
|
|
309
|
-
if (isSameOrChildPath(directory, output) === false) {
|
|
310
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output parent path escapes output directory through a symbolic link: ${parent}`);
|
|
311
|
-
}
|
|
312
|
-
const target = path_1.default.join(directory, path_1.default.basename(entry.target));
|
|
313
|
-
if (inputs.has(filesystemKey(target))) {
|
|
314
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output file would overwrite input file through a symbolic link: ${entry.target}`);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
function ensureTargetFiles(entries) {
|
|
320
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
-
const inputs = new Set();
|
|
322
|
-
const files = new Map();
|
|
323
|
-
for (const entry of entries) {
|
|
324
|
-
inputs.add(fileIdentityKey(yield fs_1.default.promises.stat(entry.file)));
|
|
325
|
-
files.set(filesystemKey(entry.target), entry);
|
|
326
|
-
}
|
|
327
|
-
for (const entry of files.values()) {
|
|
328
|
-
let stat;
|
|
329
|
-
try {
|
|
330
|
-
stat = yield fs_1.default.promises.lstat(entry.target);
|
|
331
|
-
}
|
|
332
|
-
catch (exp) {
|
|
333
|
-
if (isMissingFileError(exp)) {
|
|
334
|
-
continue;
|
|
335
|
-
}
|
|
336
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): unable to inspect output file ${entry.target}: ${formatUnknownError(exp)}`);
|
|
337
|
-
}
|
|
338
|
-
if (stat.isFile() === false) {
|
|
339
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output file path is not a regular file: ${entry.target}`);
|
|
340
|
-
}
|
|
341
|
-
if (inputs.has(fileIdentityKey(stat))) {
|
|
342
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output file would overwrite input file through a physical file alias: ${entry.target}`);
|
|
343
|
-
}
|
|
344
|
-
if (stat.nlink > 1) {
|
|
345
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output file has multiple hard links: ${entry.target}`);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
function prepareDirectoryInput(location) {
|
|
351
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
352
|
-
if (location.input === undefined) {
|
|
353
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): input path is required.");
|
|
354
|
-
}
|
|
355
|
-
const input = path_1.default.resolve(location.input);
|
|
356
|
-
if (fs_1.default.existsSync(input) === false) {
|
|
357
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): input path does not exist: ${input}`);
|
|
358
|
-
}
|
|
359
|
-
if ((yield isDirectory(input)) === false) {
|
|
360
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): input path is not a directory.");
|
|
361
|
-
}
|
|
362
|
-
const files = [];
|
|
363
|
-
yield gather({
|
|
364
|
-
location: {
|
|
365
|
-
input,
|
|
366
|
-
output: location.output,
|
|
367
|
-
},
|
|
368
|
-
container: files,
|
|
369
|
-
from: input,
|
|
370
|
-
to: location.output,
|
|
371
|
-
});
|
|
372
|
-
return files.map((file) => ({
|
|
373
|
-
file,
|
|
374
|
-
target: path_1.default.join(location.output, path_1.default.relative(input, file)),
|
|
375
|
-
}));
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
function prepareFileInputs(location) {
|
|
379
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
-
const targets = new Set();
|
|
381
|
-
const output = [];
|
|
382
|
-
for (const input of yield expandFileInputs(location.files, location.output)) {
|
|
383
|
-
const file = path_1.default.resolve(input);
|
|
384
|
-
if (fs_1.default.existsSync(file) === false) {
|
|
385
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): input file does not exist: ${input}`);
|
|
386
|
-
}
|
|
387
|
-
else if ((yield isFile(file)) === false) {
|
|
388
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): input path is not a file: ${input}`);
|
|
389
|
-
}
|
|
390
|
-
else if (isDeclarationFile(file)) {
|
|
391
|
-
continue;
|
|
392
|
-
}
|
|
393
|
-
else if (isSupportedExtension(file) === false) {
|
|
394
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): input file is not a supported TypeScript source: ${input}`);
|
|
395
|
-
}
|
|
396
|
-
const target = path_1.default.join(location.output, path_1.default.basename(file));
|
|
397
|
-
if (isSamePath(file, target)) {
|
|
398
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): output file would overwrite input file: ${input}`);
|
|
399
|
-
}
|
|
400
|
-
const key = filesystemKey(target);
|
|
401
|
-
if (targets.has(key)) {
|
|
402
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): duplicate output filename for ${target}`);
|
|
403
|
-
}
|
|
404
|
-
targets.add(key);
|
|
405
|
-
output.push({ file, target });
|
|
406
|
-
}
|
|
407
|
-
if (output.length === 0) {
|
|
408
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): input files do not include any supported TypeScript source files outside the output directory.");
|
|
409
|
-
}
|
|
410
|
-
return output;
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
function expandFileInputs(inputs, directory) {
|
|
414
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
415
|
-
const output = [];
|
|
416
|
-
for (const input of inputs) {
|
|
417
|
-
const pattern = toGlobPattern(input);
|
|
418
|
-
if ((0, tinyglobby_1.isDynamicPattern)(pattern, { caseSensitiveMatch: true })) {
|
|
419
|
-
const matches = yield (0, tinyglobby_1.glob)(pattern, {
|
|
420
|
-
absolute: true,
|
|
421
|
-
caseSensitiveMatch: isCaseSensitive(),
|
|
422
|
-
cwd: process.cwd(),
|
|
423
|
-
onlyFiles: true,
|
|
424
|
-
});
|
|
425
|
-
if (matches.length === 0) {
|
|
426
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): input pattern does not match any files: ${input}`);
|
|
427
|
-
}
|
|
428
|
-
output.push(...excludeOutputFiles(matches, directory).filter(isSupportedExtension));
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
const file = path_1.default.resolve(input);
|
|
432
|
-
if (isSameOrChildPath(file, directory) === false) {
|
|
433
|
-
output.push(file);
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
return output;
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
function excludeOutputFiles(files, directory) {
|
|
441
|
-
return files.filter((file) => isSameOrChildPath(file, directory) === false);
|
|
442
|
-
}
|
|
443
|
-
function toGlobPattern(input) {
|
|
444
|
-
return input.replace(/\\/g, "/");
|
|
445
|
-
}
|
|
446
|
-
function transformProject(props) {
|
|
447
|
-
const TtscCompiler = loadTtscCompiler();
|
|
448
|
-
const result = new TtscCompiler({
|
|
449
|
-
binary: props.binary,
|
|
450
|
-
cwd: props.cwd,
|
|
451
|
-
tsconfig: props.tsconfig,
|
|
452
|
-
}).transform();
|
|
453
|
-
if (result.type === "success") {
|
|
454
|
-
return result.typescript;
|
|
455
|
-
}
|
|
456
|
-
if (result.type === "failure") {
|
|
457
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): ${formatDiagnostics(result.diagnostics)}`);
|
|
458
|
-
}
|
|
459
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): ${formatUnknownError(result.error)}`);
|
|
460
|
-
}
|
|
461
|
-
function resolveProjectConfigFile(project) {
|
|
462
|
-
const resolved = path_1.default.resolve(project);
|
|
463
|
-
if (fs_1.default.existsSync(resolved) === false) {
|
|
464
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): project path does not exist: ${resolved}`);
|
|
465
|
-
}
|
|
466
|
-
const stat = fs_1.default.statSync(resolved);
|
|
467
|
-
if (stat.isDirectory()) {
|
|
468
|
-
for (const filename of ["tsconfig.json", "jsconfig.json"]) {
|
|
469
|
-
const candidate = path_1.default.join(resolved, filename);
|
|
470
|
-
if (fs_1.default.existsSync(candidate) && fs_1.default.statSync(candidate).isFile()) {
|
|
471
|
-
return resolveRealPath(candidate);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): project directory has no tsconfig.json or jsconfig.json: ${resolved}`);
|
|
475
|
-
}
|
|
476
|
-
if (stat.isFile() === false) {
|
|
477
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): project path is not a file: ${resolved}`);
|
|
478
|
-
}
|
|
479
|
-
return resolveRealPath(resolved);
|
|
480
|
-
}
|
|
481
|
-
function findProjectConfigFile(directory) {
|
|
482
|
-
let current = path_1.default.resolve(directory);
|
|
483
|
-
while (true) {
|
|
484
|
-
for (const filename of ["tsconfig.json", "jsconfig.json"]) {
|
|
485
|
-
const candidate = path_1.default.join(current, filename);
|
|
486
|
-
if (fs_1.default.existsSync(candidate) && fs_1.default.statSync(candidate).isFile()) {
|
|
487
|
-
return resolveRealPath(candidate);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
const parent = path_1.default.dirname(current);
|
|
491
|
-
if (parent === current) {
|
|
492
|
-
return null;
|
|
493
|
-
}
|
|
494
|
-
current = parent;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
function loadTtscCompiler() {
|
|
498
|
-
const packageRoot = resolveTypiaPackageRoot();
|
|
499
|
-
const resolved = resolveFromRoots("ttsc", resolveRuntimeRoots(packageRoot));
|
|
500
|
-
if (resolved === null) {
|
|
501
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): unable to resolve ttsc from the current project, typia package, or workspace root. Run "npm i -D ttsc typescript" before.`);
|
|
502
|
-
}
|
|
503
|
-
const imported = (0, module_1.createRequire)(resolved)(resolved);
|
|
504
|
-
return imported.TtscCompiler;
|
|
505
|
-
}
|
|
506
|
-
function resolveTsgoBinary() {
|
|
507
|
-
const explicit = process.env.TTSC_TSGO_BINARY;
|
|
508
|
-
if (explicit !== undefined && explicit.length !== 0) {
|
|
509
|
-
if (path_1.default.isAbsolute(explicit) && fs_1.default.existsSync(explicit)) {
|
|
510
|
-
return explicit;
|
|
511
|
-
}
|
|
512
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): TTSC_TSGO_BINARY must be an existing absolute path: ${explicit}`);
|
|
513
|
-
}
|
|
514
|
-
const packageRoot = resolveTypiaPackageRoot();
|
|
515
|
-
const manifest = resolveFromRoots("typescript/package.json", resolveRuntimeRoots(packageRoot));
|
|
516
|
-
if (manifest === null) {
|
|
517
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): unable to resolve typescript from the current project, typia package, or workspace root.");
|
|
518
|
-
}
|
|
519
|
-
const platform = `@typescript/typescript-${process.platform}-${process.arch}`;
|
|
520
|
-
const platformManifest = (0, module_1.createRequire)(manifest).resolve(`${platform}/package.json`);
|
|
521
|
-
const binary = path_1.default.join(path_1.default.dirname(platformManifest), "lib", process.platform === "win32" ? "tsc.exe" : "tsc");
|
|
522
|
-
if (fs_1.default.existsSync(binary) === false) {
|
|
523
|
-
throw new URIError(`Error on TypiaGenerateWizard.generate(): TypeScript-Go executable not found: ${binary}`);
|
|
524
|
-
}
|
|
525
|
-
return binary;
|
|
526
|
-
}
|
|
527
|
-
function resolveTypiaPackageRoot() {
|
|
528
|
-
const current = path_1.default.resolve(__dirname);
|
|
529
|
-
for (const directory of [
|
|
530
|
-
path_1.default.resolve(current, "..", ".."),
|
|
531
|
-
path_1.default.resolve(current, ".."),
|
|
532
|
-
]) {
|
|
533
|
-
const file = path_1.default.join(directory, "package.json");
|
|
534
|
-
if (fs_1.default.existsSync(file) === false) {
|
|
535
|
-
continue;
|
|
536
|
-
}
|
|
537
|
-
try {
|
|
538
|
-
const pack = JSON.parse(fs_1.default.readFileSync(file, "utf8"));
|
|
539
|
-
if (pack.name === "typia") {
|
|
540
|
-
return directory;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
catch (_a) {
|
|
544
|
-
continue;
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
const resolved = resolveFromRoots("typia/package.json", [
|
|
548
|
-
process.cwd(),
|
|
549
|
-
current,
|
|
550
|
-
]);
|
|
551
|
-
if (resolved === null) {
|
|
552
|
-
throw new URIError("Error on TypiaGenerateWizard.generate(): unable to resolve typia package root.");
|
|
553
|
-
}
|
|
554
|
-
return path_1.default.dirname(resolved);
|
|
555
|
-
}
|
|
556
|
-
function resolveRuntimeRoots(packageRoot) {
|
|
557
|
-
return [process.cwd(), packageRoot, path_1.default.resolve(packageRoot, "..", "..")];
|
|
558
|
-
}
|
|
559
|
-
function resolveFromRoots(request, roots) {
|
|
560
|
-
for (const root of roots) {
|
|
561
|
-
try {
|
|
562
|
-
return require.resolve(request, { paths: [root] });
|
|
563
|
-
}
|
|
564
|
-
catch (_a) {
|
|
565
|
-
continue;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
return null;
|
|
569
|
-
}
|
|
570
|
-
function isDirectory(current) {
|
|
571
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
-
const stat = yield fs_1.default.promises.stat(current);
|
|
573
|
-
return stat.isDirectory();
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
function isFile(current) {
|
|
577
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
-
const stat = yield fs_1.default.promises.stat(current);
|
|
579
|
-
return stat.isFile();
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
function gather(props) {
|
|
583
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
584
|
-
if (isSamePath(props.from, props.location.output))
|
|
585
|
-
return;
|
|
586
|
-
for (const file of yield fs_1.default.promises.readdir(props.from)) {
|
|
587
|
-
const next = path_1.default.join(props.from, file);
|
|
588
|
-
const stat = yield fs_1.default.promises.stat(next);
|
|
589
|
-
if (stat.isDirectory()) {
|
|
590
|
-
yield gather({
|
|
591
|
-
location: props.location,
|
|
592
|
-
container: props.container,
|
|
593
|
-
from: next,
|
|
594
|
-
to: path_1.default.join(props.to, file),
|
|
595
|
-
});
|
|
596
|
-
continue;
|
|
597
|
-
}
|
|
598
|
-
if (isSupportedExtension(file)) {
|
|
599
|
-
props.container.push(next);
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
function isSupportedExtension(filename) {
|
|
605
|
-
const normalized = isCaseSensitive()
|
|
606
|
-
? filename
|
|
607
|
-
: filename.toLowerCase();
|
|
608
|
-
return TS_PATTERN.test(normalized) && !DTS_PATTERN.test(normalized);
|
|
609
|
-
}
|
|
610
|
-
function isDeclarationFile(filename) {
|
|
611
|
-
const normalized = isCaseSensitive()
|
|
612
|
-
? filename
|
|
613
|
-
: filename.toLowerCase();
|
|
614
|
-
return DTS_PATTERN.test(normalized);
|
|
615
|
-
}
|
|
616
|
-
function formatOutput(output) {
|
|
617
|
-
return output.startsWith("// @ts-nocheck")
|
|
618
|
-
? output
|
|
619
|
-
: `// @ts-nocheck\n${output}`;
|
|
620
|
-
}
|
|
621
|
-
function indexTransformedOutputs(outputs) {
|
|
622
|
-
const map = new Map();
|
|
623
|
-
for (const [file, output] of Object.entries(outputs)) {
|
|
624
|
-
map.set(projectFileKey(file), output);
|
|
625
|
-
}
|
|
626
|
-
return map;
|
|
627
|
-
}
|
|
628
|
-
function getTransformedOutput(props) {
|
|
629
|
-
const output = props.outputByKey.get(projectFileKey(projectKey(props.cwd, props.entry.file)));
|
|
630
|
-
if (output !== undefined) {
|
|
631
|
-
return output;
|
|
632
|
-
}
|
|
633
|
-
const real = resolveRealPath(props.entry.file);
|
|
634
|
-
if (isSamePath(real, props.entry.file) ||
|
|
635
|
-
isSameOrChildPath(real, props.cwd) === false) {
|
|
636
|
-
return undefined;
|
|
637
|
-
}
|
|
638
|
-
return props.outputByKey.get(projectFileKey(projectKey(props.cwd, real)));
|
|
639
|
-
}
|
|
640
|
-
function projectKey(root, file) {
|
|
641
|
-
return path_1.default.relative(root, file).replace(/\\/g, "/");
|
|
642
|
-
}
|
|
643
|
-
function projectFileKey(file) {
|
|
644
|
-
return isCaseSensitive() ? file : file.toLowerCase();
|
|
645
|
-
}
|
|
646
|
-
function resolveRealPath(file) {
|
|
647
|
-
try {
|
|
648
|
-
return fs_1.default.realpathSync(file);
|
|
649
|
-
}
|
|
650
|
-
catch (_a) {
|
|
651
|
-
return file;
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
function isSamePath(x, y) {
|
|
655
|
-
return filesystemKey(x) === filesystemKey(y);
|
|
656
|
-
}
|
|
657
|
-
function isSameOrChildPath(file, directory) {
|
|
658
|
-
const fileKey = filesystemKey(path_1.default.resolve(file));
|
|
659
|
-
const directoryKey = filesystemKey(path_1.default.resolve(directory));
|
|
660
|
-
const directoryPrefix = directoryKey.endsWith(path_1.default.sep)
|
|
661
|
-
? directoryKey
|
|
662
|
-
: `${directoryKey}${path_1.default.sep}`;
|
|
663
|
-
return fileKey === directoryKey || fileKey.startsWith(directoryPrefix);
|
|
664
|
-
}
|
|
665
|
-
function filesystemKey(file) {
|
|
666
|
-
const normalized = path_1.default.normalize(file);
|
|
667
|
-
return isCaseSensitive() ? normalized : normalized.toLowerCase();
|
|
668
|
-
}
|
|
669
|
-
function isCaseSensitive() {
|
|
670
|
-
return process.platform !== "win32" && process.platform !== "darwin";
|
|
671
|
-
}
|
|
672
|
-
function isMissingFileError(exp) {
|
|
673
|
-
return (typeof exp === "object" &&
|
|
674
|
-
exp !== null &&
|
|
675
|
-
"code" in exp &&
|
|
676
|
-
exp.code === "ENOENT");
|
|
677
|
-
}
|
|
678
|
-
function fileIdentityKey(stat) {
|
|
679
|
-
return `${stat.dev}:${stat.ino}`;
|
|
680
|
-
}
|
|
681
|
-
function formatDiagnostics(diagnostics) {
|
|
682
|
-
return diagnostics.length === 0
|
|
683
|
-
? "transformation failed"
|
|
684
|
-
: diagnostics
|
|
685
|
-
.map((diag) => { var _a, _b; return [
|
|
686
|
-
(_a = diag.file) !== null && _a !== void 0 ? _a : "ttsc",
|
|
687
|
-
diag.line === undefined
|
|
688
|
-
? undefined
|
|
689
|
-
: `${diag.line}:${(_b = diag.character) !== null && _b !== void 0 ? _b : 1}`,
|
|
690
|
-
diag.messageText,
|
|
691
|
-
]
|
|
692
|
-
.filter((part) => part !== undefined && part !== "")
|
|
693
|
-
.join(": "); })
|
|
694
|
-
.join("\n");
|
|
695
|
-
}
|
|
696
|
-
function formatUnknownError(error) {
|
|
697
|
-
if (error instanceof Error) {
|
|
698
|
-
return error.message;
|
|
699
|
-
}
|
|
700
|
-
if (typeof error === "object" &&
|
|
701
|
-
error !== null &&
|
|
702
|
-
"message" in error &&
|
|
703
|
-
typeof error.message === "string") {
|
|
704
|
-
return error.message;
|
|
705
|
-
}
|
|
706
|
-
return String(error);
|
|
707
|
-
}
|
|
708
|
-
})(TypiaGenerateWizard || (TypiaGenerateWizard_2 = TypiaGenerateWizard$2.TypiaGenerateWizard = TypiaGenerateWizard = {}));
|
|
709
|
-
const TS_PATTERN = /\.[cm]?tsx?$/;
|
|
710
|
-
const DTS_PATTERN = /\.d\.[cm]?tsx?$/;
|
|
711
|
-
|
|
712
|
-
var TypiaGenerateWizard$1 = /*#__PURE__*/_mergeNamespaces({
|
|
713
|
-
__proto__: null,
|
|
714
|
-
get TypiaGenerateWizard () { return TypiaGenerateWizard_2; },
|
|
715
|
-
default: TypiaGenerateWizard$2
|
|
716
|
-
}, [TypiaGenerateWizard$2]);
|
|
717
|
-
|
|
718
|
-
export { TypiaGenerateWizard$1 as T, TypiaGenerateWizard_2 as TypiaGenerateWizard, TypiaGenerateWizard$2 as default };
|
|
719
|
-
//# sourceMappingURL=TypiaGenerateWizard2.mjs.map
|