@live-change/framework 0.5.17 → 0.5.20
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.
- package/lib/App.js +12 -0
- package/lib/runtime/Action.js +1 -1
- package/package.json +8 -7
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/lib/runtime/Action.js
CHANGED
|
@@ -44,7 +44,7 @@ class Action {
|
|
|
44
44
|
}
|
|
45
45
|
if(parameters._commandId) command.id = parameters._commandId
|
|
46
46
|
//console.log("CALL COMMAND", JSON.stringify(command, null, " "))
|
|
47
|
-
return this.service.app.command(command, this.definition.requestTimeout)
|
|
47
|
+
return this.service.app.command(command, this.definition.requestTimeout || this.definition.timeout)
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.20",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/live-change/framework.git"
|
|
11
|
+
"url": "git+https://github.com/live-change/live-change-framework.git"
|
|
12
12
|
},
|
|
13
13
|
"author": {
|
|
14
14
|
"email": "m8@em8.pl",
|
|
@@ -17,22 +17,23 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/live-change/framework/issues"
|
|
20
|
+
"url": "https://github.com/live-change/live-change-framework/issues"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://github.com/live-change/framework",
|
|
22
|
+
"homepage": "https://github.com/live-change/live-change-framework",
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@live-change/dao": "^0.3.13",
|
|
25
25
|
"@live-change/dao-websocket": "^0.3.2",
|
|
26
26
|
"@live-change/db": "^0.3.64",
|
|
27
27
|
"@live-change/db-store-level": "^0.1.15",
|
|
28
28
|
"@live-change/db-store-lmdb": "^0.1.22",
|
|
29
|
-
"@live-change/
|
|
29
|
+
"@live-change/sockjs": "^0.4.0-rc.1",
|
|
30
|
+
"@live-change/uid": "^0.5.20",
|
|
30
31
|
"cookie": "^0.4.1",
|
|
31
32
|
"express": "^4.17.1",
|
|
32
33
|
"os-service": "^2.2.0",
|
|
33
34
|
"rimraf": "^3.0.2",
|
|
34
|
-
"@live-change/sockjs": "^0.4.0-rc.1",
|
|
35
35
|
"tape": "^5.3.2",
|
|
36
36
|
"websocket": "^1.0.34"
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "d37be156c4f76af3ead4ad0aae3f80281191bf57"
|
|
38
39
|
}
|