Skip to content

deps: update protobufs, it-pipe, etc #465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"generate:proto-types": "pbts -o src/message/message.d.ts src/message/message.js"
},
"dependencies": {
"@libp2p/interface-connection": "^2.1.1",
"@libp2p/interface-connection": "^3.0.1",
"@libp2p/interface-peer-id": "^1.0.4",
"@libp2p/interface-peer-store": "^1.2.0",
"@libp2p/topology": "^3.0.0",
Expand All @@ -174,21 +174,21 @@
"debug": "^4.2.0",
"err-code": "^3.0.1",
"interface-blockstore": "^2.0.2",
"it-length-prefixed": "^7.0.1",
"it-pipe": "^2.0.3",
"it-length-prefixed": "^8.0.2",
"it-pipe": "^2.0.4",
"just-debounce-it": "^3.0.1",
"multiformats": "^9.0.4",
"protobufjs": "^6.10.2",
"protobufjs": "^7.0.0",
"readable-stream": "^4.0.0",
"timeout-abort-controller": "^3.0.0",
"uint8arrays": "^3.0.0",
"varint": "^6.0.0",
"varint-decoder": "^1.0.0"
},
"devDependencies": {
"@chainsafe/libp2p-noise": "^7.0.1",
"@chainsafe/libp2p-noise": "^8.0.0",
"@libp2p/kad-dht": "^3.0.0",
"@libp2p/mplex": "^4.0.0",
"@libp2p/mplex": "^5.0.0",
"@libp2p/peer-id": "^1.1.8",
"@libp2p/peer-id-factory": "^1.0.8",
"@libp2p/tcp": "^3.0.1",
Expand All @@ -212,9 +212,10 @@
"npm-run-all": "^4.1.5",
"p-defer": "^4.0.0",
"p-event": "^5.0.1",
"p-wait-for": "^4.1.0",
"p-wait-for": "^5.0.0",
"process": "^0.11.10",
"promisify-es6": "^1.0.3",
"protobufjs-cli": "^1.0.0",
"rimraf": "^3.0.2",
"sinon": "^14.0.0",
"stats-lite": "^2.2.0",
Expand Down
37 changes: 36 additions & 1 deletion src/message/message.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import $protobuf from "protobufjs/minimal.js";
import * as $protobuf from "protobufjs";
/** Properties of a Message. */
export interface IMessage {

Expand Down Expand Up @@ -80,6 +80,13 @@ export class Message implements IMessage {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Message
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

export namespace Message {
Expand Down Expand Up @@ -147,6 +154,13 @@ export namespace Message {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Wantlist
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace Wantlist {
Expand Down Expand Up @@ -238,6 +252,13 @@ export namespace Message {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Entry
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}

Expand Down Expand Up @@ -304,6 +325,13 @@ export namespace Message {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Block
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** BlockPresenceType enum. */
Expand Down Expand Up @@ -375,5 +403,12 @@ export namespace Message {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for BlockPresence
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
Loading