@live-change/vue3-ssr 0.2.26 → 0.2.27
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 +6 -6
- package/package.json +4 -4
package/Api.js
CHANGED
|
@@ -60,7 +60,7 @@ class Api extends DaoProxy {
|
|
|
60
60
|
setupMetadata() {
|
|
61
61
|
const api = ref()
|
|
62
62
|
this.apiObservable = this.observable(['metadata', 'api'])
|
|
63
|
-
console.log("API OBSERVABLE", this.apiObservable)
|
|
63
|
+
//console.log("API OBSERVABLE", this.apiObservable)
|
|
64
64
|
//this.apiObservable.bindProperty(api, 'value')
|
|
65
65
|
const version = ref()
|
|
66
66
|
this.versionObservable = this.observable(['version', 'version'])
|
|
@@ -86,9 +86,9 @@ class Api extends DaoProxy {
|
|
|
86
86
|
let lastApiJson = ''
|
|
87
87
|
this.apiObservable.observe((signal, ...args) => {
|
|
88
88
|
if(signal != 'set') return
|
|
89
|
-
console.log("API OBSERVE SIGNAL", signal, ...args)
|
|
89
|
+
//console.log("API OBSERVE SIGNAL", signal, ...args)
|
|
90
90
|
const newApi = args[0]
|
|
91
|
-
console.log("NEW API", newApi)
|
|
91
|
+
//console.log("NEW API", newApi)
|
|
92
92
|
if(JSON.stringify(newApi) == lastApiJson) {
|
|
93
93
|
console.log("API NOT CHANGED")
|
|
94
94
|
return
|
|
@@ -119,14 +119,14 @@ class Api extends DaoProxy {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
//console.trace("GENERATE API SERVICES!")
|
|
122
|
-
console.log("GENERATE SERVICES API", apiInfo)
|
|
122
|
+
//console.log("GENERATE SERVICES API", apiInfo)
|
|
123
123
|
const definitions = [...(apiInfo?.services ?? []), ...(this.settings.localDefinitions ?? [])]
|
|
124
124
|
if(JSON.stringify(definitions) == JSON.stringify(api.servicesApiDefinitions)) return
|
|
125
125
|
if(!definitions) throw new Error("API DEFINITIONS NOT FOUND! UNABLE TO GENERATE API!")
|
|
126
126
|
api.uidGenerator = uidGenerator(
|
|
127
127
|
apiInfo.client.user || (apiInfo.client.session ? apiInfo.client.session.slice(0, 16) : randomString(10) )
|
|
128
128
|
, 1, '[]')
|
|
129
|
-
console.log("GENERATE API DEFINITIONS", definitions)
|
|
129
|
+
//console.log("GENERATE API DEFINITIONS", definitions)
|
|
130
130
|
api.servicesApiDefinitions = definitions
|
|
131
131
|
api.servicesDefinitions.value = definitions
|
|
132
132
|
let globalViews = {}
|
|
@@ -136,7 +136,7 @@ class Api extends DaoProxy {
|
|
|
136
136
|
let views = { }
|
|
137
137
|
globalViews[serviceDefinition.name] = views
|
|
138
138
|
for(const viewName in serviceDefinition.views) {
|
|
139
|
-
console.log("GENERATE VIEW", serviceDefinition.name, viewName)
|
|
139
|
+
//console.log("GENERATE VIEW", serviceDefinition.name, viewName)
|
|
140
140
|
views[viewName] = (params) => [serviceDefinition.name, viewName, params]
|
|
141
141
|
views[viewName].definition = serviceDefinition.views[viewName]
|
|
142
142
|
}
|
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.27",
|
|
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.5.
|
|
25
|
-
"@live-change/uid": "0.7.
|
|
24
|
+
"@live-change/dao-vue3": "0.5.20",
|
|
25
|
+
"@live-change/uid": "0.7.26",
|
|
26
26
|
"@vueuse/core": "^9.1.0",
|
|
27
27
|
"debug": "^4.3.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "26dd186b61f60f45ce683ee763c1d5cd369e977f"
|
|
30
30
|
}
|