@live-change/vue3-ssr 0.8.34 → 0.8.36

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/index.js +4 -2
  2. package/package.json +4 -4
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.34",
3
+ "version": "0.8.36",
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.34",
25
- "@live-change/uid": "^0.8.34",
24
+ "@live-change/dao-vue3": "^0.8.36",
25
+ "@live-change/uid": "^0.8.36",
26
26
  "@vueuse/core": "^10.11.0",
27
27
  "debug": "^4.3.4"
28
28
  },
29
- "gitHead": "40e61928bf43b35352c76fc135f36a2d8bd76c4a"
29
+ "gitHead": "24694d1687f0ab2d6eb7edd95e5274428cfd44eb"
30
30
  }