starpc 0.31.14 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MockMsg } from
|
|
2
|
-
import { Message, MethodKind } from
|
|
3
|
-
import { ProtoRpc } from
|
|
1
|
+
import { MockMsg } from './mock.pb.js';
|
|
2
|
+
import { Message, MethodKind } from '@aptre/protobuf-es-lite';
|
|
3
|
+
import { ProtoRpc } from 'starpc';
|
|
4
4
|
/**
|
|
5
5
|
* Mock service mocks some RPCs for the e2e tests.
|
|
6
6
|
*
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @generated by protoc-gen-es-starpc none with parameter "target=ts,ts_nocheck=false"
|
|
2
2
|
// @generated from file github.com/aperturerobotics/starpc/e2e/mock/mock.proto (package e2e.mock, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { MockMsg } from
|
|
5
|
-
import { MethodKind } from
|
|
4
|
+
import { MockMsg } from './mock.pb.js';
|
|
5
|
+
import { MethodKind } from '@aptre/protobuf-es-lite';
|
|
6
6
|
/**
|
|
7
7
|
* Mock service mocks some RPCs for the e2e tests.
|
|
8
8
|
*
|
|
9
9
|
* @generated from service e2e.mock.Mock
|
|
10
10
|
*/
|
|
11
11
|
export const MockDefinition = {
|
|
12
|
-
typeName:
|
|
12
|
+
typeName: 'e2e.mock.Mock',
|
|
13
13
|
methods: {
|
|
14
14
|
/**
|
|
15
15
|
* MockRequest runs a mock unary request.
|
|
@@ -17,12 +17,12 @@ export const MockDefinition = {
|
|
|
17
17
|
* @generated from rpc e2e.mock.Mock.MockRequest
|
|
18
18
|
*/
|
|
19
19
|
MockRequest: {
|
|
20
|
-
name:
|
|
20
|
+
name: 'MockRequest',
|
|
21
21
|
I: MockMsg,
|
|
22
22
|
O: MockMsg,
|
|
23
23
|
kind: MethodKind.Unary,
|
|
24
24
|
},
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
26
|
};
|
|
27
27
|
export const MockServiceName = MockDefinition.typeName;
|
|
28
28
|
export class MockClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EchoMsg } from
|
|
2
|
-
import { Message, MethodKind } from
|
|
3
|
-
import { RpcStreamPacket } from
|
|
4
|
-
import { MessageStream, ProtoRpc } from
|
|
1
|
+
import { EchoMsg } from './echo.pb.js';
|
|
2
|
+
import { Message, MethodKind } from '@aptre/protobuf-es-lite';
|
|
3
|
+
import { RpcStreamPacket } from '../rpcstream/rpcstream.pb.js';
|
|
4
|
+
import { MessageStream, ProtoRpc } from 'starpc';
|
|
5
5
|
/**
|
|
6
6
|
* Echoer service returns the given message.
|
|
7
7
|
*
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @generated by protoc-gen-es-starpc none with parameter "target=ts,ts_nocheck=false"
|
|
2
2
|
// @generated from file github.com/aperturerobotics/starpc/echo/echo.proto (package echo, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { EchoMsg } from
|
|
5
|
-
import { MethodKind } from
|
|
6
|
-
import { RpcStreamPacket } from
|
|
7
|
-
import { buildDecodeMessageTransform, buildEncodeMessageTransform } from
|
|
4
|
+
import { EchoMsg } from './echo.pb.js';
|
|
5
|
+
import { MethodKind } from '@aptre/protobuf-es-lite';
|
|
6
|
+
import { RpcStreamPacket } from '../rpcstream/rpcstream.pb.js';
|
|
7
|
+
import { buildDecodeMessageTransform, buildEncodeMessageTransform, } from 'starpc';
|
|
8
8
|
/**
|
|
9
9
|
* Echoer service returns the given message.
|
|
10
10
|
*
|
|
11
11
|
* @generated from service echo.Echoer
|
|
12
12
|
*/
|
|
13
13
|
export const EchoerDefinition = {
|
|
14
|
-
typeName:
|
|
14
|
+
typeName: 'echo.Echoer',
|
|
15
15
|
methods: {
|
|
16
16
|
/**
|
|
17
17
|
* Echo returns the given message.
|
|
@@ -19,7 +19,7 @@ export const EchoerDefinition = {
|
|
|
19
19
|
* @generated from rpc echo.Echoer.Echo
|
|
20
20
|
*/
|
|
21
21
|
Echo: {
|
|
22
|
-
name:
|
|
22
|
+
name: 'Echo',
|
|
23
23
|
I: EchoMsg,
|
|
24
24
|
O: EchoMsg,
|
|
25
25
|
kind: MethodKind.Unary,
|
|
@@ -30,7 +30,7 @@ export const EchoerDefinition = {
|
|
|
30
30
|
* @generated from rpc echo.Echoer.EchoServerStream
|
|
31
31
|
*/
|
|
32
32
|
EchoServerStream: {
|
|
33
|
-
name:
|
|
33
|
+
name: 'EchoServerStream',
|
|
34
34
|
I: EchoMsg,
|
|
35
35
|
O: EchoMsg,
|
|
36
36
|
kind: MethodKind.ServerStreaming,
|
|
@@ -41,7 +41,7 @@ export const EchoerDefinition = {
|
|
|
41
41
|
* @generated from rpc echo.Echoer.EchoClientStream
|
|
42
42
|
*/
|
|
43
43
|
EchoClientStream: {
|
|
44
|
-
name:
|
|
44
|
+
name: 'EchoClientStream',
|
|
45
45
|
I: EchoMsg,
|
|
46
46
|
O: EchoMsg,
|
|
47
47
|
kind: MethodKind.ClientStreaming,
|
|
@@ -52,7 +52,7 @@ export const EchoerDefinition = {
|
|
|
52
52
|
* @generated from rpc echo.Echoer.EchoBidiStream
|
|
53
53
|
*/
|
|
54
54
|
EchoBidiStream: {
|
|
55
|
-
name:
|
|
55
|
+
name: 'EchoBidiStream',
|
|
56
56
|
I: EchoMsg,
|
|
57
57
|
O: EchoMsg,
|
|
58
58
|
kind: MethodKind.BiDiStreaming,
|
|
@@ -63,12 +63,12 @@ export const EchoerDefinition = {
|
|
|
63
63
|
* @generated from rpc echo.Echoer.RpcStream
|
|
64
64
|
*/
|
|
65
65
|
RpcStream: {
|
|
66
|
-
name:
|
|
66
|
+
name: 'RpcStream',
|
|
67
67
|
I: RpcStreamPacket,
|
|
68
68
|
O: RpcStreamPacket,
|
|
69
69
|
kind: MethodKind.BiDiStreaming,
|
|
70
70
|
},
|
|
71
|
-
}
|
|
71
|
+
},
|
|
72
72
|
};
|
|
73
73
|
export const EchoerServiceName = EchoerDefinition.typeName;
|
|
74
74
|
export class EchoerClient {
|
package/e2e/mock/mock_srpc.pb.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// @generated from file github.com/aperturerobotics/starpc/e2e/mock/mock.proto (package e2e.mock, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import { MockMsg } from
|
|
6
|
-
import { Message, MethodKind } from
|
|
7
|
-
import { ProtoRpc } from
|
|
5
|
+
import { MockMsg } from './mock.pb.js'
|
|
6
|
+
import { Message, MethodKind } from '@aptre/protobuf-es-lite'
|
|
7
|
+
import { ProtoRpc } from 'starpc'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Mock service mocks some RPCs for the e2e tests.
|
|
@@ -12,7 +12,7 @@ import { ProtoRpc } from "starpc";
|
|
|
12
12
|
* @generated from service e2e.mock.Mock
|
|
13
13
|
*/
|
|
14
14
|
export const MockDefinition = {
|
|
15
|
-
typeName:
|
|
15
|
+
typeName: 'e2e.mock.Mock',
|
|
16
16
|
methods: {
|
|
17
17
|
/**
|
|
18
18
|
* MockRequest runs a mock unary request.
|
|
@@ -20,13 +20,13 @@ export const MockDefinition = {
|
|
|
20
20
|
* @generated from rpc e2e.mock.Mock.MockRequest
|
|
21
21
|
*/
|
|
22
22
|
MockRequest: {
|
|
23
|
-
name:
|
|
23
|
+
name: 'MockRequest',
|
|
24
24
|
I: MockMsg,
|
|
25
25
|
O: MockMsg,
|
|
26
26
|
kind: MethodKind.Unary,
|
|
27
27
|
},
|
|
28
|
-
}
|
|
29
|
-
} as const
|
|
28
|
+
},
|
|
29
|
+
} as const
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Mock service mocks some RPCs for the e2e tests.
|
|
@@ -40,10 +40,9 @@ export interface Mock {
|
|
|
40
40
|
* @generated from rpc e2e.mock.Mock.MockRequest
|
|
41
41
|
*/
|
|
42
42
|
MockRequest(
|
|
43
|
-
request: Message<MockMsg>,
|
|
44
|
-
|
|
45
|
-
Promise<Message<MockMsg>>
|
|
46
|
-
|
|
43
|
+
request: Message<MockMsg>,
|
|
44
|
+
abortSignal?: AbortSignal,
|
|
45
|
+
): Promise<Message<MockMsg>>
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
export const MockServiceName = MockDefinition.typeName
|
|
@@ -62,9 +61,9 @@ export class MockClient implements Mock {
|
|
|
62
61
|
* @generated from rpc e2e.mock.Mock.MockRequest
|
|
63
62
|
*/
|
|
64
63
|
async MockRequest(
|
|
65
|
-
request: Message<MockMsg>,
|
|
66
|
-
|
|
67
|
-
Promise<Message<MockMsg>> {
|
|
64
|
+
request: Message<MockMsg>,
|
|
65
|
+
abortSignal?: AbortSignal,
|
|
66
|
+
): Promise<Message<MockMsg>> {
|
|
68
67
|
const requestMsg = MockMsg.create(request)
|
|
69
68
|
const result = await this.rpc.request(
|
|
70
69
|
this.service,
|
|
@@ -74,5 +73,4 @@ Promise<Message<MockMsg>> {
|
|
|
74
73
|
)
|
|
75
74
|
return MockMsg.fromBinary(result)
|
|
76
75
|
}
|
|
77
|
-
|
|
78
76
|
}
|
package/echo/echo_srpc.pb.ts
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
// @generated from file github.com/aperturerobotics/starpc/echo/echo.proto (package echo, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import { EchoMsg } from
|
|
6
|
-
import { Message, MethodKind } from
|
|
7
|
-
import { RpcStreamPacket } from
|
|
8
|
-
import {
|
|
5
|
+
import { EchoMsg } from './echo.pb.js'
|
|
6
|
+
import { Message, MethodKind } from '@aptre/protobuf-es-lite'
|
|
7
|
+
import { RpcStreamPacket } from '../rpcstream/rpcstream.pb.js'
|
|
8
|
+
import {
|
|
9
|
+
buildDecodeMessageTransform,
|
|
10
|
+
buildEncodeMessageTransform,
|
|
11
|
+
MessageStream,
|
|
12
|
+
ProtoRpc,
|
|
13
|
+
} from 'starpc'
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
16
|
* Echoer service returns the given message.
|
|
@@ -13,7 +18,7 @@ import { buildDecodeMessageTransform, buildEncodeMessageTransform, MessageStream
|
|
|
13
18
|
* @generated from service echo.Echoer
|
|
14
19
|
*/
|
|
15
20
|
export const EchoerDefinition = {
|
|
16
|
-
typeName:
|
|
21
|
+
typeName: 'echo.Echoer',
|
|
17
22
|
methods: {
|
|
18
23
|
/**
|
|
19
24
|
* Echo returns the given message.
|
|
@@ -21,7 +26,7 @@ export const EchoerDefinition = {
|
|
|
21
26
|
* @generated from rpc echo.Echoer.Echo
|
|
22
27
|
*/
|
|
23
28
|
Echo: {
|
|
24
|
-
name:
|
|
29
|
+
name: 'Echo',
|
|
25
30
|
I: EchoMsg,
|
|
26
31
|
O: EchoMsg,
|
|
27
32
|
kind: MethodKind.Unary,
|
|
@@ -32,7 +37,7 @@ export const EchoerDefinition = {
|
|
|
32
37
|
* @generated from rpc echo.Echoer.EchoServerStream
|
|
33
38
|
*/
|
|
34
39
|
EchoServerStream: {
|
|
35
|
-
name:
|
|
40
|
+
name: 'EchoServerStream',
|
|
36
41
|
I: EchoMsg,
|
|
37
42
|
O: EchoMsg,
|
|
38
43
|
kind: MethodKind.ServerStreaming,
|
|
@@ -43,7 +48,7 @@ export const EchoerDefinition = {
|
|
|
43
48
|
* @generated from rpc echo.Echoer.EchoClientStream
|
|
44
49
|
*/
|
|
45
50
|
EchoClientStream: {
|
|
46
|
-
name:
|
|
51
|
+
name: 'EchoClientStream',
|
|
47
52
|
I: EchoMsg,
|
|
48
53
|
O: EchoMsg,
|
|
49
54
|
kind: MethodKind.ClientStreaming,
|
|
@@ -54,7 +59,7 @@ export const EchoerDefinition = {
|
|
|
54
59
|
* @generated from rpc echo.Echoer.EchoBidiStream
|
|
55
60
|
*/
|
|
56
61
|
EchoBidiStream: {
|
|
57
|
-
name:
|
|
62
|
+
name: 'EchoBidiStream',
|
|
58
63
|
I: EchoMsg,
|
|
59
64
|
O: EchoMsg,
|
|
60
65
|
kind: MethodKind.BiDiStreaming,
|
|
@@ -65,13 +70,13 @@ export const EchoerDefinition = {
|
|
|
65
70
|
* @generated from rpc echo.Echoer.RpcStream
|
|
66
71
|
*/
|
|
67
72
|
RpcStream: {
|
|
68
|
-
name:
|
|
73
|
+
name: 'RpcStream',
|
|
69
74
|
I: RpcStreamPacket,
|
|
70
75
|
O: RpcStreamPacket,
|
|
71
76
|
kind: MethodKind.BiDiStreaming,
|
|
72
77
|
},
|
|
73
|
-
}
|
|
74
|
-
} as const
|
|
78
|
+
},
|
|
79
|
+
} as const
|
|
75
80
|
|
|
76
81
|
/**
|
|
77
82
|
* Echoer service returns the given message.
|
|
@@ -85,9 +90,9 @@ export interface Echoer {
|
|
|
85
90
|
* @generated from rpc echo.Echoer.Echo
|
|
86
91
|
*/
|
|
87
92
|
Echo(
|
|
88
|
-
request: Message<EchoMsg>,
|
|
89
|
-
|
|
90
|
-
Promise<Message<EchoMsg>>
|
|
93
|
+
request: Message<EchoMsg>,
|
|
94
|
+
abortSignal?: AbortSignal,
|
|
95
|
+
): Promise<Message<EchoMsg>>
|
|
91
96
|
|
|
92
97
|
/**
|
|
93
98
|
* EchoServerStream is an example of a server -> client one-way stream.
|
|
@@ -95,9 +100,9 @@ Promise<Message<EchoMsg>>
|
|
|
95
100
|
* @generated from rpc echo.Echoer.EchoServerStream
|
|
96
101
|
*/
|
|
97
102
|
EchoServerStream(
|
|
98
|
-
request: Message<EchoMsg>,
|
|
99
|
-
|
|
100
|
-
MessageStream<EchoMsg>
|
|
103
|
+
request: Message<EchoMsg>,
|
|
104
|
+
abortSignal?: AbortSignal,
|
|
105
|
+
): MessageStream<EchoMsg>
|
|
101
106
|
|
|
102
107
|
/**
|
|
103
108
|
* EchoClientStream is an example of client->server one-way stream.
|
|
@@ -105,9 +110,9 @@ MessageStream<EchoMsg>
|
|
|
105
110
|
* @generated from rpc echo.Echoer.EchoClientStream
|
|
106
111
|
*/
|
|
107
112
|
EchoClientStream(
|
|
108
|
-
request: MessageStream<EchoMsg>,
|
|
109
|
-
|
|
110
|
-
Promise<Message<EchoMsg>>
|
|
113
|
+
request: MessageStream<EchoMsg>,
|
|
114
|
+
abortSignal?: AbortSignal,
|
|
115
|
+
): Promise<Message<EchoMsg>>
|
|
111
116
|
|
|
112
117
|
/**
|
|
113
118
|
* EchoBidiStream is an example of a two-way stream.
|
|
@@ -115,9 +120,9 @@ Promise<Message<EchoMsg>>
|
|
|
115
120
|
* @generated from rpc echo.Echoer.EchoBidiStream
|
|
116
121
|
*/
|
|
117
122
|
EchoBidiStream(
|
|
118
|
-
request: MessageStream<EchoMsg>,
|
|
119
|
-
|
|
120
|
-
MessageStream<EchoMsg>
|
|
123
|
+
request: MessageStream<EchoMsg>,
|
|
124
|
+
abortSignal?: AbortSignal,
|
|
125
|
+
): MessageStream<EchoMsg>
|
|
121
126
|
|
|
122
127
|
/**
|
|
123
128
|
* RpcStream opens a nested rpc call stream.
|
|
@@ -125,10 +130,9 @@ MessageStream<EchoMsg>
|
|
|
125
130
|
* @generated from rpc echo.Echoer.RpcStream
|
|
126
131
|
*/
|
|
127
132
|
RpcStream(
|
|
128
|
-
request: MessageStream<RpcStreamPacket>,
|
|
129
|
-
|
|
130
|
-
MessageStream<RpcStreamPacket>
|
|
131
|
-
|
|
133
|
+
request: MessageStream<RpcStreamPacket>,
|
|
134
|
+
abortSignal?: AbortSignal,
|
|
135
|
+
): MessageStream<RpcStreamPacket>
|
|
132
136
|
}
|
|
133
137
|
|
|
134
138
|
export const EchoerServiceName = EchoerDefinition.typeName
|
|
@@ -151,9 +155,9 @@ export class EchoerClient implements Echoer {
|
|
|
151
155
|
* @generated from rpc echo.Echoer.Echo
|
|
152
156
|
*/
|
|
153
157
|
async Echo(
|
|
154
|
-
request: Message<EchoMsg>,
|
|
155
|
-
|
|
156
|
-
Promise<Message<EchoMsg>> {
|
|
158
|
+
request: Message<EchoMsg>,
|
|
159
|
+
abortSignal?: AbortSignal,
|
|
160
|
+
): Promise<Message<EchoMsg>> {
|
|
157
161
|
const requestMsg = EchoMsg.create(request)
|
|
158
162
|
const result = await this.rpc.request(
|
|
159
163
|
this.service,
|
|
@@ -170,9 +174,9 @@ Promise<Message<EchoMsg>> {
|
|
|
170
174
|
* @generated from rpc echo.Echoer.EchoServerStream
|
|
171
175
|
*/
|
|
172
176
|
EchoServerStream(
|
|
173
|
-
request: Message<EchoMsg>,
|
|
174
|
-
|
|
175
|
-
MessageStream<EchoMsg> {
|
|
177
|
+
request: Message<EchoMsg>,
|
|
178
|
+
abortSignal?: AbortSignal,
|
|
179
|
+
): MessageStream<EchoMsg> {
|
|
176
180
|
const requestMsg = EchoMsg.create(request)
|
|
177
181
|
const result = this.rpc.serverStreamingRequest(
|
|
178
182
|
this.service,
|
|
@@ -189,9 +193,9 @@ MessageStream<EchoMsg> {
|
|
|
189
193
|
* @generated from rpc echo.Echoer.EchoClientStream
|
|
190
194
|
*/
|
|
191
195
|
async EchoClientStream(
|
|
192
|
-
request: MessageStream<EchoMsg>,
|
|
193
|
-
|
|
194
|
-
Promise<Message<EchoMsg>> {
|
|
196
|
+
request: MessageStream<EchoMsg>,
|
|
197
|
+
abortSignal?: AbortSignal,
|
|
198
|
+
): Promise<Message<EchoMsg>> {
|
|
195
199
|
const result = await this.rpc.clientStreamingRequest(
|
|
196
200
|
this.service,
|
|
197
201
|
EchoerDefinition.methods.EchoClientStream.name,
|
|
@@ -207,9 +211,9 @@ Promise<Message<EchoMsg>> {
|
|
|
207
211
|
* @generated from rpc echo.Echoer.EchoBidiStream
|
|
208
212
|
*/
|
|
209
213
|
EchoBidiStream(
|
|
210
|
-
request: MessageStream<EchoMsg>,
|
|
211
|
-
|
|
212
|
-
MessageStream<EchoMsg> {
|
|
214
|
+
request: MessageStream<EchoMsg>,
|
|
215
|
+
abortSignal?: AbortSignal,
|
|
216
|
+
): MessageStream<EchoMsg> {
|
|
213
217
|
const result = this.rpc.bidirectionalStreamingRequest(
|
|
214
218
|
this.service,
|
|
215
219
|
EchoerDefinition.methods.EchoBidiStream.name,
|
|
@@ -225,9 +229,9 @@ MessageStream<EchoMsg> {
|
|
|
225
229
|
* @generated from rpc echo.Echoer.RpcStream
|
|
226
230
|
*/
|
|
227
231
|
RpcStream(
|
|
228
|
-
request: MessageStream<RpcStreamPacket>,
|
|
229
|
-
|
|
230
|
-
MessageStream<RpcStreamPacket> {
|
|
232
|
+
request: MessageStream<RpcStreamPacket>,
|
|
233
|
+
abortSignal?: AbortSignal,
|
|
234
|
+
): MessageStream<RpcStreamPacket> {
|
|
231
235
|
const result = this.rpc.bidirectionalStreamingRequest(
|
|
232
236
|
this.service,
|
|
233
237
|
EchoerDefinition.methods.RpcStream.name,
|
|
@@ -236,5 +240,4 @@ MessageStream<RpcStreamPacket> {
|
|
|
236
240
|
)
|
|
237
241
|
return buildDecodeMessageTransform(RpcStreamPacket)(result)
|
|
238
242
|
}
|
|
239
|
-
|
|
240
243
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starpc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Streaming protobuf RPC service protocol over any two-way channel.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -64,24 +64,22 @@
|
|
|
64
64
|
"lint": "npm run lint:go && npm run lint:js",
|
|
65
65
|
"lint:go": "make lint",
|
|
66
66
|
"lint:js": "ESLINT_USE_FLAT_CONFIG=false eslint -c .eslintrc.cjs --ignore-pattern *.js --ignore-pattern *.d.ts ./",
|
|
67
|
+
"prepare": "go mod vendor && rimraf ./hack/bin",
|
|
68
|
+
"precommit": "lint-staged",
|
|
67
69
|
"release:version": "npm version patch -m \"release: v%s\" --no-git-tag-version",
|
|
70
|
+
"release:version:minor": "npm version minor -m \"release: v%s\" --no-git-tag-version",
|
|
68
71
|
"release:commit": "git reset && git add package.json && git commit -s -m \"release: v$npm_package_version\" && git tag v$npm_package_version",
|
|
69
72
|
"release:publish": "git push && git push --tags && npm run build && npm publish",
|
|
70
73
|
"release": "npm run release:version && npm run release:commit",
|
|
71
|
-
"
|
|
72
|
-
"precommit": "lint-staged"
|
|
74
|
+
"release:minor": "npm run release:version:minor && npm run release:commit"
|
|
73
75
|
},
|
|
74
76
|
"preferUnplugged": true,
|
|
75
77
|
"pre-commit": [
|
|
76
78
|
"precommit"
|
|
77
79
|
],
|
|
78
80
|
"lint-staged": {
|
|
79
|
-
"package.json": "prettier --write",
|
|
80
|
-
"./{srpc,echo,e2e,integration,rpcstream,cmd}/**/(*.ts|*.tsx|*.html|*.css)": "prettier --write"
|
|
81
|
-
},
|
|
82
|
-
"prettier": {
|
|
83
|
-
"semi": false,
|
|
84
|
-
"singleQuote": true
|
|
81
|
+
"package.json": "prettier --config .prettierrc.yaml --write",
|
|
82
|
+
"./{srpc,echo,e2e,integration,rpcstream,cmd}/**/(*.ts|*.tsx|*.html|*.css)": "prettier --config .prettierrc.yaml --write"
|
|
85
83
|
},
|
|
86
84
|
"devDependencies": {
|
|
87
85
|
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
@@ -99,7 +97,7 @@
|
|
|
99
97
|
},
|
|
100
98
|
"dependencies": {
|
|
101
99
|
"@aptre/it-ws": "^1.0.0",
|
|
102
|
-
"@aptre/protobuf-es-lite": "^0.4.
|
|
100
|
+
"@aptre/protobuf-es-lite": "^0.4.1",
|
|
103
101
|
"@chainsafe/libp2p-yamux": "^6.0.2",
|
|
104
102
|
"@libp2p/interface": "^1.3.1",
|
|
105
103
|
"@libp2p/logger": "^4.0.12",
|