git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 9695ea8eac2e23f6a7008304a5e2954129f7019d

Merge pull request #161 from primea/greenkeeper/dfinity-radix-tree-0.0.4

Update dfinity-radix-tree to the latest version 🚀
wanderer authored on 10/20/2017, 6:50:17 PM
GitHub committed on 10/20/2017, 6:50:17 PM
Parent: db20563d964d0ca8262c7bfc16ff3b9e742f289b
Parent: 22cdc4553fb9b622685313bf95bdfd95774424cf

Files changed

dfsChecker.jschanged
index.jschanged
package-lock.jsonchanged
package.jsonchanged
dfsChecker.jsView
@@ -58,9 +58,9 @@
5858 hasRootSet = checkedNodes
5959 return
6060 }
6161
62- const node = await tree.get(id)
62 + const node = await tree.get(id).then(r => r.value)
6363 const promises = []
6464 // iterate through the nodes ports and recursivly check them
6565 for (const name in node.ports) {
6666 const port = node.ports[name]
index.jsView
@@ -46,9 +46,10 @@
4646 let containerState
4747 if (instance) {
4848 containerState = instance.state
4949 } else {
50- containerState = await this.tree.get(port.destId, true)
50 + let {value} = await this.tree.get(port.destId, true)
51 + containerState = value
5152 }
5253 return this.tree.graph.get(containerState, `ports/${port.destName}`)
5354 }
5455 }
@@ -66,9 +67,9 @@
6667
6768 // loads an instance of a container from the state
6869 async _loadInstance (id, state) {
6970 if (!state) {
70- state = await this.tree.get(id, true)
71 + state = await this.tree.get(id, true).then(result => result.value)
7172 }
7273 const container = this._containerTypes[state.type]
7374
7475 // create a new kernel instance
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 402174 bytes
New file size: 397197 bytes
package.jsonView
@@ -30,9 +30,9 @@
3030 "contributors": "Alex Beregszaszi <alex@rtfs.hu>",
3131 "license": "MPL-2.0",
3232 "dependencies": {
3333 "binary-search-insert": "^1.0.3",
34- "dfinity-radix-tree": "0.0.3",
34 + "dfinity-radix-tree": "0.0.4",
3535 "lockmap": "0.0.0",
3636 "primea-message": "0.0.2",
3737 "sortedmap": "0.0.1",
3838 "typedarray-addition": "0.0.1"

Built with git-ssb-web