You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@live-change/db

Package Overview
Dependencies
Maintainers
1
Versions
328
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

to
0.3.7

4

lib/AtomicWriter.js

@@ -89,3 +89,5 @@ function getProperty(of, propertyName) {

for(let operation of operations) {
value = mutators[operation.op](value, operation)
const mutator = mutators[operation.op]
if(!mutator) throw new Error(`mutator "${operation.op}" not exists`)
value = mutator(value, operation)
}

@@ -92,0 +94,0 @@ return value

@@ -335,2 +335,3 @@ const IntervalTree = require('node-interval-tree').default

/// TODO: script available routines
console
})

@@ -337,0 +338,0 @@ const queryFunction = this.scriptContext.run(code, 'query')

@@ -33,2 +33,3 @@

let res = await this.store.put(object)
if(JSON.stringify(object) == JSON.stringify(res)) return res
for(let output of this.outputs) output({ type: 'put', object, oldObject: res })

@@ -35,0 +36,0 @@ return res

@@ -108,3 +108,3 @@ const ReactiveDao = require("@live-change/dao")

get() {
console.log("OBJ GET", this.#table.name, this.#id)
//console.log("OBJ GET", this.#table.name, this.#id)
return this.#table.objectGet(this.#id)

@@ -111,0 +111,0 @@ }

{
"name": "@live-change/db",
"version": "0.3.6",
"version": "0.3.7",
"description": "Database with observable data for live queries",

@@ -39,5 +39,5 @@ "main": "index.js",

"dependencies": {
"@live-change/dao": "^0.2.3",
"@live-change/dao": "^0.2.9",
"node-interval-tree": "^1.3.3"
}
}