@dxos/rpc 0.9.1-main.c7dcc2e112 → 0.10.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.
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/rpc.test.ts +2 -2
- package/src/service.test.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/rpc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "A lightweight, transport-agnostic RPC implementation",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"src"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dxos/
|
|
29
|
-
"@dxos/
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/invariant": "0.
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/util": "0.
|
|
36
|
-
"@dxos/
|
|
28
|
+
"@dxos/context": "0.10.0",
|
|
29
|
+
"@dxos/codec-protobuf": "0.10.0",
|
|
30
|
+
"@dxos/async": "0.10.0",
|
|
31
|
+
"@dxos/debug": "0.10.0",
|
|
32
|
+
"@dxos/invariant": "0.10.0",
|
|
33
|
+
"@dxos/log": "0.10.0",
|
|
34
|
+
"@dxos/protocols": "0.10.0",
|
|
35
|
+
"@dxos/util": "0.10.0",
|
|
36
|
+
"@dxos/node-std": "0.10.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
package/src/rpc.test.ts
CHANGED
|
@@ -14,8 +14,8 @@ import { createLinkedPorts, encodeMessage } from './testing';
|
|
|
14
14
|
|
|
15
15
|
const createPayload = (value = ''): TaggedType<TYPES, 'google.protobuf.Any'> => ({
|
|
16
16
|
'@type': 'google.protobuf.Any',
|
|
17
|
-
type_url: 'dxos.test',
|
|
18
|
-
value: encodeMessage(value),
|
|
17
|
+
'type_url': 'dxos.test',
|
|
18
|
+
'value': encodeMessage(value),
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// TODO(dmaretskyi): Rename alice and bob to peer1 and peer2.
|
package/src/service.test.ts
CHANGED
|
@@ -467,7 +467,7 @@ describe('Protobuf service', () => {
|
|
|
467
467
|
return {
|
|
468
468
|
payload: {
|
|
469
469
|
'@type': 'example.testing.rpc.PingReponse',
|
|
470
|
-
nonce: 10,
|
|
470
|
+
'nonce': 10,
|
|
471
471
|
},
|
|
472
472
|
};
|
|
473
473
|
},
|
|
@@ -488,7 +488,7 @@ describe('Protobuf service', () => {
|
|
|
488
488
|
const response = await client.rpc.TestAnyService.testCall({
|
|
489
489
|
payload: {
|
|
490
490
|
'@type': 'example.testing.rpc.PingRequest',
|
|
491
|
-
nonce: 5,
|
|
491
|
+
'nonce': 5,
|
|
492
492
|
},
|
|
493
493
|
});
|
|
494
494
|
|