git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 9934d9a6a446f5a6218a27df8b509155c7bc57cc

move cap into module

wanderer committed on 12/6/2017, 5:00:21 AM
Parent: f7af9769dc163a3efc6196f8cc06ab9115567a9f

Files changed

actor.jschanged
package-lock.jsonchanged
package.jsonchanged
actor.jsView
@@ -1,5 +1,6 @@
11 const Buffer = require('safe-buffer').Buffer
2+const Cap = require('primea-capability')
23 const Message = require('primea-message')
34 const leb128 = require('leb128').unsigned
45 const LockMap = require('lockmap')
56 const Inbox = require('./inbox.js')
@@ -35,12 +36,9 @@
3536 * @param {*} tag - a tag which can be used to identify caps
3637 * @return {Object}
3738 */
3839 mintCap (tag = 0) {
39- return {
40- destId: this.id,
41- tag: tag
42- }
40+ return new Cap(this.id, tag)
4341 }
4442
4543 /**
4644 * adds a message to this actor's message queue
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 345831 bytes
New file size: 347004 bytes
package.jsonView
@@ -31,10 +31,12 @@
3131 "contributors": "Alex Beregszaszi <alex@rtfs.hu>",
3232 "license": "MPL-2.0",
3333 "dependencies": {
3434 "binary-search-insert": "^1.0.3",
35+ "buffer-pipe": "0.0.1",
3536 "leb128": "0.0.4",
3637 "lockmap": "^0.1.0",
38+ "primea-capability": "0.0.0",
3739 "primea-message": "0.6.1",
3840 "safe-buffer": "^5.1.1",
3941 "sortedmap": "0.0.1",
4042 "typedarray-addition": "0.0.1"

Built with git-ssb-web