protoc-gen-grpc-gateway-es
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -203,4 +203,5 @@ #!/usr/bin/env node | ||
function generateEnum(schema, f, enumeration) { | ||
const enumName = [enumeration.parent?.name, enumeration.name].filter(Boolean).join("_"); | ||
f.print(f.jsDoc(enumeration)); | ||
f.print(`export enum ${enumeration.name} {`); | ||
f.print(`export enum ${enumName} {`); | ||
for (const value of enumeration.values) { | ||
@@ -207,0 +208,0 @@ if (enumeration.values.indexOf(value) > 0) |
@@ -43,3 +43,3 @@ { | ||
"type": "module", | ||
"version": "0.2.1" | ||
"version": "0.2.2" | ||
} |
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
59161
782