grpc-code-gen
Advanced tools
Comparing version 2.1.5 to 3.0.0
@@ -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
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
109589
6
- Removedgrpc@^1.15.1
- Removed@mapbox/node-pre-gyp@1.0.11(transitive)
- Removed@types/bytebuffer@5.0.49(transitive)
- Removed@types/long@3.0.32(transitive)
- Removed@types/node@22.9.4(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedansi-regex@2.1.15.0.1(transitive)
- Removedaproba@2.0.0(transitive)
- Removedare-we-there-yet@2.0.0(transitive)
- Removedascli@1.0.1(transitive)
- Removedbytebuffer@5.0.1(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedchownr@2.0.0(transitive)
- Removedcliui@3.2.0(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedcolour@0.7.1(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-libc@2.0.3(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedfs-minipass@2.1.0(transitive)
- Removedgauge@3.0.2(transitive)
- Removedgrpc@1.24.11(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-fullwidth-code-point@1.0.03.0.0(transitive)
- Removedlcid@1.0.0(transitive)
- Removedlodash.camelcase@4.3.0(transitive)
- Removedlodash.clone@4.5.0(transitive)
- Removedlong@3.2.0(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedminipass@3.3.65.0.0(transitive)
- Removedminizlib@2.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedms@2.1.3(transitive)
- Removednan@2.22.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removednopt@5.0.0(transitive)
- Removednpmlog@5.0.1(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedoptjs@3.2.2(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedprotobufjs@5.0.3(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedsemver@6.3.17.6.3(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@1.0.24.2.3(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@3.0.16.0.1(transitive)
- Removedtar@6.2.1(transitive)
- Removedtr46@0.0.3(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedwrap-ansi@2.1.0(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyargs@3.32.0(transitive)