File tree 9 files changed +3875
-2691
lines changed
9 files changed +3875
-2691
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ yarn-error.log*
17
17
* .ntvs *
18
18
* .njsproj
19
19
* .sln
20
- * .sw *
20
+ * .sw *
21
+ .yarn /
Original file line number Diff line number Diff line change
1
+ nodeLinker : node-modules
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ With node.js you should create connection to iroha by using `QueryService` and `
33
33
** IROHA_ADDRESS** - Address of iroha grpc (usually ends on 50051) Ex. ` http://localhost:50051 `
34
34
35
35
``` javascript
36
- import grpc from ' grpc'
36
+ import grpc from ' @ grpc/grpc-js '
37
37
import {
38
38
QueryService_v1Client as QueryService ,
39
39
CommandService_v1Client as CommandService
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
2
3
- import grpc from 'grpc'
3
+ import grpc from '@ grpc/grpc-js '
4
4
import {
5
5
QueryService_v1Client as QueryService ,
6
6
CommandService_v1Client as CommandService
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
2
3
3
// for usage with grpc package use endpoint_grpc_pb file
4
- import grpc from 'grpc'
4
+ import grpc from '@ grpc/grpc-js '
5
5
import {
6
6
QueryService_v1Client as QueryService ,
7
7
CommandService_v1Client as CommandService
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
2
3
- import grpc from 'grpc'
3
+ import grpc from '@ grpc/grpc-js '
4
4
5
5
import {
6
6
QueryService_v1Client as QueryService
Original file line number Diff line number Diff line change 33
33
}
34
34
},
35
35
"dependencies" : {
36
+ "@grpc/grpc-js" : " 1.9.12" ,
36
37
"@improbable-eng/grpc-web" : " ^0.12.0" ,
37
38
"babel-preset-minify" : " ^0.5.1" ,
38
39
"buffer" : " ^5.4.0" ,
48
49
"tweetnacl" : " ^1.0.3"
49
50
},
50
51
"devDependencies" : {
52
+ "@types/keccak" : " ^3.0.1" ,
51
53
"@types/node" : " ^12.7.2" ,
52
54
"@typescript-eslint/eslint-plugin" : " ^2.0.0" ,
53
55
"@typescript-eslint/parser" : " ^2.0.0" ,
54
- "@types/keccak" : " ^3.0.1" ,
55
56
"eslint" : " ^6.1.0" ,
56
57
"eslint-config-standard" : " ^13.0.1" ,
57
58
"eslint-plugin-import" : " ^2.18.2" ,
58
59
"eslint-plugin-node" : " ^9.1.0" ,
59
60
"eslint-plugin-promise" : " ^4.2.1" ,
60
61
"eslint-plugin-standard" : " ^4.0.0" ,
61
- "grpc" : " ^1.22.2" ,
62
62
"husky" : " ^3.0.3" ,
63
63
"keccak" : " ^3.0.2" ,
64
64
"shx" : " ^0.3.2" ,
Original file line number Diff line number Diff line change 6
6
// SPDX-License-Identifier: Apache-2.0
7
7
//
8
8
'use strict' ;
9
- var grpc = require ( 'grpc' ) ;
9
+ var grpc = require ( '@ grpc/grpc-js ' ) ;
10
10
var endpoint_pb = require ( './endpoint_pb.js' ) ;
11
11
var transaction_pb = require ( './transaction_pb.js' ) ;
12
12
var queries_pb = require ( './queries_pb.js' ) ;
You can’t perform that action at this time.
0 commit comments