Skip to content

Commit 019d5e7

Browse files
authored
deps: update protobufs, it-pipe, etc (#465)
1 parent 799e6b0 commit 019d5e7

File tree

4 files changed

+198
-71
lines changed

4 files changed

+198
-71
lines changed

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"generate:proto-types": "pbts -o src/message/message.d.ts src/message/message.js"
166166
},
167167
"dependencies": {
168-
"@libp2p/interface-connection": "^2.1.1",
168+
"@libp2p/interface-connection": "^3.0.1",
169169
"@libp2p/interface-peer-id": "^1.0.4",
170170
"@libp2p/interface-peer-store": "^1.2.0",
171171
"@libp2p/topology": "^3.0.0",
@@ -178,21 +178,21 @@
178178
"debug": "^4.2.0",
179179
"err-code": "^3.0.1",
180180
"interface-blockstore": "^2.0.2",
181-
"it-length-prefixed": "^7.0.1",
182-
"it-pipe": "^2.0.3",
181+
"it-length-prefixed": "^8.0.2",
182+
"it-pipe": "^2.0.4",
183183
"just-debounce-it": "^3.0.1",
184184
"multiformats": "^9.0.4",
185-
"protobufjs": "^6.10.2",
185+
"protobufjs": "^7.0.0",
186186
"readable-stream": "^4.0.0",
187187
"timeout-abort-controller": "^3.0.0",
188188
"uint8arrays": "^3.0.0",
189189
"varint": "^6.0.0",
190190
"varint-decoder": "^1.0.0"
191191
},
192192
"devDependencies": {
193-
"@chainsafe/libp2p-noise": "^7.0.1",
193+
"@chainsafe/libp2p-noise": "^8.0.0",
194194
"@libp2p/kad-dht": "^3.0.0",
195-
"@libp2p/mplex": "^4.0.0",
195+
"@libp2p/mplex": "^5.0.0",
196196
"@libp2p/peer-id": "^1.1.8",
197197
"@libp2p/peer-id-factory": "^1.0.8",
198198
"@libp2p/tcp": "^3.0.1",
@@ -216,9 +216,10 @@
216216
"npm-run-all": "^4.1.5",
217217
"p-defer": "^4.0.0",
218218
"p-event": "^5.0.1",
219-
"p-wait-for": "^4.1.0",
219+
"p-wait-for": "^5.0.0",
220220
"process": "^0.11.10",
221221
"promisify-es6": "^1.0.3",
222+
"protobufjs-cli": "^1.0.0",
222223
"rimraf": "^3.0.2",
223224
"sinon": "^14.0.0",
224225
"stats-lite": "^2.2.0",

src/message/message.d.ts

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import $protobuf from "protobufjs/minimal.js";
1+
import * as $protobuf from "protobufjs";
22
/** Properties of a Message. */
33
export interface IMessage {
44

@@ -80,6 +80,13 @@ export class Message implements IMessage {
8080
* @returns JSON object
8181
*/
8282
public toJSON(): { [k: string]: any };
83+
84+
/**
85+
* Gets the default type url for Message
86+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
87+
* @returns The default type url
88+
*/
89+
public static getTypeUrl(typeUrlPrefix?: string): string;
8390
}
8491

8592
export namespace Message {
@@ -147,6 +154,13 @@ export namespace Message {
147154
* @returns JSON object
148155
*/
149156
public toJSON(): { [k: string]: any };
157+
158+
/**
159+
* Gets the default type url for Wantlist
160+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
161+
* @returns The default type url
162+
*/
163+
public static getTypeUrl(typeUrlPrefix?: string): string;
150164
}
151165

152166
namespace Wantlist {
@@ -238,6 +252,13 @@ export namespace Message {
238252
* @returns JSON object
239253
*/
240254
public toJSON(): { [k: string]: any };
255+
256+
/**
257+
* Gets the default type url for Entry
258+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
259+
* @returns The default type url
260+
*/
261+
public static getTypeUrl(typeUrlPrefix?: string): string;
241262
}
242263
}
243264

@@ -304,6 +325,13 @@ export namespace Message {
304325
* @returns JSON object
305326
*/
306327
public toJSON(): { [k: string]: any };
328+
329+
/**
330+
* Gets the default type url for Block
331+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
332+
* @returns The default type url
333+
*/
334+
public static getTypeUrl(typeUrlPrefix?: string): string;
307335
}
308336

309337
/** BlockPresenceType enum. */
@@ -375,5 +403,12 @@ export namespace Message {
375403
* @returns JSON object
376404
*/
377405
public toJSON(): { [k: string]: any };
406+
407+
/**
408+
* Gets the default type url for BlockPresence
409+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
410+
* @returns The default type url
411+
*/
412+
public static getTypeUrl(typeUrlPrefix?: string): string;
378413
}
379414
}

0 commit comments

Comments
 (0)