@live-change/db
Advanced tools
Comparing version 0.9.20 to 0.9.21
@@ -23,13 +23,13 @@ import vm from 'vm' | ||
crypto, | ||
sha1(data) { | ||
sha1(data, encoding = 'hex') { | ||
if(typeof data != 'string') data = JSON.stringify(data) | ||
return crypto.createHash('sha1').update(data).digest('hex') | ||
return crypto.createHash('sha1').update(data).digest(encoding) | ||
}, | ||
sha256(data) { | ||
sha256(data, encoding = 'hex') { | ||
if(typeof data != 'string') data = JSON.stringify(data) | ||
return crypto.createHash('sha256').update(data).digest('hex') | ||
return crypto.createHash('sha256').update(data).digest(encoding) | ||
}, | ||
hash(data) { | ||
hash(data, encoding = 'hex') { | ||
if(typeof data != 'string') data = JSON.stringify(data) | ||
return crypto.createHash('sha1').update(data).digest('hex') | ||
return crypto.createHash('sha1').update(data).digest(encoding) | ||
}, | ||
@@ -36,0 +36,0 @@ pipe() { |
{ | ||
"name": "@live-change/db", | ||
"version": "0.9.20", | ||
"version": "0.9.21", | ||
"description": "Database with observable data for live queries", | ||
@@ -25,4 +25,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@live-change/db-store-level": "^0.9.20", | ||
"@live-change/db-store-lmdb": "^0.9.20", | ||
"@live-change/db-store-level": "^0.9.21", | ||
"@live-change/db-store-lmdb": "^0.9.21", | ||
"minimist": ">=1.2.3", | ||
@@ -36,7 +36,7 @@ "next-tick": "^1.1.0", | ||
"dependencies": { | ||
"@live-change/dao": "^0.9.20", | ||
"@live-change/dao": "^0.9.21", | ||
"get-random-values": "^1.2.2", | ||
"node-interval-tree": "^1.3.3" | ||
}, | ||
"gitHead": "6524c2dedbb137e95e9aa07eaf9503d68d7b9093" | ||
"gitHead": "362e325d1c636f9c0f2fb6432e209c5c56f46919" | ||
} |
101951
Updated@live-change/dao@^0.9.21