Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpc-code-gen

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-code-gen - npm Package Compare versions

Comparing version 6.1.8 to 6.1.9

5

build/genServices.js

@@ -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 => {

2

package.json
{
"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 => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc