Comparing version 1.180.0 to 1.181.0
@@ -102,2 +102,4 @@ import { ToStringOpts } from "ts-poet/build/Code"; | ||
bigIntLiteral: boolean; | ||
typePrefix: string; | ||
typeSuffix: string; | ||
}; | ||
@@ -104,0 +106,0 @@ export declare function defaultOptions(): Options; |
@@ -109,2 +109,4 @@ "use strict"; | ||
bigIntLiteral: true, | ||
typePrefix: "", | ||
typeSuffix: "", | ||
}; | ||
@@ -111,0 +113,0 @@ } |
@@ -14,4 +14,5 @@ "use strict"; | ||
const tsFullName = tsPrefix + (0, case_1.maybeSnakeToCamel)(enumDesc.name, options); | ||
const tsFullNameWithAffixes = `${options.typePrefix}${tsFullName}${options.typeSuffix}`; | ||
const nestedSourceInfo = sourceInfo.open(childEnumType, index); | ||
enumFn(tsFullName, enumDesc, nestedSourceInfo, protoFullName); | ||
enumFn(tsFullNameWithAffixes, enumDesc, nestedSourceInfo, protoFullName); | ||
}); | ||
@@ -25,4 +26,5 @@ const messages = "messageType" in proto ? proto.messageType : proto.nestedType; | ||
const tsFullName = tsPrefix + (0, case_1.maybeSnakeToCamel)(messageName(message), options); | ||
const tsFullNameWithAffixes = `${options.typePrefix}${tsFullName}${options.typeSuffix}`; | ||
const nestedSourceInfo = sourceInfo.open(childType, index); | ||
messageFn(tsFullName, message, nestedSourceInfo, protoFullName); | ||
messageFn(tsFullNameWithAffixes, message, nestedSourceInfo, protoFullName); | ||
const delim = options.useSnakeTypeName ? "_" : ""; | ||
@@ -29,0 +31,0 @@ visit(message, nestedSourceInfo, messageFn, options, enumFn, tsFullName + delim, protoFullName + "."); |
{ | ||
"name": "ts-proto", | ||
"version": "1.180.0", | ||
"version": "1.181.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/plugin.js", |
Sorry, the diff of this file is not supported yet
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
400009
6883
1081