New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@live-change/db

Package Overview
Dependencies
Maintainers
0
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/db - npm Package Compare versions

Comparing version 0.9.20 to 0.9.21

12

lib/ScriptContext.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc