diff --git a/src/index.js b/index.js similarity index 100% rename from src/index.js rename to index.js diff --git a/package-lock.json b/package-lock.json index aaef7e3b..740a350f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -425,8 +425,13 @@ "pem-jwk": "^1.5.1", "protons": "^1.0.1", "rsa-pem-to-jwk": "^1.1.3", - "tweetnacl": "^1.0.0", - "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" + "tweetnacl": "^1.0.0" + }, + "dependencies": { + "webcrypto-shim": { + "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", + "from": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" + } } }, "libp2p-crypto-secp256k1": { @@ -486,8 +491,7 @@ "pem-jwk": "^1.5.1", "protons": "^1.0.1", "rsa-pem-to-jwk": "^1.1.3", - "tweetnacl": "^1.0.0", - "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" + "tweetnacl": "^1.0.0" } }, "peer-id": { @@ -500,6 +504,10 @@ "lodash": "^4.17.5", "multihashes": "~0.4.13" } + }, + "webcrypto-shim": { + "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", + "from": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" } } }, @@ -552,8 +560,7 @@ "pem-jwk": "^1.5.1", "protons": "^1.0.1", "rsa-pem-to-jwk": "^1.1.3", - "tweetnacl": "^1.0.0", - "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" + "tweetnacl": "^1.0.0" } }, "peer-id": { @@ -566,6 +573,10 @@ "lodash": "^4.17.5", "multihashes": "~0.4.13" } + }, + "webcrypto-shim": { + "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", + "from": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" } } }, @@ -819,8 +830,7 @@ "pem-jwk": "^1.5.1", "protons": "^1.0.1", "rsa-pem-to-jwk": "^1.1.3", - "tweetnacl": "^1.0.0", - "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" + "tweetnacl": "^1.0.0" } }, "peer-id": { @@ -833,6 +843,10 @@ "lodash": "^4.17.5", "multihashes": "~0.4.13" } + }, + "webcrypto-shim": { + "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", + "from": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" } } }, @@ -874,8 +888,7 @@ "pem-jwk": "^1.5.1", "protons": "^1.0.1", "rsa-pem-to-jwk": "^1.1.3", - "tweetnacl": "^1.0.0", - "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" + "tweetnacl": "^1.0.0" } }, "multiaddr": { @@ -903,6 +916,10 @@ "lodash": "^4.17.5", "multihashes": "~0.4.13" } + }, + "webcrypto-shim": { + "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", + "from": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" } } }, @@ -1174,10 +1191,6 @@ "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.0.tgz", "integrity": "sha1-2Ca4n3SQcy+rwMDtaT7Uddyynr8=" }, - "webcrypto-shim": { - "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", - "from": "github:dignifiedquire/webcrypto-shim#master" - }, "wordwrap": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", diff --git a/package.json b/package.json index 1e39f843..d70ae40e 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ }, "homepage": "https://github.com/ChainSafeSystems/gossipsub-js#readme", "dependencies": { - "libp2p": "^0.23.1" + "libp2p": "^0.23.1", + "libp2p-floodsub": "^0.15.0" } } diff --git a/src/config.js b/src/config.js deleted file mode 100644 index e69de29b..00000000 diff --git a/src/peer.js b/src/peer.js deleted file mode 100644 index e69de29b..00000000 diff --git a/src/utils.js b/src/utils.js deleted file mode 100644 index e69de29b..00000000 diff --git a/src/message/index.js b/tests/index.js similarity index 100% rename from src/message/index.js rename to tests/index.js