grpc-code-gen
Advanced tools
Comparing version 6.1.8 to 6.1.9
@@ -122,2 +122,3 @@ "use strict"; | ||
` serverName: string;`, | ||
` [propsname:string]: any;`, | ||
` new (address: string, credentials: ChannelCredentials, options?: object): ${typeName};\n`, | ||
@@ -135,4 +136,4 @@ ...methodStrArr, | ||
`function getGrpcClientFactory() { return getGrpcClient<${typeName}>(${service.name}) };`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)}:any = <${typeName}>(new Object());`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)}V2:any = <${typeName}>(new Object());`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)} = <${typeName}>(new Object());`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)}V2 = <${typeName}>(new Object());`, | ||
`Object.entries(base${service.name[0]}${service.name.slice(1)}.constructor.prototype) | ||
@@ -139,0 +140,0 @@ .filter(([methodName]) => /^[A-Za-z0-9]+$/g.test(methodName)).forEach(item => { |
{ | ||
"name": "grpc-code-gen", | ||
"version": "6.1.8", | ||
"version": "6.1.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/yunkeCN/grpc-code-gen.git", |
@@ -174,2 +174,3 @@ import * as fs from "fs-extra"; | ||
` serverName: string;`, | ||
` [propsname:string]: any;`, | ||
` new (address: string, credentials: ChannelCredentials, options?: object): ${typeName};\n`, | ||
@@ -187,4 +188,4 @@ ...methodStrArr, | ||
`function getGrpcClientFactory() { return getGrpcClient<${typeName}>(${service.name}) };`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)}:any = <${typeName}>(new Object());`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)}V2:any = <${typeName}>(new Object());`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)} = <${typeName}>(new Object());`, | ||
`export const ${service.name[0].toLowerCase()}${service.name.slice(1)}V2 = <${typeName}>(new Object());`, | ||
`Object.entries(base${service.name[0]}${service.name.slice(1)}.constructor.prototype) | ||
@@ -191,0 +192,0 @@ .filter(([methodName]) => /^[A-Za-z0-9]+$/g.test(methodName)).forEach(item => { |
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
101580
2657