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

grpc-code-gen

Package Overview
Dependencies
Maintainers
1
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 2.1.5 to 3.0.0

8

build/base.js

@@ -239,3 +239,3 @@ "use strict";

fileTip,
`import * as grpc from 'grpc';`,
`import * as grpc from '@grpc/grpc-js';`,
`import { loadFromJson } from 'load-proto';\n`,

@@ -250,3 +250,3 @@ `const root = require('${getImportPath(grpcObjPath, jsonPath)}');\n`,

fileTip,
`const grpc = require('grpc');`,
`const grpc = require('@grpc/grpc-js');`,
`const { loadFromJson } = require('load-proto');`,

@@ -336,3 +336,3 @@ `const root = require('${getImportPath(grpcObjPath, jsonPath)}');\n`,

`import grpcObject from '${getImportPath(servicePath, grpcObjPath)}';\n`,
`import { ChannelCredentials } from "grpc";`,
`import { ChannelCredentials } from "@grpc/grpc-js";`,
`import { promisify } from 'util';`,

@@ -377,3 +377,3 @@ `import * as types from '${getImportPath(serviceDTsPath, typesPath)}';\n`,

fileTip,
`import { ChannelCredentials } from "grpc";`,
`import { ChannelCredentials } from "@grpc/grpc-js";`,
`import * as types from '${getImportPath(serviceDTsPath, typesPath)}';\n`,

@@ -380,0 +380,0 @@ `export class ${service.name} {`,

{
"name": "grpc-code-gen",
"version": "2.1.5",
"version": "3.0.0",
"license": "MIT",

@@ -23,3 +23,2 @@ "repository": "https://github.com/yunkeCN/grpc-code-gen.git",

"fs-extra": "^7.0.0",
"grpc": "^1.15.1",
"load-git": "^1.3.1",

@@ -26,0 +25,0 @@ "load-proto": "^2.0.2",

@@ -291,3 +291,3 @@ import * as fs from 'fs-extra';

fileTip,
`import * as grpc from 'grpc';`,
`import * as grpc from '@grpc/grpc-js';`,
`import { loadFromJson } from 'load-proto';\n`,

@@ -301,3 +301,3 @@ `const root = require('${getImportPath(grpcObjPath, jsonPath)}');\n`,

fileTip,
`const grpc = require('grpc');`,
`const grpc = require('@grpc/grpc-js');`,
`const { loadFromJson } = require('load-proto');`,

@@ -408,3 +408,3 @@ `const root = require('${getImportPath(grpcObjPath, jsonPath)}');\n`,

`import grpcObject from '${getImportPath(servicePath, grpcObjPath)}';\n`,
`import { ChannelCredentials } from "grpc";`,
`import { ChannelCredentials } from "@grpc/grpc-js";`,
`import { promisify } from 'util';`,

@@ -449,3 +449,3 @@ `import * as types from '${getImportPath(serviceDTsPath, typesPath)}';\n`,

fileTip,
`import { ChannelCredentials } from "grpc";`,
`import { ChannelCredentials } from "@grpc/grpc-js";`,
`import * as types from '${getImportPath(serviceDTsPath, typesPath)}';\n`,

@@ -452,0 +452,0 @@ `export class ${service.name} {`,

Sorry, the diff of this file is not supported yet

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