@live-change/framework 0.5.17 → 0.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/App.js +12 -0
  2. package/package.json +1 -1
package/lib/App.js CHANGED
@@ -401,6 +401,18 @@ class App {
401
401
  return this.dao.observable(this.query(query, params))
402
402
  }
403
403
 
404
+ queryObject(query, params) {
405
+ return ['database', 'queryObject', this.databaseName, `(${ query })`, params]
406
+ }
407
+
408
+ queryObjectGet(query, params) {
409
+ return this.dao.get(this.queryObject(query, params))
410
+ }
411
+
412
+ queryObjectObservable(query, params) {
413
+ return this.dao.observable(this.queryObject(query, params))
414
+ }
415
+
404
416
  async close() {
405
417
  for(const timeout of this.activeTimeouts) {
406
418
  clearTimeout(timeout)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/framework",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "description": "Live Change Framework - ultimate solution for real time mobile/web apps",
5
5
  "main": "index.js",
6
6
  "scripts": {