@live-change/db-client 0.9.209 → 0.9.212
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/exec.js +5 -1
- package/package.json +4 -4
package/lib/exec.js
CHANGED
|
@@ -34,7 +34,7 @@ async function exec(options) {
|
|
|
34
34
|
|
|
35
35
|
const client = await clientPromise
|
|
36
36
|
let currentPromises = []
|
|
37
|
-
const maxPromises =
|
|
37
|
+
const maxPromises = 1
|
|
38
38
|
|
|
39
39
|
function nextLine() {
|
|
40
40
|
return new Promise(function(resolve, reject) {
|
|
@@ -47,6 +47,10 @@ async function exec(options) {
|
|
|
47
47
|
while (reader.hasNextLine()) {
|
|
48
48
|
const line = await nextLine()
|
|
49
49
|
const command = JSON.parse(line)
|
|
50
|
+
/* console.log("COMMAND", command.type)
|
|
51
|
+
if(command.type == 'request') {
|
|
52
|
+
console.log(" ", command.method.join("."), command.parameters.slice(0,2).map(p=>JSON.stringify(p)).join(", "))
|
|
53
|
+
} */
|
|
50
54
|
switch(command.type) {
|
|
51
55
|
case 'request' :
|
|
52
56
|
while(currentPromises.length > maxPromises) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db-client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.212",
|
|
4
4
|
"description": "Database with observable data for live queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"type": "module",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@live-change/dao": "^0.9.
|
|
32
|
-
"@live-change/dao-websocket": "^0.9.
|
|
31
|
+
"@live-change/dao": "^0.9.212",
|
|
32
|
+
"@live-change/dao-websocket": "^0.9.212",
|
|
33
33
|
"line-reader": "^0.4.0",
|
|
34
34
|
"websocket": "^1.0.34",
|
|
35
35
|
"yargs": "^17.7.2"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "40268236c57d5f123c1e8f1815c310464d043d52"
|
|
38
38
|
}
|