From b3173c1ff392df265d9a05ad1033347ea0b61fba Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 30 May 2018 17:22:12 -0400 Subject: [PATCH 1/2] register ipfs cmd correctly --- lib/modules/ipfs/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index bccd839c..458be7ef 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -117,7 +117,7 @@ class IPFS { addIpfsObjectToConsole() { let ipfs = IpfsApi(this.storageConfig.host, this.storageConfig.port); - RunCode.doEval("", {ipfs: ipfs}); + this.events.emit("runcode:register", "ipfs", ipfs); } } From 7ee62adb24cc18a23a3ccd746cc8d34fbcf92553 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 30 May 2018 17:30:51 -0400 Subject: [PATCH 2/2] remove unused assignment --- lib/modules/ipfs/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index 458be7ef..1b25411e 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -1,7 +1,6 @@ let UploadIPFS = require('./upload.js'); let utils = require('../../utils/utils.js'); let fs = require('../../core/fs.js'); -let RunCode = require('../../coderunner/runCode'); let IpfsApi = require('ipfs-api'); class IPFS {