git ssb

0+

Dominic / ssb-ooo



Commit 0ba44f19cf8a272c733041c8b3eaf1e9723db428

isObject

Dominic Tarr committed on 11/13/2017, 4:42:56 PM
Parent: 4ef348477adc25d5486223b7e865d892ac45d67e

Files changed

index.jschanged
index.jsView
@@ -1,12 +1,17 @@
11 var pull = require('pull-stream')
22 var GQ = require('gossip-query')
33 var hash = require('ssb-keys/util').hash
44 var ref = require('ssb-ref')
5 +
56 function getId(msg) {
67 return '%'+hash(JSON.stringify(msg, null, 2))
78 }
89
10 +function isObject (o) {
11 + return o && 'object' === typeof o
12 +}
13 +
914 var Store = require('./store')
1015 var log = console.error
1116
1217 console.error = function (m) {

Built with git-ssb-web