Comparing version 1.181.1 to 1.181.2
@@ -10,2 +10,3 @@ import { Code } from "ts-poet"; | ||
name: string; | ||
originalName: string; | ||
}; | ||
@@ -12,0 +13,0 @@ export declare function generateEnum(ctx: Context, fullName: string, enumDesc: EnumDescriptorProto, sourceInfo: SourceInfo): Code; |
@@ -26,3 +26,3 @@ "use strict"; | ||
if (valueDesc.number === options.unrecognizedEnumValue) { | ||
unrecognizedEnum = { present: true, name: memberName }; | ||
unrecognizedEnum = { present: true, name: memberName, originalName: valueName }; | ||
} | ||
@@ -159,3 +159,3 @@ (0, utils_1.maybeAddComment)(options, info, chunks, valueDesc.options?.deprecated, `${memberName} - `); | ||
default: | ||
return "${unrecognizedEnum.name}"; | ||
return "${unrecognizedEnum.originalName}"; | ||
`); | ||
@@ -162,0 +162,0 @@ } |
{ | ||
"name": "ts-proto", | ||
"version": "1.181.1", | ||
"version": "1.181.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/plugin.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
400033
6884