@live-change/db-client 0.6.23 → 0.7.0
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/bin/client.js +0 -1
- package/lib/dump.js +2 -2
- package/lib/exec.js +3 -3
- package/lib/get.js +2 -2
- package/lib/observe.js +3 -3
- package/lib/parseList.js +1 -1
- package/lib/request.js +2 -2
- package/package.json +5 -4
package/bin/client.js
CHANGED
|
@@ -5,7 +5,6 @@ const exec = require('../lib/exec.js')
|
|
|
5
5
|
const request = require('../lib/request.js')
|
|
6
6
|
const get = require('../lib/get.js')
|
|
7
7
|
const observe = require('../lib/observe.js')
|
|
8
|
-
|
|
9
8
|
const parseList = require('../lib/parseList.js')
|
|
10
9
|
|
|
11
10
|
process.on('unhandledRejection', (reason, p) => {
|
package/lib/dump.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { client as WSClient } from "@live-change/dao-websocket"
|
|
2
2
|
|
|
3
3
|
async function dump(
|
|
4
4
|
options,
|
|
@@ -139,4 +139,4 @@ async function dump(
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
export default dump
|
package/lib/exec.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { client as WSClient } from "@live-change/dao-websocket"
|
|
2
|
+
import lineReader from 'line-reader'
|
|
3
3
|
|
|
4
4
|
async function exec(options) {
|
|
5
5
|
let { serverUrl, verbose, file, targetDb } = options
|
|
@@ -83,4 +83,4 @@ async function exec(options) {
|
|
|
83
83
|
})
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
export default exec
|
package/lib/get.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { client as WSClient } from "@live-change/dao-websocket"
|
|
2
2
|
|
|
3
3
|
async function get({ serverUrl, path, verbose }) {
|
|
4
4
|
if(verbose) console.info(`getting ${serverUrl} value ${JSON.stringify(path)}`)
|
|
@@ -35,4 +35,4 @@ async function get({ serverUrl, path, verbose }) {
|
|
|
35
35
|
})
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
export default get
|
package/lib/observe.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { client as WSClient } from "@live-change/dao-websocket"
|
|
2
|
+
import ReactiveDao from "@live-change/dao"
|
|
3
3
|
|
|
4
4
|
async function observe({ serverUrl, path, verbose }) {
|
|
5
5
|
if(verbose) console.info(`observing ${serverUrl} value ${JSON.stringify(path)}`)
|
|
@@ -27,4 +27,4 @@ async function observe({ serverUrl, path, verbose }) {
|
|
|
27
27
|
})
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
export default observe
|
package/lib/parseList.js
CHANGED
package/lib/request.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { client as WSClient } from "@live-change/dao-websocket"
|
|
2
2
|
|
|
3
3
|
async function request({ serverUrl, method, args, verbose }) {
|
|
4
4
|
if(verbose) console.info(`requesting ${serverUrl} method ${JSON.stringify(method)} with arguments `
|
|
@@ -36,4 +36,4 @@ async function request({ serverUrl, method, args, verbose }) {
|
|
|
36
36
|
})
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
export default request
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Database with observable data for live queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,14 +24,15 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/live-change/live-change-db",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"tape": "^5.
|
|
27
|
+
"tape": "^5.7.4"
|
|
28
28
|
},
|
|
29
|
+
"type": "module",
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@live-change/dao": "0.5.22",
|
|
31
32
|
"@live-change/dao-websocket": "0.5.22",
|
|
32
33
|
"line-reader": "^0.4.0",
|
|
33
34
|
"websocket": "^1.0.34",
|
|
34
|
-
"yargs": "^17.
|
|
35
|
+
"yargs": "^17.7.2"
|
|
35
36
|
},
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "b372725d436e29f7cc66b811533009c9ea5330a1"
|
|
37
38
|
}
|