Skip to content

Commit

Permalink
Merge #919
Browse files Browse the repository at this point in the history
919: include wait_for_remote_peer in exports map r=fryorcraken a=fryorcraken

This module will just consume a generate Waku and Waku Relay interfaces so we already we want to extract it.

It is also one opinionated to handle connection management, other ways might come with #914.

Co-authored-by: fryorcraken.eth <[email protected]>
  • Loading branch information
status-bors-ng[bot] and fryorcraken authored Sep 1, 2022
2 parents 71ca4c9 + 2108e56 commit f52dd9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = [
path: ["bundle/index.js", "bundle/lib/create_waku.js"],
import: {
"./bundle/lib/create_waku.js": "{ createWaku }",
"./bundle/index.js": "{ waitForRemotePeer }",
"./bundle/lib/wait_for_remote_peer.js": "{ waitForRemotePeer }",
},
},
{
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"./lib/predefined_bootstrap_nodes": {
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
"import": "./dist/lib/predefined_bootstrap_nodes.js"
},
"./lib/wait_for_remote_peer": {
"types": "./dist/lib/wait_for_remote_peer.d.ts",
"import": "./dist/lib/wait_for_remote_peer.js"
}
},
"typesVersions": {
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default {
"lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js",
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
"lib/wait_for_remote_peer": "dist/lib/wait_for_remote_peer.js",
},
output: {
dir: "bundle",
Expand Down

0 comments on commit f52dd9e

Please sign in to comment.