protoc-gen-grpc-gateway-es
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -227,2 +227,4 @@ #!/usr/bin/env node | ||
return { type: `string` }; | ||
case `Empty`: | ||
return { type: `{}`, nullable: !required }; | ||
case `Duration`: | ||
@@ -323,3 +325,3 @@ case `Timestamp`: | ||
f.print(f.jsDoc(method)); | ||
f.print`export const ${service.name}_${method.name} = new ${runtimeFile.RPC}<${method.input.name}, ${method.output.name}>("${httpMethod}", "${path}"${bodyPath ? `, "${bodyPath}"` : ""});`; | ||
f.print(`export const ${service.name}_${method.name} = new `, runtimeFile.RPC, `<`, rpcTypeParam(method.input, runtimeFile), `,`, rpcTypeParam(method.output, runtimeFile), `>("${httpMethod}", "${path}"${bodyPath ? `, "${bodyPath}"` : ""});`); | ||
} | ||
@@ -748,5 +750,6 @@ } | ||
var reProtoPathPattern = /{([^/]+)}/g; | ||
var rpcTypeParam = (desc, runtimeFile) => generateType({ kind: `es_shape_ref`, desc }, true, [], runtimeFile).type; | ||
// package.json | ||
var name = "protoc-gen-grpc-gateway-es"; | ||
var version = "0.2.1"; | ||
var version = "0.2.2"; | ||
@@ -753,0 +756,0 @@ // src/plugin.ts |
@@ -43,3 +43,3 @@ { | ||
"type": "module", | ||
"version": "0.2.2" | ||
"version": "0.2.3" | ||
} |
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
59403
785