@live-change/vue3-ssr 0.8.6 → 0.8.8
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 +18 -16
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -7,24 +7,24 @@ function useApi(context) {
|
|
|
7
7
|
return context.config.globalProperties.$lc
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function usePath(context) {
|
|
11
11
|
return useApi(context).fetch
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
function
|
|
14
|
+
function useView(context) {
|
|
15
15
|
return useApi(context).view
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
function
|
|
18
|
+
function useActions(context) {
|
|
19
19
|
return useApi(context).actions
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function
|
|
23
|
-
return d3live(useApi(), path)
|
|
22
|
+
function useLive(path, context) {
|
|
23
|
+
return d3live(useApi(context), path)
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
function
|
|
27
|
-
return d3fetch(useApi(), path)
|
|
26
|
+
function useFetch(path, context) {
|
|
27
|
+
return d3fetch(useApi(context), path)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
async function rangeBuckets(pathFunction, options, app = getCurrentInstance()) {
|
|
@@ -74,15 +74,11 @@ function inboxReader(pathFunction, callback, start = '', options = {}) {
|
|
|
74
74
|
}, callback, start, bucketSize)
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
function client(context) {
|
|
78
|
-
return useApi(context).client
|
|
79
|
-
}
|
|
80
|
-
|
|
81
77
|
function useClient(context) {
|
|
82
78
|
return useApi(context).client
|
|
83
79
|
}
|
|
84
80
|
|
|
85
|
-
function
|
|
81
|
+
function useUid(context) {
|
|
86
82
|
return useApi(context).uid
|
|
87
83
|
}
|
|
88
84
|
|
|
@@ -91,13 +87,19 @@ function serviceDefinition(service, context = getCurrentInstance().appContext) {
|
|
|
91
87
|
return [...api.metadata.api.value.services].find(x => x.name == service)
|
|
92
88
|
}
|
|
93
89
|
|
|
90
|
+
// backward compatibility
|
|
94
91
|
const api = useApi
|
|
92
|
+
const path = usePath
|
|
93
|
+
const live = useLive
|
|
94
|
+
const fetch = useFetch
|
|
95
|
+
const view = useView
|
|
96
|
+
const actions = useActions
|
|
97
|
+
const client = useClient
|
|
98
|
+
const uid = useUid
|
|
95
99
|
|
|
96
100
|
export {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
view, actions, uid,
|
|
100
|
-
client, useClient,
|
|
101
|
+
usePath, useLive, useFetch, useApi, useView, useActions, useUid, useClient,
|
|
102
|
+
path, live, fetch, api, view, actions, uid, client,
|
|
101
103
|
rangeBuckets, reverseRange,
|
|
102
104
|
inboxReader,
|
|
103
105
|
serviceDefinition
|
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.8",
|
|
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-framework-vue3",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/dao-vue3": "^0.8.
|
|
25
|
-
"@live-change/uid": "^0.8.
|
|
24
|
+
"@live-change/dao-vue3": "^0.8.8",
|
|
25
|
+
"@live-change/uid": "^0.8.8",
|
|
26
26
|
"@vueuse/core": "^10.7.2",
|
|
27
27
|
"debug": "^4.3.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "77eafa414e091c8d34ae63ee8927d53f3bde893d"
|
|
30
30
|
}
|