Skip to content

Commit

Permalink
chore: update libp2p dependencies (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain authored Jun 14, 2022
1 parent 17b11bb commit 8d79b87
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"devDependencies": {
"@chainsafe/eslint-plugin-node": "^11.2.3",
"@dapplion/benchmark": "^0.1.6",
"@libp2p/peer-id-factory": "^1.0.11",
"@libp2p/peer-id-factory": "^1.0.12",
"@types/bn.js": "^4.11.5",
"@types/chai": "^4.2.0",
"@types/debug": "^4.1.5",
Expand All @@ -90,8 +90,11 @@
},
"dependencies": {
"@libp2p/crypto": "^0.22.14",
"@libp2p/interfaces": "2.0.3",
"@libp2p/peer-id": "^1.1.11",
"@libp2p/interface-peer-discovery": "^1.0.0",
"@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/interface-peer-info": "^1.0.1",
"@libp2p/interfaces": "3.0.2",
"@libp2p/peer-id": "^1.1.12",
"@multiformats/multiaddr": "^10.2.0",
"base64url": "^3.0.1",
"bcrypto": "^5.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/enr/enr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Multiaddr, protocols } from "@multiformats/multiaddr";
import base64url from "base64url";
import { toBigIntBE } from "bigint-buffer";
import * as RLP from "rlp";
import { PeerId } from "@libp2p/interfaces/peer-id";
import { PeerId } from "@libp2p/interface-peer-id";
import { convertToString, convertToBytes } from "@multiformats/multiaddr/convert";
import { encode as varintEncode } from "varint";

Expand Down
2 changes: 1 addition & 1 deletion src/keypair/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PeerId } from "@libp2p/interfaces/peer-id";
import { PeerId } from "@libp2p/interface-peer-id";
import { peerIdFromKeys } from "@libp2p/peer-id";
import { keysPBM, supportedKeys } from "@libp2p/crypto/keys";

Expand Down
6 changes: 3 additions & 3 deletions src/libp2p/discv5.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PeerId } from "@libp2p/interfaces/peer-id";
import { PeerDiscovery, PeerDiscoveryEvents, symbol as peerDiscoverySymbol } from "@libp2p/interfaces/peer-discovery";
import { PeerId } from "@libp2p/interface-peer-id";
import { PeerDiscovery, PeerDiscoveryEvents, symbol as peerDiscoverySymbol } from "@libp2p/interface-peer-discovery";
import { PeerInfo } from "@libp2p/interface-peer-info";
import { CustomEvent, EventEmitter } from "@libp2p/interfaces/events";
import { Multiaddr } from "@multiformats/multiaddr";
import { PeerInfo } from "@libp2p/interfaces/peer-info";

import { Discv5, ENRInput, IDiscv5Metrics } from "../service/index.js";
import { ENR } from "../enr/index.js";
Expand Down
2 changes: 1 addition & 1 deletion src/service/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EventEmitter } from "events";
import debug from "debug";
import { randomBytes } from "@libp2p/crypto";
import { Multiaddr } from "@multiformats/multiaddr";
import { PeerId } from "@libp2p/interfaces/peer-id";
import { PeerId } from "@libp2p/interface-peer-id";

import { ITransportService, UDPTransportService } from "../transport/index.js";
import { MAX_PACKET_SIZE } from "../packet/index.js";
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/connect.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env mocha */
import { expect } from "chai";
import { Multiaddr } from "@multiformats/multiaddr";
import { PeerId } from "@libp2p/interfaces/peer-id";
import { PeerId } from "@libp2p/interface-peer-id";
import { createFromPrivKey } from "@libp2p/peer-id-factory";
import { unmarshalPrivateKey } from "@libp2p/crypto/keys";
import { createKeypairFromPeerId, Discv5, ENR } from "../../src/index.js";
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
],
"esModuleInterop": true,
"sourceMap": true,
"skipLibCheck": true
}
}

0 comments on commit 8d79b87

Please sign in to comment.