@libp2p/daemon-protocol 3.0.3 → 3.0.5
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/README.md +3 -3
- package/dist/index.min.js +3 -0
- package/dist/src/index.d.ts +26 -26
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +40 -85
- package/dist/src/index.js.map +1 -1
- package/dist/src/stream-handler.d.ts +2 -2
- package/dist/src/stream-handler.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/index.proto +40 -7
- package/src/index.ts +73 -118
- package/src/stream-handler.ts +3 -3
package/src/index.proto
CHANGED
|
@@ -14,7 +14,11 @@ message Request {
|
|
|
14
14
|
PEERSTORE = 9;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// the proto2 version of this field is "required" which means it will have
|
|
18
|
+
// no default value. the default for proto3 is "singluar" which omits the
|
|
19
|
+
// value on the wire if it's the default so for proto3 we make it "optional"
|
|
20
|
+
// to ensure a value is always written on to the wire
|
|
21
|
+
optional Type type = 1;
|
|
18
22
|
|
|
19
23
|
optional ConnectRequest connect = 2;
|
|
20
24
|
optional StreamOpenRequest streamOpen = 3;
|
|
@@ -32,7 +36,12 @@ message Response {
|
|
|
32
36
|
ERROR = 1;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
// the proto2 version of this field is "required" which means it will have
|
|
40
|
+
// no default value. the default for proto3 is "singluar" which omits the
|
|
41
|
+
// value on the wire if it's the default so for proto3 we make it "optional"
|
|
42
|
+
// to ensure a value is always written on to the wire
|
|
43
|
+
optional Type type = 1;
|
|
44
|
+
|
|
36
45
|
optional ErrorResponse error = 2;
|
|
37
46
|
optional StreamInfo streamInfo = 3;
|
|
38
47
|
optional IdentifyResponse identify = 4;
|
|
@@ -87,7 +96,12 @@ message DHTRequest {
|
|
|
87
96
|
PROVIDE = 8;
|
|
88
97
|
}
|
|
89
98
|
|
|
90
|
-
|
|
99
|
+
// the proto2 version of this field is "required" which means it will have
|
|
100
|
+
// no default value. the default for proto3 is "singluar" which omits the
|
|
101
|
+
// value on the wire if it's the default so for proto3 we make it "optional"
|
|
102
|
+
// to ensure a value is always written on to the wire
|
|
103
|
+
optional Type type = 1;
|
|
104
|
+
|
|
91
105
|
optional bytes peer = 2;
|
|
92
106
|
optional bytes cid = 3;
|
|
93
107
|
optional bytes key = 4;
|
|
@@ -103,7 +117,12 @@ message DHTResponse {
|
|
|
103
117
|
END = 2;
|
|
104
118
|
}
|
|
105
119
|
|
|
106
|
-
|
|
120
|
+
// the proto2 version of this field is "required" which means it will have
|
|
121
|
+
// no default value. the default for proto3 is "singluar" which omits the
|
|
122
|
+
// value on the wire if it's the default so for proto3 we make it "optional"
|
|
123
|
+
// to ensure a value is always written on to the wire
|
|
124
|
+
optional Type type = 1;
|
|
125
|
+
|
|
107
126
|
optional PeerInfo peer = 2;
|
|
108
127
|
optional bytes value = 3;
|
|
109
128
|
}
|
|
@@ -120,7 +139,11 @@ message ConnManagerRequest {
|
|
|
120
139
|
TRIM = 2;
|
|
121
140
|
}
|
|
122
141
|
|
|
123
|
-
|
|
142
|
+
// the proto2 version of this field is "required" which means it will have
|
|
143
|
+
// no default value. the default for proto3 is "singluar" which omits the
|
|
144
|
+
// value on the wire if it's the default so for proto3 we make it "optional"
|
|
145
|
+
// to ensure a value is always written on to the wire
|
|
146
|
+
optional Type type = 1;
|
|
124
147
|
|
|
125
148
|
optional bytes peer = 2;
|
|
126
149
|
optional string tag = 3;
|
|
@@ -139,7 +162,12 @@ message PSRequest {
|
|
|
139
162
|
SUBSCRIBE = 3;
|
|
140
163
|
}
|
|
141
164
|
|
|
142
|
-
|
|
165
|
+
// the proto2 version of this field is "required" which means it will have
|
|
166
|
+
// no default value. the default for proto3 is "singluar" which omits the
|
|
167
|
+
// value on the wire if it's the default so for proto3 we make it "optional"
|
|
168
|
+
// to ensure a value is always written on to the wire
|
|
169
|
+
optional Type type = 1;
|
|
170
|
+
|
|
143
171
|
optional string topic = 2;
|
|
144
172
|
optional bytes data = 3;
|
|
145
173
|
}
|
|
@@ -165,7 +193,12 @@ message PeerstoreRequest {
|
|
|
165
193
|
GET_PEER_INFO = 2;
|
|
166
194
|
}
|
|
167
195
|
|
|
168
|
-
|
|
196
|
+
// the proto2 version of this field is "required" which means it will have
|
|
197
|
+
// no default value. the default for proto3 is "singluar" which omits the
|
|
198
|
+
// value on the wire if it's the default so for proto3 we make it "optional"
|
|
199
|
+
// to ensure a value is always written on to the wire
|
|
200
|
+
optional Type type = 1;
|
|
201
|
+
|
|
169
202
|
optional bytes id = 2;
|
|
170
203
|
repeated string protos = 3;
|
|
171
204
|
}
|