@live-change/vue3-ssr 0.8.33 → 0.8.35
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/index.js +4 -2
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -67,14 +67,16 @@ function reverseRange(range) {
|
|
|
67
67
|
function inboxReader(pathFunction, callback, start = '', options = {}) {
|
|
68
68
|
const {
|
|
69
69
|
bucketSize = 32,
|
|
70
|
-
context = getCurrentInstance().appContext
|
|
70
|
+
context = getCurrentInstance().appContext,
|
|
71
|
+
idField = 'id',
|
|
72
|
+
positionFilter = (n, curr) => n > curr
|
|
71
73
|
} = options
|
|
72
74
|
const api = useApi(context)
|
|
73
75
|
return new InboxReader((position, bucketSize) => {
|
|
74
76
|
const path = pathFunction(position, bucketSize)
|
|
75
77
|
console.log("OBSERVE PATH", path)
|
|
76
78
|
return api.observable(path)
|
|
77
|
-
}, callback, start, bucketSize)
|
|
79
|
+
}, callback, start, bucketSize, idField, positionFilter)
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
function useClient(context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-ssr",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.35",
|
|
4
4
|
"description": "Live Change Framework - vue components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/dao-vue3": "^0.8.
|
|
25
|
-
"@live-change/uid": "^0.8.
|
|
26
|
-
"@vueuse/core": "^10.
|
|
24
|
+
"@live-change/dao-vue3": "^0.8.35",
|
|
25
|
+
"@live-change/uid": "^0.8.35",
|
|
26
|
+
"@vueuse/core": "^10.11.0",
|
|
27
27
|
"debug": "^4.3.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "90fbb746dc7270895daf17b437ca48c0b0a01c01"
|
|
30
30
|
}
|