fix: export wait_for_remote_peer in exports map

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 https://github.com/status-im/js-waku/issues/914.
This commit is contained in:
fryorcraken.eth 2022-09-01 14:29:31 +10:00
parent 71ca4c9c91
commit 2108e56dfa
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ module.exports = [
path: ["bundle/index.js", "bundle/lib/create_waku.js"], path: ["bundle/index.js", "bundle/lib/create_waku.js"],
import: { import: {
"./bundle/lib/create_waku.js": "{ createWaku }", "./bundle/lib/create_waku.js": "{ createWaku }",
"./bundle/index.js": "{ waitForRemotePeer }", "./bundle/lib/wait_for_remote_peer.js": "{ waitForRemotePeer }",
}, },
}, },
{ {

View File

@ -24,6 +24,10 @@
"./lib/predefined_bootstrap_nodes": { "./lib/predefined_bootstrap_nodes": {
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts", "types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
"import": "./dist/lib/predefined_bootstrap_nodes.js" "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": { "typesVersions": {

View File

@ -9,6 +9,7 @@ export default {
"lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js", "lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js",
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js", "lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js", "lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
"lib/wait_for_remote_peer": "dist/lib/wait_for_remote_peer.js",
}, },
output: { output: {
dir: "bundle", dir: "bundle",