mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-12 17:16:36 +00:00
Update modules
This commit is contained in:
parent
93396f881e
commit
b354b55c33
12
package.json
12
package.json
@ -14,10 +14,10 @@
|
||||
"main": "src/OrbitDB.js",
|
||||
"dependencies": {
|
||||
"logplease": "^1.2.6",
|
||||
"orbit-db-counterstore": "0.0.9",
|
||||
"orbit-db-eventstore": "0.0.10",
|
||||
"orbit-db-feedstore": "0.0.10",
|
||||
"orbit-db-kvstore": "0.0.9",
|
||||
"orbit-db-counterstore": "0.0.10",
|
||||
"orbit-db-eventstore": "0.0.11",
|
||||
"orbit-db-feedstore": "0.0.11",
|
||||
"orbit-db-kvstore": "0.0.10",
|
||||
"socket.io-client": "^1.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -27,9 +27,9 @@
|
||||
"babel-plugin-transform-runtime": "^6.8.0",
|
||||
"babel-preset-es2015": "^6.6.0",
|
||||
"exports-loader": "^0.6.3",
|
||||
"ipfs": "^0.5.0",
|
||||
"ipfs": "^0.6.1",
|
||||
"ipfs-api": "^4.1.0",
|
||||
"ipfsd-ctl": "^0.13.0",
|
||||
"ipfsd-ctl": "^0.14.0",
|
||||
"json-loader": "^0.5.4",
|
||||
"lodash": "^4.3.0",
|
||||
"mocha": "^2.4.5",
|
||||
|
@ -27,7 +27,10 @@ const IpfsApis = [
|
||||
return new Promise((resolve, reject) => {
|
||||
const IPFS = require('ipfs')
|
||||
const ipfs = new IPFS();
|
||||
ipfs.goOnline(() => resolve(ipfs));
|
||||
ipfs.goOnline((err) => {
|
||||
if(err) reject(err)
|
||||
else resolve(ipfs)
|
||||
});
|
||||
});
|
||||
},
|
||||
stop: () => new Promise((resolve, reject) => ipfs.goOffline(resolve))
|
||||
|
Loading…
x
Reference in New Issue
Block a user