@live-change/vue3-ssr 0.2.14 → 0.2.15
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/Api.js +2 -2
- package/index.js +7 -1
- package/package.json +6 -7
package/Api.js
CHANGED
|
@@ -190,7 +190,7 @@ class Api extends DaoProxy {
|
|
|
190
190
|
{ what: ['metadata', 'api'] },
|
|
191
191
|
{ what: ['version', 'version'] }
|
|
192
192
|
]}))
|
|
193
|
-
console.log("PREFETCH WAIT!")
|
|
193
|
+
//console.log("PREFETCH WAIT!")
|
|
194
194
|
// const apiPromise = this.apiObservable.wait()
|
|
195
195
|
// apiPromise.then(res => console.log("API RES", res))
|
|
196
196
|
// const versionPromise = this.versionObservable.wait()
|
|
@@ -198,7 +198,7 @@ class Api extends DaoProxy {
|
|
|
198
198
|
// if(this.apiObservable.getValue() === undefined) preFetchPromises.push(apiPromise)
|
|
199
199
|
// if(this.versionObservable.getValue() === undefined) preFetchPromises.push(versionPromise)
|
|
200
200
|
await Promise.all(preFetchPromises)
|
|
201
|
-
console.log("PREFETCHED", this.metadata.api, this.metadata.version)
|
|
201
|
+
//console.log("PREFETCHED", this.metadata.api, this.metadata.version)
|
|
202
202
|
for(const afterPreFetch of this.afterPreFetch) {
|
|
203
203
|
afterPreFetch()
|
|
204
204
|
}
|
package/index.js
CHANGED
|
@@ -82,6 +82,11 @@ function uid(context) {
|
|
|
82
82
|
return useApi(context).uid
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
function serviceDefinition(service, context = getCurrentInstance().appContext) {
|
|
86
|
+
const api = useApi(context)
|
|
87
|
+
return [...api.metadata.api.value.services].find(x => x.name == service)
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
const api = useApi
|
|
86
91
|
|
|
87
92
|
export {
|
|
@@ -89,5 +94,6 @@ export {
|
|
|
89
94
|
useApi, api,
|
|
90
95
|
view, actions, client, uid,
|
|
91
96
|
rangeBuckets, reverseRange,
|
|
92
|
-
inboxReader
|
|
97
|
+
inboxReader,
|
|
98
|
+
serviceDefinition
|
|
93
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-ssr",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "Live Change Framework - vue components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,11 +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.
|
|
25
|
-
"@live-change/uid": "0.6.
|
|
26
|
-
"@vueuse/core": "^
|
|
27
|
-
"debug": "^4.3.4"
|
|
28
|
-
"vue": "^3.2.33"
|
|
24
|
+
"@live-change/dao-vue3": "0.5.6",
|
|
25
|
+
"@live-change/uid": "0.6.14",
|
|
26
|
+
"@vueuse/core": "^9.1.0",
|
|
27
|
+
"debug": "^4.3.4"
|
|
29
28
|
},
|
|
30
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "d63a43e94b3bb271297b70d40be4774e176b1c59"
|
|
31
30
|
}
|