Skip to content
Snippets Groups Projects
Commit 846fc80b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] Upgrade wotb module: allow to retrieve non-members

parent 05219b10
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ function WoTBWrapper(instance) { ...@@ -20,6 +20,7 @@ function WoTBWrapper(instance) {
this.resetWoT = instance.resetWoT; this.resetWoT = instance.resetWoT;
this.clear = instance.clear; this.clear = instance.clear;
this.showWoT = instance.showWoT; this.showWoT = instance.showWoT;
this.dumpWoT = instance.dumpWoT;
this.showGraph = () => this.showGraph = () =>
instance.showGraph(); instance.showGraph();
this.getWoTSize = instance.getWoTSize; this.getWoTSize = instance.getWoTSize;
...@@ -30,8 +31,14 @@ function WoTBWrapper(instance) { ...@@ -30,8 +31,14 @@ function WoTBWrapper(instance) {
this.getPaths = instance.getPaths; this.getPaths = instance.getPaths;
this.getSentries = instance.getSentries; this.getSentries = instance.getSentries;
this.getNonSentries = instance.getNonSentries; this.getNonSentries = instance.getNonSentries;
this.getDisabled = instance.getDisabled;
this.setEnabled = (enabled, nodeID) => instance.setEnabled(enabled, nodeID); this.setEnabled = (enabled, nodeID) => {
if (!enabled) {
logger.trace('Disable node %s', nodeID);
}
instance.setEnabled(enabled, nodeID)
};
this.addNode = () => { this.addNode = () => {
let nodeNumber = instance.addNode(); let nodeNumber = instance.addNode();
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"unzip": "0.1.11", "unzip": "0.1.11",
"unzip2": "0.2.5", "unzip2": "0.2.5",
"winston": "2.2.0", "winston": "2.2.0",
"wotb": "0.5.1" "wotb": "0.5.3"
}, },
"devDependencies": { "devDependencies": {
"coveralls": "2.11.4", "coveralls": "2.11.4",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment