@live-change/framework 0.5.15 → 0.5.16

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 +13 -0
  2. package/package.json +1 -1
package/lib/App.js CHANGED
@@ -388,6 +388,19 @@ class App {
388
388
  }
389
389
  }
390
390
 
391
+
392
+ query(query, params) {
393
+ return ['database', 'query', this.databaseName, `(${ query }}`, params]
394
+ }
395
+
396
+ queryGet(query, params) {
397
+ return this.dao.get(this.query(query, params))
398
+ }
399
+
400
+ queryObservable(query, params) {
401
+ return this.dao.observable(this.query(query, params))
402
+ }
403
+
391
404
  async close() {
392
405
  for(const timeout of this.activeTimeouts) {
393
406
  clearTimeout(timeout)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/framework",
3
- "version": "0.5.15",
3
+ "version": "0.5.16",
4
4
  "description": "Live Change Framework - ultimate solution for real time mobile/web apps",
5
5
  "main": "index.js",
6
6
  "scripts": {